Home
last modified time | relevance | path

Searched refs:itemSz (Results 1 – 4 of 4) sorted by relevance

/device/google/contexthub/firmware/os/core/
Dslab.c24 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 …]
DosApi.c245 uint32_t itemSz = va_arg(args, uint32_t); in osExpApiSlabNew() local
249 *retValP = (uintptr_t)slabAllocatorNew(itemSz, itemAlign, numItems); in osExpApiSlabNew()
/device/google/contexthub/firmware/os/inc/
Dslab.h28 struct SlabAllocator* slabAllocatorNew(uint32_t itemSz, uint32_t itemAlign, uint32_t numItems);
DsyscallDo.h200 static inline struct SlabAllocator* eOsSlabAllocatorNew(uint32_t itemSz, uint32_t itemAlign, uint32… in eOsSlabAllocatorNew() argument
202 …IN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SLAB, SYSCALL_OS_MAIN_SLAB_NEW), itemSz, itemAlign, numIte… in eOsSlabAllocatorNew()