/linux-6.6.21/drivers/net/can/dev/ |
D | bittiming.c | 15 bt->sjw = max(1U, min(bt->phase_seg1, bt->phase_seg2 / 2)); in can_sjw_set_default() 34 if (bt->sjw > bt->phase_seg2) { in can_sjw_check() 37 bt->sjw, bt->phase_seg2); in can_sjw_check() 68 if (bt->phase_seg2 < btc->tseg2_min) { in can_fixup_bittiming() 70 bt->phase_seg2, btc->tseg2_min); in can_fixup_bittiming() 73 if (bt->phase_seg2 > btc->tseg2_max) { in can_fixup_bittiming() 75 bt->phase_seg2, btc->tseg2_max); in can_fixup_bittiming()
|
D | calc_bittiming.c | 157 bt->phase_seg2 = tseg2; in can_calc_bittiming()
|
/linux-6.6.21/include/linux/can/ |
D | bittiming.h | 162 return CAN_SYNC_SEG + bt->prop_seg + bt->phase_seg1 + bt->phase_seg2; in can_bit_time()
|
/linux-6.6.21/include/uapi/linux/can/ |
D | netlink.h | 37 __u32 phase_seg2; /* Phase buffer segment 2 in TQs */ member
|
/linux-6.6.21/drivers/net/can/usb/ |
D | gs_usb.c | 157 __le32 phase_seg2; member 710 .phase_seg2 = cpu_to_le32(bt->phase_seg2), in gs_usb_set_bittiming() 729 .phase_seg2 = cpu_to_le32(bt->phase_seg2), in gs_usb_set_data_bittiming()
|
D | ucan.c | 146 u8 phase_seg2; /* Phase buffer segment 2 in TQs */ member 1259 cmd_set_bittiming->phase_seg2 = up->can.bittiming.phase_seg2; in ucan_set_bittiming()
|
D | esd_usb.c | 1040 canbtr |= ((bt->phase_seg2 - 1) & (btc->tseg2_max - 1)) in esd_usb_2_set_bittiming() 1126 baud_x->nom.tseg2 = cpu_to_le16(nom_bt->phase_seg2 & (nom_btc->tseg2_max - 1)); in esd_usb_3_set_bittiming() 1133 baud_x->data.tseg2 = cpu_to_le16(data_bt->phase_seg2 & (data_btc->tseg2_max - 1)); in esd_usb_3_set_bittiming()
|
D | usb_8dev.c | 253 outmsg.data[1] = bt->phase_seg2; in usb_8dev_cmd_open()
|
D | ems_usb.c | 927 (((bt->phase_seg2 - 1) & 0x7) << 4); in ems_usb_set_bittiming()
|
/linux-6.6.21/drivers/net/can/peak_canfd/ |
D | peak_canfd.c | 128 cmd->tseg2 = PUCAN_TSLOW_TSEG2(pbt->phase_seg2 - 1); in pucan_set_timing_slow() 149 cmd->tseg2 = PUCAN_TFAST_TSEG2(pbt->phase_seg2 - 1); in pucan_set_timing_fast()
|
/linux-6.6.21/drivers/net/can/softing/ |
D | softing_fw.c | 498 iowrite16(bt->phase_seg2, &card->dpram[DPRAM_FCT_PARAM + 8]); in softing_startstop() 538 iowrite16(bt->phase_seg2, &card->dpram[DPRAM_FCT_PARAM + 8]); in softing_startstop()
|
/linux-6.6.21/drivers/net/can/ifi_canfd/ |
D | ifi_canfd.c | 657 tseg2 = bt->phase_seg2 - 2; in ifi_canfd_set_bittiming() 668 tseg2 = dbt->phase_seg2 - 2; in ifi_canfd_set_bittiming()
|
/linux-6.6.21/drivers/net/can/usb/kvaser_usb/ |
D | kvaser_usb_core.c | 541 int tseg2 = bt->phase_seg2; in kvaser_usb_set_bittiming() 585 int tseg2 = dbt->phase_seg2; in kvaser_usb_set_data_bittiming()
|
/linux-6.6.21/drivers/net/can/usb/etas_es58x/ |
D | es58x_fd.c | 391 es58x_fd_bt->tseg2 = cpu_to_le16(bt->phase_seg2 - offset); in es58x_fd_convert_bittiming()
|
/linux-6.6.21/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_fd.c | 428 cmd->tseg2 = PUCAN_TSLOW_TSEG2(bt->phase_seg2 - 1); in pcan_usb_fd_set_bittiming_slow() 447 cmd->tseg2 = PUCAN_TFAST_TSEG2(bt->phase_seg2 - 1); in pcan_usb_fd_set_bittiming_fast()
|
D | pcan_usb.c | 282 (((bt->phase_seg2 - 1) & 0x7) << 4); in pcan_usb_set_bittiming()
|
/linux-6.6.21/drivers/net/can/ctucanfd/ |
D | ctucanfd_base.c | 236 btr |= FIELD_PREP(REG_BTR_PH2, bt->phase_seg2); in ctucan_set_btr() 244 btr |= FIELD_PREP(REG_BTR_FD_PH2_FD, bt->phase_seg2); in ctucan_set_btr()
|
/linux-6.6.21/drivers/net/can/sja1000/ |
D | sja1000.c | 254 (((bt->phase_seg2 - 1) & 0x7) << 4); in sja1000_set_bittiming()
|
/linux-6.6.21/drivers/net/can/ |
D | xilinx_can.c | 447 btr1 |= (bt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming() 472 btr1 |= (dbt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming()
|
D | Kconfig | 79 arguments "tq", "prop_seg", "phase_seg1", "phase_seg2" and "sjw".
|
D | sun4i_can.c | 298 (((bt->phase_seg2 - 1) & 0x7) << 20); in sun4ican_set_bittiming()
|
/linux-6.6.21/drivers/net/can/flexcan/ |
D | flexcan-core.c | 1179 FLEXCAN_CTRL_PSEG2(bt->phase_seg2 - 1) | in flexcan_set_bittiming_ctrl() 1216 FIELD_PREP(FLEXCAN_CBT_EPSEG2_MASK, bt->phase_seg2 - 1); in flexcan_set_bittiming_cbt() 1252 FIELD_PREP(FLEXCAN_FDCBT_FPSEG2_MASK, dbt->phase_seg2 - 1); in flexcan_set_bittiming_cbt()
|
/linux-6.6.21/drivers/net/can/mscan/ |
D | mscan.c | 517 BTR1_SET_TSEG2(bt->phase_seg2) | in mscan_do_set_bittiming()
|
/linux-6.6.21/drivers/net/can/spi/mcp251xfd/ |
D | mcp251xfd-core.c | 555 bt->phase_seg2 - 1) | in mcp251xfd_set_bittiming() 570 dbt->phase_seg2 - 1) | in mcp251xfd_set_bittiming()
|
/linux-6.6.21/drivers/net/can/cc770/ |
D | cc770.c | 363 (((bt->phase_seg2 - 1) & 0x7) << 4); in cc770_set_bittiming()
|