Lines Matching refs:bufferFd

136 …Impl(int ionFd, size_t capacity, int bufferFd, ion_user_handle_t buffer, C2Allocator::id_t id, int…  in Impl()  argument
138 mHandle(bufferFd, capacity), in Impl()
165 static Impl *Import(int ionFd, size_t capacity, int bufferFd, C2Allocator::id_t id);
238 mHandle.bufferFd()); in unmap()
344 ImplV2(int ionFd, size_t capacity, int bufferFd, C2Allocator::id_t id, int err) in ImplV2() argument
345 : Impl(ionFd, capacity, bufferFd, -1 /*buffer*/, id, err) { in ImplV2()
351 return mHandle.bufferFd(); in ionHandle()
358 *base = mmap(nullptr, mapSize, prot, flags, mHandle.bufferFd(), mapOffset); in mapInternal()
361 mapSize, prot, flags, mHandle.bufferFd(), mapOffset, errno); in mapInternal()
373 C2AllocationIon::Impl *C2AllocationIon::Impl::Import(int ionFd, size_t capacity, int bufferFd, in Import() argument
378 ret = ion_import(ionFd, bufferFd, &buffer); in Import()
379 return new Impl(ionFd, capacity, bufferFd, buffer, id, ret); in Import()
381 return new ImplV2(ionFd, capacity, bufferFd, id, ret); in Import()
387 int bufferFd = -1; in Alloc() local
419 ret = ion_share(ionFd, buffer, &bufferFd); in Alloc()
426 return new Impl(ionFd, allocSize - sPadding, bufferFd, buffer, id, ret); in Alloc()
428 ret = ion_alloc_fd(ionFd, allocSize, align, heapMask, flags, &bufferFd); in Alloc()
431 ionFd, allocSize, align, heapMask, flags, ret, bufferFd); in Alloc()
434 return new ImplV2(ionFd, allocSize - sPadding, bufferFd, id, ret); in Alloc()
620 = std::make_shared<C2AllocationIon>(dup(mIonFd), h->size(), h->bufferFd(), getId()); in priorLinearAllocation()