Home
last modified time | relevance | path

Searched refs:bitwidths (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/hw/timer/
H A Dnrf51_timer.c26 static uint32_t const bitwidths[] = {16, 8, 24, 32}; variable
47 s->counter = (s->counter + ticks) % BIT(bitwidths[s->bitmode]); in update_counter()
71 delta_ns = ticks_to_ns(s, BIT(bitwidths[s->bitmode]) - in rearm_timer()
111 cc_remaining[i] = BIT(bitwidths[s->bitmode]) - in timer_expire()
226 s->counter = (s->counter + 1) % BIT(bitwidths[s->bitmode]); in nrf51_timer_write()
294 s->cc[idx] = value % BIT(bitwidths[s->bitmode]); in nrf51_timer_write()