Home
last modified time | relevance | path

Searched refs:tseg1 (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/drivers/net/can/dev/
Dcalc_bittiming.c32 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 …]
Dbittiming.c18 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/
Dmscan.h253 #define BTR1_SET_TSEG1(tseg1) (((tseg1) - 1) & BTR1_TSEG1_MASK) argument
/linux-6.1.9/include/linux/can/dev/
Dpeak_canfd.h74 u8 tseg1; /* Timing SEGment 1 */ member
101 u8 tseg1; /* Timing SEGment 1 */ member
/linux-6.1.9/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_core.c541 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()
Dkvaser_usb.h81 u8 tseg1; member
/linux-6.1.9/drivers/net/can/peak_canfd/
Dpeak_canfd.c127 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/
Difi_canfd.c652 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/
Drcar_canfd.c1301 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/
Des58x_fd.h83 __le16 tseg1; /* range: [tseg1_min-1..tseg1_max-1] */ member
Des58x_fd.c389 es58x_fd_bt->tseg1 = in es58x_fd_convert_bittiming()
/linux-6.1.9/drivers/net/can/m_can/
Dm_can.c1165 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/
Dc_can_main.c504 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/
Dpcan_usb_fd.c411 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/
Dcan.rst1246 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 \