Searched refs:ion_info (Results 1 – 12 of 12) sorted by relevance
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/venc/src/ |
D | omx_video_base.cpp | 5087 bool omx_video::alloc_map_ion_memory(int size, venc_ion *ion_info, int flag) in alloc_map_ion_memory() argument 5092 if (size <=0 || !ion_info) { in alloc_map_ion_memory() 5097 ion_info->data_fd = -1; in alloc_map_ion_memory() 5098 ion_info->dev_fd = ion_open(); in alloc_map_ion_memory() 5099 if (ion_info->dev_fd <= 0) { in alloc_map_ion_memory() 5105 ion_info->alloc_data.len = (size + (SECURE_ALIGN - 1)) & ~(SECURE_ALIGN - 1); in alloc_map_ion_memory() 5106 ion_info->alloc_data.flags = flag; in alloc_map_ion_memory() 5107 ion_info->alloc_data.heap_id_mask = ION_HEAP(MEM_HEAP_ID); in alloc_map_ion_memory() 5108 if (ion_info->alloc_data.flags & ION_FLAG_CP_BITSTREAM) { in alloc_map_ion_memory() 5109 ion_info->alloc_data.heap_id_mask |= ION_HEAP(ION_SECURE_DISPLAY_HEAP_ID); in alloc_map_ion_memory() [all …]
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/ |
D | omx_swvdec.cpp | 3283 m_buffer_array_ip[ii].ion_info.ion_fd_device = in buffer_allocate_ip() 3284 ion_memory_alloc_map(&m_buffer_array_ip[ii].ion_info.ion_alloc_data, in buffer_allocate_ip() 3285 &m_buffer_array_ip[ii].ion_info.ion_fd_data, in buffer_allocate_ip() 3289 if (m_buffer_array_ip[ii].ion_info.ion_fd_device < 0) in buffer_allocate_ip() 3295 pmem_fd = m_buffer_array_ip[ii].ion_info.ion_fd_data.fd; in buffer_allocate_ip() 3310 ion_memory_free(&m_buffer_array_ip[ii].ion_info); in buffer_allocate_ip() 3420 m_buffer_array_op[ii].ion_info.ion_fd_device = in buffer_allocate_op() 3421 ion_memory_alloc_map(&m_buffer_array_op[ii].ion_info.ion_alloc_data, in buffer_allocate_op() 3422 &m_buffer_array_op[ii].ion_info.ion_fd_data, in buffer_allocate_op() 3426 if (m_buffer_array_op[ii].ion_info.ion_fd_device < 0) in buffer_allocate_op() [all …]
|
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/vdec/src/ |
D | omx_swvdec.cpp | 3637 m_buffer_array_ip[ii].ion_info.dev_fd= in buffer_allocate_ip() 3638 ion_memory_alloc_map(&m_buffer_array_ip[ii].ion_info,size, in buffer_allocate_ip() 3641 if (m_buffer_array_ip[ii].ion_info.dev_fd< 0) in buffer_allocate_ip() 3646 pmem_fd = m_buffer_array_ip[ii].ion_info.data_fd; in buffer_allocate_ip() 3657 ion_memory_free(&m_buffer_array_ip[ii].ion_info); in buffer_allocate_ip() 3689 ion_memory_free(&m_buffer_array_ip[ii].ion_info); in buffer_allocate_ip() 3784 m_buffer_array_op[ii].ion_info.dev_fd= in buffer_allocate_op() 3785 ion_memory_alloc_map(&m_buffer_array_op[ii].ion_info,size, in buffer_allocate_op() 3788 if (m_buffer_array_op[ii].ion_info.dev_fd < 0) in buffer_allocate_op() 3793 pmem_fd = m_buffer_array_op[ii].ion_info.data_fd; in buffer_allocate_op() [all …]
|
/hardware/qcom/sm7250/media/mm-video-v4l2/vidc/vdec/src/ |
D | omx_swvdec.cpp | 3593 m_buffer_array_ip[ii].ion_info.dev_fd= in buffer_allocate_ip() 3594 ion_memory_alloc_map(&m_buffer_array_ip[ii].ion_info,size, in buffer_allocate_ip() 3597 if (m_buffer_array_ip[ii].ion_info.dev_fd< 0) in buffer_allocate_ip() 3603 pmem_fd = m_buffer_array_ip[ii].ion_info.data_fd; in buffer_allocate_ip() 3614 ion_memory_free(&m_buffer_array_ip[ii].ion_info); in buffer_allocate_ip() 3726 m_buffer_array_op[ii].ion_info.dev_fd= in buffer_allocate_op() 3727 ion_memory_alloc_map(&m_buffer_array_op[ii].ion_info,size, in buffer_allocate_op() 3730 if (m_buffer_array_op[ii].ion_info.dev_fd < 0) in buffer_allocate_op() 3736 pmem_fd = m_buffer_array_op[ii].ion_info.data_fd; in buffer_allocate_op() 3747 ion_memory_free(&m_buffer_array_op[ii].ion_info); in buffer_allocate_op() [all …]
|
D | omx_vdec_v4l2.cpp | 6703 bool omx_vdec::alloc_map_ion_memory(OMX_U32 buffer_size, vdec_ion *ion_info, int flag) in alloc_map_ion_memory() argument 6710 if (!ion_info || buffer_size <= 0) { in alloc_map_ion_memory() 6715 ion_info->dev_fd = ion_open(); in alloc_map_ion_memory() 6716 if (ion_info->dev_fd < 0) { in alloc_map_ion_memory() 6717 DEBUG_PRINT_ERROR("opening ion device failed with ion_fd = %d", ion_info->dev_fd); in alloc_map_ion_memory() 6721 ion_info->alloc_data.flags = flag; in alloc_map_ion_memory() 6722 ion_info->alloc_data.len = buffer_size; in alloc_map_ion_memory() 6724 ion_info->alloc_data.heap_id_mask = ION_HEAP(ION_SYSTEM_HEAP_ID); in alloc_map_ion_memory() 6725 if (secure_mode && (ion_info->alloc_data.flags & ION_FLAG_SECURE)) { in alloc_map_ion_memory() 6726 ion_info->alloc_data.heap_id_mask = ION_HEAP(MEM_HEAP_ID); in alloc_map_ion_memory() [all …]
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/inc/ |
D | omx_swvdec.h | 107 struct vdec_ion ion_info; member
|
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/inc/ |
D | omx_swvdec.h | 101 struct vdec_ion ion_info; member
|
/hardware/qcom/sm7250/media/mm-video-v4l2/vidc/vdec/inc/ |
D | omx_swvdec.h | 113 struct vdec_ion ion_info; member
|
D | omx_vdec.h | 886 bool alloc_map_ion_memory(OMX_U32 buffer_size, vdec_ion *ion_info, int flag);
|
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/vdec/inc/ |
D | omx_swvdec.h | 113 struct vdec_ion ion_info; member
|
/hardware/qcom/sm7250/media/mm-video-v4l2/vidc/venc/inc/ |
D | omx_video_base.h | 647 bool alloc_map_ion_memory(int size, venc_ion *ion_info,
|
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/venc/inc/ |
D | omx_video_base.h | 651 bool alloc_map_ion_memory(int size, venc_ion *ion_info,
|