Home
last modified time | relevance | path

Searched refs:main_ion_fd (Results 1 – 8 of 8) sorted by relevance

/hardware/qcom/camera/msm8998/QCamera2/HAL3/test/
DQCameraHAL3Test.cpp100 int main_ion_fd = -1, rc; in allocateBuffers() local
103 main_ion_fd = open("/dev/ion", O_RDONLY); in allocateBuffers()
104 if (main_ion_fd <= 0) { in allocateBuffers()
115 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocateBuffers()
122 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in allocateBuffers()
127 req_meminfo->ion_fd = main_ion_fd; in allocateBuffers()
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCameraMem.cpp149 mMemInfo[index].main_ion_fd); in cacheOpsInternal()
150 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal()
226 mMemInfo[i].main_ion_fd = -1; in reset()
470 int main_ion_fd = -1; in allocOneBuffer() local
472 main_ion_fd = open("/dev/ion", O_RDONLY); in allocOneBuffer()
473 if (main_ion_fd < 0) { in allocOneBuffer()
495 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocOneBuffer()
503 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in allocOneBuffer()
509 memInfo.main_ion_fd = main_ion_fd; in allocOneBuffer()
523 ioctl(main_ion_fd, ION_IOC_FREE, &handle_data); in allocOneBuffer()
[all …]
DQCameraMem.h140 int main_ion_fd; member
/hardware/qcom/camera/msm8998/QCamera2/HAL3/
DQCamera3Mem.cpp75 main_ion_fd = open("/dev/ion", O_RDONLY); in QCamera3Memory()
89 close(main_ion_fd); in ~QCamera3Memory()
138 main_ion_fd); in cacheOpsInternal()
139 ret = ioctl(main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal()
313 if (main_ion_fd < 0) { in allocOneBuffer()
327 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &allocData); in allocOneBuffer()
336 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in allocOneBuffer()
350 ioctl(main_ion_fd, ION_IOC_FREE, &handle_data); in allocOneBuffer()
375 if (main_ion_fd >= 0) { in deallocOneBuffer()
378 ioctl(main_ion_fd, ION_IOC_FREE, &handle_data); in deallocOneBuffer()
[all …]
DQCamera3Mem.h98 int main_ion_fd = -1; variable
/hardware/qcom/camera/msm8998/usbcamcore/src/
DQualcommUsbCamera.cpp913 camHal->previewMem.mem_info[cnt].main_ion_fd = in initDisplayBuffers()
915 if (camHal->previewMem.mem_info[cnt].main_ion_fd < 0) { in initDisplayBuffers()
921 if (ioctl(camHal->previewMem.mem_info[cnt].main_ion_fd, in initDisplayBuffers()
1013 if (ioctl(camHal->previewMem.mem_info[cnt].main_ion_fd, in deInitDisplayBuffers()
1017 close(camHal->previewMem.mem_info[cnt].main_ion_fd); in deInitDisplayBuffers()
1661 mem_info->main_ion_fd); in cache_ops()
1662 if(mem_info->main_ion_fd > 0) { in cache_ops()
1663 if(ioctl(mem_info->main_ion_fd, ION_IOC_CUSTOM, &custom_data) < 0) { in cache_ops()
2674 int main_ion_fd = 0; in allocate_ion_memory() local
2676 main_ion_fd = open("/dev/ion", O_RDONLY); in allocate_ion_memory()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_app.c128 int main_ion_fd = -1; in mm_app_allocate_ion_memory() local
131 main_ion_fd = open("/dev/ion", O_RDONLY); in mm_app_allocate_ion_memory()
132 if (main_ion_fd <= 0) { in mm_app_allocate_ion_memory()
144 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in mm_app_allocate_ion_memory()
152 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in mm_app_allocate_ion_memory()
169 buf->mem_info.main_ion_fd = main_ion_fd; in mm_app_allocate_ion_memory()
179 ioctl(main_ion_fd, ION_IOC_FREE, &handle_data); in mm_app_allocate_ion_memory()
181 close(main_ion_fd); in mm_app_allocate_ion_memory()
198 if (buf->mem_info.main_ion_fd >= 0) { in mm_app_deallocate_ion_memory()
201 ioctl(buf->mem_info.main_ion_fd, ION_IOC_FREE, &handle_data); in mm_app_deallocate_ion_memory()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/inc/
Dmm_qcamera_app.h162 int main_ion_fd; member