Lines Matching refs:time_waited
238 struct timeval time_waited; local
250 time_waited.tv_sec = 0;
251 time_waited.tv_usec = 0;
298 time_waited.tv_sec += retransmit_time.tv_sec;
299 time_waited.tv_usec += retransmit_time.tv_usec;
300 while (time_waited.tv_usec >= 1000000) {
301 time_waited.tv_sec++;
302 time_waited.tv_usec -= 1000000;
316 if ((time_waited.tv_sec < timeout.tv_sec) ||
317 ((time_waited.tv_sec == timeout.tv_sec) &&
318 (time_waited.tv_usec < timeout.tv_usec)))
355 time_waited.tv_sec += curtime.tv_sec - startime.tv_sec;
356 time_waited.tv_usec += curtime.tv_usec -
358 while (time_waited.tv_usec < 0) {
359 time_waited.tv_sec--;
360 time_waited.tv_usec += 1000000;
362 while (time_waited.tv_usec >= 1000000) {
363 time_waited.tv_sec++;
364 time_waited.tv_usec -= 1000000;
368 if ((time_waited.tv_sec > timeout.tv_sec) ||
369 ((time_waited.tv_sec == timeout.tv_sec) &&
370 (time_waited.tv_usec > timeout.tv_usec))) {