Searched refs:cur (Results 1 – 3 of 3) sorted by relevance
/device/google/contexthub/firmware/src/ |
D | simpleQ.c | 82 struct SimpleQueueEntry *cur; in simpleQueueDestroy() local 85 for (i = sq->head; i != SIMPLE_QUEUE_IDX_NONE; i = cur->nextIdx) { in simpleQueueDestroy() 86 cur = simpleQueueGetNth(sq, i); in simpleQueueDestroy() 87 discard(cur->data, true); in simpleQueueDestroy() 119 struct SimpleQueueEntry* cur = NULL; in simpleQueueAllocWithDiscard() local 122 for (idx = sq->head; idx != SIMPLE_QUEUE_IDX_NONE; prev=idx, idx = cur->nextIdx) { in simpleQueueAllocWithDiscard() 123 cur = simpleQueueGetNth(sq, idx); in simpleQueueAllocWithDiscard() 125 if (!cur->discardable) in simpleQueueAllocWithDiscard() 129 if (sq->discardCbk(cur->data, false)) { in simpleQueueAllocWithDiscard() 133 sq->head = cur->nextIdx; in simpleQueueAllocWithDiscard() [all …]
|
D | seos.c | 272 struct TaskList *cur = &task->list; in osTaskListRemoveTask() local 273 TaskIndex left_idx = cur->prev; in osTaskListRemoveTask() 274 TaskIndex right_idx = cur->next; in osTaskListRemoveTask() 277 cur->prev = cur->next = NO_NODE; in osTaskListRemoveTask() 288 struct TaskList *cur = &task->list; in osTaskListAddTail() local 292 cur->prev = last_idx; in osTaskListAddTail() 293 cur->next = NO_NODE; in osTaskListAddTail()
|
/device/google/contexthub/firmware/inc/ |
D | isr.h | 59 struct link_t *cur, *tmp; in dispatchIsr() local 63 list_iterate(&interrupt->isrs, cur, tmp) { in dispatchIsr() 64 struct ChainedIsr *curIsr = container_of(cur, struct ChainedIsr, node); in dispatchIsr() 78 struct link_t *cur, *tmp; in unchainIsrAll() local 80 list_iterate(&interrupt->isrs, cur, tmp) { in unchainIsrAll() 81 struct ChainedIsr *curIsr = container_of(cur, struct ChainedIsr, node); in unchainIsrAll()
|