Searched refs:dbt (Results 1 – 8 of 8) sorted by relevance
/drivers/net/can/usb/ |
D | gs_usb.c | 415 struct gs_device_bittiming *dbt; in gs_usb_set_bittiming() local 417 dbt = kmalloc(sizeof(*dbt), GFP_KERNEL); in gs_usb_set_bittiming() 418 if (!dbt) in gs_usb_set_bittiming() 421 dbt->prop_seg = bt->prop_seg; in gs_usb_set_bittiming() 422 dbt->phase_seg1 = bt->phase_seg1; in gs_usb_set_bittiming() 423 dbt->phase_seg2 = bt->phase_seg2; in gs_usb_set_bittiming() 424 dbt->sjw = bt->sjw; in gs_usb_set_bittiming() 425 dbt->brp = bt->brp; in gs_usb_set_bittiming() 434 dbt, in gs_usb_set_bittiming() 435 sizeof(*dbt), in gs_usb_set_bittiming() [all …]
|
/drivers/net/can/ifi_canfd/ |
D | ifi_canfd.c | 659 const struct can_bittiming *dbt = &priv->can.data_bittiming; in ifi_canfd_set_bittiming() local 674 brp = dbt->brp - 2; in ifi_canfd_set_bittiming() 675 sjw = dbt->sjw - 1; in ifi_canfd_set_bittiming() 676 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in ifi_canfd_set_bittiming() 677 tseg2 = dbt->phase_seg2 - 2; in ifi_canfd_set_bittiming() 685 tdc = dbt->brp * (dbt->prop_seg + dbt->phase_seg1); in ifi_canfd_set_bittiming()
|
/drivers/net/can/ |
D | dev.c | 1023 struct can_bittiming dbt; in can_changelink() local 1037 memcpy(&dbt, nla_data(data[IFLA_CAN_DATA_BITTIMING]), in can_changelink() 1038 sizeof(dbt)); in can_changelink() 1039 err = can_get_bittiming(dev, &dbt, in can_changelink() 1046 if (priv->bitrate_max && dbt.bitrate > priv->bitrate_max) { in can_changelink() 1052 memcpy(&priv->data_bittiming, &dbt, sizeof(dbt)); in can_changelink()
|
D | xilinx_can.c | 394 struct can_bittiming *dbt = &priv->can.data_bittiming; in xcan_set_bittiming() local 427 btr0 = dbt->brp - 1; in xcan_set_bittiming() 430 btr1 = dbt->prop_seg + dbt->phase_seg1 - 1; in xcan_set_bittiming() 433 btr1 |= (dbt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming() 436 btr1 |= (dbt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming()
|
/drivers/net/can/m_can/ |
D | m_can.c | 1015 const struct can_bittiming *dbt = &cdev->can.data_bittiming; in m_can_set_bittiming() local 1029 brp = dbt->brp - 1; in m_can_set_bittiming() 1030 sjw = dbt->sjw - 1; in m_can_set_bittiming() 1031 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in m_can_set_bittiming() 1032 tseg2 = dbt->phase_seg2 - 1; in m_can_set_bittiming() 1038 if (dbt->bitrate > 2500000) { in m_can_set_bittiming() 1044 ssp = dbt->sample_point; in m_can_set_bittiming() 1050 ssp / dbt->bitrate; in m_can_set_bittiming()
|
/drivers/dma/ |
D | sa11x0-dma.c | 113 u32 dbt[2]; member 1022 p->dbt[0] = readl_relaxed(p->base + DMA_DBTB); in sa11x0_dma_suspend() 1024 p->dbt[1] = readl_relaxed(p->base + DMA_DBTA); in sa11x0_dma_suspend() 1029 p->dbt[0] = readl_relaxed(p->base + DMA_DBTA); in sa11x0_dma_suspend() 1031 p->dbt[1] = readl_relaxed(p->base + DMA_DBTB); in sa11x0_dma_suspend() 1065 writel_relaxed(p->dbt[0], p->base + DMA_DBTA); in sa11x0_dma_resume() 1067 writel_relaxed(p->dbt[1], p->base + DMA_DBTB); in sa11x0_dma_resume()
|
/drivers/net/can/usb/kvaser_usb/ |
D | kvaser_usb_hydra.c | 1531 struct can_bittiming *dbt = &priv->can.data_bittiming; in kvaser_usb_hydra_set_data_bittiming() local 1533 int tseg1 = dbt->prop_seg + dbt->phase_seg1; in kvaser_usb_hydra_set_data_bittiming() 1534 int tseg2 = dbt->phase_seg2; in kvaser_usb_hydra_set_data_bittiming() 1535 int sjw = dbt->sjw; in kvaser_usb_hydra_set_data_bittiming() 1543 cmd->set_busparams_req.bitrate_d = cpu_to_le32(dbt->bitrate); in kvaser_usb_hydra_set_data_bittiming()
|
/drivers/net/can/rcar/ |
D | rcar_canfd.c | 1181 const struct can_bittiming *dbt = &priv->can.data_bittiming; in rcar_canfd_set_bittiming() local 1202 brp = dbt->brp - 1; in rcar_canfd_set_bittiming() 1203 sjw = dbt->sjw - 1; in rcar_canfd_set_bittiming() 1204 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in rcar_canfd_set_bittiming() 1205 tseg2 = dbt->phase_seg2 - 1; in rcar_canfd_set_bittiming()
|