• Home
  • Raw
  • Download

Lines Matching refs:alarm_t

86 struct alarm_t {  struct
133 static alarm_t* alarm_new_internal(const char* name, bool is_periodic);
136 static void alarm_set_internal(alarm_t* alarm, uint64_t period_ms,
139 static void alarm_cancel_internal(alarm_t* alarm);
140 static void remove_pending_alarm(alarm_t* alarm);
141 static void schedule_next_instance(alarm_t* alarm);
160 alarm_t* alarm_new(const char* name) { return alarm_new_internal(name, false); } in alarm_new()
162 alarm_t* alarm_new_periodic(const char* name) { in alarm_new_periodic()
166 static alarm_t* alarm_new_internal(const char* name, bool is_periodic) { in alarm_new_internal()
173 alarm_t* ret = static_cast<alarm_t*>(osi_calloc(sizeof(alarm_t))); in alarm_new_internal()
189 void alarm_free(alarm_t* alarm) { in alarm_free()
200 uint64_t alarm_get_remaining_ms(const alarm_t* alarm) { in alarm_get_remaining_ms()
212 void alarm_set(alarm_t* alarm, uint64_t interval_ms, alarm_callback_t cb, in alarm_set()
218 void alarm_set_on_mloop(alarm_t* alarm, uint64_t interval_ms, in alarm_set_on_mloop()
224 static void alarm_set_internal(alarm_t* alarm, uint64_t period_ms, in alarm_set_internal()
244 void alarm_cancel(alarm_t* alarm) { in alarm_cancel()
261 static void alarm_cancel_internal(alarm_t* alarm) { in alarm_cancel_internal()
277 bool alarm_is_scheduled(const alarm_t* alarm) { in alarm_is_scheduled()
402 static void remove_pending_alarm(alarm_t* alarm) { in remove_pending_alarm()
417 static void schedule_next_instance(alarm_t* alarm) { in schedule_next_instance()
434 ((alarm_t*)list_front(alarms))->deadline_ms > alarm->deadline_ms) { in schedule_next_instance()
441 ((alarm_t*)list_node(next))->deadline_ms > alarm->deadline_ms) { in schedule_next_instance()
461 alarm_t* next; in reschedule_root_alarm()
470 next = static_cast<alarm_t*>(list_front(alarms)); in reschedule_root_alarm()
555 static void alarm_ready_generic(alarm_t* alarm, in alarm_ready_generic()
598 static void alarm_ready_mloop(alarm_t* alarm) { in alarm_ready_mloop()
607 alarm_t* alarm = (alarm_t*)fixed_queue_try_dequeue(queue); in alarm_queue_ready()
626 alarm_t* alarm; in callback_dispatch()
632 (alarm = static_cast<alarm_t*>(list_front(alarms)))->deadline_ms > in callback_dispatch()
742 alarm_t* alarm = (alarm_t*)list_node(node); in alarm_debug_dump()