Home
last modified time | relevance | path

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

/system/bt/osi/src/
Dalarm.c47 period_ms_t deadline; member
78 static void alarm_set_internal(alarm_t *alarm, period_ms_t deadline, alarm_callback_t cb, void *dat…
135 if (alarm->deadline) in alarm_get_remaining_ms()
136 remaining_ms = alarm->deadline - now(); in alarm_get_remaining_ms()
142 void alarm_set(alarm_t *alarm, period_ms_t deadline, alarm_callback_t cb, void *data) { in alarm_set() argument
143 alarm_set_internal(alarm, deadline, cb, data, false); in alarm_set()
178 alarm->deadline = 0; in alarm_cancel()
271 alarm->deadline = just_now + (alarm->period - ms_into_period); in schedule_next_instance()
274 if (list_is_empty(alarms) || ((alarm_t *)list_front(alarms))->deadline >= alarm->deadline) in schedule_next_instance()
279 if (next == list_end(alarms) || ((alarm_t *)list_node(next))->deadline >= alarm->deadline) { in schedule_next_instance()
[all …]
/system/bt/osi/include/
Dalarm.h43 void alarm_set(alarm_t *alarm, period_ms_t deadline, alarm_callback_t cb, void *data);
/system/core/fastboot/
Dusb_linux.c483 double deadline = now() + WAIT_FOR_DISCONNECT_TIMEOUT; in usb_wait_for_disconnect() local
484 while (now() < deadline) { in usb_wait_for_disconnect()