Lines Matching refs:phase_seg1
158 uint16_t tseg1_max = max->phase_seg1 + max->prop_seg; in update_sample_pnt()
159 uint16_t tseg1_min = min->phase_seg1 + min->prop_seg; in update_sample_pnt()
191 res->phase_seg1 = tseg1 - res->prop_seg; in update_sample_pnt()
193 if (res->phase_seg1 > max->phase_seg1) { in update_sample_pnt()
195 res->phase_seg1 = max->phase_seg1; in update_sample_pnt()
196 res->prop_seg = tseg1 - res->phase_seg1; in update_sample_pnt()
197 } else if (res->phase_seg1 < min->phase_seg1) { in update_sample_pnt()
199 res->phase_seg1 = min->phase_seg1; in update_sample_pnt()
200 res->prop_seg = tseg1 - res->phase_seg1; in update_sample_pnt()
255 uint32_t total_tq = CAN_SYNC_SEG + max->prop_seg + max->phase_seg1 + max->phase_seg2; in can_calc_timing_internal()
296 res->phase_seg1 = tmp_res.phase_seg1; in can_calc_timing_internal()
312 res->sjw = MIN(res->phase_seg1, res->phase_seg2 / 2); in can_calc_timing_internal()
352 !IN_RANGE(timing->phase_seg1, min->phase_seg1, max->phase_seg1) || in check_timing_in_range()
358 if ((timing->sjw > timing->phase_seg1) || (timing->sjw > timing->phase_seg2)) { in check_timing_in_range()