Searched refs:pmem_fd (Results 1 - 25 of 87) sorted by relevance

1234

/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/test/
H A Ddecoder_driver_test.c389 if (ptemp [i]->pmem_fd != -1)
393 close (ptemp [i]->pmem_fd);
427 if (ptemp [i]->pmem_fd != -1)
431 close (ptemp [i]->pmem_fd);
553 ptemp [i]->pmem_fd = -1;
559 ptemp [i]->pmem_fd = open ("/dev/pmem_adsp",O_RDWR);
561 if (ptemp [i]->pmem_fd < 0)
568 MAP_SHARED,ptemp [i]->pmem_fd,0);
569 DEBUG_PRINT ("\n pmem fd = %d virt addr = %p",ptemp [i]->pmem_fd,\
637 fillbuffer.buffer.pmem_fd
[all...]
H A Domx_vdec_test.cpp181 int pmem_fd; member in struct:temp_egl
368 static bool align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size,
2349 p_eglHeaders[bufCnt]->pmem_fd = open(PMEM_DEVICE,O_RDWR);
2351 if(p_eglHeaders[bufCnt]->pmem_fd < 0) {
2358 align_pmem_buffers(p_eglHeaders[bufCnt]->pmem_fd, bufSize,
2361 DEBUG_PRINT_ERROR("\n allocation size %d pmem fd %d",bufSize,p_eglHeaders[bufCnt]->pmem_fd);
2363 MAP_SHARED,p_eglHeaders[bufCnt]->pmem_fd,0);
2428 pPMEMInfo[bufCnt].pmem_fd = open(PMEM_DEVICE,O_RDWR);;
2429 if(pPMEMInfo[bufCnt].pmem_fd < 0) {
2435 align_pmem_buffers(pPMEMInfo[bufCnt].pmem_fd, bufSiz
3836 align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, OMX_U32 alignment) argument
3898 int pmem_fd = open (PMEM_DEVICE,O_RDWR); local
[all...]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/test/
H A Ddecoder_driver_test.c370 if (ptemp [i]->pmem_fd != -1) {
373 close (ptemp [i]->pmem_fd);
402 if (ptemp [i]->pmem_fd != -1) {
405 close (ptemp [i]->pmem_fd);
513 ptemp [i]->pmem_fd = -1;
518 ptemp [i]->pmem_fd = open ("/dev/pmem_adsp",O_RDWR);
520 if (ptemp [i]->pmem_fd < 0) {
526 MAP_SHARED,ptemp [i]->pmem_fd,0);
527 DEBUG_PRINT ("\n pmem fd = %d virt addr = %p",ptemp [i]->pmem_fd,\
594 fillbuffer.buffer.pmem_fd
[all...]
H A Domx_vdec_test.cpp303 int pmem_fd; member in struct:temp_egl
503 static bool align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size,
2595 p_eglHeaders[bufCnt]->pmem_fd = open(PMEM_DEVICE,O_RDWR);
2597 if (p_eglHeaders[bufCnt]->pmem_fd < 0) {
2604 align_pmem_buffers(p_eglHeaders[bufCnt]->pmem_fd, bufSize,
2607 DEBUG_PRINT_ERROR("\n allocation size %u pmem fd %d",(unsigned int)bufSize,p_eglHeaders[bufCnt]->pmem_fd);
2609 MAP_SHARED,p_eglHeaders[bufCnt]->pmem_fd,0);
2674 pPMEMInfo[bufCnt].pmem_fd = open(PMEM_DEVICE,O_RDWR);;
2675 if ((int)pPMEMInfo[bufCnt].pmem_fd < 0) {
2681 align_pmem_buffers(pPMEMInfo[bufCnt].pmem_fd, bufSiz
4292 align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, OMX_U32 alignment) argument
4352 int pmem_fd = open (PMEM_DEVICE,O_RDWR); local
[all...]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
H A Domx_vdec.cpp3953 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
3980 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3983 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3986 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
3990 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) {
3991 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3994 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
3999 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
4003 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
4013 drv_ctx.ptr_outputbuffer[i].pmem_fd,
4515 int pmem_fd = -1; local
4710 int pmem_fd = -1; local
5967 int pmem_fd; member in struct:temp_egl
7267 align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, OMX_U32 alignment) argument
8946 OMX_U32 pmem_fd = -1, pmem_fd_iommu = -1; local
9082 OMX_U32 pmem_fd = -1; local
[all...]
H A Domx_vdec_hevc.cpp3711 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
3730 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3733 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3736 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
3737 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
3742 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) {
3743 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3745 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
3746 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
3751 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
4211 int pmem_fd = -1; local
4411 int pmem_fd = -1; local
5559 int pmem_fd; member in struct:temp_egl
6900 align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, OMX_U32 alignment) argument
[all...]
H A Domx_vdec_hevc_swvdec.cpp4480 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
4502 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4505 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4508 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4509 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
4514 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0)
4516 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4518 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4519 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
4524 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
5053 int pmem_fd = -1; local
5288 int pmem_fd = -1; local
6652 int pmem_fd; member in struct:temp_egl
7858 align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, OMX_U32 alignment) argument
10176 int pmem_fd = -1; local
[all...]
H A Domx_vdec_msm8974.cpp4824 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
4842 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4845 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4848 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4849 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
4854 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) {
4855 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4857 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4858 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
4863 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
5350 int pmem_fd = -1; local
5568 int pmem_fd = -1; local
6872 int pmem_fd; member in struct:temp_egl
8463 align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, OMX_U32 alignment) argument
[all...]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/
H A Domx_vdec.cpp4174 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
4192 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4195 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4198 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4202 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0)
4204 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4206 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4211 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
4216 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
4224 drv_ctx.ptr_outputbuffer[i].pmem_fd,
4716 int pmem_fd = -1; local
4917 int pmem_fd = -1; local
6149 int pmem_fd; member in struct:temp_egl
7580 align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, OMX_U32 alignment) argument
8905 OMX_U32 pmem_fd = -1; local
[all...]
H A Domx_vdec_copper.cpp3837 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
3854 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3857 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3860 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
3864 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0)
3866 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3868 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
3873 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
3878 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
3886 drv_ctx.ptr_outputbuffer[i].pmem_fd,
4340 int pmem_fd = -1; local
4557 int pmem_fd = -1; local
5757 int pmem_fd; member in struct:temp_egl
7138 align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, OMX_U32 alignment) argument
[all...]
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/
H A Domx_vdec_hevc.cpp3690 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
3709 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3712 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3715 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
3716 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
3721 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) {
3722 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3724 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
3725 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
3730 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
4190 int pmem_fd = -1; local
4390 int pmem_fd = -1; local
5523 int pmem_fd; member in struct:temp_egl
6864 align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, OMX_U32 alignment) argument
[all...]
H A Domx_vdec_hevc_swvdec.cpp4677 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
4699 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4702 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4705 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4706 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
4711 if(drv_ctx.ptr_outputbuffer[i].pmem_fd == 0)
4713 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4715 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4716 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
4721 if(!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
5249 int pmem_fd = -1; local
5490 int pmem_fd = -1; local
6855 int pmem_fd; member in struct:temp_egl
8073 align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, OMX_U32 alignment) argument
10399 int pmem_fd = -1; local
[all...]
/hardware/qcom/msm8960/kernel-headers/linux/
H A Dmsm_vidc_dec.h181 int pmem_fd; member in struct:vdec_bufferpayload
462 int pmem_fd; member in struct:vdec_seqheader
480 int pmem_fd; member in struct:vdec_input_frameinfo
544 int pmem_fd; member in struct:vdec_h264_mv
559 int pmem_fd; member in struct:vdec_meta_buffers
/hardware/qcom/msm8960/original-kernel-headers/linux/
H A Dmsm_vidc_dec.h255 int pmem_fd; member in struct:vdec_bufferpayload
505 int pmem_fd; member in struct:vdec_seqheader
521 int pmem_fd; member in struct:vdec_input_frameinfo
580 int pmem_fd; member in struct:vdec_h264_mv
594 int pmem_fd; member in struct:vdec_meta_buffers
/hardware/qcom/msm8994/kernel-headers/linux/
H A Dmsm_vidc_dec.h184 int pmem_fd; member in struct:vdec_bufferpayload
467 int pmem_fd; member in struct:vdec_seqheader
485 int pmem_fd; member in struct:vdec_input_frameinfo
550 int pmem_fd; member in struct:vdec_h264_mv
565 int pmem_fd; member in struct:vdec_meta_buffers
/hardware/qcom/msm8994/original-kernel-headers/linux/
H A Dmsm_vidc_dec.h255 int pmem_fd; member in struct:vdec_bufferpayload
507 int pmem_fd; member in struct:vdec_seqheader
523 int pmem_fd; member in struct:vdec_input_frameinfo
583 int pmem_fd; member in struct:vdec_h264_mv
597 int pmem_fd; member in struct:vdec_meta_buffers
/hardware/qcom/msm8996/kernel-headers/linux/
H A Dmsm_vidc_dec.h184 int pmem_fd; member in struct:vdec_bufferpayload
471 int pmem_fd; member in struct:vdec_seqheader
489 int pmem_fd; member in struct:vdec_input_frameinfo
557 int pmem_fd; member in struct:vdec_h264_mv
572 int pmem_fd; member in struct:vdec_meta_buffers
/hardware/qcom/msm8996/original-kernel-headers/linux/
H A Dmsm_vidc_dec.h255 int pmem_fd; member in struct:vdec_bufferpayload
510 int pmem_fd; member in struct:vdec_seqheader
526 int pmem_fd; member in struct:vdec_input_frameinfo
589 int pmem_fd; member in struct:vdec_h264_mv
603 int pmem_fd; member in struct:vdec_meta_buffers
/hardware/qcom/msm8998/kernel-headers/linux/
H A Dmsm_vidc_dec.h184 int pmem_fd; member in struct:vdec_bufferpayload
474 int pmem_fd; member in struct:vdec_seqheader
491 int pmem_fd; member in struct:vdec_input_frameinfo
560 int pmem_fd; member in struct:vdec_h264_mv
575 int pmem_fd; member in struct:vdec_meta_buffers
/hardware/qcom/msm8998/original-kernel-headers/linux/
H A Dmsm_vidc_dec.h255 int pmem_fd; member in struct:vdec_bufferpayload
514 int pmem_fd; member in struct:vdec_seqheader
530 int pmem_fd; member in struct:vdec_input_frameinfo
593 int pmem_fd; member in struct:vdec_h264_mv
607 int pmem_fd; member in struct:vdec_meta_buffers
/hardware/qcom/msm8x84/kernel-headers/linux/
H A Dmsm_vidc_dec.h184 int pmem_fd; member in struct:vdec_bufferpayload
467 int pmem_fd; member in struct:vdec_seqheader
485 int pmem_fd; member in struct:vdec_input_frameinfo
550 int pmem_fd; member in struct:vdec_h264_mv
565 int pmem_fd; member in struct:vdec_meta_buffers
/hardware/qcom/msm8x84/original-kernel-headers/linux/
H A Dmsm_vidc_dec.h255 int pmem_fd; member in struct:vdec_bufferpayload
507 int pmem_fd; member in struct:vdec_seqheader
523 int pmem_fd; member in struct:vdec_input_frameinfo
583 int pmem_fd; member in struct:vdec_h264_mv
597 int pmem_fd; member in struct:vdec_meta_buffers
/hardware/qcom/media/sdm845/mm-video-v4l2/vidc/vdec/src/
H A Domx_vdec_v4l2.cpp5589 drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
5608 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
5611 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
5614 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
5615 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
5620 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) {
5621 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
5623 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
5624 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d", drv_ctx.ptr_outputbuffer[i].pmem_fd);
5629 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
6168 int pmem_fd = -1; local
6357 int pmem_fd = -1; local
7571 int pmem_fd; member in struct:temp_egl
8626 align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size, OMX_U32 alignment) argument
[all...]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/src/
H A Dvideo_encoder_device.cpp1249 OMX_U32 pmem_fd = -1; local
1288 pmem_fd = recon_buff[count].ion_alloc_fd.fd;
1291 pmem_fd = open(MEM_DEVICE, O_RDWR);
1293 if ((int)(pmem_fd) < 0)
1305 if (ioctl(pmem_fd, PMEM_ALLOCATE_ALIGNED, &allocation) < 0)
1315 MAP_SHARED, pmem_fd, 0);
1319 close(pmem_fd);
1320 pmem_fd = -1;
1336 DEBUG_PRINT_HIGH("\n Allocated virt:%p, FD: %d of size %d \n", buf_addr, pmem_fd, size);
1339 recon_addr.pmem_fd
[all...]
H A Dvideo_encoder_device_copper.cpp1219 OMX_U32 pmem_fd = -1; local
1255 pmem_fd = recon_buff[count].ion_alloc_fd.fd;
1257 pmem_fd = open(MEM_DEVICE, O_RDWR);
1259 if ((int)(pmem_fd) < 0)
1271 if (ioctl(pmem_fd, PMEM_ALLOCATE_ALIGNED, &allocation) < 0)
1280 MAP_SHARED, pmem_fd, 0);
1284 close(pmem_fd);
1285 pmem_fd = -1;
1300 DEBUG_PRINT_HIGH("\n Allocated virt:%p, FD: %d of size %d \n", buf_addr, pmem_fd, size);
1303 recon_addr.pmem_fd
[all...]

Completed in 690 milliseconds

1234