Lines Matching refs:sample_pnt

155 static int update_sample_pnt(uint32_t total_tq, uint32_t sample_pnt, struct can_timing *res,  in update_sample_pnt()  argument
164 tseg2 = total_tq - (total_tq * sample_pnt) / 1000; in update_sample_pnt()
207 return sample_pnt_res > sample_pnt ? in update_sample_pnt()
208 sample_pnt_res - sample_pnt : in update_sample_pnt()
209 sample_pnt - sample_pnt_res; in update_sample_pnt()
220 uint16_t sample_pnt; in sample_point_for_bitrate() local
224 sample_pnt = 750; in sample_point_for_bitrate()
227 sample_pnt = 800; in sample_point_for_bitrate()
230 sample_pnt = 875; in sample_point_for_bitrate()
233 return sample_pnt; in sample_point_for_bitrate()
253 uint32_t bitrate, uint16_t sample_pnt) in can_calc_timing_internal() argument
262 if (bitrate == 0 || sample_pnt >= 1000) { in can_calc_timing_internal()
271 if (sample_pnt == 0U) { in can_calc_timing_internal()
272 sample_pnt = sample_point_for_bitrate(bitrate); in can_calc_timing_internal()
286 err = update_sample_pnt(total_tq, sample_pnt, &tmp_res, min, max); in can_calc_timing_internal()
319 uint32_t bitrate, uint16_t sample_pnt) in z_impl_can_calc_timing() argument
328 return can_calc_timing_internal(dev, res, min, max, bitrate, sample_pnt); in z_impl_can_calc_timing()
333 uint32_t bitrate, uint16_t sample_pnt) in z_impl_can_calc_timing_data() argument
342 return can_calc_timing_internal(dev, res, min, max, bitrate, sample_pnt); in z_impl_can_calc_timing_data()
386 uint16_t sample_pnt; in z_impl_can_set_bitrate() local
393 sample_pnt = sample_point_for_bitrate(bitrate); in z_impl_can_set_bitrate()
394 ret = can_calc_timing(dev, &timing, bitrate, sample_pnt); in z_impl_can_set_bitrate()
432 uint16_t sample_pnt; in z_impl_can_set_bitrate_data() local
439 sample_pnt = sample_point_for_bitrate(bitrate_data); in z_impl_can_set_bitrate_data()
440 ret = can_calc_timing_data(dev, &timing_data, bitrate_data, sample_pnt); in z_impl_can_set_bitrate_data()