/Zephyr-latest/drivers/timer/ |
D | mchp_mec5_ktimer.c | 68 #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()
|
D | mips_cp0_timer.c | 23 #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()
|
D | mchp_xec_rtos_timer.c | 87 #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()
|
D | ambiq_stimer.c | 28 #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()
|
D | mcux_gpt_timer.c | 27 #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()
|
D | xtensa_sys_timer.c | 18 #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()
|
D | cc13xx_cc26xx_rtc_timer.c | 49 #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()
|
D | esp32_sys_timer.c | 25 #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()
|
D | smartbond_timer.c | 21 #define MAX_TICKS (((COUNTER_SPAN / 2) - CYC_PER_TICK) / (CYC_PER_TICK)) macro 129 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout() 130 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
|
D | ti_dmtimer.c | 29 #define MAX_TICKS ((k_ticks_t)(UINT32_MAX / CYC_PER_TICK) - 1) macro 92 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout() 93 ticks = CLAMP(ticks, 1, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
|
D | arcv2_timer0.c | 51 #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()
|
D | cortex_m_systick.c | 20 #define MAX_TICKS ((k_ticks_t)(COUNTER_MAX / CYC_PER_TICK) - 1) macro 21 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK) 273 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout() 274 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
|
D | intel_adsp_timer.c | 39 #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()
|
D | sam0_rtc_timer.c | 42 #define MAX_TICKS (UINT32_MAX / CYCLES_PER_TICK - 2) macro 191 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : ticks; in sys_clock_set_timeout() 192 ticks = CLAMP(ticks - 1, 0, (int32_t) MAX_TICKS); in sys_clock_set_timeout()
|
D | mcux_os_timer.c | 26 #define MAX_TICKS ((MAX_CYC - CYC_PER_TICK) / CYC_PER_TICK) macro 198 ticks = ticks == K_TICKS_FOREVER ? MAX_TICKS : ticks; in sys_clock_set_timeout() 199 ticks = CLAMP(ticks - 1, 0, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
|
D | mtk_adsp_timer.c | 72 #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()
|
D | nrf_grtc_timer.c | 47 #define MAX_TICKS \ macro 50 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK) 532 ticks = (ticks == K_TICKS_FOREVER) ? MAX_TICKS : MIN(MAX_TICKS, MAX(ticks, 0)); in sys_clock_set_timeout()
|
D | nrf_rtc_timer.c | 42 #define MAX_TICKS ((COUNTER_HALF_SPAN - CYC_PER_TICK) / CYC_PER_TICK) macro 43 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK) 647 cyc = MAX_TICKS * CYC_PER_TICK; in sys_clock_set_timeout() 653 cyc = CLAMP(ticks, 1, (int32_t)MAX_TICKS); in sys_clock_set_timeout()
|
/Zephyr-latest/boards/qemu/cortex_m0/ |
D | nrf_timer_timer.c | 24 #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()
|