Home
last modified time | relevance | path

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

/hardware/qcom/media/msm8974/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/msm8974/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 …]