Lines Matching refs:now
36 #define fpm_event_set_timeout(ev, now) timeradd(&(now), &(ev)->frequency, &(ev)->timeout); argument
378 struct timeval now; in fpm_event_loop() local
387 fpm_clock_get(&now); in fpm_event_loop()
404 if (!timerisset(&ms) || timercmp(&ms, &now, <) || timercmp(&ms, &now, ==)) { in fpm_event_loop()
407 timersub(&ms, &now, &tmp); in fpm_event_loop()
425 fpm_clock_get(&now); in fpm_event_loop()
427 if (timercmp(&now, &q->ev->timeout, >) || timercmp(&now, &q->ev->timeout, ==)) { in fpm_event_loop()
434 fpm_event_set_timeout(q->ev, now); in fpm_event_loop()
487 struct timeval now; in fpm_event_add() local
508 fpm_clock_get(&now); in fpm_event_add()
517 fpm_event_set_timeout(ev, now); in fpm_event_add()