Lines Matching refs:part1
215 size_t part1; in obtainBuffer() local
218 part1 = mFrameCountP2 - rear; in obtainBuffer()
221 part1 = mFrameCountP2 - front; in obtainBuffer()
223 if (part1 > (size_t)avail) { in obtainBuffer()
224 part1 = avail; in obtainBuffer()
226 if (part1 > buffer->mFrameCount) { in obtainBuffer()
227 part1 = buffer->mFrameCount; in obtainBuffer()
229 buffer->mFrameCount = part1; in obtainBuffer()
230 buffer->mRaw = part1 > 0 ? in obtainBuffer()
232 buffer->mNonContig = avail - part1; in obtainBuffer()
233 mUnreleased = part1; in obtainBuffer()
802 size_t part1; in obtainBuffer() local
805 part1 = mFrameCountP2 - front; in obtainBuffer()
808 part1 = mFrameCountP2 - rear; in obtainBuffer()
810 if (part1 > availToServer) { in obtainBuffer()
811 part1 = availToServer; in obtainBuffer()
814 if (part1 > ask) { in obtainBuffer()
815 part1 = ask; in obtainBuffer()
818 buffer->mFrameCount = part1; in obtainBuffer()
819 buffer->mRaw = part1 > 0 ? in obtainBuffer()
821 buffer->mNonContig = availToServer - part1; in obtainBuffer()
825 mUnreleased = part1; in obtainBuffer()
827 return part1 > 0 ? NO_ERROR : WOULD_BLOCK; in obtainBuffer()