Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/can/dev/
H A 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
118 &tseg1, &tseg2, &sample_point_error); in can_calc_bittiming()
149 best_tseg, &tseg1, &tseg2, in can_calc_bittiming()
155 bt->prop_seg = tseg1 / 2; in can_calc_bittiming()
[all …]
H A Dbittiming.c53 const unsigned int tseg1 = bt->prop_seg + bt->phase_seg1; in can_fixup_bittiming() local
58 if (tseg1 < btc->tseg1_min) { in can_fixup_bittiming()
60 tseg1, btc->tseg1_min); in can_fixup_bittiming()
63 if (tseg1 > btc->tseg1_max) { in can_fixup_bittiming()
65 tseg1, btc->tseg1_max); in can_fixup_bittiming()
106 bt->sample_point = ((CAN_SYNC_SEG + tseg1) * 1000) / can_bit_time(bt); in can_fixup_bittiming()
/openbmc/linux/drivers/net/can/mscan/
H A Dmscan.h253 #define BTR1_SET_TSEG1(tseg1) (((tseg1) - 1) & BTR1_TSEG1_MASK) argument
/openbmc/linux/include/linux/can/dev/
H A Dpeak_canfd.h74 u8 tseg1; /* Timing SEGment 1 */ member
101 u8 tseg1; /* Timing SEGment 1 */ member
/openbmc/linux/drivers/net/can/usb/kvaser_usb/
H A 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()
585 int tseg1 = dbt->prop_seg + dbt->phase_seg1; in kvaser_usb_set_data_bittiming() local
596 busparams.tseg1 = (u8)tseg1; in kvaser_usb_set_data_bittiming()
H A Dkvaser_usb.h81 u8 tseg1; member
/openbmc/linux/drivers/net/can/peak_canfd/
H A 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()
/openbmc/linux/drivers/net/can/ifi_canfd/
H A Difi_canfd.c651 u16 brp, sjw, tseg1, tseg2, tdc; in ifi_canfd_set_bittiming() local
656 tseg1 = bt->prop_seg + bt->phase_seg1 - 1; in ifi_canfd_set_bittiming()
659 (tseg1 << IFI_CANFD_TIME_TIMEA_OFF) | in ifi_canfd_set_bittiming()
667 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in ifi_canfd_set_bittiming()
670 (tseg1 << IFI_CANFD_TIME_TIMEA_OFF) | in ifi_canfd_set_bittiming()
/openbmc/linux/drivers/net/can/rcar/
H A Drcar_canfd.c1322 u16 brp, sjw, tseg1, tseg2; in rcar_canfd_set_bittiming() local
1329 tseg1 = bt->prop_seg + bt->phase_seg1 - 1; in rcar_canfd_set_bittiming()
1334 cfg = (RCANFD_NCFG_NTSEG1(gpriv, tseg1) | RCANFD_NCFG_NBRP(brp) | in rcar_canfd_set_bittiming()
1339 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
1344 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in rcar_canfd_set_bittiming()
1347 cfg = (RCANFD_DCFG_DTSEG1(gpriv, tseg1) | RCANFD_DCFG_DBRP(brp) | in rcar_canfd_set_bittiming()
1352 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
1356 cfg = (RCANFD_NCFG_NTSEG1(gpriv, tseg1) | in rcar_canfd_set_bittiming()
1361 cfg = (RCANFD_CFG_TSEG1(tseg1) | in rcar_canfd_set_bittiming()
1370 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
/openbmc/linux/drivers/net/can/usb/etas_es58x/
H A Des58x_fd.h83 __le16 tseg1; /* range: [tseg1_min-1..tseg1_max-1] */ member
H A Des58x_fd.c389 es58x_fd_bt->tseg1 = in es58x_fd_convert_bittiming()
/openbmc/linux/drivers/net/can/m_can/
H A Dm_can.c1206 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local
1211 tseg1 = bt->prop_seg + bt->phase_seg1 - 1; in m_can_set_bittiming()
1215 FIELD_PREP(NBTP_NTSEG1_MASK, tseg1) | in m_can_set_bittiming()
1223 tseg1 = dbt->prop_seg + dbt->phase_seg1 - 1; in m_can_set_bittiming()
1258 FIELD_PREP(DBTP_DTSEG1_MASK, tseg1) | in m_can_set_bittiming()
/openbmc/linux/drivers/net/can/usb/
H A Desd_usb.c199 __le16 tseg1; /* time segment before sample point */ member
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()
/openbmc/linux/drivers/net/can/c_can/
H A 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()
/openbmc/linux/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_fd.c429 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()
/openbmc/linux/Documentation/networking/
H A Dcan.rst1279 sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
1319 "sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1 clock 8000000"
1360 sja1000: clock 8000000 tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
1456 pcan_usb_pro_fd: tseg1 1..64 tseg2 1..16 sjw 1..16 brp 1..1024 \