Lines Matching refs:err

202     int err = 0;  in obtain()  local
213 err = filled; in obtain()
231 err = audio_utils_clock_nanosleep(CLOCK_MONOTONIC, 0 /*flags*/, timeout, in obtain()
233 if (err < 0) { in obtain()
234 LOG_ALWAYS_FATAL_IF(errno != EINTR, "unexpected err=%d errno=%d", err, errno); in obtain()
235 err = -errno; in obtain()
237 err = -ETIMEDOUT; in obtain()
247 err = mFifo.mThrottleFront->wait(op, front, timeout); in obtain()
248 if (err < 0) { in obtain()
261 err = -errno; in obtain()
264 LOG_ALWAYS_FATAL("unexpected err=%d errno=%d", err, errno); in obtain()
277 err = -EIO; in obtain()
300 return availToWrite > 0 ? availToWrite : err; in obtain()
333 int err = mFifo.mWriterRear.wake(op, INT32_MAX /*waiters*/); in release() local
335 if (err < 0) { in release()
337 __func__, err, errno); in release()
491 int err = mThrottleFront->wake(op, 1 /*waiters*/); in release() local
493 if (err < 0 || err > 1) { in release()
495 __func__, err, errno); in release()
518 int err = 0; in obtain() local
532 err = audio_utils_clock_nanosleep(CLOCK_MONOTONIC, 0 /*flags*/, timeout, in obtain()
534 if (err < 0) { in obtain()
535 LOG_ALWAYS_FATAL_IF(errno != EINTR, "unexpected err=%d errno=%d", err, errno); in obtain()
536 err = -errno; in obtain()
538 err = -ETIMEDOUT; in obtain()
548 err = mFifo.mWriterRear.wait(op, rear, timeout); in obtain()
549 if (err < 0) { in obtain()
562 err = -errno; in obtain()
565 LOG_ALWAYS_FATAL("unexpected err=%d errno=%d", err, errno); in obtain()
590 err = filled; in obtain()
611 return availToRead > 0 ? availToRead : err; in obtain()