Lines Matching refs:headOffset
299 uint32_t headOffset; in Peek() local
308 headOffset = __c11_atomic_load((_Atomic uint32_t *)&dataQueue->head, __ATOMIC_RELAXED); in Peek()
311 if (headOffset != tailOffset) { in Peek()
316 if (headOffset > queueSize) { in Peek()
320 head = (IODataQueueEntry *)((uintptr_t)dataQueue->queue + headOffset); in Peek()
331 if ((headOffset > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in Peek()
332 (headOffset + DATA_QUEUE_ENTRY_HEADER_SIZE > queueSize) || 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()
385 uint32_t headOffset = 0; in DequeueWithCoalesce() local
395 headOffset = __c11_atomic_load((_Atomic uint32_t *)&dataQueue->head, __ATOMIC_RELAXED); in DequeueWithCoalesce()
398 if (headOffset != tailOffset) { in DequeueWithCoalesce()
403 if (headOffset > queueSize) { in DequeueWithCoalesce()
407 head = (IODataQueueEntry *)((uintptr_t)dataQueue->queue + headOffset); in DequeueWithCoalesce()
416 if ((headOffset > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) || in DequeueWithCoalesce()
417 (headOffset + DATA_QUEUE_ENTRY_HEADER_SIZE > queueSize) || in DequeueWithCoalesce()
419 (headOffset + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX - headSize) || in DequeueWithCoalesce()
420 (headOffset + headSize + DATA_QUEUE_ENTRY_HEADER_SIZE > queueSize)) { in DequeueWithCoalesce()
440 (headSize + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX - headOffset) || in DequeueWithCoalesce()
441 (headSize + DATA_QUEUE_ENTRY_HEADER_SIZE + headOffset > queueSize)) { in DequeueWithCoalesce()
444 newHeadOffset = headOffset + headSize + DATA_QUEUE_ENTRY_HEADER_SIZE; in DequeueWithCoalesce()