Lines Matching full:timeout
181 const struct timespec *timeout) in write() argument
185 ssize_t availToWrite = obtain(iovec, count, timeout); in write()
201 const struct timespec *timeout) in obtain() argument
223 if (count == 0 || availToWrite > 0 || timeout == NULL || in obtain()
224 (timeout->tv_sec == 0 && timeout->tv_nsec == 0)) { in obtain()
237 err = audio_utils_clock_nanosleep(CLOCK_MONOTONIC, 0 /*flags*/, timeout, in obtain()
250 if (timeout->tv_sec == LONG_MAX) { in obtain()
251 timeout = NULL; in obtain()
253 err = mFifo.mThrottleFront->wait(op, front, timeout); in obtain()
261 // bypass the "timeout = NULL;" below in obtain()
279 timeout = NULL; in obtain()
376 return obtain(NULL /*iovec*/, SIZE_MAX /*count*/, NULL /*timeout*/); in available()
452 ssize_t audio_utils_fifo_reader::read(void *buffer, size_t count, const struct timespec *timeout, in read() argument
457 ssize_t availToRead = obtain(iovec, count, timeout, lost); in read()
472 const struct timespec *timeout) in obtain() argument
475 return obtain(iovec, count, timeout, NULL /*lost*/); in obtain()
538 const struct timespec *timeout, size_t *lost) in obtain() argument
548 if (count == 0 || rear != mLocalFront || timeout == NULL || in obtain()
549 (timeout->tv_sec == 0 && timeout->tv_nsec == 0)) { in obtain()
559 err = audio_utils_clock_nanosleep(CLOCK_MONOTONIC, 0 /*flags*/, timeout, in obtain()
572 if (timeout->tv_sec == LONG_MAX) { in obtain()
573 timeout = NULL; in obtain()
575 err = mFifo.mWriterRear.wait(op, rear, timeout); in obtain()
583 // bypass the "timeout = NULL;" below in obtain()
601 timeout = NULL; in obtain()
649 return obtain(NULL /*iovec*/, SIZE_MAX /*count*/, NULL /*timeout*/, lost); in available()
655 ssize_t ret = obtain(iovec, SIZE_MAX /*count*/, NULL /*timeout*/, lost); in flush()