Searched refs:itemSz (Results 1 – 4 of 4) sorted by relevance
/device/google/contexthub/firmware/src/ |
D | slab.c | 24 uint32_t itemSz; member 29 struct SlabAllocator* slabAllocatorNew(uint32_t itemSz, uint32_t itemAlign, uint32_t numItems) in slabAllocatorNew() argument 38 itemSz = ((itemSz + itemAlign - 1) / itemAlign) * itemAlign; in slabAllocatorNew() 39 dataSz = itemSz * numItems; in slabAllocatorNew() 44 allocator->itemSz = itemSz; in slabAllocatorNew() 64 return allocator->dataChunks + allocator->itemSz * itemIdx; in slabAllocatorAlloc() 71 uint32_t itemIdx = itemOffset / allocator->itemSz; in slabAllocatorFree() 74 …if ((itemOffset % allocator->itemSz) || (itemIdx >= atomicBitsetGetNumBits(allocator->bitset)) || … in slabAllocatorFree() 85 return allocator->dataChunks + allocator->itemSz * idx; in slabAllocatorGetNth() 92 uint32_t itemIdx = itemOffset / allocator->itemSz; in slabAllocatorGetIndex() [all …]
|
D | osApi.c | 229 uint32_t itemSz = va_arg(args, uint32_t); in osExpApiSlabNew() local 233 *retValP = (uintptr_t)slabAllocatorNew(itemSz, itemAlign, numItems); in osExpApiSlabNew()
|
/device/google/contexthub/firmware/inc/ |
D | slab.h | 28 struct SlabAllocator* slabAllocatorNew(uint32_t itemSz, uint32_t itemAlign, uint32_t numItems);
|
D | syscallDo.h | 241 static inline struct SlabAllocator* eOsSlabAllocatorNew(uint32_t itemSz, uint32_t itemAlign, uint32… in eOsSlabAllocatorNew() argument 243 …IN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SLAB, SYSCALL_OS_MAIN_SLAB_NEW), itemSz, itemAlign, numIte… in eOsSlabAllocatorNew()
|