Lines Matching full:timing

130  * @brief Update the timing given a total number of time quanta and a sample point.
150 * @param min Pointer to the minimum supported timing parameter values.
151 * @param max Pointer to the maximum supported timing parameter values.
237 * @brief Internal function for calculating CAN timing parameters.
241 * @param min Pointer to the minimum supported timing parameter values.
242 * @param max Pointer to the maximum supported timing parameter values.
346 static int check_timing_in_range(const struct can_timing *timing, in check_timing_in_range() argument
350 if (!IN_RANGE(timing->sjw, min->sjw, max->sjw) || in check_timing_in_range()
351 !IN_RANGE(timing->prop_seg, min->prop_seg, max->prop_seg) || in check_timing_in_range()
352 !IN_RANGE(timing->phase_seg1, min->phase_seg1, max->phase_seg1) || in check_timing_in_range()
353 !IN_RANGE(timing->phase_seg2, min->phase_seg2, max->phase_seg2) || in check_timing_in_range()
354 !IN_RANGE(timing->prescaler, min->prescaler, max->prescaler)) { in check_timing_in_range()
358 if ((timing->sjw > timing->phase_seg1) || (timing->sjw > timing->phase_seg2)) { in check_timing_in_range()
366 const struct can_timing *timing) in z_impl_can_set_timing() argument
373 err = check_timing_in_range(timing, min, max); in z_impl_can_set_timing()
378 return api->set_timing(dev, timing); in z_impl_can_set_timing()
383 struct can_timing timing = { 0 }; in z_impl_can_set_bitrate() local
394 ret = can_calc_timing(dev, &timing, bitrate, sample_pnt); in z_impl_can_set_bitrate()
403 return can_set_timing(dev, &timing); in z_impl_can_set_bitrate()