Lines Matching refs:avail
90 size_t avail = it->second->availableToRead(); in getBufferStatusChanges() local
91 while (avail > 0) { in getBufferStatusChanges()
101 --avail; in getBufferStatusChanges()
124 size_t avail = mBufferStatusQueue->availableToWrite(); in needsSync() local
125 return avail + kMinElementsToSyncInQueue < kNumElementsInQueue; in needsSync()
134 size_t avail = mBufferStatusQueue->availableToWrite(); in postBufferRelease() local
135 avail = std::min(avail, pending.size()); in postBufferRelease()
137 for (size_t i = 0 ; i < avail; ++i) { in postBufferRelease()
160 size_t avail = mBufferStatusQueue->availableToWrite(); in postBufferInvalidateAck() local
161 if (avail > 0) { in postBufferInvalidateAck()
183 size_t avail = mBufferStatusQueue->availableToWrite(); in postBufferStatusMessage() local
185 if (avail >= numPending + 1) { in postBufferStatusMessage()
232 size_t avail = std::min( in BufferInvalidationListener() local
234 std::vector<BufferInvalidationMessage> temp(avail); in BufferInvalidationListener()
235 if (avail > 0) { in BufferInvalidationListener()
236 mBufferInvalidationQueue->read(temp.data(), avail); in BufferInvalidationListener()
245 size_t avail = std::min( in getInvalidations() local
247 if (avail > 0) { in getInvalidations()
248 std::vector<BufferInvalidationMessage> temp(avail); in getInvalidations()
249 if (mBufferInvalidationQueue->read(temp.data(), avail)) { in getInvalidations()
250 messages.reserve(messages.size() + avail); in getInvalidations()