Lines Matching refs:pmem_fd
3837 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,0);
3888 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
3919 DEBUG_PRINT_LOW("vdec: use buf: pmem_fd=0x%x",
3920 pmem_info->pmem_fd);
3921 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_info->pmem_fd;
3929 m_pmem_info[i].pmem_fd = drv_ctx.ptr_outputbuffer[i].pmem_fd;
3941 DEBUG_PRINT_HIGH("\n Set the Output Buffer Idx: %d Addr: %x, pmem_fd=%0x%x", i,
3942 drv_ctx.ptr_outputbuffer[i],drv_ctx.ptr_outputbuffer[i].pmem_fd );
4127 if (drv_ctx.ptr_inputbuffer[index].pmem_fd > 0)
4144 drv_ctx.ptr_inputbuffer[index].pmem_fd);
4150 close (drv_ctx.ptr_inputbuffer[index].pmem_fd);
4151 drv_ctx.ptr_inputbuffer[index].pmem_fd = -1;
4199 if(drv_ctx.ptr_outputbuffer[index].pmem_fd > 0) {
4203 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
4206 if (drv_ctx.ptr_outputbuffer[0].pmem_fd > 0 && !ouput_egl_buffers && !m_use_output_pmem)
4209 drv_ctx.ptr_outputbuffer[0].pmem_fd);
4215 close (drv_ctx.ptr_outputbuffer[0].pmem_fd);
4216 drv_ctx.ptr_outputbuffer[0].pmem_fd = -1;
4340 int pmem_fd = -1;
4382 drv_ctx.ptr_inputbuffer [i].pmem_fd = -1;
4412 pmem_fd = drv_ctx.ip_buf_ion_info[i].fd_ion_data.fd;
4414 pmem_fd = open (MEM_DEVICE,O_RDWR);
4416 if (pmem_fd < 0)
4422 if (pmem_fd == 0)
4424 pmem_fd = open (MEM_DEVICE,O_RDWR);
4426 if (pmem_fd < 0)
4433 if(!align_pmem_buffers(pmem_fd, drv_ctx.ip_buf.buffer_size,
4437 close(pmem_fd);
4444 PROT_READ|PROT_WRITE, MAP_SHARED, pmem_fd, 0);
4448 close(pmem_fd);
4461 drv_ctx.ptr_inputbuffer [i].pmem_fd = pmem_fd;
4473 plane.reserved[0] =drv_ctx.ptr_inputbuffer [i].pmem_fd;
4493 input->pBuffer = (OMX_U8 *)drv_ctx.ptr_inputbuffer [i].pmem_fd;
4557 int pmem_fd = -1;
4590 pmem_fd = fd_ion_data.fd;
4592 pmem_fd = open (MEM_DEVICE,O_RDWR);
4594 if (pmem_fd < 0)
4601 if(pmem_fd == 0)
4603 pmem_fd = open (MEM_DEVICE,O_RDWR);
4605 if (pmem_fd < 0)
4613 if(!align_pmem_buffers(pmem_fd, drv_ctx.op_buf.buffer_size *
4618 close(pmem_fd);
4626 PROT_READ|PROT_WRITE,MAP_SHARED,pmem_fd,0);
4631 close(pmem_fd);
4698 pPMEMInfo->pmem_fd = 0;
4701 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_fd;
4716 DEBUG_PRINT_LOW("\n pmem_fd = %d offset = %d address = %p",
4717 pmem_fd, drv_ctx.ptr_outputbuffer[i].offset,
5315 frameinfo.pmem_fd = temp_buffer->pmem_fd;
5402 plane.reserved[0] = temp_buffer->pmem_fd;
5552 plane.reserved[0] = drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd;
5757 int pmem_fd;
5765 fd = temp_egl_id->pmem_fd;
5773 pmem_info.pmem_fd = (OMX_U32) fd;
6256 DEBUG_PRINT_LOW("\n Before FBD callback Accessed Pmeminfo %d",pPMEMInfo->pmem_fd);
6258 DEBUG_PRINT_LOW("\n After Fill Buffer Done callback %d",pPMEMInfo->pmem_fd);
7138 bool omx_vdec::align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size,
7148 if (ioctl(pmem_fd, PMEM_ALLOCATE_ALIGNED, &allocation) < 0)
7585 pPMEMInfo->pmem_fd = 0;
7587 drv_ctx.ptr_outputbuffer[i].pmem_fd = -1;