Home
last modified time | relevance | path

Searched refs:ion_fd (Results 1 – 14 of 14) sorted by relevance

/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_ionbuf.c66 p_buffer->ion_fd = open("/dev/ion", O_RDONLY); in buffer_allocate()
67 if(p_buffer->ion_fd < 0) { in buffer_allocate()
74 lrc = ioctl(p_buffer->ion_fd, ION_IOC_ALLOC, &p_buffer->alloc); in buffer_allocate()
82 lrc = ioctl(p_buffer->ion_fd, ION_IOC_SHARE, in buffer_allocate()
104 ioctl(p_buffer->ion_fd, ION_IOC_FREE, &lhandle_data); in buffer_allocate()
134 ioctl(p_buffer->ion_fd, ION_IOC_FREE, &lhandle_data); in buffer_deallocate()
136 close(p_buffer->ion_fd); in buffer_deallocate()
167 lrc = ioctl(p_buffer->ion_fd, ION_IOC_CUSTOM, &custom_data); in buffer_invalidate()
Dmm_jpeg.c2658 p_session->work_buffer.ion_fd = -1; in mm_jpeg_create_session()
/hardware/ti/omap4-aah/domx/omx_proxy_component/omx_camera/src/
Domx_proxy_camera.c132 int ion_fd; variable
181 ion_free(pCompPrv->ion_fd, gCamIonHdl[i][0]); in ComponentPrivateDeInit()
185 ion_free(pCompPrv->ion_fd, gCamIonHdl[i][1]); in ComponentPrivateDeInit()
194 ion_free(pCompPrv->ion_fd, gComponentBufferAllocation[i][j]); in ComponentPrivateDeInit()
253 ion_free(pCompPrv->ion_fd, gComponentBufferAllocation[i][j]); in Camera_SendCommand()
425 …ret = ion_alloc_tiler(pCompPrv->ion_fd, MAX_VTC_WIDTH_WITH_VNF, MAX_VTC_HEIGHT_WITH_VNF, TILER_PIX… in CameraSetParam()
431 ret = ion_share(pCompPrv->ion_fd, handle, &fd1); in CameraSetParam()
434 ion_free(pCompPrv->ion_fd, handle); in CameraSetParam()
442 …ret = ion_alloc_tiler(pCompPrv->ion_fd, MAX_VTC_WIDTH_WITH_VNF/2, MAX_VTC_HEIGHT_WITH_VNF/2, TILER… in CameraSetParam()
448 ret = ion_share(pCompPrv->ion_fd, handle, &fd2); in CameraSetParam()
[all …]
/hardware/qcom/keymaster/
Dkeymaster_qcom.cpp56 int32_t ion_fd; member
200 int32_t ion_fd; in qcom_km_ION_memalloc() local
212 ion_fd = open("/dev/ion", O_RDONLY | O_DSYNC); in qcom_km_ION_memalloc()
213 if (ion_fd < 0) { in qcom_km_ION_memalloc()
233 rc = ioctl(ion_fd, ION_IOC_ALLOC, &ion_alloc_data); in qcom_km_ION_memalloc()
246 rc = ioctl(ion_fd, ION_IOC_MAP, &ifd_data); in qcom_km_ION_memalloc()
261 handle->ion_fd = ion_fd; in qcom_km_ION_memalloc()
279 iret = ioctl(ion_fd, ION_IOC_FREE, &handle_data); in qcom_km_ION_memalloc()
285 if (ion_fd > 0) in qcom_km_ION_memalloc()
286 close(ion_fd); in qcom_km_ION_memalloc()
[all …]
/hardware/ti/omap4xxx/domx/omx_proxy_component/omx_camera/src/
Domx_proxy_camera.c123 int ion_fd; variable
450 ion_fd = ion_open(); in DCC_Init()
451 if(ion_fd == 0) in DCC_Init()
457 ret = ion_alloc(ion_fd, dccbuf_size, 0x1000, 1 << ION_HEAP_TYPE_CARVEOUT, &DCC_Buff); in DCC_Init()
461 if (ion_map(ion_fd, DCC_Buff, dccbuf_size, PROT_READ | PROT_WRITE, MAP_SHARED, 0, in DCC_Init()
646 ion_free(ion_fd, DCC_Buff); in DCC_DeInit()
647 ion_close(ion_fd); in DCC_DeInit()
/hardware/intel/img/psb_video/src/
Dpsb_surface_attrib.c655 int ion_fd = 0; in psb_CreateSurfaceFromION() local
669 ion_fd = open("/dev/ion", O_RDWR); in psb_CreateSurfaceFromION()
670 if (ion_fd < 0) { in psb_CreateSurfaceFromION()
678 ion_ret = ioctl(ion_fd, ION_IOC_IMPORT, &ion_source_share); in psb_CreateSurfaceFromION()
680 close(ion_fd); in psb_CreateSurfaceFromION()
692 close(ion_fd); in psb_CreateSurfaceFromION()
700 close(ion_fd); in psb_CreateSurfaceFromION()
720 close(ion_fd); in psb_CreateSurfaceFromION()
734 close(ion_fd); in psb_CreateSurfaceFromION()
748 close(ion_fd); in psb_CreateSurfaceFromION()
[all …]
/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg_ionbuf.h44 int ion_fd; member
/hardware/ti/omap4-aah/domx/domx/omx_proxy_common/src/
Domx_proxy_common.c222 ret = ion_alloc(pCompPrv->ion_fd, len, 0x1000, 1 << ION_HEAP_TYPE_CARVEOUT, &temp); in PROXY_AllocateBufferIonCarveout()
225 ret = ion_alloc_tiler(pCompPrv->ion_fd, len, 1, TILER_PIXEL_FMT_PAGE, in PROXY_AllocateBufferIonCarveout()
741 if (ion_map(pCompPrv->ion_fd, handle, nSize, PROT_READ | PROT_WRITE, MAP_SHARED, 0, in PROXY_AllocateBuffer()
749 if (ion_share(pCompPrv->ion_fd, handle, &(pCompPrv->tBufList[currentBuffer].mmap_fd)) < 0) { in PROXY_AllocateBuffer()
770 ion_free(pCompPrv->ion_fd, in PROXY_AllocateBuffer()
1052 if (ion_map(pCompPrv->ion_fd, pPlatformPrivate->pMetaDataBuffer, in PROXY_UseBuffer()
1085 ion_share (pCompPrv->ion_fd, pPlatformPrivate->pMetaDataBuffer, &fd); in PROXY_UseBuffer()
1244 ion_free(pCompPrv->ion_fd, pCompPrv->tBufList[count].pYBuffer); in PROXY_FreeBuffer()
1261 ion_free(pCompPrv->ion_fd, pCompPrv->tBufList[count].pMetaDataBuffer); in PROXY_FreeBuffer()
2127 ion_close(pCompPrv->ion_fd); in PROXY_ComponentDeInit()
[all …]
/hardware/ti/omap4xxx/domx/domx/omx_proxy_common/src/
Domx_proxy_common.c206 ret = ion_alloc(pCompPrv->ion_fd, len, 0x1000, 1 << ION_HEAP_TYPE_CARVEOUT, &temp); in PROXY_AllocateBufferIonCarveout()
803 ion_free(pCompPrv->ion_fd, pMemptr); in PROXY_AllocateBuffer()
817 if (ion_map(pCompPrv->ion_fd, handle, nSize, PROT_READ | PROT_WRITE, MAP_SHARED, 0, in PROXY_AllocateBuffer()
1156 …if (ion_map(pCompPrv->ion_fd, ((OMX_TI_PLATFORMPRIVATE *)pBufferHeader->pPlatformPrivate)->pMetaDa… in PROXY_UseBuffer()
1266 ion_free(pCompPrv->ion_fd, pCompPrv->tBufList[count].pYBuffer); in PROXY_FreeBuffer()
1291 ion_free(pCompPrv->ion_fd, pCompPrv->tBufList[count].pMetaDataBuffer); in PROXY_FreeBuffer()
1956 ion_close(pCompPrv->ion_fd); in PROXY_ComponentDeInit()
1975 ion_free(pCompPrv->ion_fd, pCompPrv->tBufList[count].pYBuffer); in PROXY_ComponentDeInit()
1997 ion_free(pCompPrv->ion_fd, pMetaDataBuffer); in PROXY_ComponentDeInit()
2118 pCompPrv->ion_fd = ion_open(); in OMX_ProxyCommonInit()
[all …]
/hardware/ti/omap4-aah/camera/
DMemoryManager.cpp118 buffers[i].ion_fd = mIonFd; in allocateBufferList()
/hardware/ti/omap4xxx/domx/domx/
Domx_proxy_common.h206 int ion_fd; member
/hardware/ti/omap4-aah/domx/domx/
Domx_proxy_common.h275 int ion_fd; member
/hardware/ti/omap4-aah/hwc/
Dhwc.c208 int ion_fd; member
1623 ion_free(hwc_dev->ion_fd, hwc_dev->ion_handles[i]); in free_tiler2d_buffers()
1634 if (hwc_dev->ion_fd < 0) { in allocate_tiler2d_buffers()
1645 … ret = ion_alloc_tiler(hwc_dev->ion_fd, hwc_dev->fb_dev->base.width, hwc_dev->fb_dev->base.height, in allocate_tiler2d_buffers()
2247 if (hwc_dev->ion_fd >= 0) in omap4_hwc_device_close()
2248 ion_close(hwc_dev->ion_fd); in omap4_hwc_device_close()
2786 hwc_dev->ion_fd = ion_open(); in omap4_hwc_device_open()
2787 if (hwc_dev->ion_fd < 0) { in omap4_hwc_device_open()
/hardware/ti/omap4-aah/camera/inc/
DCameraHal.h342 int ion_fd; member