Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/inc/
Dslab.h22 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…
DsyscallDo.h241 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()
DosApi.h132 void osApiExport(struct SlabAllocator *mainSlubAllocator);
/device/google/contexthub/firmware/src/
Dslab.c22 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()
DosApi.c30 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()
DeventQ.c40 struct SlabAllocator *evtsSlab;
49 …struct SlabAllocator *slab = slabAllocatorNew(sizeof(struct EvtRecord), alignof(struct EvtRecord),… in evtQueueAlloc()
Dtimer.c45 static struct SlabAllocator *mInternalEvents;
Dsensors.c79 static struct SlabAllocator *mInternalEvents;
80 static struct SlabAllocator *mCliSensMatrix;
DnanohubCommand.c96 static struct SlabAllocator *mEventSlab;
Dseos.c127 static struct SlabAllocator* mMiscInternalThingsSlab;
/device/google/contexthub/firmware/src/drivers/orientation/
Dorientation.c164 static struct SlabAllocator *mDataSlab;
/device/google/contexthub/firmware/src/drivers/bosch_bmi160/
Dbosch_bmi160.c424 struct SlabAllocator *mDataSlab;