Lines Matching refs:dataSize
298 uint32_t dataSize; in Peek() local
340 dataSize = entry->size; in Peek()
341 if (os_add_overflow(3, callerDataSize, &dataSize)) { in Peek()
344 dataSize &= ~3U; in Peek()
346 if ((dataSize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in Peek()
347 (dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE > queueSize)) { in Peek()
384 uint32_t dataSize = 0; in DequeueWithCoalesce() local
426 if (os_add_overflow(callerDataSize, 3, &dataSize)) { in DequeueWithCoalesce()
429 dataSize &= ~3U; in DequeueWithCoalesce()
430 if ((dataSize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in DequeueWithCoalesce()
431 (dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE > queueSize)) { in DequeueWithCoalesce()
434 newHeadOffset = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE; in DequeueWithCoalesce()
498 uint32_t dataSize; in EnqueueWithCoalesce() local
513 if (os_add_overflow(callerDataSize, 3, &dataSize)) { in EnqueueWithCoalesce()
516 dataSize &= ~3U; in EnqueueWithCoalesce()
519 if (os_add_overflow(DATA_QUEUE_ENTRY_HEADER_SIZE, dataSize, &entrySize)) { in EnqueueWithCoalesce()
559 ((IODataQueueEntry *)((uintptr_t)dataQueue->queue + tail))->size = dataSize; in EnqueueWithCoalesce()
629 uint32_t dataSize; in CanEnqueueData() local
643 if (os_add_overflow(callerDataSize, 3, &dataSize)) { in CanEnqueueData()
646 dataSize &= ~3U; in CanEnqueueData()
649 if (os_add_overflow(DATA_QUEUE_ENTRY_HEADER_SIZE, dataSize, &entrySize)) { in CanEnqueueData()