Lines Matching refs:kMemoryAlign
58 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()
211 cur->start * kMemoryAlign, cur->size * kMemoryAlign); in dealloc()
239 freed->start * kMemoryAlign, freed->size * kMemoryAlign); in dealloc()
275 if (!cur->free) size += cur->size * kMemoryAlign; in dump_l()