Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/core/
Dslab.c70 uint32_t itemOffset = ptr - allocator->dataChunks; in slabAllocatorFree() local
71 uint32_t itemIdx = itemOffset / allocator->itemSz; in slabAllocatorFree()
74 …if ((itemOffset % allocator->itemSz) || (itemIdx >= atomicBitsetGetNumBits(allocator->bitset)) || … in slabAllocatorFree()
91 uint32_t itemOffset = ptr - allocator->dataChunks; in slabAllocatorGetIndex() local
92 uint32_t itemIdx = itemOffset / allocator->itemSz; in slabAllocatorGetIndex()
94 …if ((itemOffset % allocator->itemSz) || (itemIdx >= atomicBitsetGetNumBits(allocator->bitset)) || … in slabAllocatorGetIndex()