Home
last modified time | relevance | path

Searched refs:ion_data (Results 1 – 3 of 3) sorted by relevance

/hardware/qcom/media/mm-video-legacy/vidc/venc/test/
Dvenc_test.cpp351 struct enc_ion ion_data; variable
366 ion_data.ion_device_fd = open (PMEM_DEVICE,O_RDONLY); in PmemMalloc()
367 if(ion_data.ion_device_fd < 0) in PmemMalloc()
373 ion_data.alloc_data.len = nSize; in PmemMalloc()
374 ion_data.alloc_data.heap_id_mask = 0x1 << ION_CP_MM_HEAP_ID; in PmemMalloc()
375 ion_data.alloc_data.align = 4096; in PmemMalloc()
376 ion_data.alloc_data.flags = 0; in PmemMalloc()
378 rc = ioctl(ion_data.ion_device_fd,ION_IOC_ALLOC,&ion_data.alloc_data); in PmemMalloc()
379 if(rc || !ion_data.alloc_data.handle) { in PmemMalloc()
381 ion_data.alloc_data.handle=NULL; in PmemMalloc()
[all …]
/hardware/qcom/media/mm-video-v4l2/vidc/venc/test/
Dvenc_test.cpp380 struct enc_ion ion_data; variable
395 ion_data.ion_device_fd = open (PMEM_DEVICE, O_RDONLY); in PmemMalloc()
397 if (ion_data.ion_device_fd < 0) { in PmemMalloc()
403 ion_data.alloc_data.len = nSize; in PmemMalloc()
404 ion_data.alloc_data.heap_id_mask = 0x1 << ION_CP_MM_HEAP_ID; in PmemMalloc()
405 ion_data.alloc_data.align = 4096; in PmemMalloc()
406 ion_data.alloc_data.flags = ION_SECURE; in PmemMalloc()
408 rc = ioctl(ion_data.ion_device_fd,ION_IOC_ALLOC,&ion_data.alloc_data); in PmemMalloc()
410 if (rc || !ion_data.alloc_data.handle) { in PmemMalloc()
411 E("\n ION ALLOC memory failed rc: %d, handle: %p", rc, ion_data.alloc_data.handle); in PmemMalloc()
[all …]
/hardware/ti/omap4-aah/domx/domx/omx_proxy_common/src/
Domx_proxy_common.c150 struct ion_fd_data ion_data; in RPC_RegisterBuffer() local
152 ion_data.fd = fd; in RPC_RegisterBuffer()
153 ion_data.handle = NULL; in RPC_RegisterBuffer()
154 status = ioctl(pRPCCtx->fd_omx, OMX_IOCIONREGISTER, &ion_data); in RPC_RegisterBuffer()
160 if (ion_data.handle) in RPC_RegisterBuffer()
161 *handle1 = ion_data.handle; in RPC_RegisterBuffer()