Home
last modified time | relevance | path

Searched refs:total_tq (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/can/
Dcan_common.c155 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()
168 tseg1 = total_tq - CAN_SYNC_SEG - tseg2; in update_sample_pnt()
172 tseg2 = total_tq - CAN_SYNC_SEG - tseg1; in update_sample_pnt()
180 tseg2 = total_tq - CAN_SYNC_SEG - tseg1; in update_sample_pnt()
204 sample_pnt_res = (CAN_SYNC_SEG + tseg1) * 1000 / total_tq; 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() local
275 for (prescaler = MAX(core_clock / (total_tq * bitrate), min->prescaler); in can_calc_timing_internal()
284 total_tq = core_clock / (prescaler * bitrate); in can_calc_timing_internal()
286 err = update_sample_pnt(total_tq, sample_pnt, &tmp_res, min, max); in can_calc_timing_internal()