/Zephyr-Core-2.7.6/drivers/timer/ |
D | apic_timer.c | 62 #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()
|
D | cortex_m_systick.c | 16 #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()
|
D | mchp_xec_rtos_timer.c | 85 #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()
|
D | arm_arch_timer.c | 15 #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()
|
D | xtensa_sys_timer.c | 16 #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()
|
D | mcux_os_timer.c | 18 #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()
|
D | riscv_machine_timer.c | 14 #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()
|
D | esp32c3_sys_timer.c | 25 #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()
|
D | cc13x2_cc26x2_rtc_timer.c | 45 #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()
|
D | arcv2_timer0.c | 50 #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()
|
D | cavs_timer.c | 25 #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()
|
D | sam0_rtc_timer.c | 38 #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()
|
D | nrf_rtc_timer.c | 33 #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/ |
D | nrf_timer_timer.c | 22 #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()
|