Home
last modified time | relevance | path

Searched refs:headSize (Results 1 – 2 of 2) sorted by relevance

/xnu-11215/iokit/System/
H A DIODataQueueDispatchSourceShared.h313 uint32_t headSize = 0; in Peek() local
322 if (os_add_overflow(3, callerDataSize, &headSize)) { in Peek()
325 headSize &= ~3U; in Peek()
333 (headOffset + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX - headSize) || in Peek()
334 (headOffset + headSize + DATA_QUEUE_ENTRY_HEADER_SIZE > queueSize)) { in Peek()
400 uint32_t headSize = 0; in DequeueWithCoalesce() local
409 if (os_add_overflow(3, callerDataSize, &headSize)) { in DequeueWithCoalesce()
412 headSize &= ~3U; in DequeueWithCoalesce()
420 (headOffset + headSize + DATA_QUEUE_ENTRY_HEADER_SIZE > queueSize)) { in DequeueWithCoalesce()
439 if ((headSize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in DequeueWithCoalesce()
[all …]
/xnu-11215/iokit/Kernel/
H A DIOSharedDataQueue.cpp187 UInt32 headSize = 0; in peek() local
196 headSize = head->size; in peek()
204 (headOffset + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX - headSize) || in peek()
205 (headOffset + headSize + DATA_QUEUE_ENTRY_HEADER_SIZE > queueSize)) { in peek()
334 UInt32 headSize = 0; in dequeue() local
342 headSize = head->size; in dequeue()
349 (headOffset + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX - headSize) || in dequeue()
350 (headOffset + headSize + DATA_QUEUE_ENTRY_HEADER_SIZE > queueSize)) { in dequeue()