Lines Matching refs:quantum
478 android::base::unique_fd bufferFd, size_t bufferSize, size_t quantum);
484 inline size_t quantum() const;
670 if (mDesc->getQuantum() != quantum()) { in initMemory()
746 size_t bufferSize, size_t quantum) { in MessageQueueBase() argument
748 if (numElementsInQueue > SIZE_MAX / quantum) { in MessageQueueBase()
750 std::to_string(quantum) + in MessageQueueBase()
758 if (bufferFd != -1 && numElementsInQueue * quantum > bufferSize) { in MessageQueueBase()
761 std::to_string(numElementsInQueue * quantum) + ")."); in MessageQueueBase()
769 size_t kQueueSizeBytes = numElementsInQueue * quantum; in MessageQueueBase()
848 Descriptor(grantors, mqHandle, quantum)); in MessageQueueBase()
851 kQueueSizeBytes, mqHandle, quantum, configureEventFlagWord)); in MessageQueueBase()
894 tx.copyToSized(data, 0 /* startIdx */, nMessages, quantum()) && commitWrite(nMessages); in write()
1130 inline size_t MessageQueueBase<MQDescriptorType, T, flavor>::quantum() const { in quantum() function
1170 return availableToWriteBytes(errorDetected, errorMessage) / quantum(); in availableToWrite()
1176 return availableToReadBytes(errorDetected, errorMessage) / quantum(); in availableToRead()
1194 if (writePtr % quantum() != 0) { in beginWrite()
1207 size_t contiguousMessages = (mDesc->getSize() - writeOffset) / quantum(); in beginWrite()
1236 size_t nBytesWritten = nMessages * quantum(); in commitWrite()
1278 tx.copyFromSized(data, 0 /* startIdx */, nMessages, quantum()) && commitRead(nMessages); in read()
1303 if (writePtr % quantum() != 0 || readPtr % quantum() != 0) { in beginRead()
1316 size_t nBytesDesired = nMessages * quantum(); in beginRead()
1329 size_t contiguousMessages = (mDesc->getSize() - readOffset) / quantum(); in beginRead()
1370 size_t nBytesRead = nMessages * quantum(); in commitRead()