Lines Matching refs:alarm_t
88 struct alarm_t { struct
135 static alarm_t* alarm_new_internal(const char* name, bool is_periodic);
138 static void alarm_set_internal(alarm_t* alarm, uint64_t period_ms,
141 static void alarm_cancel_internal(alarm_t* alarm);
142 static void remove_pending_alarm(alarm_t* alarm);
143 static void schedule_next_instance(alarm_t* alarm);
162 alarm_t* alarm_new(const char* name) { return alarm_new_internal(name, false); } in alarm_new()
164 alarm_t* alarm_new_periodic(const char* name) { in alarm_new_periodic()
168 static alarm_t* alarm_new_internal(const char* name, bool is_periodic) { in alarm_new_internal()
175 alarm_t* ret = static_cast<alarm_t*>(osi_calloc(sizeof(alarm_t))); in alarm_new_internal()
191 void alarm_free(alarm_t* alarm) { in alarm_free()
201 uint64_t alarm_get_remaining_ms(const alarm_t* alarm) { in alarm_get_remaining_ms()
213 void alarm_set(alarm_t* alarm, uint64_t interval_ms, alarm_callback_t cb, in alarm_set()
219 void alarm_set_on_mloop(alarm_t* alarm, uint64_t interval_ms, in alarm_set_on_mloop()
225 static void alarm_set_internal(alarm_t* alarm, uint64_t period_ms, in alarm_set_internal()
245 void alarm_cancel(alarm_t* alarm) { in alarm_cancel()
262 static void alarm_cancel_internal(alarm_t* alarm) { in alarm_cancel_internal()
278 bool alarm_is_scheduled(const alarm_t* alarm) { in alarm_is_scheduled()
406 static void remove_pending_alarm(alarm_t* alarm) { in remove_pending_alarm()
421 static void schedule_next_instance(alarm_t* alarm) { in schedule_next_instance()
438 ((alarm_t*)list_front(alarms))->deadline_ms > alarm->deadline_ms) { in schedule_next_instance()
445 ((alarm_t*)list_node(next))->deadline_ms > alarm->deadline_ms) { in schedule_next_instance()
465 alarm_t* next; in reschedule_root_alarm()
474 next = static_cast<alarm_t*>(list_front(alarms)); in reschedule_root_alarm()
560 static void alarm_ready_generic(alarm_t* alarm, in alarm_ready_generic()
603 static void alarm_ready_mloop(alarm_t* alarm) { in alarm_ready_mloop()
612 alarm_t* alarm = (alarm_t*)fixed_queue_try_dequeue(queue); in alarm_queue_ready()
631 alarm_t* alarm; in callback_dispatch()
637 (alarm = static_cast<alarm_t*>(list_front(alarms)))->deadline_ms > in callback_dispatch()
748 alarm_t* alarm = (alarm_t*)list_node(node); in alarm_debug_dump()