Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 25 of 51) sorted by relevance

123

/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_ionbuf.c61 p_buffer->alloc.len = p_buffer->size; in buffer_allocate()
62 p_buffer->alloc.align = 4096; in buffer_allocate()
63 p_buffer->alloc.flags = (cached) ? ION_FLAG_CACHED : 0; in buffer_allocate()
64 p_buffer->alloc.heap_id_mask = 0x1 << ION_IOMMU_HEAP_ID; in buffer_allocate()
73 p_buffer->alloc.len = (p_buffer->alloc.len + 4095U) & (~4095U); in buffer_allocate()
74 lrc = ioctl(p_buffer->ion_fd, ION_IOC_ALLOC, &p_buffer->alloc); in buffer_allocate()
77 p_buffer->alloc.len); in buffer_allocate()
81 p_buffer->ion_info_fd.handle = p_buffer->alloc.handle; in buffer_allocate()
91 l_buffer = mmap(NULL, p_buffer->alloc.len, PROT_READ | PROT_WRITE, in buffer_allocate()
/hardware/qcom/camera/msm8998/QCamera2/HAL3/test/
DQCameraHAL3Test.cpp98 struct ion_allocation_data alloc; in allocateBuffers() local
108 memset(&alloc, 0, sizeof(alloc)); in allocateBuffers()
110 alloc.len = (size_t)(buf_size); in allocateBuffers()
111 alloc.len = (alloc.len + 4095U) & (~4095U); in allocateBuffers()
112 alloc.align = 4096; in allocateBuffers()
113 alloc.flags = ION_FLAG_CACHED; in allocateBuffers()
114 alloc.heap_id_mask = ION_HEAP(ION_SYSTEM_HEAP_ID); in allocateBuffers()
115 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocateBuffers()
121 ion_info_fd.handle = alloc.handle; in allocateBuffers()
129 LOGD("%s ION FD %d len %d\n", __func__, ion_info_fd.fd, alloc.len); in allocateBuffers()
[all …]
/hardware/google/av/codec2/vndk/
DC2Buffer.cpp120 _C2Block1DImpl(const std::shared_ptr<C2LinearAllocation> &alloc, in _C2Block1DImpl() argument
123 : _C2LinearRangeAspect(alloc.get(), offset, size), in _C2Block1DImpl()
124 mAllocation(alloc), in _C2Block1DImpl()
336 std::shared_ptr<C2LinearAllocation> alloc; in fetchLinearBlock() local
337 c2_status_t err = mAllocator->newLinearAllocation(capacity, usage, &alloc); in fetchLinearBlock()
342 *block = _C2BlockFactory::CreateLinearBlock(alloc); in fetchLinearBlock()
378 const std::shared_ptr<C2LinearAllocation> &alloc, in CreateLinearBlock() argument
381 std::make_shared<C2Block1D::Impl>(alloc, data, offset, size); in CreateLinearBlock()
398 std::shared_ptr<C2LinearAllocation> alloc; in CreateLinearBlock() local
400 c2_status_t err = sAllocator->priorLinearAllocation(handle, &alloc); in CreateLinearBlock()
[all …]
DC2AllocatorIon.cpp523 std::shared_ptr<C2AllocationIon> alloc in newLinearAllocation() local
525 ret = alloc->status(); in newLinearAllocation()
527 *allocation = alloc; in newLinearAllocation()
545 std::shared_ptr<C2AllocationIon> alloc in priorLinearAllocation() local
547 c2_status_t ret = alloc->status(); in priorLinearAllocation()
549 *allocation = alloc; in priorLinearAllocation()
/hardware/google/av/codec2/vndk/platform/
DC2BqBuffer.cpp147 std::shared_ptr<C2GraphicAllocation> alloc; in CreateGraphicBlock() local
159 c2_status_t err = sAllocator->priorGraphicAllocation(handle, &alloc); in CreateGraphicBlock()
168 block = _C2BlockFactory::CreateGraphicBlock(alloc, poolData); in CreateGraphicBlock()
170 block = _C2BlockFactory::CreateGraphicBlock(alloc); in CreateGraphicBlock()
283 std::shared_ptr<C2GraphicAllocation> alloc; in fetchFromIgbp_l() local
284 c2_status_t err = mAllocator->priorGraphicAllocation(c2Handle, &alloc); in fetchFromIgbp_l()
292 *block = _C2BlockFactory::CreateGraphicBlock(alloc, poolData); in fetchFromIgbp_l()
340 std::shared_ptr<C2GraphicAllocation> alloc; in fetchGraphicBlock() local
342 width, height, format, usage, &alloc); in fetchGraphicBlock()
350 *block = _C2BlockFactory::CreateGraphicBlock(alloc, poolData); in fetchGraphicBlock()
/hardware/interfaces/automotive/evs/1.0/default/
DEvsCamera.cpp90 GraphicBufferAllocator& alloc(GraphicBufferAllocator::get()); in forceShutdown() local
95 alloc.free(rec.handle); in forceShutdown()
308 GraphicBufferAllocator &alloc(GraphicBufferAllocator::get()); in increaseAvailableFrames_Locked() local
314 status_t result = alloc.allocate(mWidth, mHeight, mFormat, 1, mUsage, in increaseAvailableFrames_Locked()
351 GraphicBufferAllocator &alloc(GraphicBufferAllocator::get()); in decreaseAvailableFrames_Locked() local
359 alloc.free(rec.handle); in decreaseAvailableFrames_Locked()
DEvsDisplay.cpp75 GraphicBufferAllocator& alloc(GraphicBufferAllocator::get()); in forceShutdown() local
76 alloc.free(mBuffer.memHandle); in forceShutdown()
168 GraphicBufferAllocator& alloc(GraphicBufferAllocator::get()); in getTargetBuffer() local
169 status_t result = alloc.allocate( in getTargetBuffer()
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCameraMem.cpp380 int QCameraMemory::alloc(int count, size_t size, unsigned int heap_id) in alloc() function in qcamera::QCameraMemory
468 struct ion_allocation_data alloc; in allocOneBuffer() local
478 memset(&alloc, 0, sizeof(alloc)); in allocOneBuffer()
479 alloc.len = size; in allocOneBuffer()
481 alloc.len = (alloc.len + 4095U) & (~4095U); in allocOneBuffer()
482 alloc.align = 4096; in allocOneBuffer()
484 alloc.flags = ION_FLAG_CACHED; in allocOneBuffer()
486 alloc.heap_id_mask = heap_id; in allocOneBuffer()
489 alloc.flags = ION_FLAG_SECURE | ION_FLAG_CP_CAMERA; in allocOneBuffer()
490 alloc.heap_id_mask = ION_HEAP(ION_SECURE_DISPLAY_HEAP_ID); in allocOneBuffer()
[all …]
/hardware/google/av/media/sfplugin/
DCodec2Buffer.h222 std::function<sp<ABuffer>(size_t)> alloc);
258 const sp<AMessage> &format, const std::shared_ptr<C2Allocator> &alloc);
292 std::function<sp<ABuffer>(size_t)> alloc);
304 std::function<sp<ABuffer>(size_t)> alloc);
DCodec2Buffer.cpp502 std::function<sp<ABuffer>(size_t)> alloc) { in Allocate() argument
520 buffer = alloc(converter.backBufferSize()); in Allocate()
564 const std::shared_ptr<C2Allocator> &alloc) in GraphicMetadataBuffer() argument
566 mAlloc(alloc) { in GraphicMetadataBuffer()
587 std::shared_ptr<C2GraphicAllocation> alloc; in asC2Buffer() local
588 c2_status_t err = mAlloc->priorGraphicAllocation(handle, &alloc); in asC2Buffer()
593 std::shared_ptr<C2GraphicBlock> block = _C2BlockFactory::CreateGraphicBlock(alloc); in asC2Buffer()
611 std::function<sp<ABuffer>(size_t)> alloc) { in Allocate() argument
633 aBuffer = alloc(converter.backBufferSize()); in Allocate()
655 std::function<sp<ABuffer>(size_t)> alloc) { in AllocateEmpty() argument
[all …]
DC2OMXNode.cpp227 std::shared_ptr<C2GraphicAllocation> alloc; in emptyBuffer() local
235 c2_status_t err = mAllocator->priorGraphicAllocation(handle, &alloc); in emptyBuffer()
239 block = _C2BlockFactory::CreateGraphicBlock(alloc); in emptyBuffer()
/hardware/google/av/codec2/vndk/internal/
DC2BlockInternal.h74 const std::shared_ptr<C2LinearAllocation> &alloc,
91 const std::shared_ptr<C2GraphicAllocation> &alloc,
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg_ionbuf.h41 struct ion_allocation_data alloc; member
/hardware/broadcom/libbt/src/
Dhardware.c639 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \ in hw_config_cback()
1002 p_buf = (HC_BT_HDR *)bt_vendor_cbacks->alloc( in hw_sco_i2spcm_cfg_cback()
1036 p_buf = (HC_BT_HDR *)bt_vendor_cbacks->alloc( in hw_sco_i2spcm_cfg_cback()
1135 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \ in hw_config_start()
1180 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \ in hw_lpm_enable()
1356 p_buf = (HC_BT_HDR *)bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + cmd_u16); in hw_sco_i2spcm_config()
1424 p_buf = (HC_BT_HDR *)bt_vendor_cbacks->alloc( in hw_set_SCO_codec()
1620 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \ in hw_epilog_process()
/hardware/qcom/display/msm8226/liboverlay/
DoverlayWriteback.cpp49 return alloc(size, isSecure); in manageMem()
52 bool WritebackMem::alloc(uint32_t size, bool isSecure) { in alloc() function in overlay::WritebackMem
DoverlayWriteback.h51 bool alloc(uint32_t size, bool isSecure);
/hardware/qcom/display/msm8994/liboverlay/
DoverlayWriteback.cpp49 return alloc(size, isSecure); in manageMem()
52 bool WritebackMem::alloc(uint32_t size, bool isSecure) { in alloc() function in overlay::WritebackMem
DoverlayWriteback.h51 bool alloc(uint32_t size, bool isSecure);
/hardware/qcom/display/msm8084/liboverlay/
DoverlayWriteback.cpp49 return alloc(size, isSecure); in manageMem()
52 bool WritebackMem::alloc(uint32_t size, bool isSecure) { in alloc() function in overlay::WritebackMem
DoverlayWriteback.h51 bool alloc(uint32_t size, bool isSecure);
/hardware/qcom/bt/msm8992/libbt-vendor/src/
Dhardware.c152 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \ in hw_epilog_process()
/hardware/qcom/bt/msm8960/libbt-vendor/src/
Dhardware.c153 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \ in hw_epilog_process()
/hardware/interfaces/renderscript/1.0/default/
DContext.h57 …Return<void> allocationAdapterOffset(Allocation alloc, const hidl_vec<uint32_t>& offsets) override;
64 Return<void> allocationSetupBufferQueue(Allocation alloc, uint32_t numBuffer) override;
111 … Return<void> scriptGroupSetOutput(ScriptGroup sg, ScriptKernelID kid, Allocation alloc) override;
112 Return<void> scriptGroupSetInput(ScriptGroup sg, ScriptKernelID kid, Allocation alloc) override;
/hardware/interfaces/bluetooth/1.0/default/
Dbt_vendor_lib.h350 malloc_cb alloc; member
/hardware/google/av/codec2/hidl/1.0/utils/
DInputSurfaceConnection.cpp169 std::shared_ptr<C2GraphicAllocation> alloc; in submitBuffer() local
175 c2_status_t err = mAllocator->priorGraphicAllocation(handle, &alloc); in submitBuffer()
181 _C2BlockFactory::CreateGraphicBlock(alloc); in submitBuffer()

123