Lines Matching refs:lost
69 int32_t audio_utils_fifo_base::diff(uint32_t rear, uint32_t front, size_t *lost, bool flush) const in diff() argument
73 if (lost != NULL) { in diff()
74 *lost = 0; in diff()
96 if (lost != NULL) { in diff()
100 *lost = diff - (flush ? 0 : mFrameCount) - mFudgeFactor * (genDiff/mFrameCountP2); in diff()
114 if (lost != NULL) { in diff()
115 *lost = diff - (flush ? 0 : mFrameCount); in diff()
436 size_t *lost) in read() argument
440 ssize_t availToRead = obtain(iovec, count, timeout, lost); in read()
515 const struct timespec *timeout, size_t *lost) in obtain() argument
577 if (lost == NULL) { in obtain()
578 lost = &ourLost; in obtain()
581 int32_t filled = mFifo.diff(rear, mLocalFront, lost, mFlush); in obtain()
582 mTotalLost += *lost; in obtain()
583 mTotalReleased += *lost; in obtain()
619 ssize_t audio_utils_fifo_reader::available(size_t *lost) in available() argument
622 return obtain(NULL /*iovec*/, SIZE_MAX /*count*/, NULL /*timeout*/, lost); in available()
625 ssize_t audio_utils_fifo_reader::flush(size_t *lost) in flush() argument
628 ssize_t ret = obtain(iovec, SIZE_MAX /*count*/, NULL /*timeout*/, lost); in flush()