Lines Matching refs:part1
252 size_t part1; in obtainBuffer() local
255 part1 = mFrameCountP2 - rear; in obtainBuffer()
258 part1 = mFrameCountP2 - front; in obtainBuffer()
260 if (part1 > (size_t)avail) { in obtainBuffer()
261 part1 = avail; in obtainBuffer()
263 if (part1 > buffer->mFrameCount) { in obtainBuffer()
264 part1 = buffer->mFrameCount; in obtainBuffer()
266 buffer->mFrameCount = part1; in obtainBuffer()
267 buffer->mRaw = part1 > 0 ? in obtainBuffer()
269 buffer->mNonContig = avail - part1; in obtainBuffer()
270 mUnreleased = part1; in obtainBuffer()
863 size_t part1; in obtainBuffer() local
866 part1 = mFrameCountP2 - front; in obtainBuffer()
869 part1 = mFrameCountP2 - rear; in obtainBuffer()
871 if (part1 > availToServer) { in obtainBuffer()
872 part1 = availToServer; in obtainBuffer()
875 if (part1 > ask) { in obtainBuffer()
876 part1 = ask; in obtainBuffer()
879 buffer->mFrameCount = part1; in obtainBuffer()
880 buffer->mRaw = part1 > 0 ? in obtainBuffer()
882 buffer->mNonContig = availToServer - part1; in obtainBuffer()
886 mUnreleased = part1; in obtainBuffer()
888 return part1 > 0 ? NO_ERROR : WOULD_BLOCK; in obtainBuffer()