Lines Matching refs:ion_fd
28 void free_ion_cookie(int ion_fd, int cookie) in free_ion_cookie() argument
31 if (ion_fd && !ioctl(ion_fd, ION_IOC_FREE, &cookie)) { in free_ion_cookie()
33 ALOGE("ION_IOC_FREE failed: ion_fd = %d, cookie = %d", ion_fd, cookie); in free_ion_cookie()
38 int get_ion_cookie(int ion_fd, int fd) in get_ion_cookie() argument
47 if (ion_fd && !ioctl(ion_fd, ION_IOC_IMPORT, &fdData)) { in get_ion_cookie()
50 ALOGE("ION_IOC_IMPORT failed: ion_fd = %d, fd = %d", ion_fd, fd); in get_ion_cookie()
60 ion_fd = fd; in DeleteEGLImageCallback()
67 free_ion_cookie(ion_fd, k); in operator ()()
79 ion_fd = open("/dev/ion", O_RDONLY); in EGLImageWrapper()
80 callback = new DeleteEGLImageCallback(ion_fd); in EGLImageWrapper()
101 if( ion_fd > 0 ) in ~EGLImageWrapper()
103 close(ion_fd); in ~EGLImageWrapper()
105 ion_fd = -1; in ~EGLImageWrapper()
142 int ion_cookie = get_ion_cookie(ion_fd, src->fd); in wrap()
150 free_ion_cookie(ion_fd, ion_cookie); in wrap()