Lines Matching refs:enabled
24 uint8_t enabled; /* 0 = disabled, 1 = periodic, 2 = oneshot. */ member
91 s->enabled = 0; in ptimer_reload()
102 if (s->enabled == 1 && s->limit == 0) { in ptimer_reload()
114 if (s->enabled == 1 && s->limit != 0) { in ptimer_reload()
120 if (s->enabled == 0) { in ptimer_reload()
128 s->enabled = 0; in ptimer_reload()
141 if (s->enabled == 1 && (delta * period < 10000) && in ptimer_reload()
169 if (s->enabled == 2) { in ptimer_tick()
171 s->enabled = 0; in ptimer_tick()
205 if (s->enabled && s->delta != 0) { in ptimer_get_count()
210 bool oneshot = (s->enabled == 2); in ptimer_get_count()
301 if (s->enabled) { in ptimer_set_count()
308 bool was_disabled = !s->enabled; in ptimer_run()
318 s->enabled = oneshot ? 2 : 1; in ptimer_run()
330 if (!s->enabled) in ptimer_stop()
335 s->enabled = 0; in ptimer_stop()
346 if (s->enabled) { in ptimer_set_period()
379 if (s->enabled) { in ptimer_set_period_from_clock()
391 if (s->enabled) { in ptimer_set_freq()
404 if (s->enabled && reload) { in ptimer_set_limit()
431 while (s->need_reload && s->enabled) { in ptimer_transaction_commit()
445 VMSTATE_UINT8(enabled, ptimer_state),