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