Lines Matching refs:can_timing
155 static int update_sample_pnt(uint32_t total_tq, uint32_t sample_pnt, struct can_timing *res, in update_sample_pnt()
156 const struct can_timing *min, const struct can_timing *max) in update_sample_pnt()
251 static int can_calc_timing_internal(const struct device *dev, struct can_timing *res, in can_calc_timing_internal()
252 const struct can_timing *min, const struct can_timing *max, in can_calc_timing_internal()
256 struct can_timing tmp_res = { 0 }; in can_calc_timing_internal()
318 int z_impl_can_calc_timing(const struct device *dev, struct can_timing *res, in z_impl_can_calc_timing()
321 const struct can_timing *min = can_get_timing_min(dev); in z_impl_can_calc_timing()
322 const struct can_timing *max = can_get_timing_max(dev); in z_impl_can_calc_timing()
332 int z_impl_can_calc_timing_data(const struct device *dev, struct can_timing *res, in z_impl_can_calc_timing_data()
335 const struct can_timing *min = can_get_timing_data_min(dev); in z_impl_can_calc_timing_data()
336 const struct can_timing *max = can_get_timing_data_max(dev); in z_impl_can_calc_timing_data()
346 static int check_timing_in_range(const struct can_timing *timing, in check_timing_in_range()
347 const struct can_timing *min, in check_timing_in_range()
348 const struct can_timing *max) in check_timing_in_range()
366 const struct can_timing *timing) in z_impl_can_set_timing()
369 const struct can_timing *min = can_get_timing_min(dev); in z_impl_can_set_timing()
370 const struct can_timing *max = can_get_timing_max(dev); in z_impl_can_set_timing()
383 struct can_timing timing = { 0 }; in z_impl_can_set_bitrate()
408 const struct can_timing *timing_data) in z_impl_can_set_timing_data()
411 const struct can_timing *min = can_get_timing_data_min(dev); in z_impl_can_set_timing_data()
412 const struct can_timing *max = can_get_timing_data_max(dev); in z_impl_can_set_timing_data()
429 struct can_timing timing_data = { 0 }; in z_impl_can_set_bitrate_data()