Lines Matching refs:tv
42 shaper_soonest_event (struct timeval *tv, int delay)
47 if (tv->tv_sec)
49 tv->tv_sec = 0;
50 tv->tv_usec = delay;
53 else if (delay < tv->tv_usec)
55 tv->tv_usec = delay;
64 if (sec < tv->tv_sec)
66 tv->tv_sec = sec;
67 tv->tv_usec = usec;
70 else if (sec == tv->tv_sec)
72 if (usec < tv->tv_usec)
74 tv->tv_usec = usec;
81 (int)tv->tv_sec, (int)tv->tv_usec, (int)ret);