Lines Matching refs:stepCount
340 size_t stepCount = buffer->mFrameCount; in releaseBuffer() local
341 if (stepCount == 0 || mIsShutdown) { in releaseBuffer()
348 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount)); in releaseBuffer()
349 mUnreleased -= stepCount; in releaseBuffer()
354 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear); in releaseBuffer()
357 android_atomic_release_store(stepCount + front, &cblk->u.mStreaming.mFront); in releaseBuffer()
739 size_t stepCount = buffer->mFrameCount; in releaseBuffer() local
740 if (stepCount == 0 || mIsShutdown) { in releaseBuffer()
747 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount)); in releaseBuffer()
748 mUnreleased -= stepCount; in releaseBuffer()
752 android_atomic_release_store(stepCount + front, &cblk->u.mStreaming.mFront); in releaseBuffer()
755 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear); in releaseBuffer()
758 cblk->mServer += stepCount; in releaseBuffer()
759 mReleased += stepCount; in releaseBuffer()
772 if (!mIsOut || (mAvailToClient + stepCount >= minimum)) { in releaseBuffer()
773 ALOGV("mAvailToClient=%zu stepCount=%zu minimum=%zu", mAvailToClient, stepCount, minimum); in releaseBuffer()
1025 size_t stepCount = buffer->mFrameCount; in releaseBuffer() local
1026 LOG_ALWAYS_FATAL_IF(!((int64_t) stepCount <= mFramesReady)); in releaseBuffer()
1027 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased)); in releaseBuffer()
1028 if (stepCount == 0) { in releaseBuffer()
1034 mUnreleased -= stepCount; in releaseBuffer()
1037 size_t newPosition = position + stepCount; in releaseBuffer()
1056 mFramesReady -= stepCount; in releaseBuffer()
1060 cblk->mServer += stepCount; in releaseBuffer()
1061 mReleased += stepCount; in releaseBuffer()