Lines Matching refs:main_ion_fd
2297 p_camera_memory->main_ion_fd[cnt] = open("/dev/ion", O_RDONLY); in allocate_ion_memory()
2298 if (p_camera_memory->main_ion_fd[cnt] < 0) { in allocate_ion_memory()
2309 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_ALLOC, &p_camera_memory->alloc[cnt]); in allocate_ion_memory()
2316 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_SHARE, &p_camera_memory->ion_info_fd[cnt]); in allocate_ion_memory()
2326 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data); in allocate_ion_memory()
2328 close(p_camera_memory->main_ion_fd[cnt]); in allocate_ion_memory()
2329 p_camera_memory->main_ion_fd[cnt] = -1; in allocate_ion_memory()
2339 if (p_camera_memory->main_ion_fd[cnt] > 0) { in deallocate_ion_memory()
2341 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data); in deallocate_ion_memory()
2342 close(p_camera_memory->main_ion_fd[cnt]); in deallocate_ion_memory()
2343 p_camera_memory->main_ion_fd[cnt] = -1; in deallocate_ion_memory()
2353 p_camera_memory->main_ion_fd[cnt] = open("/dev/ion", O_RDONLY); in allocate_ion_memory()
2354 if (p_camera_memory->main_ion_fd[cnt] < 0) { in allocate_ion_memory()
2365 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_ALLOC, &p_camera_memory->alloc[cnt]); in allocate_ion_memory()
2372 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_SHARE, &p_camera_memory->ion_info_fd[cnt]); in allocate_ion_memory()
2382 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data); in allocate_ion_memory()
2384 close(p_camera_memory->main_ion_fd[cnt]); in allocate_ion_memory()
2385 p_camera_memory->main_ion_fd[cnt] = -1; in allocate_ion_memory()
2409 if (p_camera_memory->main_ion_fd[cnt] > 0) { in deallocate_ion_memory()
2411 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data); in deallocate_ion_memory()
2412 close(p_camera_memory->main_ion_fd[cnt]); in deallocate_ion_memory()
2413 p_camera_memory->main_ion_fd[cnt] = -1; in deallocate_ion_memory()
2444 heap->main_ion_fd[i] = -1; in initHeapMem()
2515 frame->ion_dev_fd = heap->main_ion_fd[i]; in initHeapMem()