Lines Matching refs:lost
68 int32_t audio_utils_fifo_base::diff(uint32_t rear, uint32_t front, size_t *lost, bool flush) const in diff() argument
72 if (lost != NULL) { in diff()
73 *lost = 0; in diff()
95 if (lost != NULL) { in diff()
99 *lost = diff - (flush ? 0 : mFrameCount) - mFudgeFactor * (genDiff/mFrameCountP2); in diff()
113 if (lost != NULL) { in diff()
114 *lost = diff - (flush ? 0 : mFrameCount); in diff()
435 size_t *lost) in read() argument
439 ssize_t availToRead = obtain(iovec, count, timeout, lost); in read()
514 const struct timespec *timeout, size_t *lost) in obtain() argument
576 if (lost == NULL) { in obtain()
577 lost = &ourLost; in obtain()
580 int32_t filled = mFifo.diff(rear, mLocalFront, lost, mFlush); in obtain()
581 mTotalLost += *lost; in obtain()
582 mTotalReleased += *lost; in obtain()
618 ssize_t audio_utils_fifo_reader::available(size_t *lost) in available() argument
621 return obtain(NULL /*iovec*/, SIZE_MAX /*count*/, NULL /*timeout*/, lost); in available()
624 ssize_t audio_utils_fifo_reader::flush(size_t *lost) in flush() argument
627 ssize_t ret = obtain(iovec, SIZE_MAX /*count*/, NULL /*timeout*/, lost); in flush()