Home
last modified time | relevance | path

Searched refs:ion_alloc_data (Results 1 – 25 of 47) sorted by relevance

12

/hardware/qcom/display/msm8909/gralloc/
Dgr_ion_alloc.cpp74 struct ion_allocation_data ion_alloc_data; in AllocBuffer() local
76 ion_alloc_data.len = data->size; in AllocBuffer()
77 ion_alloc_data.align = data->align; in AllocBuffer()
78 ion_alloc_data.heap_id_mask = data->heap_id; in AllocBuffer()
79 ion_alloc_data.flags = data->flags; in AllocBuffer()
80 ion_alloc_data.flags |= data->uncached ? 0 : ION_FLAG_CACHED; in AllocBuffer()
82 if (ioctl(ion_dev_fd_, INT(ION_IOC_ALLOC), &ion_alloc_data)) { in AllocBuffer()
88 fd_data.handle = ion_alloc_data.handle; in AllocBuffer()
89 handle_data.handle = ion_alloc_data.handle; in AllocBuffer()
100 ion_alloc_data.len, data->fd, data->ion_handle); in AllocBuffer()
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_ion_alloc.cpp74 struct ion_allocation_data ion_alloc_data; in AllocBuffer() local
76 ion_alloc_data.len = data->size; in AllocBuffer()
77 ion_alloc_data.align = data->align; in AllocBuffer()
78 ion_alloc_data.heap_id_mask = data->heap_id; in AllocBuffer()
79 ion_alloc_data.flags = data->flags; in AllocBuffer()
80 ion_alloc_data.flags |= data->uncached ? 0 : ION_FLAG_CACHED; in AllocBuffer()
82 if (ioctl(ion_dev_fd_, INT(ION_IOC_ALLOC), &ion_alloc_data)) { in AllocBuffer()
88 fd_data.handle = ion_alloc_data.handle; in AllocBuffer()
89 handle_data.handle = ion_alloc_data.handle; in AllocBuffer()
100 ion_alloc_data.len, data->fd, data->ion_handle); in AllocBuffer()
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_ion_alloc.cpp74 struct ion_allocation_data ion_alloc_data; in AllocBuffer() local
76 ion_alloc_data.len = data->size; in AllocBuffer()
77 ion_alloc_data.align = data->align; in AllocBuffer()
78 ion_alloc_data.heap_id_mask = data->heap_id; in AllocBuffer()
79 ion_alloc_data.flags = data->flags; in AllocBuffer()
80 ion_alloc_data.flags |= data->uncached ? 0 : ION_FLAG_CACHED; in AllocBuffer()
82 if (ioctl(ion_dev_fd_, INT(ION_IOC_ALLOC), &ion_alloc_data)) { in AllocBuffer()
88 fd_data.handle = ion_alloc_data.handle; in AllocBuffer()
89 handle_data.handle = ion_alloc_data.handle; in AllocBuffer()
100 ion_alloc_data.len, data->fd, data->ion_handle); in AllocBuffer()
/hardware/qcom/sdm845/display/gralloc/
Dgr_ion_alloc.cpp75 struct ion_allocation_data ion_alloc_data; in AllocBuffer() local
77 ion_alloc_data.len = data->size; in AllocBuffer()
78 ion_alloc_data.align = data->align; in AllocBuffer()
79 ion_alloc_data.heap_id_mask = data->heap_id; in AllocBuffer()
80 ion_alloc_data.flags = data->flags; in AllocBuffer()
81 ion_alloc_data.flags |= data->uncached ? 0 : ION_FLAG_CACHED; in AllocBuffer()
88 if (ioctl(ion_dev_fd_, INT(ION_IOC_ALLOC), &ion_alloc_data)) { in AllocBuffer()
95 fd_data.handle = ion_alloc_data.handle; in AllocBuffer()
96 handle_data.handle = ion_alloc_data.handle; in AllocBuffer()
108 ALOGD_IF(DEBUG, "ion: Allocated buffer size:%zu fd:%d handle:0x%x", ion_alloc_data.len, data->fd, in AllocBuffer()
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_ion_alloc.cpp80 struct ion_allocation_data ion_alloc_data; in AllocBuffer() local
82 ion_alloc_data.len = data->size; in AllocBuffer()
83 ion_alloc_data.align = data->align; in AllocBuffer()
84 ion_alloc_data.heap_id_mask = data->heap_id; in AllocBuffer()
85 ion_alloc_data.flags = data->flags; in AllocBuffer()
86 ion_alloc_data.flags |= data->uncached ? 0 : ION_FLAG_CACHED; in AllocBuffer()
93 if (ioctl(ion_dev_fd_, INT(ION_IOC_ALLOC), &ion_alloc_data)) { in AllocBuffer()
100 fd_data.handle = ion_alloc_data.handle; in AllocBuffer()
101 handle_data.handle = ion_alloc_data.handle; in AllocBuffer()
114 ion_alloc_data.len, data->fd, data->ion_handle); in AllocBuffer()
/hardware/qcom/keymaster/
Dkeymaster_qcom.cpp199 struct ion_allocation_data ion_alloc_data; in qcom_km_ION_memalloc() local
221 ion_alloc_data.len = (size + 4095) & (~4095); in qcom_km_ION_memalloc()
224 ion_alloc_data.align = 4096; in qcom_km_ION_memalloc()
227 ion_alloc_data.ION_HEAP_MASK = ION_HEAP(ION_QSECOM_HEAP_ID); in qcom_km_ION_memalloc()
230 ion_alloc_data.flags = 0; in qcom_km_ION_memalloc()
233 rc = ioctl(ion_fd, ION_IOC_ALLOC, &ion_alloc_data); in qcom_km_ION_memalloc()
239 if (ion_alloc_data.handle != NULL) { in qcom_km_ION_memalloc()
240 ifd_data.handle = ion_alloc_data.handle; in qcom_km_ION_memalloc()
253 v_addr = (unsigned char *)mmap(NULL, ion_alloc_data.len, in qcom_km_ION_memalloc()
264 handle->ion_alloc_handle.handle = ion_alloc_data.handle; in qcom_km_ION_memalloc()
[all …]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/inc/
Domx_video_common.h78 struct ion_allocation_data ion_alloc_data; member
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/inc/
Domx_video_common.h98 struct ion_allocation_data ion_alloc_data; member
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/inc/
Domx_video_common.h104 struct ion_allocation_data ion_alloc_data; member
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/venc/inc/
Domx_video_common.h106 struct ion_allocation_data ion_alloc_data; member
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/inc/
Domx_video_common.h105 struct ion_allocation_data ion_alloc_data; member
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/
Domx_video_base.cpp2231 m_pInput_ion[i].ion_alloc_data.handle = 0; in use_input_buffer()
2259 &m_pInput_ion[i].ion_alloc_data, in use_input_buffer()
2263 &m_pInput_ion[i].ion_alloc_data, in use_input_buffer()
2424 m_pOutput_ion[i].ion_alloc_data.handle = 0; in use_output_buffer()
2450 &m_pOutput_ion[i].ion_alloc_data, in use_output_buffer()
2455 &m_pOutput_ion[i].ion_alloc_data, in use_output_buffer()
2838 m_pInput_ion[i].ion_alloc_data.handle = 0; in allocate_input_buffer()
2862 &m_pInput_ion[i].ion_alloc_data, in allocate_input_buffer()
2866 &m_pInput_ion[i].ion_alloc_data, in allocate_input_buffer()
3007 m_pOutput_ion[i].ion_alloc_data.handle = 0; in allocate_output_buffer()
[all …]
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/
Domx_video_base.cpp2529 m_pInput_ion[i].ion_alloc_data.handle = 0; in use_input_buffer()
2558 &m_pInput_ion[i].ion_alloc_data, in use_input_buffer()
2563 &m_pInput_ion[i].ion_alloc_data, in use_input_buffer()
2723 m_pOutput_ion[i].ion_alloc_data.handle = 0; in use_output_buffer()
2749 &m_pOutput_ion[i].ion_alloc_data, in use_output_buffer()
2755 &m_pOutput_ion[i].ion_alloc_data, in use_output_buffer()
3151 m_pInput_ion[i].ion_alloc_data.handle = 0; in allocate_input_buffer()
3175 &m_pInput_ion[i].ion_alloc_data, in allocate_input_buffer()
3180 &m_pInput_ion[i].ion_alloc_data, in allocate_input_buffer()
3321 m_pOutput_ion[i].ion_alloc_data.handle = 0; in allocate_output_buffer()
[all …]
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/src/
Domx_video_base.cpp2616 m_pInput_ion[i].ion_alloc_data.handle = 0; in use_input_buffer()
2645 &m_pInput_ion[i].ion_alloc_data, in use_input_buffer()
2650 &m_pInput_ion[i].ion_alloc_data, in use_input_buffer()
2810 m_pOutput_ion[i].ion_alloc_data.handle = 0; in use_output_buffer()
2836 &m_pOutput_ion[i].ion_alloc_data, in use_output_buffer()
2842 &m_pOutput_ion[i].ion_alloc_data, in use_output_buffer()
3246 m_pInput_ion[i].ion_alloc_data.handle = 0; in allocate_input_buffer()
3270 &m_pInput_ion[i].ion_alloc_data, in allocate_input_buffer()
3275 &m_pInput_ion[i].ion_alloc_data, in allocate_input_buffer()
3417 m_pOutput_ion[i].ion_alloc_data.handle = 0; in allocate_output_buffer()
[all …]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/src/
Domx_video_base.cpp2104 m_pInput_ion[i].ion_alloc_data.handle=NULL; in use_input_buffer()
2135 &m_pInput_ion[i].ion_alloc_data, in use_input_buffer()
2301 m_pOutput_ion[i].ion_alloc_data.handle =NULL; in use_output_buffer()
2334 &m_pOutput_ion[i].ion_alloc_data, in use_output_buffer()
2729 m_pInput_ion[i].ion_alloc_data.handle=NULL; in allocate_input_buffer()
2753 &m_pInput_ion[i].ion_alloc_data, in allocate_input_buffer()
2886 m_pOutput_ion[i].ion_alloc_data.handle =NULL; in allocate_output_buffer()
2912 &m_pOutput_ion[i].ion_alloc_data, in allocate_output_buffer()
4344 buf_ion_info.ion_alloc_data = *alloc_data; in alloc_map_ion_memory()
4361 &buf_ion_info->ion_alloc_data.handle)) { in free_ion_memory()
[all …]
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/venc/src/
Domx_video_base.cpp2614 m_pInput_ion[i].ion_alloc_data.handle = 0; in use_input_buffer()
2642 &m_pInput_ion[i].ion_alloc_data, in use_input_buffer()
2800 m_pOutput_ion[i].ion_alloc_data.handle = 0; in use_output_buffer()
2825 &m_pOutput_ion[i].ion_alloc_data, in use_output_buffer()
3309 m_pInput_ion[i].ion_alloc_data.handle = 0; in allocate_input_buffer()
3332 &m_pInput_ion[i].ion_alloc_data, in allocate_input_buffer()
3473 m_pOutput_ion[i].ion_alloc_data.handle = 0; in allocate_output_buffer()
3494 &m_pOutput_ion[i].ion_alloc_data, in allocate_output_buffer()
4852 buf_ion_info.ion_alloc_data = *alloc_data; in alloc_map_ion_memory()
4869 &buf_ion_info->ion_alloc_data.handle)) { in free_ion_memory()
[all …]
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/inc/
Domx_swvdec.h102 struct ion_allocation_data ion_alloc_data; member
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/inc/
Domx_swvdec.h96 struct ion_allocation_data ion_alloc_data; member
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/vdec/inc/
Domx_swvdec.h95 struct ion_allocation_data ion_alloc_data; member
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
Domx_vdec.cpp3973 &drv_ctx.op_buf_ion_info[i].ion_alloc_data, in use_output_buffer()
4573 &drv_ctx.ip_buf_ion_info[i].ion_alloc_data, in allocate_input_buffer()
4702 struct ion_allocation_data ion_alloc_data; in allocate_output_buffer() local
4901 &drv_ctx.op_buf_ion_info[i].ion_alloc_data, in allocate_output_buffer()
4970 ion_alloc_data.handle, in allocate_output_buffer()
7358 ion_buf_info.ion_alloc_data = *alloc_data; in alloc_map_ion_memory()
7383 buf_ion_info->ion_alloc_data.handle, in free_ion_memory()
7384 buf_ion_info->ion_alloc_data.len, in free_ion_memory()
7388 &buf_ion_info->ion_alloc_data.handle)) { in free_ion_memory()
7394 buf_ion_info->ion_alloc_data.handle = NULL; in free_ion_memory()
[all …]
Domx_vdec_hevc_swvdec.cpp4320 if (drv_ctx.extradata_info.ion.ion_alloc_data.handle) { in allocate_extradata()
4333 &drv_ctx.extradata_info.ion.ion_alloc_data, in allocate_extradata()
4496 &drv_ctx.op_buf_ion_info[i].ion_alloc_data, in use_output_buffer()
5130 &drv_ctx.ip_buf_ion_info[i].ion_alloc_data, in allocate_input_buffer()
5276 struct ion_allocation_data ion_alloc_data; in allocate_output_buffer() local
5325 &ion_alloc_data, &fd_ion_data,flags, heap_id); in allocate_output_buffer()
5448 drv_ctx.op_buf_ion_info[i].ion_alloc_data = ion_alloc_data; in allocate_output_buffer()
7927 ion_buf_info.ion_alloc_data = *alloc_data; in alloc_map_ion_memory()
7946 &buf_ion_info->ion_alloc_data.handle)) { in free_ion_memory()
7952 buf_ion_info->ion_alloc_data.handle = 0; in free_ion_memory()
[all …]
Domx_vdec_hevc.cpp3590 if (drv_ctx.extradata_info.ion.ion_alloc_data.handle) { in allocate_extradata()
3599 &drv_ctx.extradata_info.ion.ion_alloc_data, in allocate_extradata()
3724 &drv_ctx.op_buf_ion_info[i].ion_alloc_data, in use_output_buffer()
4270 &drv_ctx.ip_buf_ion_info[i].ion_alloc_data, in allocate_input_buffer()
4400 struct ion_allocation_data ion_alloc_data; in allocate_output_buffer() local
4441 &ion_alloc_data, &fd_ion_data, secure_mode ? ION_SECURE : 0); in allocate_output_buffer()
4553 drv_ctx.op_buf_ion_info[i].ion_alloc_data = ion_alloc_data; in allocate_output_buffer()
6967 ion_buf_info.ion_alloc_data = *alloc_data; in alloc_map_ion_memory()
6986 &buf_ion_info->ion_alloc_data.handle)) { in free_ion_memory()
6991 buf_ion_info->ion_alloc_data.handle = NULL; in free_ion_memory()
[all …]
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_hevc_swvdec.cpp4513 if (drv_ctx.extradata_info.ion.ion_alloc_data.handle) { in allocate_extradata()
4528 &drv_ctx.extradata_info.ion.ion_alloc_data, in allocate_extradata()
4693 &drv_ctx.op_buf_ion_info[i].ion_alloc_data, in use_output_buffer()
5330 &drv_ctx.ip_buf_ion_info[i].ion_alloc_data, in allocate_input_buffer()
5478 struct ion_allocation_data ion_alloc_data; in allocate_output_buffer() local
5529 &ion_alloc_data, &fd_ion_data,flags, heap_id); in allocate_output_buffer()
5652 drv_ctx.op_buf_ion_info[i].ion_alloc_data = ion_alloc_data; in allocate_output_buffer()
8142 ion_buf_info.ion_alloc_data = *alloc_data; in alloc_map_ion_memory()
8161 &buf_ion_info->ion_alloc_data.handle)) { in free_ion_memory()
8167 buf_ion_info->ion_alloc_data.handle = 0; in free_ion_memory()
[all …]
Domx_vdec_hevc.cpp3569 if (drv_ctx.extradata_info.ion.ion_alloc_data.handle) { in allocate_extradata()
3578 &drv_ctx.extradata_info.ion.ion_alloc_data, in allocate_extradata()
3703 &drv_ctx.op_buf_ion_info[i].ion_alloc_data, in use_output_buffer()
4249 &drv_ctx.ip_buf_ion_info[i].ion_alloc_data, in allocate_input_buffer()
4379 struct ion_allocation_data ion_alloc_data; in allocate_output_buffer() local
4420 &ion_alloc_data, &fd_ion_data, secure_mode ? ION_SECURE : 0); in allocate_output_buffer()
4532 drv_ctx.op_buf_ion_info[i].ion_alloc_data = ion_alloc_data; in allocate_output_buffer()
6931 ion_buf_info.ion_alloc_data = *alloc_data; in alloc_map_ion_memory()
6950 &buf_ion_info->ion_alloc_data.handle)) { in free_ion_memory()
6955 buf_ion_info->ion_alloc_data.handle = NULL; in free_ion_memory()
[all …]
/hardware/qcom/media/msm8996/videopp/src/
Domx_vdpp.cpp3957 &drv_ctx.op_buf_ion_info[i].ion_alloc_data, in use_output_buffer()
4774 &drv_ctx.ip_buf_ion_info[i].ion_alloc_data, in allocate_input_buffer()
4858 struct ion_allocation_data ion_alloc_data; in allocate_output_buffer() local
4878 &ion_alloc_data, &fd_ion_data, 0); in allocate_output_buffer()
4946 drv_ctx.op_buf_ion_info[i].ion_alloc_data = ion_alloc_data; in allocate_output_buffer()
6611 ion_buf_info.ion_alloc_data = *alloc_data; in alloc_map_ion_memory()
6630 &buf_ion_info->ion_alloc_data.handle)) { in free_ion_memory()
6635 buf_ion_info->ion_alloc_data.handle = NULL; in free_ion_memory()

12