Lines Matching defs:tv
96 static void getNow(struct timeval * tv)
101 tv->tv_sec = ts.tv_sec;
102 tv->tv_usec = ts.tv_nsec/1000;
104 gettimeofday(tv, NULL);
216 static int calcNextTimeout(struct timeval * tv)
233 timersub(&tev->timeout, &now, tv);
236 tv->tv_sec = tv->tv_usec = 0;
287 void ril_timer_add(struct ril_event * ev, struct timeval * tv)
293 if (tv != NULL) {
300 timeradd(&now, tv, &ev->timeout);
350 struct timeval tv;
358 if (-1 == calcNextTimeout(&tv)) {
363 dlog("~~~~ blocking for %ds + %dus ~~~~", (int)tv.tv_sec, (int)tv.tv_usec);
364 ptv = &tv;