Home
last modified time | relevance | path

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

/Zephyr-Core-2.7.6/drivers/timer/
Dapic_timer.c62 #define MAX_TICKS (0xFFFFFFFFU / CYCLES_PER_TICK) macro
92 } else if ((n == K_TICKS_FOREVER) || (n > MAX_TICKS)) { in sys_clock_set_timeout()
93 full_ticks = MAX_TICKS - 1; in sys_clock_set_timeout()
156 x86_write_loapic(LOAPIC_TIMER_ICR, MAX_TICKS * CYCLES_PER_TICK); in isr()
159 cached_icr = MAX_TICKS * CYCLES_PER_TICK; in isr()
Dcortex_m_systick.c16 #define MAX_TICKS ((COUNTER_MAX / CYC_PER_TICK) - 1) macro
17 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK)
186 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout()
187 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Dmchp_xec_rtos_timer.c85 #define MAX_TICKS (TIMER_MAX / CYCLES_PER_TICK) macro
205 } else if ((n == K_TICKS_FOREVER) || (n > MAX_TICKS)) { in sys_clock_set_timeout()
206 full_ticks = MAX_TICKS - 1; in sys_clock_set_timeout()
282 timer_restart(MAX_TICKS * CYCLES_PER_TICK); in xec_rtos_timer_isr()
285 cached_icr = MAX_TICKS * CYCLES_PER_TICK; in xec_rtos_timer_isr()
374 cached_icr = MAX_TICKS; in sys_clock_driver_init()
Darm_arch_timer.c15 #define MAX_TICKS INT32_MAX macro
72 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : \ in sys_clock_set_timeout()
73 MIN(MAX_TICKS, MAX(ticks - 1, 0)); in sys_clock_set_timeout()
Dxtensa_sys_timer.c16 #define MAX_TICKS ((MAX_CYC - CYC_PER_TICK) / CYC_PER_TICK) macro
74 ticks = ticks == K_TICKS_FOREVER ? MAX_TICKS : ticks; in sys_clock_set_timeout()
75 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Dmcux_os_timer.c18 #define MAX_TICKS ((MAX_CYC - CYC_PER_TICK) / CYC_PER_TICK) macro
86 ticks = ticks == K_TICKS_FOREVER ? MAX_TICKS : ticks; in sys_clock_set_timeout()
87 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Driscv_machine_timer.c14 #define MAX_TICKS ((MAX_CYC - CYC_PER_TICK) / CYC_PER_TICK) macro
108 ticks = ticks == K_TICKS_FOREVER ? MAX_TICKS : ticks; in sys_clock_set_timeout()
109 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Desp32c3_sys_timer.c25 #define MAX_TICKS ((MAX_CYC - CYC_PER_TICK) / CYC_PER_TICK) macro
95 ticks = ticks == K_TICKS_FOREVER ? MAX_TICKS : ticks; in sys_clock_set_timeout()
96 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Dcc13x2_cc26x2_rtc_timer.c45 #define MAX_TICKS (MAX_CYC / RTC_COUNTS_PER_TICK) macro
210 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout()
211 ticks = CLAMP(ticks - 1, 0, (int32_t) MAX_TICKS); in sys_clock_set_timeout()
Darcv2_timer0.c50 #define MAX_TICKS ((COUNTER_MAX / CYC_PER_TICK) - 1) macro
51 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK)
337 ticks = MIN(MAX_TICKS, ticks); in sys_clock_set_timeout()
368 ticks = MIN(MAX_TICKS, (uint32_t)(MAX((int32_t)(ticks - 1), 0))); in sys_clock_set_timeout()
Dcavs_timer.c25 #define MAX_TICKS ((MAX_CYC - CYC_PER_TICK) / CYC_PER_TICK) macro
141 ticks = ticks == K_TICKS_FOREVER ? MAX_TICKS : ticks; in sys_clock_set_timeout()
142 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
Dsam0_rtc_timer.c38 #define MAX_TICKS (UINT32_MAX / CYCLES_PER_TICK - 2) macro
261 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout()
262 ticks = CLAMP(ticks - 1, 0, (int32_t) MAX_TICKS); in sys_clock_set_timeout()
Dnrf_rtc_timer.c33 #define MAX_TICKS ((COUNTER_HALF_SPAN - CYC_PER_TICK) / CYC_PER_TICK) macro
34 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK)
364 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout()
365 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
/Zephyr-Core-2.7.6/boards/arm/qemu_cortex_m0/
Dnrf_timer_timer.c22 #define MAX_TICKS ((COUNTER_HALF_SPAN - CYC_PER_TICK) / CYC_PER_TICK) macro
23 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK)
197 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout()
198 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()