Lines Matching refs:head

9 	volatile uint32_t   head;  member
289 return dataQueue && (dataQueue->head != dataQueue->tail); in IsDataAvailable()
308 headOffset = __c11_atomic_load((_Atomic uint32_t *)&dataQueue->head, __ATOMIC_RELAXED); in Peek()
312 IODataQueueEntry * head = NULL; in Peek() local
320 head = (IODataQueueEntry *)((uintptr_t)dataQueue->queue + headOffset); in Peek()
321 callerDataSize = head->size; in Peek()
354 callback(&head->data, callerDataSize); in Peek()
395 headOffset = __c11_atomic_load((_Atomic uint32_t *)&dataQueue->head, __ATOMIC_RELAXED); in DequeueWithCoalesce()
399 IODataQueueEntry * head = NULL; in DequeueWithCoalesce() local
407 head = (IODataQueueEntry *)((uintptr_t)dataQueue->queue + headOffset); in DequeueWithCoalesce()
408 callerDataSize = head->size; in DequeueWithCoalesce()
437 entry = head; in DequeueWithCoalesce()
459 __c11_atomic_store((_Atomic uint32_t *)&dataQueue->head, newHeadOffset, __ATOMIC_RELEASE); in DequeueWithCoalesce()
495 uint32_t head; in EnqueueWithCoalesce() local
511 head = __c11_atomic_load((_Atomic uint32_t *)&dataQueue->head, __ATOMIC_ACQUIRE); in EnqueueWithCoalesce()
524 if (queueSize < tail || queueSize < head) { in EnqueueWithCoalesce()
529 if (tail >= head) { in EnqueueWithCoalesce()
544 } else if (head > entrySize) { // Is there enough room at the beginning? in EnqueueWithCoalesce()
570 if ((head - tail) > entrySize) { in EnqueueWithCoalesce()
589 if (tail != head) { in EnqueueWithCoalesce()
600 head = __c11_atomic_load((_Atomic uint32_t *)&dataQueue->head, __ATOMIC_RELAXED); in EnqueueWithCoalesce()
603 if (tail == head) { in EnqueueWithCoalesce()
627 uint32_t head; in CanEnqueueData() local
641 head = __c11_atomic_load((_Atomic uint32_t *)&dataQueue->head, __ATOMIC_ACQUIRE); in CanEnqueueData()
654 if (queueSize < tail || queueSize < head) { in CanEnqueueData()
658 if (tail >= head) { in CanEnqueueData()
661 uint32_t beginElements = head / entrySize; in CanEnqueueData()
667 uint32_t space = head - tail - 1; in CanEnqueueData()