/linux-6.1.9/drivers/net/can/dev/ |
D | calc_bittiming.c | 32 unsigned int tseg1, tseg2; in can_update_sample_point() local 40 tseg1 = tseg - tseg2; in can_update_sample_point() 41 if (tseg1 > btc->tseg1_max) { in can_update_sample_point() 42 tseg1 = btc->tseg1_max; in can_update_sample_point() 43 tseg2 = tseg - tseg1; in can_update_sample_point() 54 *tseg1_ptr = tseg1; in can_update_sample_point() 77 unsigned int brp, tsegall, tseg, tseg1 = 0, tseg2 = 0; in can_calc_bittiming() local 117 &tseg1, &tseg2, &sample_point_error); in can_calc_bittiming() 147 best_tseg, &tseg1, &tseg2, in can_calc_bittiming() 153 bt->prop_seg = tseg1 / 2; in can_calc_bittiming() [all …]
|
D | bittiming.c | 18 unsigned int tseg1, alltseg; in can_fixup_bittiming() local 21 tseg1 = bt->prop_seg + bt->phase_seg1; in can_fixup_bittiming() 25 tseg1 < btc->tseg1_min || tseg1 > btc->tseg1_max || in can_fixup_bittiming() 43 bt->sample_point = ((tseg1 + 1) * 1000) / alltseg; in can_fixup_bittiming()
|
/linux-6.1.9/drivers/net/can/mscan/ |
D | mscan.h | 253 #define BTR1_SET_TSEG1(tseg1) (((tseg1) - 1) & BTR1_TSEG1_MASK) argument
|
/linux-6.1.9/include/linux/can/dev/ |
D | peak_canfd.h | 74 u8 tseg1; /* Timing SEGment 1 */ member 101 u8 tseg1; /* Timing SEGment 1 */ member
|
/linux-6.1.9/drivers/net/can/usb/kvaser_usb/ |
D | kvaser_usb_core.c | 541 int tseg1 = bt->prop_seg + bt->phase_seg1; in kvaser_usb_set_bittiming() local 548 busparams.tseg1 = (u8)tseg1; in kvaser_usb_set_bittiming() 586 int tseg1 = dbt->prop_seg + dbt->phase_seg1; in kvaser_usb_set_data_bittiming() local 597 busparams.tseg1 = (u8)tseg1; in kvaser_usb_set_data_bittiming()
|
D | kvaser_usb.h | 81 u8 tseg1; member
|
/linux-6.1.9/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() 135 le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw_t); in pucan_set_timing_slow() 148 cmd->tseg1 = PUCAN_TFAST_TSEG1(pbt->prop_seg + pbt->phase_seg1 - 1); in pucan_set_timing_fast() 154 le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw); in pucan_set_timing_fast()
|
/linux-6.1.9/drivers/net/can/ifi_canfd/ |
D | ifi_canfd.c | 652 u16 brp, sjw, tseg1, tseg2, tdc; in ifi_canfd_set_bittiming() local 657 tseg1 = bt->prop_seg + bt->phase_seg1 - 1; in ifi_canfd_set_bittiming() 660 (tseg1 << IFI_CANFD_TIME_TIMEA_OFF) | in ifi_canfd_set_bittiming() 668 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in ifi_canfd_set_bittiming() 671 (tseg1 << IFI_CANFD_TIME_TIMEA_OFF) | in ifi_canfd_set_bittiming()
|
/linux-6.1.9/drivers/net/can/rcar/ |
D | rcar_canfd.c | 1301 u16 brp, sjw, tseg1, tseg2; in rcar_canfd_set_bittiming() local 1308 tseg1 = bt->prop_seg + bt->phase_seg1 - 1; in rcar_canfd_set_bittiming() 1313 cfg = (RCANFD_NCFG_NTSEG1(gpriv, tseg1) | RCANFD_NCFG_NBRP(brp) | in rcar_canfd_set_bittiming() 1318 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming() 1323 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in rcar_canfd_set_bittiming() 1326 cfg = (RCANFD_DCFG_DTSEG1(gpriv, tseg1) | RCANFD_DCFG_DBRP(brp) | in rcar_canfd_set_bittiming() 1334 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming() 1338 cfg = (RCANFD_NCFG_NTSEG1(gpriv, tseg1) | in rcar_canfd_set_bittiming() 1343 cfg = (RCANFD_CFG_TSEG1(tseg1) | in rcar_canfd_set_bittiming() 1352 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
|
/linux-6.1.9/drivers/net/can/usb/etas_es58x/ |
D | es58x_fd.h | 83 __le16 tseg1; /* range: [tseg1_min-1..tseg1_max-1] */ member
|
D | es58x_fd.c | 389 es58x_fd_bt->tseg1 = in es58x_fd_convert_bittiming()
|
/linux-6.1.9/drivers/net/can/m_can/ |
D | m_can.c | 1165 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local 1170 tseg1 = bt->prop_seg + bt->phase_seg1 - 1; in m_can_set_bittiming() 1174 FIELD_PREP(NBTP_NTSEG1_MASK, tseg1) | in m_can_set_bittiming() 1182 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in m_can_set_bittiming() 1217 FIELD_PREP(DBTP_DTSEG1_MASK, tseg1) | in m_can_set_bittiming()
|
/linux-6.1.9/drivers/net/can/c_can/ |
D | c_can_main.c | 504 u8 brp, brpe, sjw, tseg1, tseg2; in c_can_set_bittiming() local 516 tseg1 = bt->prop_seg + bt->phase_seg1 - 1; in c_can_set_bittiming() 518 reg_btr = brp | (sjw << BTR_SJW_SHIFT) | (tseg1 << BTR_TSEG1_SHIFT) | in c_can_set_bittiming()
|
/linux-6.1.9/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_fd.c | 411 cmd->tseg1 = PUCAN_TSLOW_TSEG1(bt->prop_seg + bt->phase_seg1 - 1); in pcan_usb_fd_set_bittiming_slow() 430 cmd->tseg1 = PUCAN_TFAST_TSEG1(bt->prop_seg + bt->phase_seg1 - 1); in pcan_usb_fd_set_bittiming_fast()
|
/linux-6.1.9/Documentation/networking/ |
D | can.rst | 1246 sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1 1286 "sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1 clock 8000000" 1327 sja1000: clock 8000000 tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1 1423 pcan_usb_pro_fd: tseg1 1..64 tseg2 1..16 sjw 1..16 brp 1..1024 \
|