Lines Matching refs:chunk_t
61 struct chunk_t { struct in android::hardware::SimpleBestFitAllocator
62 chunk_t(size_t start, size_t size) : start(start), size(size), free(1) {} in chunk_t() function
67 using List = std::list<chunk_t*>;
68 using Iterator = std::list<chunk_t*>::iterator;
69 using IteratorConst = std::list<chunk_t*>::const_iterator;
74 chunk_t* dealloc(size_t start);
113 chunk_t* node = new chunk_t(0, mHeapSize / kMemoryAlign); in SimpleBestFitAllocator()
119 chunk_t* removed = mList.front(); in ~SimpleBestFitAllocator()
144 chunk_t const* const freed = dealloc(offset); in deallocate()
160 chunk_t* cur = *p; in alloc()
175 chunk_t* free_chunk = *free_chunk_p; in alloc()
184 chunk_t* split = new chunk_t(free_chunk->start, extra); in alloc()
195 chunk_t* split = new chunk_t(free_chunk->start + free_chunk->size, tail_free); in alloc()
204 SimpleBestFitAllocator::chunk_t* SimpleBestFitAllocator::dealloc(size_t start) { in dealloc()
208 chunk_t* cur = *pos; in dealloc()
214 chunk_t* freed = cur; in dealloc()
219 chunk_t* const p = *pos; in dealloc()
273 chunk_t const* cur = *pos; in dump_l()