Home
last modified time | relevance | path

Searched refs:wakeup_time (Results 1 – 2 of 2) sorted by relevance

/system/bt/osi/test/
DAlarmTestHarness.cpp64 struct itimerspec wakeup_time; in set_wake_alarm() local
65 memset(&wakeup_time, 0, sizeof(wakeup_time)); in set_wake_alarm()
66 wakeup_time.it_value.tv_sec = (delay_millis / 1000); in set_wake_alarm()
67 wakeup_time.it_value.tv_nsec = (delay_millis % 1000) * 1000000LL; in set_wake_alarm()
68 timer_settime(timer, 0, &wakeup_time, NULL); in set_wake_alarm()
/system/bt/osi/src/
Dalarm.c296 struct itimerspec wakeup_time; in reschedule_root_alarm() local
297 memset(&wakeup_time, 0, sizeof(wakeup_time)); in reschedule_root_alarm()
313 wakeup_time.it_value.tv_sec = (next->deadline / 1000); in reschedule_root_alarm()
314 wakeup_time.it_value.tv_nsec = (next->deadline % 1000) * 1000000LL; in reschedule_root_alarm()
321 timer_set = wakeup_time.it_value.tv_sec != 0 || wakeup_time.it_value.tv_nsec != 0; in reschedule_root_alarm()
326 if (timer_settime(timer, TIMER_ABSTIME, &wakeup_time, NULL) == -1) in reschedule_root_alarm()