Searched refs:entrySz (Results 1 – 2 of 2) sorted by relevance
/device/google/contexthub/firmware/src/ |
D | simpleQ.c | 32 uint32_t head, tail, num, freeHead, entrySz; member 41 return (struct SimpleQueueEntry*)(sq->data + n * sq->entrySz); in simpleQueueGetNth() 46 return (((const uint8_t*)e) - sq->data) / sq->entrySz; in simpleQueueGetIdx() 49 struct SimpleQueue* simpleQueueAlloc(uint32_t numEntries, uint32_t entrySz, SimpleQueueForciblyDisc… in simpleQueueAlloc() argument 51 …uint32_t i, sz = sizeof(struct SimpleQueue) + (sizeof(struct SimpleQueueEntry) + entrySz) * numEnt… in simpleQueueAlloc() 66 sq->entrySz = entrySz + sizeof(struct SimpleQueueEntry); in simpleQueueAlloc() 108 memcpy(data, e->data, sq->entrySz - sizeof(struct SimpleQueueEntry)); in simpleQueueDequeue() 150 if (length > sq->entrySz - sizeof(struct SimpleQueueEntry)) in simpleQueueEnqueue()
|
/device/google/contexthub/firmware/inc/ |
D | simpleQ.h | 31 struct SimpleQueue* simpleQueueAlloc(uint32_t numEntries, uint32_t entrySz, SimpleQueueForciblyDisc…
|