Searched refs:cyc_per_tick (Results 1 – 6 of 6) sorted by relevance
38 uint32_t cyc_per_tick; /* Number of hw_cycles per 1 kernel tick */ member57 uint32_t unannounced = pending / timer->cyc_per_tick; in sleeptimer_cb()59 atomic_set(&timer->last_count, prev + unannounced * timer->cyc_per_tick); in sleeptimer_cb()78 uint32_t next = ticks * timer->cyc_per_tick; in sleeptimer_clock_set_timeout()85 next += timer->cyc_per_tick; in sleeptimer_clock_set_timeout()100 timer->cyc_per_tick; in sleeptimer_clock_elapsed()137 timer->cyc_per_tick = z_clock_hw_cycles_per_sec / CONFIG_SYS_CLOCK_TICKS_PER_SEC; in sleeptimer_init()139 __ASSERT(timer->cyc_per_tick >= MIN_DELAY_CYC, in sleeptimer_init()143 timer->cyc_per_tick, MIN_DELAY_CYC, CONFIG_SYS_CLOCK_TICKS_PER_SEC, in sleeptimer_init()146 timer->max_timeout_ticks = MAX_TIMEOUT_CYC / timer->cyc_per_tick; in sleeptimer_init()[all …]
234 static __pinned_bss unsigned int cyc_per_tick; variable236 #define cyc_per_tick \ macro306 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 …]
16 static uint32_t cyc_per_tick; variable17 #define CYC_PER_TICK cyc_per_tick236 cyc_per_tick = sys_clock_hw_cycles_per_sec() / CONFIG_SYS_CLOCK_TICKS_PER_SEC; in sys_clock_driver_init()
90 uint64_t cyc_per_tick = k_ticks_to_cyc_near64(1); in message_dev_init() local92 uint64_t avg_cyc_per_event = cyc_per_tick * avg_ticks_per_event; in message_dev_init()
28 cyc_per_tick = sys_clock_hw_cycles_per_sec / ticks_per_sec29 expected_period_drift = ((periods_tick * cyc_per_tick - expected_period) /
230 uint32_t cyc_per_tick = sys_clock_hw_cycles_per_sec() in do_test_using() local232 double expected_period_drift = ((double)actual_timeout.ticks * cyc_per_tick in do_test_using()