Home
last modified time | relevance | path

Searched refs:dbt (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/can/usb/
Dgs_usb.c424 struct gs_device_bittiming *dbt; in gs_usb_set_bittiming() local
426 dbt = kmalloc(sizeof(*dbt), GFP_KERNEL); in gs_usb_set_bittiming()
427 if (!dbt) in gs_usb_set_bittiming()
430 dbt->prop_seg = cpu_to_le32(bt->prop_seg); in gs_usb_set_bittiming()
431 dbt->phase_seg1 = cpu_to_le32(bt->phase_seg1); in gs_usb_set_bittiming()
432 dbt->phase_seg2 = cpu_to_le32(bt->phase_seg2); in gs_usb_set_bittiming()
433 dbt->sjw = cpu_to_le32(bt->sjw); in gs_usb_set_bittiming()
434 dbt->brp = cpu_to_le32(bt->brp); in gs_usb_set_bittiming()
443 dbt, in gs_usb_set_bittiming()
444 sizeof(*dbt), in gs_usb_set_bittiming()
[all …]
/kernel/linux/linux-5.10/drivers/net/can/ifi_canfd/
Difi_canfd.c659 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()
/kernel/linux/linux-5.10/drivers/net/can/
Dflexcan.c1196 struct can_bittiming *dbt = &priv->can.data_bittiming; in flexcan_set_bittiming_cbt() local
1225 if (bt->brp != dbt->brp) in flexcan_set_bittiming_cbt()
1227 dbt->brp, bt->brp); in flexcan_set_bittiming_cbt()
1237 if (dbt->phase_seg1 > 0x8) { in flexcan_set_bittiming_cbt()
1238 dbt->prop_seg += (dbt->phase_seg1 - 0x8); in flexcan_set_bittiming_cbt()
1239 dbt->phase_seg1 = 0x8; in flexcan_set_bittiming_cbt()
1249 reg_fdcbt |= FIELD_PREP(FLEXCAN_FDCBT_FPRESDIV_MASK, dbt->brp - 1) | in flexcan_set_bittiming_cbt()
1250 FIELD_PREP(FLEXCAN_FDCBT_FRJW_MASK, dbt->sjw - 1) | in flexcan_set_bittiming_cbt()
1251 FIELD_PREP(FLEXCAN_FDCBT_FPROPSEG_MASK, dbt->prop_seg) | in flexcan_set_bittiming_cbt()
1252 FIELD_PREP(FLEXCAN_FDCBT_FPSEG1_MASK, dbt->phase_seg1 - 1) | in flexcan_set_bittiming_cbt()
[all …]
Dxilinx_can.c394 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()
/kernel/linux/linux-5.10/drivers/net/can/dev/
Ddev.c1063 struct can_bittiming dbt; in can_changelink() local
1077 memcpy(&dbt, nla_data(data[IFLA_CAN_DATA_BITTIMING]), in can_changelink()
1078 sizeof(dbt)); in can_changelink()
1079 err = can_get_bittiming(dev, &dbt, in can_changelink()
1086 if (priv->bitrate_max && dbt.bitrate > priv->bitrate_max) { in can_changelink()
1092 memcpy(&priv->data_bittiming, &dbt, sizeof(dbt)); in can_changelink()
/kernel/linux/linux-5.10/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_core.c559 struct can_bittiming *dbt = &priv->can.data_bittiming; in kvaser_usb_set_data_bittiming() local
562 int tseg1 = dbt->prop_seg + dbt->phase_seg1; in kvaser_usb_set_data_bittiming()
563 int tseg2 = dbt->phase_seg2; in kvaser_usb_set_data_bittiming()
564 int sjw = dbt->sjw; in kvaser_usb_set_data_bittiming()
571 busparams.bitrate = cpu_to_le32(dbt->bitrate); in kvaser_usb_set_data_bittiming()
/kernel/linux/linux-5.10/drivers/dma/
Dsa11x0-dma.c113 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()
/kernel/linux/linux-5.10/drivers/net/can/m_can/
Dm_can.c1051 const struct can_bittiming *dbt = &cdev->can.data_bittiming; in m_can_set_bittiming() local
1065 brp = dbt->brp - 1; in m_can_set_bittiming()
1066 sjw = dbt->sjw - 1; in m_can_set_bittiming()
1067 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in m_can_set_bittiming()
1068 tseg2 = dbt->phase_seg2 - 1; in m_can_set_bittiming()
1074 if (dbt->bitrate > 2500000) { in m_can_set_bittiming()
1080 ssp = dbt->sample_point; in m_can_set_bittiming()
1086 ssp / dbt->bitrate; in m_can_set_bittiming()
/kernel/linux/linux-5.10/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-core.c681 const struct can_bittiming *dbt = &priv->can.data_bittiming; in mcp251xfd_set_bittiming() local
735 val = FIELD_PREP(MCP251XFD_REG_DBTCFG_BRP_MASK, dbt->brp - 1) | in mcp251xfd_set_bittiming()
737 dbt->prop_seg + dbt->phase_seg1 - 1) | in mcp251xfd_set_bittiming()
739 dbt->phase_seg2 - 1) | in mcp251xfd_set_bittiming()
740 FIELD_PREP(MCP251XFD_REG_DBTCFG_SJW_MASK, dbt->sjw - 1); in mcp251xfd_set_bittiming()
747 tdco = clamp_t(int, dbt->brp * (dbt->prop_seg + dbt->phase_seg1), in mcp251xfd_set_bittiming()
/kernel/linux/linux-5.10/drivers/net/can/rcar/
Drcar_canfd.c1183 const struct can_bittiming *dbt = &priv->can.data_bittiming; in rcar_canfd_set_bittiming() local
1204 brp = dbt->brp - 1; in rcar_canfd_set_bittiming()
1205 sjw = dbt->sjw - 1; in rcar_canfd_set_bittiming()
1206 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in rcar_canfd_set_bittiming()
1207 tseg2 = dbt->phase_seg2 - 1; in rcar_canfd_set_bittiming()