Home
last modified time | relevance | path

Searched refs:ion_device_fd (Results 1 – 23 of 23) sorted by relevance

/hardware/qcom/media/mm-video-v4l2/vidc/venc/src/
Domx_video_base.cpp2122 m_pInput_ion[i].ion_device_fd =-1; in use_input_buffer()
2151 m_pInput_ion[i].ion_device_fd = alloc_map_ion_memory(m_sInPortDef.nBufferSize, in use_input_buffer()
2155 m_pInput_ion[i].ion_device_fd = alloc_map_ion_memory(m_sInPortDef.nBufferSize, in use_input_buffer()
2159 if (m_pInput_ion[i].ion_device_fd < 0) { in use_input_buffer()
2313 m_pOutput_ion[i].ion_device_fd =-1; in use_output_buffer()
2341 m_pOutput_ion[i].ion_device_fd = alloc_map_ion_memory(align_size, in use_output_buffer()
2345 m_pOutput_ion[i].ion_device_fd = alloc_map_ion_memory( in use_output_buffer()
2350 if (m_pOutput_ion[i].ion_device_fd < 0) { in use_output_buffer()
2716 m_pInput_ion[i].ion_device_fd =-1; in allocate_input_buffer()
2741 m_pInput_ion[i].ion_device_fd = alloc_map_ion_memory(m_sInPortDef.nBufferSize, in allocate_input_buffer()
[all …]
Dvideo_encoder_device.cpp1461 recon_buff[count].ion_device_fd = open (MEM_DEVICE,O_RDONLY); in pmem_allocate()
1463 if (recon_buff[count].ion_device_fd < 0) { in pmem_allocate()
1481 rc = ioctl(recon_buff[count].ion_device_fd,ION_IOC_ALLOC,&recon_buff[count].alloc_data); in pmem_allocate()
1490 rc = ioctl(recon_buff[count].ion_device_fd,ION_IOC_MAP,&recon_buff[count].ion_alloc_fd); in pmem_allocate()
1532 if (ioctl(recon_buff[count].ion_device_fd,ION_IOC_FREE, in pmem_allocate()
1539 close(recon_buff[count].ion_device_fd); in pmem_allocate()
1540 recon_buff[count].ion_device_fd =-1; in pmem_allocate()
1592 if (ioctl(recon_buff[cnt].ion_device_fd,ION_IOC_FREE, in pmem_free()
1599 close(recon_buff[cnt].ion_device_fd); in pmem_free()
1600 recon_buff[cnt].ion_device_fd =-1; in pmem_free()
Dvideo_encoder_device_v4l2.cpp568 extradata_info.ion.ion_device_fd = venc_handle->alloc_map_ion_memory( in allocate_extradata()
573 if (extradata_info.ion.ion_device_fd < 0) { in allocate_extradata()
/hardware/qcom/media/mm-video-legacy/vidc/venc/src/
Domx_video_base.cpp2102 m_pInput_ion[i].ion_device_fd =-1; in use_input_buffer()
2134 m_pInput_ion[i].ion_device_fd = alloc_map_ion_memory(m_sInPortDef.nBufferSize, in use_input_buffer()
2137 if(m_pInput_ion[i].ion_device_fd < 0) { in use_input_buffer()
2299 m_pOutput_ion[i].ion_device_fd =-1; in use_output_buffer()
2332 m_pOutput_ion[i].ion_device_fd = alloc_map_ion_memory( in use_output_buffer()
2336 if(m_pOutput_ion[i].ion_device_fd < 0) { in use_output_buffer()
2727 m_pInput_ion[i].ion_device_fd =-1; in allocate_input_buffer()
2752 m_pInput_ion[i].ion_device_fd = alloc_map_ion_memory(m_sInPortDef.nBufferSize, in allocate_input_buffer()
2755 if(m_pInput_ion[i].ion_device_fd < 0) { in allocate_input_buffer()
2884 m_pOutput_ion[i].ion_device_fd =-1; in allocate_output_buffer()
[all …]
Dvideo_encoder_device_copper.cpp1227 recon_buff[count].ion_device_fd = open (MEM_DEVICE,O_RDONLY|O_DSYNC); in pmem_allocate()
1228 if(recon_buff[count].ion_device_fd < 0) in pmem_allocate()
1240 rc = ioctl(recon_buff[count].ion_device_fd,ION_IOC_ALLOC,&recon_buff[count].alloc_data); in pmem_allocate()
1248 rc = ioctl(recon_buff[count].ion_device_fd,ION_IOC_MAP,&recon_buff[count].ion_alloc_fd); in pmem_allocate()
1288 if(ioctl(recon_buff[count].ion_device_fd,ION_IOC_FREE, in pmem_allocate()
1294 close(recon_buff[count].ion_device_fd); in pmem_allocate()
1295 recon_buff[count].ion_device_fd =-1; in pmem_allocate()
1341 if(ioctl(recon_buff[cnt].ion_device_fd,ION_IOC_FREE, in pmem_free()
1347 close(recon_buff[cnt].ion_device_fd); in pmem_free()
1348 recon_buff[cnt].ion_device_fd =-1; in pmem_free()
Dvideo_encoder_device.cpp1257 recon_buff[count].ion_device_fd = open (MEM_DEVICE,O_RDONLY | O_DSYNC); in pmem_allocate()
1258 if(recon_buff[count].ion_device_fd < 0) in pmem_allocate()
1273 rc = ioctl(recon_buff[count].ion_device_fd,ION_IOC_ALLOC,&recon_buff[count].alloc_data); in pmem_allocate()
1281 rc = ioctl(recon_buff[count].ion_device_fd,ION_IOC_MAP,&recon_buff[count].ion_alloc_fd); in pmem_allocate()
1323 if(ioctl(recon_buff[count].ion_device_fd,ION_IOC_FREE, in pmem_allocate()
1329 close(recon_buff[count].ion_device_fd); in pmem_allocate()
1330 recon_buff[count].ion_device_fd =-1; in pmem_allocate()
1386 if(ioctl(recon_buff[cnt].ion_device_fd,ION_IOC_FREE, in pmem_free()
1392 close(recon_buff[cnt].ion_device_fd); in pmem_free()
1393 recon_buff[cnt].ion_device_fd =-1; in pmem_free()
/hardware/qcom/media/mm-video-legacy/vidc/venc/inc/
Domx_video_common.h76 int ion_device_fd; member
Dvideo_encoder_device.h94 int ion_device_fd; member
Dvideo_encoder_device_copper.h207 int ion_device_fd; member
/hardware/qcom/media/mm-video-v4l2/vidc/venc/inc/
Domx_video_common.h96 int ion_device_fd; member
Dvideo_encoder_device.h100 int ion_device_fd; member
Dvideo_encoder_device_v4l2.h287 int ion_device_fd; member
/hardware/qcom/media/mm-video-legacy/vidc/venc/test/
Dvenc_test.cpp299 int ion_device_fd; member
366 ion_data.ion_device_fd = open (PMEM_DEVICE,O_RDONLY); in PmemMalloc()
367 if(ion_data.ion_device_fd < 0) in PmemMalloc()
378 rc = ioctl(ion_data.ion_device_fd,ION_IOC_ALLOC,&ion_data.alloc_data); in PmemMalloc()
386 rc = ioctl(ion_data.ion_device_fd,ION_IOC_MAP,&ion_data.ion_alloc_fd); in PmemMalloc()
409 if(ioctl(ion_data.ion_device_fd,ION_IOC_FREE, in PmemMalloc()
415 close(ion_data.ion_device_fd); in PmemMalloc()
416 ion_data.ion_device_fd =-1; in PmemMalloc()
435 if(ioctl(ion_data.ion_device_fd,ION_IOC_FREE, in PmemFree()
441 close(ion_data.ion_device_fd); in PmemFree()
[all …]
/hardware/qcom/media/mm-video-v4l2/vidc/venc/test/
Dvenc_test.cpp328 int ion_device_fd; member
395 ion_data.ion_device_fd = open (PMEM_DEVICE, O_RDONLY); in PmemMalloc()
397 if (ion_data.ion_device_fd < 0) { in PmemMalloc()
408 rc = ioctl(ion_data.ion_device_fd,ION_IOC_ALLOC,&ion_data.alloc_data); in PmemMalloc()
417 rc = ioctl(ion_data.ion_device_fd,ION_IOC_MAP,&ion_data.ion_alloc_fd); in PmemMalloc()
445 if (ioctl(ion_data.ion_device_fd,ION_IOC_FREE, in PmemMalloc()
452 close(ion_data.ion_device_fd); in PmemMalloc()
453 ion_data.ion_device_fd =-1; in PmemMalloc()
474 if (ioctl(ion_data.ion_device_fd,ION_IOC_FREE, in PmemFree()
481 close(ion_data.ion_device_fd); in PmemFree()
[all …]
/hardware/qcom/media/mm-video-v4l2/vidc/vdec/src/
Domx_vdec.cpp3971 drv_ctx.op_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( in use_output_buffer()
3976 if (drv_ctx.op_buf_ion_info[i].ion_device_fd < 0) { in use_output_buffer()
4555 drv_ctx.ip_buf_ion_info[i].ion_device_fd = -1; in allocate_input_buffer()
4571 drv_ctx.ip_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( in allocate_input_buffer()
4576 if (drv_ctx.ip_buf_ion_info[i].ion_device_fd < 0) { in allocate_input_buffer()
4701 int ion_device_fd =-1; in allocate_output_buffer() local
4813 drv_ctx.op_buf_ion_info[i].ion_device_fd =-1; in allocate_output_buffer()
4899 drv_ctx.op_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( in allocate_output_buffer()
4904 if (drv_ctx.op_buf_ion_info[i].ion_device_fd < 0) { in allocate_output_buffer()
4967 m_heap_ptr[i].video_heap_ptr = new VideoHeap (drv_ctx.op_buf_ion_info[i].ion_device_fd, in allocate_output_buffer()
[all …]
Domx_vdec_hevc_swvdec.cpp4331 drv_ctx.extradata_info.ion.ion_device_fd = alloc_map_ion_memory( in allocate_extradata()
4335 if (drv_ctx.extradata_info.ion.ion_device_fd < 0) { in allocate_extradata()
4494 drv_ctx.op_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( in use_output_buffer()
4498 if(drv_ctx.op_buf_ion_info[i].ion_device_fd < 0) { in use_output_buffer()
4499 … DEBUG_PRINT_ERROR("ION device fd is bad %d", drv_ctx.op_buf_ion_info[i].ion_device_fd); in use_output_buffer()
5097 drv_ctx.ip_buf_ion_info[i].ion_device_fd = -1; in allocate_input_buffer()
5128 drv_ctx.ip_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( in allocate_input_buffer()
5132 if(drv_ctx.ip_buf_ion_info[i].ion_device_fd < 0) { in allocate_input_buffer()
5275 int ion_device_fd =-1; in allocate_output_buffer() local
5322 ion_device_fd = alloc_map_ion_memory( in allocate_output_buffer()
[all …]
Domx_vdec_hevc.cpp3599 drv_ctx.extradata_info.ion.ion_device_fd = alloc_map_ion_memory( in allocate_extradata()
3603 if (drv_ctx.extradata_info.ion.ion_device_fd < 0) { in allocate_extradata()
3724 drv_ctx.op_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( in use_output_buffer()
3728 if (drv_ctx.op_buf_ion_info[i].ion_device_fd < 0) { in use_output_buffer()
3729 … DEBUG_PRINT_ERROR("ION device fd is bad %d", drv_ctx.op_buf_ion_info[i].ion_device_fd); in use_output_buffer()
4251 drv_ctx.ip_buf_ion_info[i].ion_device_fd = -1; in allocate_input_buffer()
4270 drv_ctx.ip_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( in allocate_input_buffer()
4274 if (drv_ctx.ip_buf_ion_info[i].ion_device_fd < 0) { in allocate_input_buffer()
4401 int ion_device_fd =-1; in allocate_output_buffer() local
4440 ion_device_fd = alloc_map_ion_memory( in allocate_output_buffer()
[all …]
Domx_vdec_msm8974.cpp4234 drv_ctx.extradata_info.ion.ion_device_fd = alloc_map_ion_memory( in allocate_extradata()
4238 if (drv_ctx.extradata_info.ion.ion_device_fd < 0) { in allocate_extradata()
4391 drv_ctx.op_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( in use_output_buffer()
4395 if (drv_ctx.op_buf_ion_info[i].ion_device_fd < 0) { in use_output_buffer()
4396 … DEBUG_PRINT_ERROR("ION device fd is bad %d", drv_ctx.op_buf_ion_info[i].ion_device_fd); in use_output_buffer()
4931 drv_ctx.ip_buf_ion_info[i].ion_device_fd = -1; in allocate_input_buffer()
4949 drv_ctx.ip_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( in allocate_input_buffer()
4953 if (drv_ctx.ip_buf_ion_info[i].ion_device_fd < 0) { in allocate_input_buffer()
5083 int ion_device_fd =-1; in allocate_output_buffer() local
5121 ion_device_fd = alloc_map_ion_memory( in allocate_output_buffer()
[all …]
/hardware/qcom/media/mm-video-legacy/vidc/vdec/src/
Domx_vdec.cpp4179 drv_ctx.op_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( in use_output_buffer()
4183 if(drv_ctx.op_buf_ion_info[i].ion_device_fd < 0) { in use_output_buffer()
4754 drv_ctx.ip_buf_ion_info[i].ion_device_fd = -1; in allocate_input_buffer()
4773 drv_ctx.ip_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( in allocate_input_buffer()
4777 if(drv_ctx.ip_buf_ion_info[i].ion_device_fd < 0) { in allocate_input_buffer()
4902 int ion_device_fd =-1; in allocate_output_buffer() local
5016 drv_ctx.op_buf_ion_info[i].ion_device_fd =-1; in allocate_output_buffer()
5092 drv_ctx.op_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( in allocate_output_buffer()
5096 if (drv_ctx.op_buf_ion_info[i].ion_device_fd < 0) { in allocate_output_buffer()
5160 m_heap_ptr[i].video_heap_ptr = new VideoHeap (drv_ctx.op_buf_ion_info[i].ion_device_fd, in allocate_output_buffer()
[all …]
Domx_vdec_copper.cpp3847 drv_ctx.op_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( in use_output_buffer()
3851 if(drv_ctx.op_buf_ion_info[i].ion_device_fd < 0) { in use_output_buffer()
4384 drv_ctx.ip_buf_ion_info[i].ion_device_fd = -1; in allocate_input_buffer()
4405 drv_ctx.ip_buf_ion_info[i].ion_device_fd = alloc_map_ion_memory( in allocate_input_buffer()
4409 if(drv_ctx.ip_buf_ion_info[i].ion_device_fd < 0) { in allocate_input_buffer()
4544 int ion_device_fd =-1; in allocate_output_buffer() local
4583 ion_device_fd = alloc_map_ion_memory( in allocate_output_buffer()
4587 if (ion_device_fd < 0) { in allocate_output_buffer()
4703 drv_ctx.op_buf_ion_info[i].ion_device_fd = ion_device_fd; in allocate_output_buffer()
7111 ion_buf_info.ion_device_fd = fd; in alloc_map_ion_memory()
[all …]
/hardware/qcom/media/mm-video-legacy/vidc/vdec/inc/
Domx_vdec.h221 int ion_device_fd; member
/hardware/qcom/media/mm-video-v4l2/vidc/vdec/inc/
Domx_vdec_hevc.h206 int ion_device_fd; member
Domx_vdec.h235 int ion_device_fd; member