Lines Matching refs:avail
210 ssize_t avail = (mIsOut) ? adjustableSize - filled : filled; in obtainBuffer() local
211 if (avail < 0) { in obtainBuffer()
212 avail = 0; in obtainBuffer()
213 } else if (avail > 0) { in obtainBuffer()
223 if (part1 > (size_t)avail) { in obtainBuffer()
224 part1 = avail; in obtainBuffer()
232 buffer->mNonContig = avail - part1; in obtainBuffer()
1129 size_t avail; in obtainBuffer() local
1131 avail = end - position; in obtainBuffer()
1133 if (avail < wanted) { in obtainBuffer()
1134 buffer->mFrameCount = avail; in obtainBuffer()
1136 avail = wanted; in obtainBuffer()
1140 avail = 0; in obtainBuffer()
1146 LOG_ALWAYS_FATAL_IF(mFramesReady < (int64_t) avail, in obtainBuffer()
1148 __func__, (long long)mFramesReady, avail); in obtainBuffer()
1149 buffer->mNonContig = mFramesReady == INT64_MAX ? SIZE_MAX : clampToSize(mFramesReady - avail); in obtainBuffer()
1151 mUnreleased = avail; in obtainBuffer()