Home
last modified time | relevance | path

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

/system/libhidl/libhidlcache/
DMemoryDealer.cpp58 static size_t getAllocationAlignment() { return kMemoryAlign; } in getAllocationAlignment()
78 static const int kMemoryAlign; member in android::hardware::SimpleBestFitAllocator
107 const int SimpleBestFitAllocator::kMemoryAlign = 32; member in android::hardware::SimpleBestFitAllocator
113 chunk_t* node = new chunk_t(0, mHeapSize / kMemoryAlign); in SimpleBestFitAllocator()
155 size = (size + kMemoryAlign - 1) / kMemoryAlign; in alloc()
162 if (flags & PAGE_ALIGNED) extra = (-cur->start & ((pagesize / kMemoryAlign) - 1)); in alloc()
182 extra = (-free_chunk->start & ((pagesize / kMemoryAlign) - 1)); in alloc()
190 (flags & PAGE_ALIGNED) && ((free_chunk->start * kMemoryAlign) & (pagesize - 1)), in alloc()
199 return (free_chunk->start) * kMemoryAlign; in alloc()
205 start = start / kMemoryAlign; in dealloc()
[all …]