Lines Matching refs:total_cycles
93 static uint32_t total_cycles; variable
173 temp = total_cycles; in sys_clock_set_timeout()
176 total_cycles = temp; in sys_clock_set_timeout()
178 partial_cycles = CYCLES_PER_TICK - (total_cycles % CYCLES_PER_TICK); in sys_clock_set_timeout()
207 elapsed = (int32_t)total_cycles - (int32_t)last_announcement; in sys_clock_elapsed()
238 total_cycles += cycles; in mec5_ktimer_isr()
239 total_cycles &= RTIMER_COUNT_MASK; in mec5_ktimer_isr()
242 ticks = total_cycles - last_announcement; in mec5_ktimer_isr()
246 last_announcement = total_cycles; in mec5_ktimer_isr()
265 uint32_t temp = total_cycles + CYCLES_PER_TICK; in mec5_ktimer_isr()
267 total_cycles = temp & RTIMER_COUNT_MASK; in mec5_ktimer_isr()
297 ret = (total_cycles + (cached_icr - ccr)) & RTIMER_COUNT_MASK; in sys_clock_cycle_get_32()