Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/core/
Dslab.c59 int32_t itemIdx = atomicBitsetFindClearAndSet(allocator->bitset); in slabAllocatorAlloc() local
61 if (itemIdx < 0) in slabAllocatorAlloc()
64 return allocator->dataChunks + allocator->itemSz * itemIdx; in slabAllocatorAlloc()
71 uint32_t itemIdx = itemOffset / allocator->itemSz; in slabAllocatorFree() local
74 …% allocator->itemSz) || (itemIdx >= atomicBitsetGetNumBits(allocator->bitset)) || !atomicBitsetGet… in slabAllocatorFree()
77 atomicBitsetClearBit(allocator->bitset, itemIdx); in slabAllocatorFree()
92 uint32_t itemIdx = itemOffset / allocator->itemSz; in slabAllocatorGetIndex() local
94 …% allocator->itemSz) || (itemIdx >= atomicBitsetGetNumBits(allocator->bitset)) || !atomicBitsetGet… in slabAllocatorGetIndex()
97 return itemIdx; in slabAllocatorGetIndex()