Lines Matching refs:main_ion_fd
2339 p_camera_memory->main_ion_fd[cnt] = open("/dev/ion", O_RDONLY);
2340 if (p_camera_memory->main_ion_fd[cnt] < 0) {
2352 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_ALLOC, &p_camera_memory->alloc[cnt]);
2359 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_SHARE, &p_camera_memory->ion_info_fd[cnt]);
2369 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data);
2371 close(p_camera_memory->main_ion_fd[cnt]);
2372 p_camera_memory->main_ion_fd[cnt] = -1;
2382 if (p_camera_memory->main_ion_fd[cnt] > 0) {
2384 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data);
2385 close(p_camera_memory->main_ion_fd[cnt]);
2386 p_camera_memory->main_ion_fd[cnt] = -1;
2396 p_camera_memory->main_ion_fd[cnt] = open("/dev/ion", O_RDONLY);
2397 if (p_camera_memory->main_ion_fd[cnt] < 0) {
2409 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_ALLOC, &p_camera_memory->alloc[cnt]);
2416 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_SHARE, &p_camera_memory->ion_info_fd[cnt]);
2426 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data);
2428 close(p_camera_memory->main_ion_fd[cnt]);
2429 p_camera_memory->main_ion_fd[cnt] = -1;
2456 if (p_camera_memory->main_ion_fd[cnt] > 0) {
2458 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data);
2459 close(p_camera_memory->main_ion_fd[cnt]);
2460 p_camera_memory->main_ion_fd[cnt] = -1;
2493 heap->main_ion_fd[i] = -1;
2559 ion_fd = heap->main_ion_fd[i];
2579 frame->ion_dev_fd = heap->main_ion_fd[i];