Searched refs:SlabAllocator (Results 1 – 12 of 12) sorted by relevance
/device/google/contexthub/firmware/inc/ |
D | slab.h | 22 struct SlabAllocator; 28 struct SlabAllocator* slabAllocatorNew(uint32_t itemSz, uint32_t itemAlign, uint32_t numItems); 29 void slabAllocatorDestroy(struct SlabAllocator *allocator); 30 void* slabAllocatorAlloc(struct SlabAllocator *allocator); 31 void slabAllocatorFree(struct SlabAllocator *allocator, void *ptr); 33 void* slabAllocatorGetNth(struct SlabAllocator *allocator, uint32_t idx); // -> pointer or NULL if … 34 uint32_t slabAllocatorGetIndex(struct SlabAllocator *allocator, void *ptr); // -> index or -1 if in… 35 uint32_t slabAllocatorGetNumItems(struct SlabAllocator *allocator); // simply say hwo many items it…
|
D | syscallDo.h | 241 static inline struct SlabAllocator* eOsSlabAllocatorNew(uint32_t itemSz, uint32_t itemAlign, uint32… in eOsSlabAllocatorNew() 243 …return (struct SlabAllocator*)syscallDo3P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_O… in eOsSlabAllocatorNew() 246 static inline void eOsSlabAllocatorDestroy(struct SlabAllocator* allocator) in eOsSlabAllocatorDestroy() 251 static inline void* eOsSlabAllocatorAlloc(struct SlabAllocator* allocator) in eOsSlabAllocatorAlloc() 256 static inline void eOsSlabAllocatorFree(struct SlabAllocator* allocator, void* ptrP) in eOsSlabAllocatorFree()
|
D | osApi.h | 132 void osApiExport(struct SlabAllocator *mainSlubAllocator);
|
/device/google/contexthub/firmware/src/ |
D | slab.c | 22 struct SlabAllocator { struct 29 struct SlabAllocator* slabAllocatorNew(uint32_t itemSz, uint32_t itemAlign, uint32_t numItems) in slabAllocatorNew() argument 31 struct SlabAllocator *allocator; in slabAllocatorNew() 42 allocator = (struct SlabAllocator*)heapAlloc(sizeof(struct SlabAllocator) + bitsetSz + dataSz); in slabAllocatorNew() 52 void slabAllocatorDestroy(struct SlabAllocator *allocator) in slabAllocatorDestroy() 57 void* slabAllocatorAlloc(struct SlabAllocator *allocator) in slabAllocatorAlloc() 67 void slabAllocatorFree(struct SlabAllocator *allocator, void* ptrP) in slabAllocatorFree() 80 void* slabAllocatorGetNth(struct SlabAllocator *allocator, uint32_t idx) in slabAllocatorGetNth() 88 uint32_t slabAllocatorGetIndex(struct SlabAllocator *allocator, void* ptrP) in slabAllocatorGetIndex() 100 uint32_t slabAllocatorGetNumItems(struct SlabAllocator *allocator) in slabAllocatorGetNumItems()
|
D | osApi.c | 30 static struct SlabAllocator *mSlabAllocator; 238 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *); in osExpApiSlabDestroy() 245 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *); in osExpApiSlabAlloc() 252 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *); in osExpApiSlabFree() 460 void osApiExport(struct SlabAllocator *mainSlubAllocator) in osApiExport()
|
D | eventQ.c | 40 struct SlabAllocator *evtsSlab; 49 …struct SlabAllocator *slab = slabAllocatorNew(sizeof(struct EvtRecord), alignof(struct EvtRecord),… in evtQueueAlloc()
|
D | timer.c | 45 static struct SlabAllocator *mInternalEvents;
|
D | sensors.c | 79 static struct SlabAllocator *mInternalEvents; 80 static struct SlabAllocator *mCliSensMatrix;
|
D | nanohubCommand.c | 96 static struct SlabAllocator *mEventSlab;
|
D | seos.c | 127 static struct SlabAllocator* mMiscInternalThingsSlab;
|
/device/google/contexthub/firmware/src/drivers/orientation/ |
D | orientation.c | 164 static struct SlabAllocator *mDataSlab;
|
/device/google/contexthub/firmware/src/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 424 struct SlabAllocator *mDataSlab;
|