Lines Matching refs:pmem_fd

3968             drv_ctx.ptr_outputbuffer[i].pmem_fd = handle->fd;
3986 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3989 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
3992 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
3993 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d\n", drv_ctx.ptr_outputbuffer[i].pmem_fd);
3998 if (drv_ctx.ptr_outputbuffer[i].pmem_fd == 0) {
3999 drv_ctx.ptr_outputbuffer[i].pmem_fd = \
4001 if (drv_ctx.ptr_outputbuffer[i].pmem_fd < 0) {
4002 DEBUG_PRINT_ERROR("ION/pmem buffer fd is bad %d\n", drv_ctx.ptr_outputbuffer[i].pmem_fd);
4007 if (!align_pmem_buffers(drv_ctx.ptr_outputbuffer[i].pmem_fd,
4011 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
4019 drv_ctx.ptr_outputbuffer[i].pmem_fd,0);
4021 close(drv_ctx.ptr_outputbuffer[i].pmem_fd);
4052 DEBUG_PRINT_LOW("vdec: use buf: pmem_fd=0x%lx",
4053 pmem_info->pmem_fd);
4054 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_info->pmem_fd;
4062 m_pmem_info[i].pmem_fd = drv_ctx.ptr_outputbuffer[i].pmem_fd;
4071 DEBUG_PRINT_HIGH("\n Set the Output Buffer Idx: %d Addr: %p, pmem_fd=0x%x", i,
4073 drv_ctx.ptr_outputbuffer[i].pmem_fd );
4081 plane[0].reserved[0] = drv_ctx.ptr_outputbuffer[i].pmem_fd;
4282 if (drv_ctx.ptr_inputbuffer[index].pmem_fd > 0) {
4289 drv_ctx.ptr_inputbuffer[index].pmem_fd);
4296 close (drv_ctx.ptr_inputbuffer[index].pmem_fd);
4297 drv_ctx.ptr_inputbuffer[index].pmem_fd = -1;
4337 if (drv_ctx.ptr_outputbuffer[index].pmem_fd > 0) {
4342 drv_ctx.ptr_outputbuffer[index].pmem_fd = -1;
4345 if (drv_ctx.ptr_outputbuffer[0].pmem_fd > 0 && !ouput_egl_buffers && !m_use_output_pmem) {
4348 drv_ctx.ptr_outputbuffer[0].pmem_fd);
4355 close (drv_ctx.ptr_outputbuffer[0].pmem_fd);
4356 drv_ctx.ptr_outputbuffer[0].pmem_fd = -1;
4474 int pmem_fd = -1;
4510 drv_ctx.ptr_inputbuffer [i].pmem_fd = -1;
4537 pmem_fd = drv_ctx.ip_buf_ion_info[i].fd_ion_data.fd;
4539 pmem_fd = open (MEM_DEVICE,O_RDWR);
4541 if (pmem_fd < 0) {
4546 if (pmem_fd == 0) {
4547 pmem_fd = open (MEM_DEVICE,O_RDWR);
4549 if (pmem_fd < 0) {
4555 if (!align_pmem_buffers(pmem_fd, drv_ctx.ip_buf.buffer_size,
4558 close(pmem_fd);
4565 PROT_READ|PROT_WRITE, MAP_SHARED, pmem_fd, 0);
4568 close(pmem_fd);
4581 drv_ctx.ptr_inputbuffer [i].pmem_fd = pmem_fd;
4593 plane.reserved[0] =drv_ctx.ptr_inputbuffer [i].pmem_fd;
4614 input->pBuffer = (OMX_U8 *)drv_ctx.ptr_inputbuffer [i].pmem_fd;
4674 int pmem_fd = -1;
4707 pmem_fd = fd_ion_data.fd;
4709 pmem_fd = open (MEM_DEVICE,O_RDWR);
4711 if (pmem_fd < 0) {
4717 if (pmem_fd == 0) {
4718 pmem_fd = open (MEM_DEVICE,O_RDWR);
4720 if (pmem_fd < 0) {
4727 if (!align_pmem_buffers(pmem_fd, drv_ctx.op_buf.buffer_size *
4731 close(pmem_fd);
4739 PROT_READ|PROT_WRITE,MAP_SHARED,pmem_fd,0);
4743 close(pmem_fd);
4808 pPMEMInfo->pmem_fd = 0;
4811 drv_ctx.ptr_outputbuffer[i].pmem_fd = pmem_fd;
4812 m_pmem_info[i].pmem_fd = pmem_fd;
4827 DEBUG_PRINT_LOW("\n pmem_fd = %d offset = %d address = %p",
4828 pmem_fd, drv_ctx.ptr_outputbuffer[i].offset,
5396 frameinfo.pmem_fd = temp_buffer->pmem_fd;
5492 plane.reserved[0] = temp_buffer->pmem_fd;
5575 drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd = handle->fd;
5650 drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd, 0);
5655 buf_ref_add(drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd,
5688 plane[0].reserved[0] = drv_ctx.ptr_outputbuffer[nPortIndex].pmem_fd;
5904 int pmem_fd;
5911 fd = temp_egl_id->pmem_fd;
5919 pmem_info.pmem_fd = (OMX_U32) fd;
6418 DEBUG_PRINT_LOW("\n Before FBD callback Accessed Pmeminfo %lu",pPMEMInfo->pmem_fd);
6427 DEBUG_PRINT_LOW("\n After Fill Buffer Done callback %lu",pPMEMInfo->pmem_fd);
6614 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].pmem_fd);
6617 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].pmem_fd);
6621 omx->buf_ref_remove(omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].pmem_fd, omxhdr->nOffset);
7234 bool omx_vdec::align_pmem_buffers(int pmem_fd, OMX_U32 buffer_size,
7243 if (ioctl(pmem_fd, PMEM_ALLOCATE_ALIGNED, &allocation) < 0) {
7788 pPMEMInfo->pmem_fd = 0;
7790 drv_ctx.ptr_outputbuffer[i].pmem_fd = -1;
8571 pmem_fd[i] = -1;
8701 status = c2d.convert(omx->drv_ctx.ptr_outputbuffer[index].pmem_fd,
8702 omx->m_out_mem_ptr->pBuffer, bufadd->pBuffer, pmem_fd[index],
8776 if (pmem_fd[index] > 0) {
8778 close(pmem_fd[index]);
8780 pmem_fd[index] = -1;
8840 pmem_fd[i] = op_buf_ion_info[i].fd_ion_data.fd;
8846 PROT_READ|PROT_WRITE,MAP_SHARED,pmem_fd[i],0);
8850 close(pmem_fd[i]);
8856 pmem_baseaddress[i],op_buf_ion_info[i].ion_alloc_data.handle,pmem_fd[i]);
8858 m_pmem_info_client[i].pmem_fd = (OMX_U32)m_heap_ptr[i].video_heap_ptr.get();