Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/core/
DsimpleQ.c25 uint32_t nextIdx : 31; member
72 simpleQueueGetNth(sq, i)->nextIdx = i + 1; 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()
104 sq->head = e->nextIdx; in simpleQueueDequeue()
110 e->nextIdx = sq->freeHead; in simpleQueueDequeue()
122 for (idx = sq->head; idx != SIMPLE_QUEUE_IDX_NONE; prev=idx, idx = cur->nextIdx) { in simpleQueueAllocWithDiscard()
133 sq->head = cur->nextIdx; in simpleQueueAllocWithDiscard()
135 simpleQueueGetNth(sq, prev)->nextIdx = cur->nextIdx; in simpleQueueAllocWithDiscard()
156 sq->freeHead = e->nextIdx; in simpleQueueEnqueue()
[all …]