Lines Matching refs:alarm_t

81 struct alarm_t {  struct
128 static alarm_t* alarm_new_internal(const char* name, bool is_periodic);
131 static void alarm_set_internal(alarm_t* alarm, uint64_t period_ms,
134 static void alarm_cancel_internal(alarm_t* alarm);
135 static void remove_pending_alarm(alarm_t* alarm);
136 static void schedule_next_instance(alarm_t* alarm);
155 alarm_t* alarm_new(const char* name) { return alarm_new_internal(name, false); } in alarm_new()
157 alarm_t* alarm_new_periodic(const char* name) { in alarm_new_periodic()
161 static alarm_t* alarm_new_internal(const char* name, bool is_periodic) { in alarm_new_internal()
169 alarm_t* ret = static_cast<alarm_t*>(osi_calloc(sizeof(alarm_t))); in alarm_new_internal()
185 void alarm_free(alarm_t* alarm) { in alarm_free()
196 uint64_t alarm_get_remaining_ms(const alarm_t* alarm) { in alarm_get_remaining_ms()
208 void alarm_set(alarm_t* alarm, uint64_t interval_ms, alarm_callback_t cb, in alarm_set()
214 void alarm_set_on_mloop(alarm_t* alarm, uint64_t interval_ms, in alarm_set_on_mloop()
220 static void alarm_set_internal(alarm_t* alarm, uint64_t period_ms, in alarm_set_internal()
240 void alarm_cancel(alarm_t* alarm) { in alarm_cancel()
257 static void alarm_cancel_internal(alarm_t* alarm) { in alarm_cancel_internal()
273 bool alarm_is_scheduled(const alarm_t* alarm) { in alarm_is_scheduled()
398 static void remove_pending_alarm(alarm_t* alarm) { in remove_pending_alarm()
413 static void schedule_next_instance(alarm_t* alarm) { in schedule_next_instance()
430 ((alarm_t*)list_front(alarms))->deadline_ms > alarm->deadline_ms) { in schedule_next_instance()
437 ((alarm_t*)list_node(next))->deadline_ms > alarm->deadline_ms) { in schedule_next_instance()
457 alarm_t* next; in reschedule_root_alarm()
466 next = static_cast<alarm_t*>(list_front(alarms)); in reschedule_root_alarm()
548 static void alarm_ready_generic(alarm_t* alarm, in alarm_ready_generic()
590 static void alarm_ready_mloop(alarm_t* alarm) { in alarm_ready_mloop()
599 alarm_t* alarm = (alarm_t*)fixed_queue_try_dequeue(queue); in alarm_queue_ready()
616 alarm_t* alarm; in callback_dispatch()
622 (alarm = static_cast<alarm_t*>(list_front(alarms)))->deadline_ms > in callback_dispatch()
731 alarm_t* alarm = (alarm_t*)list_node(node); in alarm_debug_dump()