Home
last modified time | relevance | path

Searched refs:cyc_per_tick (Results 1 – 4 of 4) sorted by relevance

/Zephyr-Core-3.4.0/drivers/timer/
Dhpet.c234 static __pinned_bss unsigned int cyc_per_tick; variable
236 #define cyc_per_tick \ macro
306 uint32_t dticks = (uint32_t)((now - last_count) / cyc_per_tick); in hpet_isr()
308 last_count += (uint64_t)dticks * cyc_per_tick; in hpet_isr()
313 uint64_t next = last_count + cyc_per_tick; in hpet_isr()
370 uint64_t cyc = (last_tick + last_elapsed + ticks) * cyc_per_tick; in sys_clock_set_timeout()
386 uint32_t ret = (uint32_t)((now - last_count) / cyc_per_tick); in sys_clock_elapsed()
441 cyc_per_tick = hz / CONFIG_SYS_CLOCK_TICKS_PER_SEC; in sys_clock_driver_init()
459 last_tick = hpet_counter_get() / cyc_per_tick; in sys_clock_driver_init()
460 last_count = last_tick * cyc_per_tick; in sys_clock_driver_init()
[all …]
Darm_arch_timer.c16 static uint32_t cyc_per_tick; variable
17 #define CYC_PER_TICK cyc_per_tick
207 cyc_per_tick = sys_clock_hw_cycles_per_sec() / CONFIG_SYS_CLOCK_TICKS_PER_SEC; in sys_clock_driver_init()
/Zephyr-Core-3.4.0/samples/kernel/metairq_dispatch/src/
Dmsgdev.c90 uint64_t cyc_per_tick = k_ticks_to_cyc_near64(1); in message_dev_init() local
92 uint64_t avg_cyc_per_event = cyc_per_tick * avg_ticks_per_event; in message_dev_init()
/Zephyr-Core-3.4.0/tests/kernel/timer/timer_behavior/src/
Djitter_drift.c195 uint32_t cyc_per_tick = sys_clock_hw_cycles_per_sec() in do_test_using() local
197 double expected_period_drift = ((double)actual_timeout.ticks * cyc_per_tick in do_test_using()