Lines Matching refs:tseg
53 int sampl_pt, int tseg, int *tseg1, int *tseg2)
55 *tseg2 = tseg + 1 - (sampl_pt * (tseg + 1)) / 1000;
60 *tseg1 = tseg - *tseg2;
63 *tseg2 = tseg - *tseg1;
65 return 1000 * (tseg + 1 - *tseg2) / (tseg + 1);
75 int tsegall, tseg = 0, tseg1 = 0, tseg2 = 0;
94 /* tseg even = round down, odd = round up */
95 for (tseg = (btc->tseg1_max + btc->tseg2_max) * 2 + 1;
96 tseg >= (btc->tseg1_min + btc->tseg2_min) * 2; tseg--) {
97 tsegall = 1 + tseg / 2;
98 /* Compute all possible tseg choices (tseg=tseg1+tseg2) */
99 brp = priv->clock.freq / (tsegall * bt->bitrate) + tseg % 2;
106 /* tseg brp biterror */
113 spt = can_update_spt(btc, sampl_pt, tseg / 2,
122 best_tseg = tseg / 2;