/linux-6.12.1/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() 27 if (bt->sjw > bt->phase_seg1) { in can_sjw_check() 30 bt->sjw, bt->phase_seg1); in can_sjw_check() 53 const unsigned int tseg1 = bt->prop_seg + bt->phase_seg1; in can_fixup_bittiming()
|
D | calc_bittiming.c | 156 bt->phase_seg1 = tseg1 - bt->prop_seg; in can_calc_bittiming() 191 dbt->phase_seg1) * dbt->brp; in can_calc_tdco()
|
/linux-6.12.1/drivers/net/can/ctucanfd/ |
D | ctucanfd_base.c | 211 u32 phase_seg1 = bt->phase_seg1; in ctucan_set_btr() local 226 if (phase_seg1 > max_ph1_len) { in ctucan_set_btr() 227 prop_seg += phase_seg1 - max_ph1_len; in ctucan_set_btr() 228 phase_seg1 = max_ph1_len; in ctucan_set_btr() 230 bt->phase_seg1 = phase_seg1; in ctucan_set_btr() 235 btr |= FIELD_PREP(REG_BTR_PH1, phase_seg1); in ctucan_set_btr() 243 btr |= FIELD_PREP(REG_BTR_FD_PH1_FD, phase_seg1); in ctucan_set_btr()
|
/linux-6.12.1/include/linux/can/ |
D | bittiming.h | 162 return CAN_SYNC_SEG + bt->prop_seg + bt->phase_seg1 + bt->phase_seg2; in can_bit_time()
|
D | dev.h | 119 dbt->phase_seg1) * dbt->brp; in can_get_relative_tdco()
|
/linux-6.12.1/drivers/net/can/esd/ |
D | esdacc.c | 370 bt->phase_seg1, bt->phase_seg2, bt->sjw); in acc_set_bittiming() 374 btr = FIELD_PREP(ACC_REG_BTR_FD_MASK_TSEG1, bt->phase_seg1 + bt->prop_seg - 1); in acc_set_bittiming() 387 bt->phase_seg1, bt->phase_seg2, bt->sjw); in acc_set_bittiming() 391 btr = FIELD_PREP(ACC_REG_BTR_CL_MASK_TSEG1, bt->phase_seg1 + bt->prop_seg - 1); in acc_set_bittiming()
|
/linux-6.12.1/include/uapi/linux/can/ |
D | netlink.h | 36 __u32 phase_seg1; /* Phase buffer segment 1 in TQs */ member
|
/linux-6.12.1/drivers/net/can/flexcan/ |
D | flexcan-core.c | 1197 FLEXCAN_CTRL_PSEG1(bt->phase_seg1 - 1) | in flexcan_set_bittiming_ctrl() 1225 if (bt->phase_seg1 > 0x20) { in flexcan_set_bittiming_cbt() 1226 bt->prop_seg += (bt->phase_seg1 - 0x20); in flexcan_set_bittiming_cbt() 1227 bt->phase_seg1 = 0x20; in flexcan_set_bittiming_cbt() 1234 FIELD_PREP(FLEXCAN_CBT_EPSEG1_MASK, bt->phase_seg1 - 1) | in flexcan_set_bittiming_cbt() 1255 if (dbt->phase_seg1 > 0x8) { in flexcan_set_bittiming_cbt() 1256 dbt->prop_seg += (dbt->phase_seg1 - 0x8); in flexcan_set_bittiming_cbt() 1257 dbt->phase_seg1 = 0x8; in flexcan_set_bittiming_cbt() 1270 FIELD_PREP(FLEXCAN_FDCBT_FPSEG1_MASK, dbt->phase_seg1 - 1) | in flexcan_set_bittiming_cbt() 1300 ((dbt->phase_seg1 - 1) + in flexcan_set_bittiming_cbt()
|
/linux-6.12.1/drivers/net/can/usb/ |
D | gs_usb.c | 159 __le32 phase_seg1; member 712 .phase_seg1 = cpu_to_le32(bt->phase_seg1), in gs_usb_set_bittiming() 731 .phase_seg1 = cpu_to_le32(bt->phase_seg1), in gs_usb_set_data_bittiming()
|
D | ucan.c | 145 u8 phase_seg1; /* Phase buffer segment 1 in TQs */ member 1258 cmd_set_bittiming->phase_seg1 = up->can.bittiming.phase_seg1; in ucan_set_bittiming()
|
D | esd_usb.c | 1037 canbtr |= ((bt->prop_seg + bt->phase_seg1 - 1) in esd_usb_2_set_bittiming() 1121 baud_x->nom.tseg1 = cpu_to_le16((nom_bt->prop_seg + nom_bt->phase_seg1) in esd_usb_3_set_bittiming() 1128 baud_x->data.tseg1 = cpu_to_le16((data_bt->prop_seg + data_bt->phase_seg1) in esd_usb_3_set_bittiming()
|
/linux-6.12.1/drivers/net/can/ifi_canfd/ |
D | ifi_canfd.c | 656 tseg1 = bt->prop_seg + bt->phase_seg1 - 1; in ifi_canfd_set_bittiming() 667 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in ifi_canfd_set_bittiming() 676 tdc = dbt->brp * (dbt->prop_seg + dbt->phase_seg1); in ifi_canfd_set_bittiming()
|
/linux-6.12.1/drivers/net/can/peak_canfd/ |
D | peak_canfd.c | 127 cmd->tseg1 = PUCAN_TSLOW_TSEG1(pbt->prop_seg + pbt->phase_seg1 - 1); in pucan_set_timing_slow() 148 cmd->tseg1 = PUCAN_TFAST_TSEG1(pbt->prop_seg + pbt->phase_seg1 - 1); in pucan_set_timing_fast()
|
/linux-6.12.1/drivers/net/can/softing/ |
D | softing_fw.c | 496 iowrite16(bt->phase_seg1 + bt->prop_seg, in softing_startstop() 536 iowrite16(bt->phase_seg1 + bt->prop_seg, in softing_startstop()
|
/linux-6.12.1/drivers/net/can/rockchip/ |
D | rockchip_canfd-core.c | 133 bt->prop_seg + bt->phase_seg1 - 1); in rkcanfd_set_bittiming() 147 dbt->prop_seg + dbt->phase_seg1 - 1); in rkcanfd_set_bittiming()
|
/linux-6.12.1/drivers/net/can/usb/kvaser_usb/ |
D | kvaser_usb_core.c | 553 int tseg1 = bt->prop_seg + bt->phase_seg1; in kvaser_usb_set_bittiming() 597 int tseg1 = dbt->prop_seg + dbt->phase_seg1; in kvaser_usb_set_data_bittiming()
|
/linux-6.12.1/drivers/net/can/spi/mcp251xfd/ |
D | mcp251xfd-core.c | 553 bt->prop_seg + bt->phase_seg1 - 1) | in mcp251xfd_set_bittiming() 568 dbt->prop_seg + dbt->phase_seg1 - 1) | in mcp251xfd_set_bittiming() 578 tdco = clamp_t(int, dbt->brp * (dbt->prop_seg + dbt->phase_seg1), in mcp251xfd_set_bittiming()
|
/linux-6.12.1/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_fd.c | 429 cmd->tseg1 = PUCAN_TSLOW_TSEG1(bt->prop_seg + bt->phase_seg1 - 1); in pcan_usb_fd_set_bittiming_slow() 448 cmd->tseg1 = PUCAN_TFAST_TSEG1(bt->prop_seg + bt->phase_seg1 - 1); in pcan_usb_fd_set_bittiming_fast()
|
D | pcan_usb.c | 281 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in pcan_usb_set_bittiming()
|
/linux-6.12.1/drivers/net/can/usb/etas_es58x/ |
D | es58x_fd.c | 390 cpu_to_le16(bt->prop_seg + bt->phase_seg1 - offset); in es58x_fd_convert_bittiming()
|
/linux-6.12.1/drivers/net/can/sja1000/ |
D | sja1000.c | 253 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in sja1000_set_bittiming()
|
/linux-6.12.1/drivers/net/can/ |
D | xilinx_can.c | 503 btr1 = (bt->prop_seg + bt->phase_seg1 - 1); in xcan_set_bittiming() 528 btr1 = dbt->prop_seg + dbt->phase_seg1 - 1; in xcan_set_bittiming()
|
D | sun4i_can.c | 297 (((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) << 16) | in sun4ican_set_bittiming()
|
D | Kconfig | 79 arguments "tq", "prop_seg", "phase_seg1", "phase_seg2" and "sjw".
|
/linux-6.12.1/drivers/net/can/mscan/ |
D | mscan.c | 510 btr1 = (BTR1_SET_TSEG1(bt->prop_seg + bt->phase_seg1) | in mscan_do_set_bittiming()
|