Lines Matching refs:tseg2
84 unsigned int tseg1, tseg2;
88 tseg2 = tseg + CAN_SYNC_SEG -
91 tseg2 = clamp(tseg2, btc->tseg2_min, btc->tseg2_max);
92 tseg1 = tseg - tseg2;
95 tseg2 = tseg - tseg1;
98 sample_point = 1000 * (tseg + CAN_SYNC_SEG - tseg2) /
107 *tseg2_ptr = tseg2;
129 unsigned int brp, tsegall, tseg, tseg1 = 0, tseg2 = 0;
149 /* Compute all possible tseg choices (tseg=tseg1+tseg2) */
169 &tseg1, &tseg2, &sample_point_error);
199 best_tseg, &tseg1, &tseg2,
207 bt->phase_seg2 = tseg2;
216 /* bt->sjw must not be higher than tseg2 */
217 if (tseg2 < bt->sjw)
218 bt->sjw = tseg2;
225 (bt->brp * (CAN_SYNC_SEG + tseg1 + tseg2));