Searched refs:SlabAllocator (Results 1 – 19 of 19) sorted by relevance
/device/google/contexthub/firmware/os/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 | 200 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()
|
D | osApi.h | 125 void osApiExport(struct SlabAllocator *mainSlubAllocator);
|
/device/google/contexthub/firmware/os/core/ |
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 | 33 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()
|
D | eventQ.c | 47 struct SlabAllocator *evtsSlab; 66 struct SlabAllocator *slab = slabAllocatorNew(sizeof(struct EvtRecord), in evtQueueAlloc()
|
D | timer.c | 56 static struct SlabAllocator *mInternalEvents;
|
D | sensors.c | 34 static struct SlabAllocator *mInternalEvents; 35 static struct SlabAllocator *mCliSensMatrix;
|
D | seos.c | 57 static struct SlabAllocator* mMiscInternalThingsSlab;
|
D | nanohubCommand.c | 101 static struct SlabAllocator *mEventSlab;
|
/device/google/contexthub/firmware/os/drivers/vsync/ |
D | vsync.c | 74 struct SlabAllocator *evtSlab;
|
/device/google/contexthub/firmware/os/drivers/st_acc44/ |
D | st_acc44.c | 233 struct SlabAllocator *accDataSlab;
|
/device/google/contexthub/firmware/os/drivers/st_lps22hb/ |
D | lps22hb.c | 158 struct SlabAllocator *baroSlab;
|
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/ |
D | bosch_bmp280.c | 118 struct SlabAllocator *evtSlab;
|
/device/google/contexthub/firmware/os/drivers/st_mag40/ |
D | st_mag40.c | 211 struct SlabAllocator *magDataSlab;
|
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 179 static struct SlabAllocator *mDataSlab;
|
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/ |
D | st_lsm6dsm.c | 875 struct SlabAllocator *mDataSlabThreeAxis; 877 struct SlabAllocator *mDataSlabOneAxis;
|
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/ |
D | invensense_icm40600.c | 668 struct SlabAllocator *mDataSlab;
|
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 579 struct SlabAllocator *mDataSlab;
|