Lines Matching refs:now
43 static uint32_t update_counter(NRF51TimerState *s, int64_t now) in update_counter() argument
45 uint32_t ticks = ns_to_ticks(s, now - s->update_counter_ns); in update_counter()
58 static void rearm_timer(NRF51TimerState *s, int64_t now) in rearm_timer() argument
83 timer_mod_ns(&s->timer, now + min_ns); in rearm_timer()
101 int64_t now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in timer_expire() local
116 ticks = update_counter(s, now); in timer_expire()
123 s->timer_start_ns = now; in timer_expire()
138 rearm_timer(s, now); in timer_expire()
203 uint64_t now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in nrf51_timer_write() local
212 s->timer_start_ns = now - ticks_to_ns(s, s->counter); in nrf51_timer_write()
214 rearm_timer(s, now); in nrf51_timer_write()
232 s->timer_start_ns = now; in nrf51_timer_write()
236 rearm_timer(s, now); in nrf51_timer_write()
297 rearm_timer(s, now); in nrf51_timer_write()