Lines Matching refs:tseg1
161 uint16_t tseg1, tseg2; in update_sample_pnt() local
168 tseg1 = total_tq - CAN_SYNC_SEG - tseg2; in update_sample_pnt()
169 if (tseg1 > tseg1_max) { in update_sample_pnt()
171 tseg1 = tseg1_max; in update_sample_pnt()
172 tseg2 = total_tq - CAN_SYNC_SEG - tseg1; in update_sample_pnt()
177 } else if (tseg1 < tseg1_min) { in update_sample_pnt()
179 tseg1 = tseg1_min; in update_sample_pnt()
180 tseg2 = total_tq - CAN_SYNC_SEG - tseg1; in update_sample_pnt()
190 res->prop_seg = CLAMP(tseg1 / 2, min->prop_seg, max->prop_seg); in update_sample_pnt()
191 res->phase_seg1 = tseg1 - res->prop_seg; in update_sample_pnt()
196 res->prop_seg = tseg1 - res->phase_seg1; in update_sample_pnt()
200 res->prop_seg = tseg1 - res->phase_seg1; in update_sample_pnt()
204 sample_pnt_res = (CAN_SYNC_SEG + tseg1) * 1000 / total_tq; in update_sample_pnt()