Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/core/
DsimpleQ.c36 #define SIMPLE_QUEUE_IDX_NONE (SIMPLE_QUEUE_MAX_ELEMENTS + 1) macro
64 sq->head = SIMPLE_QUEUE_IDX_NONE; in simpleQueueAlloc()
65 sq->tail = SIMPLE_QUEUE_IDX_NONE; in simpleQueueAlloc()
74 simpleQueueGetNth(sq, numEntries - 1)->nextIdx = SIMPLE_QUEUE_IDX_NONE; in simpleQueueAlloc()
85 for (i = sq->head; i != SIMPLE_QUEUE_IDX_NONE; i = cur->nextIdx) { in simpleQueueDestroy()
98 if (!sq || sq->head == SIMPLE_QUEUE_IDX_NONE) in simpleQueueDequeue()
106 sq->tail = SIMPLE_QUEUE_IDX_NONE; in simpleQueueDequeue()
120 uint32_t idx, prev = SIMPLE_QUEUE_IDX_NONE; in simpleQueueAllocWithDiscard()
122 for (idx = sq->head; idx != SIMPLE_QUEUE_IDX_NONE; prev=idx, idx = cur->nextIdx) { in simpleQueueAllocWithDiscard()
132 if (prev == SIMPLE_QUEUE_IDX_NONE) in simpleQueueAllocWithDiscard()
[all …]