Home | History | Annotate | Download | only in Linux_x86

Lines Matching full:timeout

301 static struct timeval timeval_remaining(struct timespec timeout) {
306 delta.tv_sec = timeout.tv_sec - now.tv_sec;
307 delta.tv_usec = (timeout.tv_nsec - now.tv_nsec) / (long)1000;
336 struct timespec timeout;
344 // Read timeout:
345 // FW mode: 10s timeout
347 // >1 byte read: LLC payload, 100ms timeout (before pn544 re-transmit)
349 clock_gettime(CLOCK_MONOTONIC, &timeout);
350 timeout.tv_nsec += 100000000;
351 if (timeout.tv_nsec > 1000000000) {
352 timeout.tv_sec++;
353 timeout.tv_nsec -= 1000000000;
357 clock_gettime(CLOCK_MONOTONIC, &timeout);
358 timeout.tv_sec += 10;
369 tv = timeval_remaining(timeout);
381 LOGW("timeout!");