Lines Matching refs:NRF51TimerState

28 static uint32_t ns_to_ticks(NRF51TimerState *s, int64_t ns)  in ns_to_ticks()
35 static int64_t ticks_to_ns(NRF51TimerState *s, uint32_t ticks) in ticks_to_ns()
43 static uint32_t update_counter(NRF51TimerState *s, int64_t now) in update_counter()
58 static void rearm_timer(NRF51TimerState *s, int64_t now) in rearm_timer()
87 static void update_irq(NRF51TimerState *s) in update_irq()
100 NRF51TimerState *s = NRF51_TIMER(opaque); in timer_expire()
142 static void counter_compare(NRF51TimerState *s) in counter_compare()
160 NRF51TimerState *s = NRF51_TIMER(opaque); in nrf51_timer_read()
202 NRF51TimerState *s = NRF51_TIMER(opaque); in nrf51_timer_write()
319 NRF51TimerState *s = NRF51_TIMER(obj); in nrf51_timer_init()
332 NRF51TimerState *s = NRF51_TIMER(dev); in nrf51_timer_reset()
352 NRF51TimerState *s = NRF51_TIMER(opaque); in nrf51_timer_post_load()
365 VMSTATE_TIMER(timer, NRF51TimerState),
366 VMSTATE_INT64(timer_start_ns, NRF51TimerState),
367 VMSTATE_INT64(update_counter_ns, NRF51TimerState),
368 VMSTATE_UINT32(counter, NRF51TimerState),
369 VMSTATE_BOOL(running, NRF51TimerState),
370 VMSTATE_UINT8_ARRAY(events_compare, NRF51TimerState,
372 VMSTATE_UINT32_ARRAY(cc, NRF51TimerState, NRF51_TIMER_REG_COUNT),
373 VMSTATE_UINT32(shorts, NRF51TimerState),
374 VMSTATE_UINT32(inten, NRF51TimerState),
375 VMSTATE_UINT32(mode, NRF51TimerState),
376 VMSTATE_UINT32(bitmode, NRF51TimerState),
377 VMSTATE_UINT32(prescaler, NRF51TimerState),
383 DEFINE_PROP_UINT8("id", NRF51TimerState, id, 0),
399 .instance_size = sizeof(NRF51TimerState),