Lines Matching refs:mIonFd
46 if(mIonFd == FD_INIT) in open_device()
47 mIonFd = open(ION_DEVICE, O_RDONLY); in open_device()
49 if(mIonFd < 0 ) { in open_device()
52 mIonFd = FD_INIT; in open_device()
60 if(mIonFd >= 0) in close_device()
61 close(mIonFd); in close_device()
62 mIonFd = FD_INIT; in close_device()
86 if(ioctl(mIonFd, ION_IOC_ALLOC, &ionAllocData)) { in alloc_buffer()
94 if(ioctl(mIonFd, ION_IOC_MAP, &fd_data)) { in alloc_buffer()
98 ioctl(mIonFd, ION_IOC_FREE, &handle_data); in alloc_buffer()
109 ioctl(mIonFd, ION_IOC_FREE, &handle_data); in alloc_buffer()
120 ioctl(mIonFd, ION_IOC_FREE, &handle_data); in alloc_buffer()
191 if (ioctl(mIonFd, ION_IOC_IMPORT, &fd_data)) { in clean_buffer()
219 if(ioctl(mIonFd, ION_IOC_CUSTOM, &d)) { in clean_buffer()
224 ioctl(mIonFd, ION_IOC_FREE, &handle_data); in clean_buffer()
227 ioctl(mIonFd, ION_IOC_FREE, &handle_data); in clean_buffer()