Lines Matching refs:align
136 …C2AllocationIon(int ionFd, size_t size, size_t align, unsigned heapMask, unsigned flags, C2Allocat…
212 …static Impl *Alloc(int ionFd, size_t size, size_t align, unsigned heapMask, unsigned flags, C2Allo… in Alloc() argument
215 size_t alignedSize = align == 0 ? size : (size + align - 1) & ~(align - 1); in Alloc()
216 int ret = ion_alloc(ionFd, alignedSize, align, heapMask, flags, &buffer); in Alloc()
219 ionFd, alignedSize, align, heapMask, flags, ret, buffer); in Alloc()
402 C2AllocationIon::C2AllocationIon(int ionFd, size_t size, size_t align, in C2AllocationIon() argument
405 mImpl(Impl::Alloc(ionFd, size, align, heapMask, flags, id)) { } in C2AllocationIon()
469 C2MemoryUsage usage, size_t capacity, size_t *align, unsigned *heapMask, unsigned *flags) { in mapUsage() argument
478 res = mUsageMapper(usage, capacity, align, heapMask, flags); in mapUsage()
480 *align = 0; // TODO make this 1 in mapUsage()
486 MapperValue value = std::make_tuple(*align, *heapMask, *flags, res); in mapUsage()
499 std::tie(*align, *heapMask, *flags, res) = value; in mapUsage()
515 size_t align = 0; in newLinearAllocation() local
518 c2_status_t ret = mapUsage(usage, capacity, &align, &heapMask, &flags); in newLinearAllocation()
524 … = std::make_shared<C2AllocationIon>(dup(mIonFd), capacity, align, heapMask, flags, mTraits->id); in newLinearAllocation()