Home
last modified time | relevance | path

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

/drivers/net/can/
Ddev.c95 unsigned int tseg1, tseg2; in can_update_sample_point() local
99 tseg2 = tseg + CAN_CALC_SYNC_SEG - (sample_point_nominal * (tseg + CAN_CALC_SYNC_SEG)) / 1000 - i; in can_update_sample_point()
100 tseg2 = clamp(tseg2, btc->tseg2_min, btc->tseg2_max); in can_update_sample_point()
101 tseg1 = tseg - tseg2; in can_update_sample_point()
104 tseg2 = tseg - tseg1; in can_update_sample_point()
107 sample_point = 1000 * (tseg + CAN_CALC_SYNC_SEG - tseg2) / (tseg + CAN_CALC_SYNC_SEG); in can_update_sample_point()
114 *tseg2_ptr = tseg2; in can_update_sample_point()
136 unsigned int brp, tsegall, tseg, tseg1 = 0, tseg2 = 0; in can_calc_bittiming() local
175 can_update_sample_point(btc, sample_point_nominal, tseg / 2, &tseg1, &tseg2, &sample_point_error); in can_calc_bittiming()
205 &tseg1, &tseg2, NULL); in can_calc_bittiming()
[all …]
/drivers/net/can/usb/peak_usb/
Dpcan_ucan.h68 u8 tseg2; /* Timing SEGment 2 */ member
95 u8 tseg2; /* Timing SEGment 2 */ member
Dpcan_usb_fd.c405 cmd->tseg2 = PUCAN_TSLOW_TSEG2(bt->phase_seg2 - 1); in pcan_usb_fd_set_bittiming_slow()
424 cmd->tseg2 = PUCAN_TFAST_TSEG2(bt->phase_seg2 - 1); in pcan_usb_fd_set_bittiming_fast()
/drivers/net/can/mscan/
Dmscan.h265 #define BTR1_SET_TSEG2(tseg2) ((((tseg2) - 1) << BTR1_TSEG2_SHIFT) & \ argument
/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.c1186 u16 brp, sjw, tseg1, tseg2; in rcar_canfd_set_bittiming() local
1194 tseg2 = bt->phase_seg2 - 1; in rcar_canfd_set_bittiming()
1199 RCANFD_NCFG_NSJW(sjw) | RCANFD_NCFG_NTSEG2(tseg2)); in rcar_canfd_set_bittiming()
1203 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
1209 tseg2 = dbt->phase_seg2 - 1; in rcar_canfd_set_bittiming()
1212 RCANFD_DCFG_DSJW(sjw) | RCANFD_DCFG_DTSEG2(tseg2)); in rcar_canfd_set_bittiming()
1216 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
1220 RCANFD_CFG_SJW(sjw) | RCANFD_CFG_TSEG2(tseg2)); in rcar_canfd_set_bittiming()
1225 brp, sjw, tseg1, tseg2); in rcar_canfd_set_bittiming()
/drivers/net/can/m_can/
Dm_can.c807 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local
813 tseg2 = bt->phase_seg2 - 1; in m_can_set_bittiming()
815 (tseg1 << BTR_TSEG1_SHIFT) | (tseg2 << BTR_TSEG2_SHIFT); in m_can_set_bittiming()
822 tseg2 = dbt->phase_seg2 - 1; in m_can_set_bittiming()
825 (tseg2 << FBTR_FTSEG2_SHIFT); in m_can_set_bittiming()
/drivers/net/can/c_can/
Dc_can.c512 u8 brp, brpe, sjw, tseg1, tseg2; in c_can_set_bittiming() local
525 tseg2 = bt->phase_seg2 - 1; in c_can_set_bittiming()
527 (tseg2 << BTR_TSEG2_SHIFT); in c_can_set_bittiming()
/drivers/net/can/usb/
Dkvaser_usb.c255 u8 tseg2; member
1832 msg->u.busparams.tseg2 = bt->phase_seg2; in kvaser_usb_set_bittiming()