Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/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.h200 static inline struct SlabAllocator* eOsSlabAllocatorNew(uint32_t itemSz, uint32_t itemAlign, uint32… in eOsSlabAllocatorNew()
202 …return (struct SlabAllocator*)syscallDo3P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_O… in eOsSlabAllocatorNew()
205 static inline void eOsSlabAllocatorDestroy(struct SlabAllocator* allocator) in eOsSlabAllocatorDestroy()
210 static inline void* eOsSlabAllocatorAlloc(struct SlabAllocator* allocator) in eOsSlabAllocatorAlloc()
215 static inline void eOsSlabAllocatorFree(struct SlabAllocator* allocator, void* ptrP) in eOsSlabAllocatorFree()
DosApi.h125 void osApiExport(struct SlabAllocator *mainSlubAllocator);
/device/google/contexthub/firmware/os/core/
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.c33 static struct SlabAllocator *mSlabAllocator;
254 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *); in osExpApiSlabDestroy()
261 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *); in osExpApiSlabAlloc()
268 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *); in osExpApiSlabFree()
488 void osApiExport(struct SlabAllocator *mainSlubAllocator) in osApiExport()
DeventQ.c47 struct SlabAllocator *evtsSlab;
66 struct SlabAllocator *slab = slabAllocatorNew(sizeof(struct EvtRecord), in evtQueueAlloc()
Dtimer.c56 static struct SlabAllocator *mInternalEvents;
Dsensors.c34 static struct SlabAllocator *mInternalEvents;
35 static struct SlabAllocator *mCliSensMatrix;
Dseos.c57 static struct SlabAllocator* mMiscInternalThingsSlab;
DnanohubCommand.c101 static struct SlabAllocator *mEventSlab;
/device/google/contexthub/firmware/os/drivers/vsync/
Dvsync.c74 struct SlabAllocator *evtSlab;
/device/google/contexthub/firmware/os/drivers/st_acc44/
Dst_acc44.c233 struct SlabAllocator *accDataSlab;
/device/google/contexthub/firmware/os/drivers/st_lps22hb/
Dlps22hb.c158 struct SlabAllocator *baroSlab;
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/
Dbosch_bmp280.c118 struct SlabAllocator *evtSlab;
/device/google/contexthub/firmware/os/drivers/st_mag40/
Dst_mag40.c211 struct SlabAllocator *magDataSlab;
/device/google/contexthub/firmware/os/drivers/orientation/
Dorientation.c179 static struct SlabAllocator *mDataSlab;
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/
Dst_lsm6dsm.c875 struct SlabAllocator *mDataSlabThreeAxis;
877 struct SlabAllocator *mDataSlabOneAxis;
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/
Dinvensense_icm40600.c668 struct SlabAllocator *mDataSlab;
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/
Dbosch_bmi160.c579 struct SlabAllocator *mDataSlab;