Searched refs:simpleQueueGetNth (Results 1 – 1 of 1) sorted by relevance
/device/google/contexthub/firmware/os/core/ |
D | simpleQ.c | 39 static inline struct SimpleQueueEntry *simpleQueueGetNth(struct SimpleQueue* sq, uint32_t n) in simpleQueueGetNth() function 72 simpleQueueGetNth(sq, i)->nextIdx = i + 1; in simpleQueueAlloc() 74 simpleQueueGetNth(sq, numEntries - 1)->nextIdx = SIMPLE_QUEUE_IDX_NONE; in simpleQueueAlloc() 86 cur = simpleQueueGetNth(sq, i); in simpleQueueDestroy() 102 e = simpleQueueGetNth(sq, head); in simpleQueueDequeue() 123 cur = simpleQueueGetNth(sq, idx); in simpleQueueAllocWithDiscard() 135 simpleQueueGetNth(sq, prev)->nextIdx = cur->nextIdx; in simpleQueueAllocWithDiscard() 155 e = simpleQueueGetNth(sq, sq->freeHead); in simpleQueueEnqueue() 172 simpleQueueGetNth(sq, sq->tail)->nextIdx = simpleQueueGetIdx(sq, e); in simpleQueueEnqueue()
|