Lines Matching refs:now
56 uint32_t now; in gpt_set_safe() local
60 now = GPT_GetCurrentTimerCount(base); in gpt_set_safe()
70 if (unlikely(((int32_t)(next - now)) <= 1)) { in gpt_set_safe()
74 next = now + bump; in gpt_set_safe()
79 now = GPT_GetCurrentTimerCount(base); in gpt_set_safe()
80 } while ((((int32_t)(next - now)) <= 1) && (next < MAX_CYCLES)); in gpt_set_safe()
89 uint32_t tick_delta = 0, now, status; in mcux_imx_gpt_isr() local
94 now = GPT_GetCurrentTimerCount(base); in mcux_imx_gpt_isr()
114 tick_delta += (now - announced_cycles) / CYC_PER_TICK; in mcux_imx_gpt_isr()
115 announced_cycles += (((now - announced_cycles) / CYC_PER_TICK) * in mcux_imx_gpt_isr()
140 uint32_t next, adj, now; in sys_clock_set_timeout() local
149 now = GPT_GetCurrentTimerCount(base); in sys_clock_set_timeout()
152 adj = (now - announced_cycles) + (CYC_PER_TICK - 1); in sys_clock_set_timeout()