Lines Matching refs:cyc_per_tick
38 uint32_t cyc_per_tick; /* Number of hw_cycles per 1 kernel tick */ member
57 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()
153 status = sl_sleeptimer_start_timer(&timer->handle, timer->cyc_per_tick, in sleeptimer_init()
156 status = sl_sleeptimer_start_periodic_timer(&timer->handle, timer->cyc_per_tick, in sleeptimer_init()