Lines Matching refs:avail
208 ssize_t avail = (mIsOut) ? adjustableSize - filled : filled; in obtainBuffer() local
209 if (avail < 0) { in obtainBuffer()
210 avail = 0; in obtainBuffer()
211 } else if (avail > 0) { in obtainBuffer()
221 if (part1 > (size_t)avail) { in obtainBuffer()
222 part1 = avail; in obtainBuffer()
230 buffer->mNonContig = avail - part1; in obtainBuffer()
1050 size_t avail; in obtainBuffer() local
1052 avail = end - position; in obtainBuffer()
1054 if (avail < wanted) { in obtainBuffer()
1055 buffer->mFrameCount = avail; in obtainBuffer()
1057 avail = wanted; in obtainBuffer()
1061 avail = 0; in obtainBuffer()
1067 LOG_ALWAYS_FATAL_IF(mFramesReady < (int64_t) avail, in obtainBuffer()
1069 __func__, (long long)mFramesReady, avail); in obtainBuffer()
1070 buffer->mNonContig = mFramesReady == INT64_MAX ? SIZE_MAX : clampToSize(mFramesReady - avail); in obtainBuffer()
1072 mUnreleased = avail; in obtainBuffer()