Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/core/
DsimpleQ.c24 struct SimpleQueueEntry { struct
39 static inline struct SimpleQueueEntry *simpleQueueGetNth(struct SimpleQueue* sq, uint32_t n) in simpleQueueGetNth() argument
41 return (struct SimpleQueueEntry*)(sq->data + n * sq->entrySz); in simpleQueueGetNth()
44 static inline uint32_t simpleQueueGetIdx(struct SimpleQueue* sq, const struct SimpleQueueEntry *e) in simpleQueueGetIdx()
51 …uint32_t i, sz = sizeof(struct SimpleQueue) + (sizeof(struct SimpleQueueEntry) + entrySz) * numEnt… in simpleQueueAlloc()
66 sq->entrySz = entrySz + sizeof(struct SimpleQueueEntry); in simpleQueueAlloc()
82 struct SimpleQueueEntry *cur; in simpleQueueDestroy()
95 struct SimpleQueueEntry *e; in simpleQueueDequeue()
108 memcpy(data, e->data, sq->entrySz - sizeof(struct SimpleQueueEntry)); in simpleQueueDequeue()
117 static struct SimpleQueueEntry* simpleQueueAllocWithDiscard(struct SimpleQueue* sq) in simpleQueueAllocWithDiscard()
[all …]