Lines Matching refs:rear

173         int32_t rear;  in obtainBuffer()  local
183 rear = cblk->u.mStreaming.mRear; in obtainBuffer()
186 rear = android_atomic_acquire_load(&cblk->u.mStreaming.mRear); in obtainBuffer()
190 ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in obtainBuffer()
202 cblk->u.mStreaming.mFront = rear; in obtainBuffer()
217 rear &= mFrameCountP2 - 1; in obtainBuffer()
218 part1 = mFrameCountP2 - rear; in obtainBuffer()
231 &((char *) mBuffers)[(mIsOut ? rear : front) * mFrameSize] : NULL; in obtainBuffer()
360 int32_t rear = cblk->u.mStreaming.mRear; in releaseBuffer() local
361 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear); in releaseBuffer()
681 int32_t rear = android_atomic_acquire_load(&cblk->u.mStreaming.mRear); in flushBufferIfNeeded() local
688 ssize_t filled = audio_utils::safe_sub_overflow(rear, newFront); in flushBufferIfNeeded()
701 mFlush, flush, front, rear, in flushBufferIfNeeded()
703 newFront = rear; in flushBufferIfNeeded()
723 const int32_t rear = android_atomic_acquire_load(&mCblk->u.mStreaming.mRear); in getRear() local
729 int32_t newRear = (rear & ~mask) | (stop & mask); in getRear()
747 stopLast, stop, front, rear, in getRear()
751 return rear; in getRear()
772 int32_t rear; in obtainBuffer() local
776 rear = getRear(); in obtainBuffer()
780 rear = cblk->u.mStreaming.mRear; in obtainBuffer()
782 ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in obtainBuffer()
807 rear &= mFrameCountP2 - 1; in obtainBuffer()
808 part1 = mFrameCountP2 - rear; in obtainBuffer()
820 &((char *) mBuffers)[(mIsOut ? front : rear) * mFrameSize] : NULL; in obtainBuffer()
859 int32_t rear = cblk->u.mStreaming.mRear; in releaseBuffer() local
860 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear); in releaseBuffer()
908 const int32_t rear = getRear(); in framesReady() local
909 ssize_t filled = audio_utils::safe_sub_overflow(rear, cblk->u.mStreaming.mFront); in framesReady()
934 const int32_t rear = getRear(); in framesReadySafe() local
935 const ssize_t filled = audio_utils::safe_sub_overflow(rear, cblk->u.mStreaming.mFront); in framesReadySafe()
1244 const int32_t rear = mCblk->u.mStreaming.mRear; in framesReadySafe() local
1245 const ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in framesReadySafe()