Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/timer/
Dmchp_mec5_ktimer.c68 #define MAX_TICKS (RTIMER_MAX / CYCLES_PER_TICK) macro
156 } else if ((n == K_TICKS_FOREVER) || (n > MAX_TICKS)) { in sys_clock_set_timeout()
157 full_ticks = MAX_TICKS - 1; in sys_clock_set_timeout()
233 mec_hal_rtimer_stop_and_load(rtimer, MAX_TICKS * CYCLES_PER_TICK, RTIMER_START_VAL); in mec5_ktimer_isr()
236 cached_icr = MAX_TICKS * CYCLES_PER_TICK; in mec5_ktimer_isr()
385 cached_icr = MAX_TICKS; in sys_clock_driver_init()
Dmips_cp0_timer.c23 #define MAX_TICKS ((MAX_CYC - CYC_PER_TICK) / CYC_PER_TICK) macro
72 ticks = ticks == K_TICKS_FOREVER ? MAX_TICKS : ticks; in sys_clock_set_timeout()
73 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Dmchp_xec_rtos_timer.c87 #define MAX_TICKS (TIMER_MAX / CYCLES_PER_TICK) macro
207 } else if ((n == K_TICKS_FOREVER) || (n > MAX_TICKS)) { in sys_clock_set_timeout()
208 full_ticks = MAX_TICKS - 1; in sys_clock_set_timeout()
284 timer_restart(MAX_TICKS * CYCLES_PER_TICK); in xec_rtos_timer_isr()
287 cached_icr = MAX_TICKS * CYCLES_PER_TICK; in xec_rtos_timer_isr()
405 cached_icr = MAX_TICKS; in sys_clock_driver_init()
Dambiq_stimer.c28 #define MAX_TICKS ((k_ticks_t)(COUNTER_MAX / CYC_PER_TICK) - 1) macro
29 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK)
139 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout()
140 ticks = CLAMP(ticks, 1, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Dmcux_gpt_timer.c27 #define MAX_TICKS ((COUNTER_MAX / CYC_PER_TICK) - 1) macro
28 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK)
142 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout()
144 ticks = CLAMP((ticks - 1), 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Dxtensa_sys_timer.c18 #define MAX_TICKS ((MAX_CYC - CYC_PER_TICK) / CYC_PER_TICK) macro
71 ticks = ticks == K_TICKS_FOREVER ? MAX_TICKS : ticks; in sys_clock_set_timeout()
72 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Dcc13xx_cc26xx_rtc_timer.c49 #define MAX_TICKS (MAX_CYC / RTC_COUNTS_PER_TICK) macro
196 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout()
197 ticks = CLAMP(ticks - 1, 0, (int32_t) MAX_TICKS); in sys_clock_set_timeout()
Desp32_sys_timer.c25 #define MAX_TICKS ((MAX_CYC - CYC_PER_TICK) / CYC_PER_TICK) macro
89 ticks = ticks == K_TICKS_FOREVER ? MAX_TICKS : ticks; in sys_clock_set_timeout()
90 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Dsmartbond_timer.c21 #define MAX_TICKS (((COUNTER_SPAN / 2) - CYC_PER_TICK) / (CYC_PER_TICK)) macro
130 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout()
131 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Darcv2_timer0.c51 #define MAX_TICKS ((COUNTER_MAX / CYC_PER_TICK) - 1) macro
52 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK)
282 ticks = MIN(MAX_TICKS, ticks); in sys_clock_set_timeout()
313 ticks = MIN(MAX_TICKS, (uint32_t)(MAX((int32_t)(ticks - 1), 0))); in sys_clock_set_timeout()
Dintel_adsp_timer.c39 #define MAX_TICKS ((MAX_CYC - CYC_PER_TICK) / CYC_PER_TICK) macro
139 ticks = ticks == K_TICKS_FOREVER ? MAX_TICKS : ticks; in sys_clock_set_timeout()
140 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Drealtek_rts5912_rtmr.c40 #define MAX_TICKS ((k_ticks_t)(RTMR_COUNTER_MAX / CYCLES_PER_TICK) - 1) macro
116 } else if ((ticks == K_TICKS_FOREVER) || (ticks > MAX_TICKS)) { in sys_clock_set_timeout()
117 full_ticks = MAX_TICKS - 1; in sys_clock_set_timeout()
Dsam0_rtc_timer.c45 #define MAX_TICKS (UINT32_MAX / CYCLES_PER_TICK - 2) macro
190 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout()
191 ticks = CLAMP(ticks - 1, 0, (int32_t) MAX_TICKS); in sys_clock_set_timeout()
Dcortex_m_systick.c22 #define MAX_TICKS ((k_ticks_t)(COUNTER_MAX / CYC_PER_TICK) - 1) macro
23 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK)
350 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout()
351 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Dti_dmtimer.c26 #define MAX_TICKS ((k_ticks_t)(UINT32_MAX / CYC_PER_TICK) - 1) macro
105 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout()
106 ticks = CLAMP(ticks, 1, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Dmcux_os_timer.c28 #define MAX_TICKS ((MAX_CYC - CYC_PER_TICK) / CYC_PER_TICK) macro
208 ticks = ticks == K_TICKS_FOREVER ? MAX_TICKS : ticks; in sys_clock_set_timeout()
209 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Dmtk_adsp_timer.c72 #define MAX_TICKS ((0xffffffffU - OST_PER_TICK) / OST_PER_TICK) macro
101 uint64_t end = now + CLAMP(ticks - 1, 0, MAX_TICKS) * OST64_PER_TICK; in sys_clock_set_timeout()
Dnrf_grtc_timer.c50 #define MAX_TICKS \ macro
53 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK)
562 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : MIN(MAX_TICKS, MAX(ticks, 0)); in sys_clock_set_timeout()
Dnrf_rtc_timer.c42 #define MAX_TICKS ((COUNTER_HALF_SPAN - CYC_PER_TICK) / CYC_PER_TICK) macro
43 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK)
646 cyc = MAX_TICKS * CYC_PER_TICK; in sys_clock_set_timeout()
652 cyc = CLAMP(ticks, 1, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
/Zephyr-latest/boards/qemu/cortex_m0/
Dnrf_timer_timer.c24 #define MAX_TICKS ((COUNTER_HALF_SPAN - CYC_PER_TICK) / CYC_PER_TICK) macro
25 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK)
174 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout()
175 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()