Home
last modified time | relevance | path

Searched refs:pmem_fd (Results 1 – 25 of 94) sorted by relevance

1234

/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/test/
Ddecoder_driver_test.c370 if (ptemp [i]->pmem_fd != -1) { in free_buffer()
373 close (ptemp [i]->pmem_fd); in free_buffer()
402 if (ptemp [i]->pmem_fd != -1) { in free_buffer()
405 close (ptemp [i]->pmem_fd); in free_buffer()
513 ptemp [i]->pmem_fd = -1; in allocate_buffer()
518 ptemp [i]->pmem_fd = open ("/dev/pmem_adsp",O_RDWR); in allocate_buffer()
520 if (ptemp [i]->pmem_fd < 0) { in allocate_buffer()
526 MAP_SHARED,ptemp [i]->pmem_fd,0); in allocate_buffer()
527 DEBUG_PRINT ("\n pmem fd = %d virt addr = %p",ptemp [i]->pmem_fd,\ in allocate_buffer()
594 fillbuffer.buffer.pmem_fd = in start_decoding()
[all …]
Domx_vdec_test.cpp303 int pmem_fd; member
503 static bool align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size,
2595 p_eglHeaders[bufCnt]->pmem_fd = open(PMEM_DEVICE,O_RDWR); in use_output_buffer()
2597 if (p_eglHeaders[bufCnt]->pmem_fd < 0) { in use_output_buffer()
2604 align_pmem_buffers(p_eglHeaders[bufCnt]->pmem_fd, bufSize, in use_output_buffer()
2607 …RINT_ERROR("\n allocation size %u pmem fd %d",(unsigned int)bufSize,p_eglHeaders[bufCnt]->pmem_fd); in use_output_buffer()
2609 MAP_SHARED,p_eglHeaders[bufCnt]->pmem_fd,0); in use_output_buffer()
2674 pPMEMInfo[bufCnt].pmem_fd = open(PMEM_DEVICE,O_RDWR);; in use_output_buffer_multiple_fd()
2675 if ((int)pPMEMInfo[bufCnt].pmem_fd < 0) { in use_output_buffer_multiple_fd()
2681 align_pmem_buffers(pPMEMInfo[bufCnt].pmem_fd, bufSize, in use_output_buffer_multiple_fd()
[all …]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/test/
Ddecoder_driver_test.c389 if (ptemp [i]->pmem_fd != -1) in free_buffer()
393 close (ptemp [i]->pmem_fd); in free_buffer()
427 if (ptemp [i]->pmem_fd != -1) in free_buffer()
431 close (ptemp [i]->pmem_fd); in free_buffer()
553 ptemp [i]->pmem_fd = -1; in allocate_buffer()
559 ptemp [i]->pmem_fd = open ("/dev/pmem_adsp",O_RDWR); in allocate_buffer()
561 if (ptemp [i]->pmem_fd < 0) in allocate_buffer()
568 MAP_SHARED,ptemp [i]->pmem_fd,0); in allocate_buffer()
569 DEBUG_PRINT ("\n pmem fd = %d virt addr = %p",ptemp [i]->pmem_fd,\ in allocate_buffer()
637 fillbuffer.buffer.pmem_fd = in start_decoding()
[all …]
Domx_vdec_test.cpp181 int pmem_fd; member
368 static bool align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size,
2349 p_eglHeaders[bufCnt]->pmem_fd = open(PMEM_DEVICE,O_RDWR); in use_output_buffer()
2351 if(p_eglHeaders[bufCnt]->pmem_fd < 0) { in use_output_buffer()
2358 align_pmem_buffers(p_eglHeaders[bufCnt]->pmem_fd, bufSize, in use_output_buffer()
2361 DEBUG_PRINT_ERROR("\n allocation size %d pmem fd %d",bufSize,p_eglHeaders[bufCnt]->pmem_fd); in use_output_buffer()
2363 MAP_SHARED,p_eglHeaders[bufCnt]->pmem_fd,0); in use_output_buffer()
2428 pPMEMInfo[bufCnt].pmem_fd = open(PMEM_DEVICE,O_RDWR);; in use_output_buffer_multiple_fd()
2429 if(pPMEMInfo[bufCnt].pmem_fd < 0) { in use_output_buffer_multiple_fd()
2435 align_pmem_buffers(pPMEMInfo[bufCnt].pmem_fd, bufSize, in use_output_buffer_multiple_fd()
[all …]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
Domx_vdec.cpp3953 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer()
3980 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
3983 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
3986 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
3990 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) { in use_output_buffer()
3991 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
3994 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
3999 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer()
4003 close(drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer()
4013 drv_ctx.ptr_outputbuffer[i].pmem_fd,0); in use_output_buffer()
[all …]
Domx_vdec_hevc.cpp3711 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer()
3730 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
3733 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
3736 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
3737 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer()
3742 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) { in use_output_buffer()
3743 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
3745 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
3746 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer()
3751 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer()
[all …]
Domx_vdec_hevc_swvdec.cpp4480 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer()
4502 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
4505 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
4508 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
4509 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer()
4514 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) in use_output_buffer()
4516 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
4518 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
4519 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer()
4524 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer()
[all …]
Domx_vdec_msm8974.cpp4826 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer()
4844 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
4847 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
4850 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
4851 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer()
4856 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) { in use_output_buffer()
4857 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
4859 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
4860 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer()
4865 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer()
[all …]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/
Domx_vdec.cpp4174 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer()
4192 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
4195 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
4198 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
4202 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) in use_output_buffer()
4204 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
4206 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
4211 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer()
4216 close(drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer()
4224 drv_ctx.ptr_outputbuffer[i].pmem_fd,0); in use_output_buffer()
[all …]
Domx_vdec_copper.cpp3837 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer()
3854 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
3857 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
3860 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
3864 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) in use_output_buffer()
3866 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
3868 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
3873 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer()
3878 close(drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer()
3886 drv_ctx.ptr_outputbuffer[i].pmem_fd,0); in use_output_buffer()
[all …]
/hardware/qcom/msm8960/original-kernel-headers/linux/
Dmsm_vidc_dec.h255 int pmem_fd; member
505 int pmem_fd; member
521 int pmem_fd; member
580 int pmem_fd; member
594 int pmem_fd; member
/hardware/qcom/msm8998/kernel-headers/linux/
Dmsm_vidc_dec.h184 int pmem_fd; member
474 int pmem_fd; member
491 int pmem_fd; member
560 int pmem_fd; member
575 int pmem_fd; member
/hardware/qcom/msm8998/original-kernel-headers/linux/
Dmsm_vidc_dec.h255 int pmem_fd; member
514 int pmem_fd; member
530 int pmem_fd; member
593 int pmem_fd; member
607 int pmem_fd; member
/hardware/qcom/msm8996/original-kernel-headers/linux/
Dmsm_vidc_dec.h255 int pmem_fd; member
510 int pmem_fd; member
526 int pmem_fd; member
589 int pmem_fd; member
603 int pmem_fd; member
/hardware/qcom/msm8960/kernel-headers/linux/
Dmsm_vidc_dec.h181 int pmem_fd; member
462 int pmem_fd; member
480 int pmem_fd; member
544 int pmem_fd; member
559 int pmem_fd; member
/hardware/qcom/msm8x84/kernel-headers/linux/
Dmsm_vidc_dec.h184 int pmem_fd; member
467 int pmem_fd; member
485 int pmem_fd; member
550 int pmem_fd; member
565 int pmem_fd; member
/hardware/qcom/msm8996/kernel-headers/linux/
Dmsm_vidc_dec.h184 int pmem_fd; member
471 int pmem_fd; member
489 int pmem_fd; member
557 int pmem_fd; member
572 int pmem_fd; member
/hardware/qcom/msm8994/original-kernel-headers/linux/
Dmsm_vidc_dec.h255 int pmem_fd; member
507 int pmem_fd; member
523 int pmem_fd; member
583 int pmem_fd; member
597 int pmem_fd; member
/hardware/qcom/msm8x84/original-kernel-headers/linux/
Dmsm_vidc_dec.h255 int pmem_fd; member
507 int pmem_fd; member
523 int pmem_fd; member
583 int pmem_fd; member
597 int pmem_fd; member
/hardware/qcom/msm8994/kernel-headers/linux/
Dmsm_vidc_dec.h184 int pmem_fd; member
467 int pmem_fd; member
485 int pmem_fd; member
550 int pmem_fd; member
565 int pmem_fd; member
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_hevc.cpp3690 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer()
3709 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
3712 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
3715 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
3716 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer()
3721 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) { in use_output_buffer()
3722 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
3724 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
3725 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer()
3730 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer()
[all …]
Domx_vdec_hevc_swvdec.cpp4677 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd; in use_output_buffer()
4699 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
4702 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
4705 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
4706 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer()
4711 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) in use_output_buffer()
4713 drv_ctx.ptr_outputbuffer[i].pmem_fd = \ in use_output_buffer()
4715 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) { in use_output_buffer()
4716 … DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd); in use_output_buffer()
4721 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd, in use_output_buffer()
[all …]
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/vdec/src/
Domx_swvdec.cpp2252 p_buffer_payload->pmem_fd = p_private_handle->fd; in fill_this_buffer()
2261 meta_buffer_ref_add(ii, p_buffer_payload->pmem_fd); in fill_this_buffer()
3643 int pmem_fd = -1; in buffer_allocate_ip() local
3661 pmem_fd = m_buffer_array_ip[ii].ion_info.data_fd; in buffer_allocate_ip()
3663 bufferaddr = ion_map(pmem_fd,size); in buffer_allocate_ip()
3668 pmem_fd, in buffer_allocate_ip()
3671 close(pmem_fd); in buffer_allocate_ip()
3681 m_buffer_array_ip[ii].buffer_payload.pmem_fd = pmem_fd; in buffer_allocate_ip()
3690 m_buffer_array_ip[ii].buffer_swvdec.fd = pmem_fd; in buffer_allocate_ip()
3711 pmem_fd, in buffer_allocate_ip()
[all …]
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/vdec/src/
Domx_swvdec.cpp2241 p_buffer_payload->pmem_fd = p_private_handle->fd; in fill_this_buffer()
2250 meta_buffer_ref_add(ii, p_buffer_payload->pmem_fd); in fill_this_buffer()
3632 int pmem_fd = -1; in buffer_allocate_ip() local
3652 pmem_fd = m_buffer_array_ip[ii].ion_info.ion_fd_data.fd; in buffer_allocate_ip()
3658 pmem_fd, in buffer_allocate_ip()
3664 pmem_fd, in buffer_allocate_ip()
3667 close(pmem_fd); in buffer_allocate_ip()
3677 m_buffer_array_ip[ii].buffer_payload.pmem_fd = pmem_fd; in buffer_allocate_ip()
3692 pmem_fd, in buffer_allocate_ip()
3772 int pmem_fd = -1; in buffer_allocate_op() local
[all …]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/src/
Dvideo_encoder_device.cpp1249 OMX_U32 pmem_fd = -1; in pmem_allocate() local
1288 pmem_fd = recon_buff[count].ion_alloc_fd.fd; in pmem_allocate()
1291 pmem_fd = open(MEM_DEVICE, O_RDWR); in pmem_allocate()
1293 if ((int)(pmem_fd) < 0) in pmem_allocate()
1305 if (ioctl(pmem_fd, PMEM_ALLOCATE_ALIGNED, &allocation) < 0) in pmem_allocate()
1315 MAP_SHARED, pmem_fd, 0); in pmem_allocate()
1319 close(pmem_fd); in pmem_allocate()
1320 pmem_fd = -1; in pmem_allocate()
1336 DEBUG_PRINT_HIGH("\n Allocated virt:%p, FD: %d of size %d \n", buf_addr, pmem_fd, size); in pmem_allocate()
1339 recon_addr.pmem_fd = pmem_fd; in pmem_allocate()
[all …]

1234