Lines Matching refs:part1
212 size_t part1;
215 part1 = mFrameCountP2 - rear;
218 part1 = mFrameCountP2 - front;
220 if (part1 > (size_t)avail) {
221 part1 = avail;
223 if (part1 > buffer->mFrameCount) {
224 part1 = buffer->mFrameCount;
226 buffer->mFrameCount = part1;
227 buffer->mRaw = part1 > 0 ?
229 buffer->mNonContig = avail - part1;
230 mUnreleased = part1;
715 size_t part1;
718 part1 = mFrameCountP2 - front;
721 part1 = mFrameCountP2 - rear;
723 if (part1 > availToServer) {
724 part1 = availToServer;
727 if (part1 > ask) {
728 part1 = ask;
731 buffer->mFrameCount = part1;
732 buffer->mRaw = part1 > 0 ?
734 buffer->mNonContig = availToServer - part1;
738 mUnreleased = part1;
740 return part1 > 0 ? NO_ERROR : WOULD_BLOCK;