Lines Matching refs:usec
246 static int on_event_timeout(sd_event_source *s, uint64_t usec, void *userdata) {
260 static int on_event_timeout_warning(sd_event_source *s, uint64_t usec, void *userdata) {
272 uint64_t usec;
287 assert_se(sd_event_now(e, clock_boottime_or_monotonic(), &usec) >= 0);
290 usec + arg_event_timeout_warn_usec, USEC_PER_SEC, on_event_timeout_warning, event);
293 usec + arg_event_timeout_usec, USEC_PER_SEC, on_event_timeout, event);
720 static int on_exit_timeout(sd_event_source *s, uint64_t usec, void *userdata) {
733 uint64_t usec;
758 assert_se(sd_event_now(manager->event, clock_boottime_or_monotonic(), &usec) >= 0);
761 usec + 30 * USEC_PER_SEC, USEC_PER_SEC, on_exit_timeout, manager);
786 usec_t usec;
794 assert_se(sd_event_now(manager->event, clock_boottime_or_monotonic(), &usec) >= 0);
797 (usec - manager->last_usec) > 3 * USEC_PER_SEC) {
802 manager->last_usec = usec;