Lines Matching refs:tseg2
32 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()
155 bt->phase_seg2 = tseg2; in can_calc_bittiming()
165 if (tseg2 < bt->sjw) in can_calc_bittiming()
166 bt->sjw = tseg2; in can_calc_bittiming()
173 (bt->brp * (CAN_SYNC_SEG + tseg1 + tseg2)); in can_calc_bittiming()