Searched refs:dbt (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/drivers/net/can/usb/ |
D | gs_usb.c | 423 struct gs_device_bittiming *dbt; in gs_usb_set_bittiming() local 425 dbt = kmalloc(sizeof(*dbt), GFP_KERNEL); in gs_usb_set_bittiming() 426 if (!dbt) in gs_usb_set_bittiming() 429 dbt->prop_seg = bt->prop_seg; in gs_usb_set_bittiming() 430 dbt->phase_seg1 = bt->phase_seg1; in gs_usb_set_bittiming() 431 dbt->phase_seg2 = bt->phase_seg2; in gs_usb_set_bittiming() 432 dbt->sjw = bt->sjw; in gs_usb_set_bittiming() 433 dbt->brp = bt->brp; in gs_usb_set_bittiming() 442 dbt, in gs_usb_set_bittiming() 443 sizeof(*dbt), in gs_usb_set_bittiming() [all …]
|
/Linux-v4.19/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()
|
/Linux-v4.19/drivers/net/can/ |
D | dev.c | 1009 struct can_bittiming dbt; in can_changelink() local 1023 memcpy(&dbt, nla_data(data[IFLA_CAN_DATA_BITTIMING]), in can_changelink() 1024 sizeof(dbt)); in can_changelink() 1025 err = can_get_bittiming(dev, &dbt, in can_changelink() 1032 if (priv->bitrate_max && dbt.bitrate > priv->bitrate_max) { in can_changelink() 1038 memcpy(&priv->data_bittiming, &dbt, sizeof(dbt)); in can_changelink()
|
/Linux-v4.19/drivers/net/can/m_can/ |
D | m_can.c | 982 const struct can_bittiming *dbt = &priv->can.data_bittiming; in m_can_set_bittiming() local 996 brp = dbt->brp - 1; in m_can_set_bittiming() 997 sjw = dbt->sjw - 1; in m_can_set_bittiming() 998 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in m_can_set_bittiming() 999 tseg2 = dbt->phase_seg2 - 1; in m_can_set_bittiming() 1005 if (dbt->bitrate > 2500000) { in m_can_set_bittiming() 1011 ssp = dbt->sample_point; in m_can_set_bittiming() 1017 ssp / dbt->bitrate; in m_can_set_bittiming()
|
/Linux-v4.19/drivers/dma/ |
D | sa11x0-dma.c | 117 u32 dbt[2]; member 1020 p->dbt[0] = readl_relaxed(p->base + DMA_DBTB); in sa11x0_dma_suspend() 1022 p->dbt[1] = readl_relaxed(p->base + DMA_DBTA); in sa11x0_dma_suspend() 1027 p->dbt[0] = readl_relaxed(p->base + DMA_DBTA); in sa11x0_dma_suspend() 1029 p->dbt[1] = readl_relaxed(p->base + DMA_DBTB); in sa11x0_dma_suspend() 1063 writel_relaxed(p->dbt[0], p->base + DMA_DBTA); in sa11x0_dma_resume() 1065 writel_relaxed(p->dbt[1], p->base + DMA_DBTB); in sa11x0_dma_resume()
|
/Linux-v4.19/drivers/net/can/rcar/ |
D | rcar_canfd.c | 1185 const struct can_bittiming *dbt = &priv->can.data_bittiming; in rcar_canfd_set_bittiming() local 1206 brp = dbt->brp - 1; in rcar_canfd_set_bittiming() 1207 sjw = dbt->sjw - 1; in rcar_canfd_set_bittiming() 1208 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in rcar_canfd_set_bittiming() 1209 tseg2 = dbt->phase_seg2 - 1; in rcar_canfd_set_bittiming()
|
/Linux-v4.19/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()
|