Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/drivers/timer/
Dapic_timer.c60 #define CYCLES_PER_TICK \ macro
63 BUILD_ASSERT(CYCLES_PER_TICK >= 2, "APIC timer: bad CYCLES_PER_TICK");
67 #define MAX_TICKS (0xFFFFFFFFU / CYCLES_PER_TICK)
80 static uint32_t cached_icr = CYCLES_PER_TICK;
103 full_cycles = full_ticks * CYCLES_PER_TICK; in sys_clock_set_timeout()
118 partial_cycles = CYCLES_PER_TICK - (total_cycles % CYCLES_PER_TICK); in sys_clock_set_timeout()
135 ticks /= CYCLES_PER_TICK; in sys_clock_elapsed()
161 x86_write_loapic(LOAPIC_TIMER_ICR, MAX_TICKS * CYCLES_PER_TICK); in isr()
164 cached_icr = MAX_TICKS * CYCLES_PER_TICK; in isr()
166 ticks = (total_cycles - last_announcement) / CYCLES_PER_TICK; in isr()
[all …]
Dsam0_rtc_timer.c38 #define CYCLES_PER_TICK (RTC_CLOCK_HW_CYCLES_PER_SEC \ macro
42 #define MAX_TICKS (UINT32_MAX / CYCLES_PER_TICK - 2)
53 BUILD_ASSERT(CYCLES_PER_TICK > TICK_THRESHOLD,
64 BUILD_ASSERT(CYCLES_PER_TICK > 1,
163 uint32_t ticks = (count - rtc_last) / CYCLES_PER_TICK; in rtc_isr()
166 rtc_last += ticks * CYCLES_PER_TICK; in rtc_isr()
196 uint32_t timeout = ticks * CYCLES_PER_TICK + count % CYCLES_PER_TICK; in sys_clock_set_timeout()
199 timeout = DIV_ROUND_UP(timeout, CYCLES_PER_TICK) * CYCLES_PER_TICK; in sys_clock_set_timeout()
202 timeout += CYCLES_PER_TICK; in sys_clock_set_timeout()
236 return (rtc_count() - rtc_last) / CYCLES_PER_TICK; in sys_clock_elapsed()
[all …]
Dmchp_xec_rtos_timer.c53 #define CYCLES_PER_TICK \ macro
87 #define MAX_TICKS (TIMER_MAX / CYCLES_PER_TICK)
105 static uint32_t cached_icr = CYCLES_PER_TICK;
213 full_cycles = full_ticks * CYCLES_PER_TICK; in sys_clock_set_timeout()
229 partial_cycles = CYCLES_PER_TICK - (total_cycles % CYCLES_PER_TICK); in sys_clock_set_timeout()
264 ticks /= CYCLES_PER_TICK; in sys_clock_elapsed()
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()
295 ticks /= CYCLES_PER_TICK; in xec_rtos_timer_isr()
318 uint32_t temp = total_cycles + CYCLES_PER_TICK; in xec_rtos_timer_isr()
[all …]
Dxlnx_psttc_timer.c26 #define CYCLES_PER_TICK (CYCLES_PER_SEC / TICKS_PER_SEC) macro
90 ticks = (cycles - last_cycles) / CYCLES_PER_TICK; in ttc_isr()
96 update_match(cycles, cycles + CYCLES_PER_TICK); in ttc_isr()
119 next_cycles = cycles + ((uint32_t)ticks * CYCLES_PER_TICK); in sys_clock_set_timeout()
136 return (cycles - last_cycles) / CYCLES_PER_TICK; in sys_clock_elapsed()
185 CYCLES_NEXT_MAX : CYCLES_PER_TICK; in sys_clock_driver_init()
Drv32m1_lptmr_timer.c27 #define CYCLES_PER_TICK (CYCLES_PER_SEC / CONFIG_SYS_CLOCK_TICKS_PER_SEC) macro
57 cycle_count += CYCLES_PER_TICK; /* Track cycles. */ in lptmr_irq_handler()
138 SYSTEM_TIMER_INSTANCE->CMR = CYCLES_PER_TICK; in sys_clock_driver_init()
Dmcux_lptmr_timer.c50 #define CYCLES_PER_TICK ((uint32_t)((uint64_t)sys_clock_hw_cycles_per_sec() \ macro
92 cycles += CYCLES_PER_TICK; in mcux_lptmr_timer_isr()
121 LPTMR_SetTimerPeriod(LPTMR_BASE, CYCLES_PER_TICK); in sys_clock_driver_init()
Drcar_cmt_timer.c24 #define CYCLES_PER_TICK (CYCLES_PER_SEC / CONFIG_SYS_CLOCK_TICKS_PER_SEC) macro
34 BUILD_ASSERT(CYCLES_PER_TICK > 1,
129 sys_write32(CYCLES_PER_TICK, TIMER_BASE_ADDR + CMCOR0_OFFSET); in sys_clock_driver_init()
Dcc13xx_cc26xx_rtc_timer.c42 #define CYCLES_PER_TICK (sys_clock_hw_cycles_per_sec() / \ macro