Home
last modified time | relevance | path

Searched refs:tseg2 (Results 1 – 12 of 12) sorted by relevance

/drivers/net/can/dev/
Dbittiming.c32 unsigned int tseg1, tseg2; in can_update_sample_point() local
36 tseg2 = tseg + CAN_SYNC_SEG - in can_update_sample_point()
39 tseg2 = clamp(tseg2, btc->tseg2_min, btc->tseg2_max); in can_update_sample_point()
40 tseg1 = tseg - tseg2; in can_update_sample_point()
43 tseg2 = tseg - tseg1; in can_update_sample_point()
46 sample_point = 1000 * (tseg + CAN_SYNC_SEG - tseg2) / in can_update_sample_point()
55 *tseg2_ptr = tseg2; 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()
[all …]
/drivers/net/can/mscan/
Dmscan.h254 #define BTR1_SET_TSEG2(tseg2) ((((tseg2) - 1) << BTR1_TSEG2_SHIFT) & \ argument
/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_core.c545 int tseg2 = bt->phase_seg2; in kvaser_usb_set_bittiming() local
552 busparams.tseg2 = (u8)tseg2; in kvaser_usb_set_bittiming()
590 int tseg2 = dbt->phase_seg2; in kvaser_usb_set_data_bittiming() local
601 busparams.tseg2 = (u8)tseg2; in kvaser_usb_set_data_bittiming()
Dkvaser_usb.h82 u8 tseg2; member
/drivers/net/can/peak_canfd/
Dpeak_canfd.c127 cmd->tseg2 = PUCAN_TSLOW_TSEG2(pbt->phase_seg2 - 1); in pucan_set_timing_slow()
134 le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw_t); in pucan_set_timing_slow()
148 cmd->tseg2 = PUCAN_TFAST_TSEG2(pbt->phase_seg2 - 1); in pucan_set_timing_fast()
153 le16_to_cpu(cmd->brp), cmd->tseg1, cmd->tseg2, cmd->sjw); in pucan_set_timing_fast()
/drivers/net/can/ifi_canfd/
Difi_canfd.c660 u16 brp, sjw, tseg1, tseg2, tdc; in ifi_canfd_set_bittiming() local
666 tseg2 = bt->phase_seg2 - 2; in ifi_canfd_set_bittiming()
667 writel((tseg2 << IFI_CANFD_TIME_TIMEB_OFF) | in ifi_canfd_set_bittiming()
677 tseg2 = dbt->phase_seg2 - 2; in ifi_canfd_set_bittiming()
678 writel((tseg2 << IFI_CANFD_TIME_TIMEB_OFF) | in ifi_canfd_set_bittiming()
/drivers/net/can/rcar/
Drcar_canfd.c1256 u16 brp, sjw, tseg1, tseg2; in rcar_canfd_set_bittiming() local
1264 tseg2 = bt->phase_seg2 - 1; in rcar_canfd_set_bittiming()
1269 RCANFD_NCFG_NSJW(sjw) | RCANFD_NCFG_NTSEG2(tseg2)); in rcar_canfd_set_bittiming()
1273 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
1279 tseg2 = dbt->phase_seg2 - 1; in rcar_canfd_set_bittiming()
1282 RCANFD_DCFG_DSJW(sjw) | RCANFD_DCFG_DTSEG2(tseg2)); in rcar_canfd_set_bittiming()
1286 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
1290 RCANFD_CFG_SJW(sjw) | RCANFD_CFG_TSEG2(tseg2)); in rcar_canfd_set_bittiming()
1295 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
/drivers/net/can/usb/etas_es58x/
Des58x_fd.h84 __le16 tseg2; /* range: [tseg2_min-1..tseg2_max-1] */ member
Des58x_fd.c389 es58x_fd_bt->tseg2 = cpu_to_le16(bt->phase_seg2 - offset); in es58x_fd_convert_bittiming()
/drivers/net/can/m_can/
Dm_can.c1180 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local
1186 tseg2 = bt->phase_seg2 - 1; in m_can_set_bittiming()
1190 FIELD_PREP(NBTP_NTSEG2_MASK, tseg2); in m_can_set_bittiming()
1198 tseg2 = dbt->phase_seg2 - 1; in m_can_set_bittiming()
1233 FIELD_PREP(DBTP_DTSEG2_MASK, tseg2); in m_can_set_bittiming()
/drivers/net/can/c_can/
Dc_can_main.c506 u8 brp, brpe, sjw, tseg1, tseg2; in c_can_set_bittiming() local
519 tseg2 = bt->phase_seg2 - 1; in c_can_set_bittiming()
521 (tseg2 << BTR_TSEG2_SHIFT); in c_can_set_bittiming()
/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c396 cmd->tseg2 = PUCAN_TSLOW_TSEG2(bt->phase_seg2 - 1); in pcan_usb_fd_set_bittiming_slow()
415 cmd->tseg2 = PUCAN_TFAST_TSEG2(bt->phase_seg2 - 1); in pcan_usb_fd_set_bittiming_fast()