Lines Matching refs:CYC_PER_TICK
48 #define CYC_PER_TICK (sys_clock_hw_cycles_per_sec() \ macro
51 #define MAX_TICKS ((COUNTER_MAX / CYC_PER_TICK) - 1)
52 #define MAX_CYCLES (MAX_TICKS * CYC_PER_TICK)
227 dticks = (curr_time - last_time) / CYC_PER_TICK; in timer_int_handler()
229 last_time += dticks * CYC_PER_TICK; in timer_int_handler()
252 dticks = (cycle_count - announced_cycles) / CYC_PER_TICK; in timer_int_handler()
253 announced_cycles += dticks * CYC_PER_TICK; in timer_int_handler()
289 delay = MAX(ticks * CYC_PER_TICK, MIN_DELAY); in sys_clock_set_timeout()
340 delay = ticks * CYC_PER_TICK; in sys_clock_set_timeout()
344 delay = DIV_ROUND_UP(delay, CYC_PER_TICK) * CYC_PER_TICK; in sys_clock_set_timeout()
377 return cyc / CYC_PER_TICK; in sys_clock_elapsed()
426 timer0_limit_register_set(CYC_PER_TICK - 1); in sys_clock_driver_init()
430 last_load = CYC_PER_TICK; in sys_clock_driver_init()