Lines Matching refs:front

172         int32_t front;  in obtainBuffer()  local
182 front = android_atomic_acquire_load(&cblk->u.mStreaming.mFront); in obtainBuffer()
187 front = cblk->u.mStreaming.mFront; in obtainBuffer()
190 ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in obtainBuffer()
220 front &= mFrameCountP2 - 1; in obtainBuffer()
221 part1 = mFrameCountP2 - front; in obtainBuffer()
231 &((char *) mBuffers)[(mIsOut ? rear : front) * mFrameSize] : NULL; in obtainBuffer()
363 int32_t front = cblk->u.mStreaming.mFront; in releaseBuffer() local
364 android_atomic_release_store(stepCount + front, &cblk->u.mStreaming.mFront); in releaseBuffer()
682 int32_t front = cblk->u.mStreaming.mFront; in flushBufferIfNeeded() local
687 int32_t newFront = (front & ~mask) | (flush & mask); in flushBufferIfNeeded()
701 mFlush, flush, front, rear, in flushBufferIfNeeded()
715 mFlushed += (newFront - front) & mask; in flushBufferIfNeeded()
726 const int32_t front = mCblk->u.mStreaming.mFront; in getRear() local
730 ssize_t filled = audio_utils::safe_sub_overflow(newRear, front); in getRear()
747 stopLast, stop, front, rear, in getRear()
771 int32_t front; in obtainBuffer() local
777 front = cblk->u.mStreaming.mFront; in obtainBuffer()
779 front = android_atomic_acquire_load(&cblk->u.mStreaming.mFront); in obtainBuffer()
782 ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in obtainBuffer()
804 front &= mFrameCountP2 - 1; in obtainBuffer()
805 part1 = mFrameCountP2 - front; in obtainBuffer()
820 &((char *) mBuffers)[(mIsOut ? front : rear) * mFrameSize] : NULL; in obtainBuffer()
856 int32_t front = cblk->u.mStreaming.mFront; in releaseBuffer() local
857 android_atomic_release_store(stepCount + front, &cblk->u.mStreaming.mFront); in releaseBuffer()
1243 const int32_t front = android_atomic_acquire_load(&mCblk->u.mStreaming.mFront); in framesReadySafe() local
1245 const ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in framesReadySafe()