Lines Matching refs:timeout
179 const struct timespec *timeout) in write() argument
183 ssize_t availToWrite = obtain(iovec, count, timeout); in write()
199 const struct timespec *timeout) in obtain() argument
220 if (count == 0 || availToWrite > 0 || timeout == NULL || in obtain()
221 (timeout->tv_sec == 0 && timeout->tv_nsec == 0)) { in obtain()
231 err = audio_utils_clock_nanosleep(CLOCK_MONOTONIC, 0 /*flags*/, timeout, in obtain()
244 if (timeout->tv_sec == LONG_MAX) { in obtain()
245 timeout = NULL; in obtain()
247 err = mFifo.mThrottleFront->wait(op, front, timeout); in obtain()
273 timeout = NULL; in obtain()
435 ssize_t audio_utils_fifo_reader::read(void *buffer, size_t count, const struct timespec *timeout, in read() argument
440 ssize_t availToRead = obtain(iovec, count, timeout, lost); in read()
455 const struct timespec *timeout) in obtain() argument
458 return obtain(iovec, count, timeout, NULL /*lost*/); in obtain()
515 const struct timespec *timeout, size_t *lost) in obtain() argument
524 if (count == 0 || rear != mLocalFront || timeout == NULL || in obtain()
525 (timeout->tv_sec == 0 && timeout->tv_nsec == 0)) { in obtain()
532 err = audio_utils_clock_nanosleep(CLOCK_MONOTONIC, 0 /*flags*/, timeout, in obtain()
545 if (timeout->tv_sec == LONG_MAX) { in obtain()
546 timeout = NULL; in obtain()
548 err = mFifo.mWriterRear.wait(op, rear, timeout); in obtain()
574 timeout = NULL; in obtain()