Lines Matching refs:ionFd
136 …C2AllocationIon(int ionFd, size_t size, size_t align, unsigned heapMask, unsigned flags, C2Allocat…
137 C2AllocationIon(int ionFd, size_t size, int shareFd, C2Allocator::id_t id);
165 …Impl(int ionFd, size_t capacity, int bufferFd, ion_user_handle_t buffer, C2Allocator::id_t id, int… in Impl() argument
166 : mIonFd(ionFd), in Impl()
194 static Impl *Import(int ionFd, size_t capacity, int bufferFd, C2Allocator::id_t id) { in Import() argument
196 int ret = ion_import(ionFd, bufferFd, &buffer); in Import()
197 return new Impl(ionFd, capacity, bufferFd, buffer, id, ret); in Import()
212 …static Impl *Alloc(int ionFd, size_t size, size_t align, unsigned heapMask, unsigned flags, C2Allo… in Alloc() argument
216 int ret = ion_alloc(ionFd, alignedSize, align, heapMask, flags, &buffer); in Alloc()
219 ionFd, alignedSize, align, heapMask, flags, ret, buffer); in Alloc()
222 ret = ion_share(ionFd, buffer, &bufferFd); in Alloc()
224 ion_free(ionFd, buffer); in Alloc()
228 return new Impl(ionFd, alignedSize, bufferFd, buffer, id, ret); 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()
407 C2AllocationIon::C2AllocationIon(int ionFd, size_t size, int shareFd, C2Allocator::id_t id) in C2AllocationIon() argument
409 mImpl(Impl::Import(ionFd, size, shareFd, id)) { } in C2AllocationIon()