Lines Matching refs:avail
83 size_t avail = it->second->availableToRead(); in getBufferStatusChanges() local
84 while (avail > 0) { in getBufferStatusChanges()
94 --avail; in getBufferStatusChanges()
116 size_t avail = mBufferStatusQueue->availableToWrite(); in needsSync() local
117 return avail + kMinElementsToSyncInQueue < kNumElementsInQueue; in needsSync()
126 size_t avail = mBufferStatusQueue->availableToWrite(); in postBufferRelease() local
127 avail = std::min(avail, pending.size()); in postBufferRelease()
129 for (size_t i = 0 ; i < avail; ++i) { in postBufferRelease()
152 size_t avail = mBufferStatusQueue->availableToWrite(); in postBufferInvalidateAck() local
153 if (avail > 0) { in postBufferInvalidateAck()
175 size_t avail = mBufferStatusQueue->availableToWrite(); in postBufferStatusMessage() local
177 if (avail >= numPending + 1) { in postBufferStatusMessage()
224 size_t avail = std::min( in BufferInvalidationListener() local
226 std::vector<BufferInvalidationMessage> temp(avail); in BufferInvalidationListener()
227 if (avail > 0) { in BufferInvalidationListener()
228 mBufferInvalidationQueue->read(temp.data(), avail); in BufferInvalidationListener()
237 size_t avail = std::min( in getInvalidations() local
239 if (avail > 0) { in getInvalidations()
240 std::vector<BufferInvalidationMessage> temp(avail); in getInvalidations()
241 if (mBufferInvalidationQueue->read(temp.data(), avail)) { in getInvalidations()
242 messages.reserve(messages.size() + avail); in getInvalidations()