Searched refs:mMaxFrames (Results 1 – 6 of 6) sorted by relevance
51 if (CC_UNLIKELY(avail > mPipe.mMaxFrames)) { in availableToRead()54 mFront = rear - mPipe.mMaxFrames + (mPipe.mMaxFrames >> 4); in availableToRead()73 size_t front = mFront & (mPipe.mMaxFrames - 1); in read()74 size_t red = mPipe.mMaxFrames - front; in read()81 if (CC_UNLIKELY(front + red == mPipe.mMaxFrames)) { in read()
30 mMaxFrames(roundup(maxFrames)), in Pipe()31 mBuffer(buffer == NULL ? malloc(mMaxFrames * Format_frameSize(format)) : buffer), in Pipe()53 size_t rear = mRear & (mMaxFrames - 1); in write()54 size_t written = mMaxFrames - rear; in write()59 if (CC_UNLIKELY(rear + written == mMaxFrames)) { in write()
56 mMaxFrames(roundup(reqFrames)), in MonoPipe()57 mBuffer(malloc(mMaxFrames * Format_frameSize(format))), in MonoPipe()112 ssize_t ret = mMaxFrames - (mRear - android_atomic_acquire_load(&mFront)); in availableToWrite()113 ALOG_ASSERT((0 <= ret) && (ret <= mMaxFrames)); in availableToWrite()130 size_t rear = mRear & (mMaxFrames - 1); in write()131 size_t part1 = mMaxFrames - rear; in write()137 if (CC_UNLIKELY(rear + part1 == mMaxFrames)) { in write()155 size_t filled = (mMaxFrames - avail) + written; in write()244 size_t pendingFrames = (mRear - front) & (mMaxFrames - 1); in getNextWriteTimestamp()
42 ALOG_ASSERT((0 <= ret) && (ret <= mMaxFrames)); in availableToRead()70 size_t front = mPipe->mFront & (mPipe->mMaxFrames - 1); in read()71 size_t part1 = mPipe->mMaxFrames - front; in read()77 if (CC_UNLIKELY(front + part1 == mPipe->mMaxFrames)) { in read()
54 virtual ssize_t availableToWrite() const { return mMaxFrames; } in availableToWrite()60 const size_t mMaxFrames; // always a power of 2
81 size_t maxFrames() const { return mMaxFrames; } in maxFrames()116 const size_t mMaxFrames; // always a power of 2 variable