Home
last modified time | relevance | path

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

/hardware/msm7k/libgralloc-qsd8k/
Dallocator.cpp23 const int SimpleBestFitAllocator::kMemoryAlign = 32; member in SimpleBestFitAllocator
49 chunk_t* node = new chunk_t(0, mHeapSize / kMemoryAlign); in setSize()
84 size = (size + kMemoryAlign-1) / kMemoryAlign; in alloc()
90 int extra = ( -cur->start & ((pagesize/kMemoryAlign)-1) ) ; in alloc()
109 int extra = ( -free_chunk->start & ((pagesize/kMemoryAlign)-1) ) ; in alloc()
116 LOGE_IF(((free_chunk->start*kMemoryAlign)&(pagesize-1)), in alloc()
126 return (free_chunk->start)*kMemoryAlign; in alloc()
133 start = start / kMemoryAlign; in dealloc()
139 cur->start*kMemoryAlign, cur->size*kMemoryAlign); in dealloc()
158 freed->start * kMemoryAlign, freed->size * kMemoryAlign); in dealloc()
Dallocator.h124 static const int kMemoryAlign; variable
/hardware/msm7k/libgralloc/
Dallocator.cpp23 const int SimpleBestFitAllocator::kMemoryAlign = 32; member in SimpleBestFitAllocator
49 chunk_t* node = new chunk_t(0, mHeapSize / kMemoryAlign); in setSize()
84 size = (size + kMemoryAlign-1) / kMemoryAlign; in alloc()
90 int extra = ( -cur->start & ((pagesize/kMemoryAlign)-1) ) ; in alloc()
109 int extra = ( -free_chunk->start & ((pagesize/kMemoryAlign)-1) ) ; in alloc()
116 LOGE_IF(((free_chunk->start*kMemoryAlign)&(pagesize-1)), in alloc()
126 return (free_chunk->start)*kMemoryAlign; in alloc()
133 start = start / kMemoryAlign; in dealloc()
139 cur->start*kMemoryAlign, cur->size*kMemoryAlign); in dealloc()
158 freed->start * kMemoryAlign, freed->size * kMemoryAlign); in dealloc()
Dallocator.h123 static const int kMemoryAlign; variable