Searched defs:alloc (Results 1 - 23 of 23) sorted by relevance

/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/inc/
H A Dmm_jpeg_ionbuf.h41 struct ion_allocation_data alloc; member in struct:__anon2491
/hardware/google/av/codec2/vndk/bufferpool/vts/
H A Dallocator.cpp32 AllocationDtor(const std::shared_ptr<C2LinearAllocation> &alloc) argument
33 : mAlloc(alloc) {}
42 std::shared_ptr<BufferPoolAllocation> *alloc,
53 *alloc = std::shared_ptr<BufferPoolAllocation>(
55 if (*alloc) {
40 allocate( const std::vector<uint8_t> &params, std::shared_ptr<BufferPoolAllocation> *alloc, size_t *allocSize) argument
/hardware/google/av/codec2/hidl/1.0/utils/
H A DInputSurfaceConnection.cpp171 std::shared_ptr<C2GraphicAllocation> alloc; variable
177 c2_status_t err = mAllocator->priorGraphicAllocation(handle, &alloc);
183 _C2BlockFactory::CreateGraphicBlock(alloc);
/hardware/google/av/codec2/vndk/v4l2/
H A DC2VdaBqBlockPool.cpp91 std::shared_ptr<C2GraphicAllocation> alloc; local
92 c2_status_t err = mAllocator->newGraphicAllocation(width, height, format, usage, &alloc);
96 *block = _C2BlockFactory::CreateGraphicBlock(alloc);
191 std::shared_ptr<C2GraphicAllocation> alloc; local
192 c2_status_t err = mAllocator->priorGraphicAllocation(c2Handle, &alloc);
198 mSlotAllocations[slot] = std::move(alloc);
/hardware/intel/common/libwsbm/src/
H A Dwsbm_driver.h92 struct _ValidateNode *(*alloc) (struct _WsbmVNodeFuncs *, int); member in struct:_WsbmVNodeFuncs
/hardware/qcom/display/msm8084/liboverlay/
H A DoverlayWriteback.cpp49 return alloc(size, isSecure);
52 bool WritebackMem::alloc(uint32_t size, bool isSecure) { function in class:overlay::WritebackMem
/hardware/qcom/display/msm8226/liboverlay/
H A DoverlayWriteback.cpp49 return alloc(size, isSecure);
52 bool WritebackMem::alloc(uint32_t size, bool isSecure) { function in class:overlay::WritebackMem
/hardware/qcom/display/msm8994/liboverlay/
H A DoverlayWriteback.cpp49 return alloc(size, isSecure);
52 bool WritebackMem::alloc(uint32_t size, bool isSecure) { function in class:overlay::WritebackMem
/hardware/google/av/media/sfplugin/
H A DC2OMXNode.cpp218 std::shared_ptr<C2GraphicAllocation> alloc; local
226 c2_status_t err = mAllocator->priorGraphicAllocation(handle, &alloc);
230 block = _C2BlockFactory::CreateGraphicBlock(alloc);
H A DCodec2Buffer.cpp500 std::function<sp<ABuffer>(size_t)> alloc) {
518 buffer = alloc(converter.backBufferSize());
562 const std::shared_ptr<C2Allocator> &alloc)
564 mAlloc(alloc) {
585 std::shared_ptr<C2GraphicAllocation> alloc; local
586 c2_status_t err = mAlloc->priorGraphicAllocation(handle, &alloc);
591 std::shared_ptr<C2GraphicBlock> block = _C2BlockFactory::CreateGraphicBlock(alloc);
609 std::function<sp<ABuffer>(size_t)> alloc) {
631 aBuffer = alloc(converter.backBufferSize());
653 std::function<sp<ABuffer>(size_t)> alloc) {
497 Allocate( const sp<AMessage> &format, const std::shared_ptr<C2GraphicBlock> &block, std::function<sp<ABuffer>(size_t)> alloc) argument
560 GraphicMetadataBuffer( const sp<AMessage> &format, const std::shared_ptr<C2Allocator> &alloc) argument
606 Allocate( const sp<AMessage> &format, const std::shared_ptr<C2Buffer> &buffer, std::function<sp<ABuffer>(size_t)> alloc) argument
651 AllocateEmpty( const sp<AMessage> &format, std::function<sp<ABuffer>(size_t)> alloc) argument
[all...]
H A DCCodecBufferChannel.cpp654 sp<Codec2Buffer> newBuffer = alloc((size_t)capacity);
683 [this, capacity] () -> sp<Codec2Buffer> { return alloc(capacity); });
687 virtual sp<Codec2Buffer> alloc(size_t size) const { function in class:android::LinearInputBuffers
732 sp<Codec2Buffer> alloc(size_t size) const override {
771 std::shared_ptr<C2Allocator> alloc; variable
772 c2_status_t err = mStore->fetchAllocator(mPool->getAllocatorId(), &alloc);
776 sp<GraphicMetadataBuffer> newBuffer = new GraphicMetadataBuffer(mFormat, alloc);
796 std::shared_ptr<C2Allocator> alloc; variable
797 c2_status_t err = mStore->fetchAllocator(mPool->getAllocatorId(), &alloc);
807 [format = mFormat, alloc]()
[all...]
/hardware/libhardware/include/hardware/
H A Dgralloc.h159 * been created with (*alloc_device_t::alloc)() can be used.
168 * with (*alloc_device_t::alloc)().
329 * (*alloc)() Allocates a buffer in graphic memory with the requested
342 int (*alloc)(struct alloc_device_t* dev, member in struct:alloc_device_t
384 * @param usage - it is the flag used when alloc function is called.
/hardware/qcom/camera/msm8998/QCamera2/HAL3/test/
H A DQCameraHAL3Test.cpp98 struct ion_allocation_data alloc; local
108 memset(&alloc, 0, sizeof(alloc));
110 alloc.len = (size_t)(buf_size);
111 alloc.len = (alloc.len + 4095U) & (~4095U);
112 alloc.align = 4096;
113 alloc.flags = ION_FLAG_CACHED;
114 alloc.heap_id_mask = ION_HEAP(ION_SYSTEM_HEAP_ID);
115 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc);
[all...]
/hardware/google/av/codec2/vndk/platform/
H A DC2BqBuffer.cpp139 std::shared_ptr<C2GraphicAllocation> alloc; local
150 c2_status_t err = sAllocator->priorGraphicAllocation(handle, &alloc);
157 block = _C2BlockFactory::CreateGraphicBlock(alloc, poolData);
159 block = _C2BlockFactory::CreateGraphicBlock(alloc);
274 std::shared_ptr<C2GraphicAllocation> alloc; local
275 c2_status_t err = mAllocator->priorGraphicAllocation(c2Handle, &alloc);
282 *block = _C2BlockFactory::CreateGraphicBlock(alloc, poolData);
331 std::shared_ptr<C2GraphicAllocation> alloc; local
333 width, height, format, usage, &alloc);
341 *block = _C2BlockFactory::CreateGraphicBlock(alloc, poolDat
[all...]
/hardware/interfaces/bluetooth/1.0/default/
H A Dbt_vendor_lib.h258 * Vendor lib needs to request a buffer through the alloc callout function
311 * needs to be first allocated through the alloc callout function.
350 malloc_cb alloc; member in struct:__anon1115
/hardware/google/av/codec2/vndk/
H A DC2AllocatorIon.cpp522 std::shared_ptr<C2AllocationIon> alloc local
524 ret = alloc->status();
526 *allocation = alloc;
544 std::shared_ptr<C2AllocationIon> alloc local
546 c2_status_t ret = alloc->status();
548 *allocation = alloc;
H A DC2Buffer.cpp120 _C2Block1DImpl(const std::shared_ptr<C2LinearAllocation> &alloc, argument
123 : _C2LinearRangeAspect(alloc.get(), offset, size),
124 mAllocation(alloc),
336 std::shared_ptr<C2LinearAllocation> alloc; local
337 c2_status_t err = mAllocator->newLinearAllocation(capacity, usage, &alloc);
342 *block = _C2BlockFactory::CreateLinearBlock(alloc);
378 const std::shared_ptr<C2LinearAllocation> &alloc,
381 std::make_shared<C2Block1D::Impl>(alloc, data, offset, size);
398 std::shared_ptr<C2LinearAllocation> alloc; local
400 c2_status_t err = sAllocator->priorLinearAllocation(handle, &alloc);
377 CreateLinearBlock( const std::shared_ptr<C2LinearAllocation> &alloc, const std::shared_ptr<_C2BlockPoolData> &data, size_t offset, size_t size) argument
414 std::shared_ptr<C2LinearAllocation> alloc; local
522 LinearAllocationDtor(const std::shared_ptr<C2LinearAllocation> &alloc) argument
531 GraphicAllocationDtor(const std::shared_ptr<C2GraphicAllocation> &alloc) argument
539 allocate( const std::vector<uint8_t> &params, std::shared_ptr<BufferPoolAllocation> *alloc, size_t *allocSize) argument
679 std::shared_ptr<C2LinearAllocation> alloc; local
715 std::shared_ptr<C2GraphicAllocation> alloc; local
798 _C2Block2DImpl(const std::shared_ptr<C2GraphicAllocation> &alloc, const std::shared_ptr<_C2BlockPoolData> &poolData = nullptr, const C2Rect &allottedCrop = C2Rect(~0u, ~0u)) argument
1085 std::shared_ptr<C2GraphicAllocation> alloc; local
1096 CreateGraphicBlock( const std::shared_ptr<C2GraphicAllocation> &alloc, const std::shared_ptr<_C2BlockPoolData> &data, const C2Rect &allottedCrop) argument
1118 std::shared_ptr<C2GraphicAllocation> alloc; local
[all...]
/hardware/google/av/codec2/vndk/bufferpool/
H A DAccessorImpl.cpp53 const std::shared_ptr<BufferPoolAllocation> &alloc,
57 mAllocation(alloc), mAllocSize(allocSize), mConfig(allocConfig) {}
182 std::shared_ptr<BufferPoolAllocation> alloc; local
184 status = mAllocator->allocate(params, &alloc, &allocSize);
187 status = mBufferPool.addNewBuffer(alloc, allocSize, params, bufferId, handle);
480 const std::shared_ptr<BufferPoolAllocation> &alloc,
489 bufferId, alloc, allocSize, params);
495 *handle = alloc->handle();
509 "%zu(%zu size) used buffers - %zu/%zu (recycle/alloc) - "
51 InternalBuffer( BufferId id, const std::shared_ptr<BufferPoolAllocation> &alloc, const size_t allocSize, const std::vector<uint8_t> &allocConfig) argument
479 addNewBuffer( const std::shared_ptr<BufferPoolAllocation> &alloc, const size_t allocSize, const std::vector<uint8_t> &params, BufferId *pId, const native_handle_t** handle) argument
/hardware/qcom/camera/msm8998/QCamera2/HAL/
H A DQCameraMem.cpp367 * FUNCTION : alloc
380 int QCameraMemory::alloc(int count, size_t size, unsigned int heap_id) function in class:qcamera::QCameraMemory
468 struct ion_allocation_data alloc; local
478 memset(&alloc, 0, sizeof(alloc));
479 alloc.len = size;
481 alloc.len = (alloc.len + 4095U) & (~4095U);
482 alloc.align = 4096;
484 alloc
[all...]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
H A Dmm_qcamera_app.c126 struct ion_allocation_data alloc; local
137 memset(&alloc, 0, sizeof(alloc));
138 alloc.len = buf->mem_info.size;
140 alloc.len = (alloc.len + 4095U) & (~4095U);
141 alloc.align = 4096;
142 alloc.flags = ION_FLAG_CACHED;
143 alloc.heap_id_mask = ION_HEAP(ION_SYSTEM_HEAP_ID);
144 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc);
[all...]
/hardware/qcom/camera/msm8998/usbcamcore/src/
H A DQualcommUsbCamera.cpp2672 struct ion_allocation_data alloc; local
2682 memset(&alloc, 0, sizeof(alloc));
2683 alloc.len = mem_info->size;
2685 alloc.len = (alloc.len + 4095) & (~4095);
2686 alloc.align = 4096;
2687 alloc.flags = ION_FLAG_CACHED;
2688 alloc.heap_id_mask = ion_type;
2689 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc);
[all...]
/hardware/qcom/audio/hal/audio_extn/
H A Da2dp.c455 uint8_t alloc; /* 0(Loudness), 1(SNR) */ member in struct:__anon1757
1000 if (sbc_bt_cfg->alloc)
/hardware/interfaces/renderscript/1.0/default/
H A DContext.cpp73 Return<void> Context::allocationAdapterOffset(Allocation alloc, const hidl_vec<uint32_t>& offsets) { argument
74 RsAllocation _alloc = hidl_to_rs<RsAllocation>(alloc);
126 Return<void> Context::allocationSetupBufferQueue(Allocation alloc, uint32_t numBuffer) { argument
127 RsAllocation _alloc = hidl_to_rs<RsAllocation>(alloc);
577 Return<void> Context::scriptGroupSetOutput(ScriptGroup sg, ScriptKernelID kid, Allocation alloc) { argument
580 RsAllocation _alloc = hidl_to_rs<RsAllocation>(alloc);
585 Return<void> Context::scriptGroupSetInput(ScriptGroup sg, ScriptKernelID kid, Allocation alloc) { argument
588 RsAllocation _alloc = hidl_to_rs<RsAllocation>(alloc);

Completed in 703 milliseconds