/device/asus/flo/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 64 mMemInfo[i].main_ion_fd = 0; in QCamera3Memory() 120 mMemInfo[index].main_ion_fd); in cacheOpsInternal() 121 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal() 321 int main_ion_fd = 0; in allocOneBuffer() local 323 main_ion_fd = open("/dev/ion", O_RDONLY); in allocOneBuffer() 324 if (main_ion_fd <= 0) { in allocOneBuffer() 336 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocOneBuffer() 345 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in allocOneBuffer() 351 memInfo.main_ion_fd = main_ion_fd; in allocOneBuffer() 360 ioctl(main_ion_fd, ION_IOC_FREE, &handle_data); in allocOneBuffer() [all …]
|
D | QCamera3Mem.h | 68 int main_ion_fd; member
|
/device/moto/shamu/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 65 mMemInfo[i].main_ion_fd = 0; in QCamera3Memory() 121 mMemInfo[index].main_ion_fd); in cacheOpsInternal() 122 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal() 327 int main_ion_fd = 0; in allocOneBuffer() local 329 main_ion_fd = open("/dev/ion", O_RDONLY); in allocOneBuffer() 330 if (main_ion_fd < 0) { in allocOneBuffer() 342 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocOneBuffer() 351 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in allocOneBuffer() 357 memInfo.main_ion_fd = main_ion_fd; in allocOneBuffer() 366 ioctl(main_ion_fd, ION_IOC_FREE, &handle_data); in allocOneBuffer() [all …]
|
D | QCamera3Mem.h | 69 int main_ion_fd; member
|
/device/lge/hammerhead/camera/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 64 mMemInfo[i].main_ion_fd = 0; in QCamera3Memory() 120 mMemInfo[index].main_ion_fd); in cacheOpsInternal() 121 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal() 326 int main_ion_fd = 0; in allocOneBuffer() local 328 main_ion_fd = open("/dev/ion", O_RDONLY); in allocOneBuffer() 329 if (main_ion_fd < 0) { in allocOneBuffer() 341 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocOneBuffer() 350 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in allocOneBuffer() 356 memInfo.main_ion_fd = main_ion_fd; in allocOneBuffer() 365 ioctl(main_ion_fd, ION_IOC_FREE, &handle_data); in allocOneBuffer() [all …]
|
D | QCamera3Mem.h | 68 int main_ion_fd; member
|
/device/asus/flo/camera/QCamera2/HAL/ |
D | QCameraMem.cpp | 67 mMemInfo[i].main_ion_fd = 0; in QCameraMemory() 129 mMemInfo[index].main_ion_fd); in cacheOpsInternal() 130 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal() 301 int main_ion_fd = 0; in allocOneBuffer() local 303 main_ion_fd = open("/dev/ion", O_RDONLY); in allocOneBuffer() 304 if (main_ion_fd < 0) { in allocOneBuffer() 318 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocOneBuffer() 326 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in allocOneBuffer() 332 memInfo.main_ion_fd = main_ion_fd; in allocOneBuffer() 341 ioctl(main_ion_fd, ION_IOC_FREE, &handle_data); in allocOneBuffer() [all …]
|
D | QCameraMem.h | 72 int main_ion_fd; member
|
/device/lge/hammerhead/camera/QCamera2/HAL/ |
D | QCameraMem.cpp | 67 mMemInfo[i].main_ion_fd = 0; in QCameraMemory() 129 mMemInfo[index].main_ion_fd); in cacheOpsInternal() 130 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal() 301 int main_ion_fd = 0; in allocOneBuffer() local 303 main_ion_fd = open("/dev/ion", O_RDONLY); in allocOneBuffer() 304 if (main_ion_fd < 0) { in allocOneBuffer() 318 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocOneBuffer() 326 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in allocOneBuffer() 332 memInfo.main_ion_fd = main_ion_fd; in allocOneBuffer() 341 ioctl(main_ion_fd, ION_IOC_FREE, &handle_data); in allocOneBuffer() [all …]
|
D | QCameraMem.h | 72 int main_ion_fd; member
|
/device/moto/shamu/camera/QCamera2/HAL/ |
D | QCameraMem.cpp | 128 mMemInfo[index].main_ion_fd); in cacheOpsInternal() 129 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal() 333 int main_ion_fd = 0; in allocOneBuffer() local 335 main_ion_fd = open("/dev/ion", O_RDONLY); in allocOneBuffer() 336 if (main_ion_fd < 0) { in allocOneBuffer() 358 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocOneBuffer() 366 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in allocOneBuffer() 372 memInfo.main_ion_fd = main_ion_fd; in allocOneBuffer() 386 ioctl(main_ion_fd, ION_IOC_FREE, &handle_data); in allocOneBuffer() 388 close(main_ion_fd); in allocOneBuffer() [all …]
|
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_app.c | 117 int main_ion_fd = 0; in mm_app_allocate_ion_memory() local 120 main_ion_fd = open("/dev/ion", O_RDONLY); in mm_app_allocate_ion_memory() 121 if (main_ion_fd <= 0) { in mm_app_allocate_ion_memory() 133 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in mm_app_allocate_ion_memory() 141 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in mm_app_allocate_ion_memory() 158 buf->mem_info.main_ion_fd = main_ion_fd; in mm_app_allocate_ion_memory() 168 ioctl(main_ion_fd, ION_IOC_FREE, &handle_data); in mm_app_allocate_ion_memory() 170 close(main_ion_fd); in mm_app_allocate_ion_memory() 187 if (buf->mem_info.main_ion_fd > 0) { in mm_app_deallocate_ion_memory() 190 ioctl(buf->mem_info.main_ion_fd, ION_IOC_FREE, &handle_data); in mm_app_deallocate_ion_memory() [all …]
|
/device/asus/flo/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_app.c | 117 int main_ion_fd = 0; in mm_app_allocate_ion_memory() local 120 main_ion_fd = open("/dev/ion", O_RDONLY); in mm_app_allocate_ion_memory() 121 if (main_ion_fd <= 0) { in mm_app_allocate_ion_memory() 133 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in mm_app_allocate_ion_memory() 141 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in mm_app_allocate_ion_memory() 158 buf->mem_info.main_ion_fd = main_ion_fd; in mm_app_allocate_ion_memory() 168 ioctl(main_ion_fd, ION_IOC_FREE, &handle_data); in mm_app_allocate_ion_memory() 170 close(main_ion_fd); in mm_app_allocate_ion_memory() 187 if (buf->mem_info.main_ion_fd > 0) { in mm_app_deallocate_ion_memory() 190 ioctl(buf->mem_info.main_ion_fd, ION_IOC_FREE, &handle_data); in mm_app_deallocate_ion_memory() [all …]
|
/device/lge/mako/camera/QCamera/HAL/core/src/ |
D | QCameraHWI.cpp | 2164 p_camera_memory->main_ion_fd[cnt] = open("/dev/ion", O_RDONLY); in allocate_ion_memory() 2165 if (p_camera_memory->main_ion_fd[cnt] < 0) { in allocate_ion_memory() 2178 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_ALLOC, &p_camera_memory->alloc[cnt]); in allocate_ion_memory() 2185 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_SHARE, &p_camera_memory->ion_info_fd[cnt]); in allocate_ion_memory() 2195 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data); in allocate_ion_memory() 2197 close(p_camera_memory->main_ion_fd[cnt]); in allocate_ion_memory() 2198 p_camera_memory->main_ion_fd[cnt] = -1; in allocate_ion_memory() 2208 if (p_camera_memory->main_ion_fd[cnt] > 0) { in deallocate_ion_memory() 2210 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data); in deallocate_ion_memory() 2211 close(p_camera_memory->main_ion_fd[cnt]); in deallocate_ion_memory() [all …]
|
D | QCameraHWI_Preview.cpp | 214 mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt] = open("/dev/ion", O_RDONLY); in getBufferFromSurface() 215 if (mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt] < 0) { in getBufferFromSurface() 220 if (ioctl(mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt], in getBufferFromSurface() 265 if (ioctl(mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt], ION_IOC_FREE, &ion_handle) in putBufferToSurface() 268 close(mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt]); in putBufferToSurface() 579 mDisplayStreamBuf.frame[i].ion_dev_fd = mHalCamCtrl->mPreviewMemory.main_ion_fd[i]; in initDisplayBuffers() 711 mDisplayStreamBuf.frame[i].ion_dev_fd = mHalCamCtrl->mNoDispPreviewMemory.main_ion_fd[i]; in initPreviewOnlyBuffers()
|
/device/lge/mako/camera/ |
D | QCameraHWI.cpp | 2341 p_camera_memory->main_ion_fd[cnt] = open("/dev/ion", O_RDONLY); in allocate_ion_memory() 2342 if (p_camera_memory->main_ion_fd[cnt] < 0) { in allocate_ion_memory() 2354 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_ALLOC, &p_camera_memory->alloc[cnt]); in allocate_ion_memory() 2361 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_SHARE, &p_camera_memory->ion_info_fd[cnt]); in allocate_ion_memory() 2371 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data); in allocate_ion_memory() 2373 close(p_camera_memory->main_ion_fd[cnt]); in allocate_ion_memory() 2374 p_camera_memory->main_ion_fd[cnt] = -1; in allocate_ion_memory() 2384 if (p_camera_memory->main_ion_fd[cnt] > 0) { in deallocate_ion_memory() 2386 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data); in deallocate_ion_memory() 2387 close(p_camera_memory->main_ion_fd[cnt]); in deallocate_ion_memory() [all …]
|
D | QCameraHWI.h | 139 int main_ion_fd[MM_CAMERA_MAX_NUM_FRAMES]; member 153 int main_ion_fd[MM_CAMERA_MAX_NUM_FRAMES]; member 160 int main_ion_fd[3]; member
|
D | QCameraHWI_Preview.cpp | 215 mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt] = open("/dev/ion", O_RDONLY); in getBufferFromSurface() 216 if (mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt] < 0) { in getBufferFromSurface() 221 if (ioctl(mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt], in getBufferFromSurface() 279 if (ioctl(mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt], ION_IOC_FREE, &ion_handle) in putBufferToSurface() 282 close(mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt]); in putBufferToSurface() 516 mDisplayStreamBuf.frame[i].ion_dev_fd = mHalCamCtrl->mPreviewMemory.main_ion_fd[i]; in initDisplayBuffers()
|
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/ |
D | QualcommUsbCamera.cpp | 913 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 …]
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_app.c | 118 int main_ion_fd = 0; in mm_app_allocate_ion_memory() local 121 main_ion_fd = open("/dev/ion", O_RDONLY); in mm_app_allocate_ion_memory() 122 if (main_ion_fd <= 0) { in mm_app_allocate_ion_memory() 134 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in mm_app_allocate_ion_memory() 142 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in mm_app_allocate_ion_memory() 159 buf->mem_info.main_ion_fd = main_ion_fd; in mm_app_allocate_ion_memory() 169 ioctl(main_ion_fd, ION_IOC_FREE, &handle_data); in mm_app_allocate_ion_memory() 171 close(main_ion_fd); in mm_app_allocate_ion_memory() 188 if (buf->mem_info.main_ion_fd > 0) { in mm_app_deallocate_ion_memory() 191 ioctl(buf->mem_info.main_ion_fd, ION_IOC_FREE, &handle_data); in mm_app_deallocate_ion_memory() [all …]
|
/device/moto/shamu/camera/QCamera/HAL/core/src/ |
D | QCameraHWI.cpp | 2857 int main_ion_fd = 0; in allocate_ion_memory() local 2859 main_ion_fd = open("/dev/ion", O_RDONLY); in allocate_ion_memory() 2860 if (main_ion_fd <= 0) { in allocate_ion_memory() 2872 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocate_ion_memory() 2880 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in allocate_ion_memory() 2886 mem_info->main_ion_fd = main_ion_fd; in allocate_ion_memory() 2895 ioctl(main_ion_fd, ION_IOC_FREE, &handle_data); in allocate_ion_memory() 2897 close(main_ion_fd); in allocate_ion_memory() 2912 if (mem_info->main_ion_fd > 0) { in deallocate_ion_memory() 2915 ioctl(mem_info->main_ion_fd, ION_IOC_FREE, &handle_data); in deallocate_ion_memory() [all …]
|
D | QCameraHWI_Preview.cpp | 155 mHalCamCtrl->mPreviewMemory.mem_info[cnt].main_ion_fd = open("/dev/ion", O_RDONLY); in getBufferFromSurface() 156 if (mHalCamCtrl->mPreviewMemory.mem_info[cnt].main_ion_fd < 0) { in getBufferFromSurface() 161 if (ioctl(mHalCamCtrl->mPreviewMemory.mem_info[cnt].main_ion_fd, in getBufferFromSurface() 207 … if (ioctl(mHalCamCtrl->mPreviewMemory.mem_info[cnt].main_ion_fd, ION_IOC_FREE, &ion_handle) < 0) { in putBufferToSurface() 210 close(mHalCamCtrl->mPreviewMemory.mem_info[cnt].main_ion_fd); in putBufferToSurface()
|
/device/lge/mako/camera/QCamera/HAL/core/inc/ |
D | QCameraHWI.h | 139 int main_ion_fd[MM_CAMERA_MAX_NUM_FRAMES]; member 153 int main_ion_fd[MM_CAMERA_MAX_NUM_FRAMES]; member 160 int main_ion_fd[3]; member
|
/device/lge/mako/camera/QCamera/stack/mm-camera-test/inc/ |
D | mm_qcamera_app.h | 66 int main_ion_fd[MM_CAMERA_MAX_NUM_FRAMES]; member
|
/device/asus/flo/camera/QCamera2/stack/mm-camera-test/inc/ |
D | mm_qcamera_app.h | 101 int main_ion_fd; member
|