Lines Matching refs:mIonFd
49 if(mIonFd == FD_INIT) in open_device()
50 mIonFd = open(ION_DEVICE, O_RDONLY); in open_device()
52 if(mIonFd < 0 ) { in open_device()
55 mIonFd = FD_INIT; in open_device()
63 if(mIonFd >= 0) in close_device()
64 close(mIonFd); in close_device()
65 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()
116 ioctl(mIonFd, ION_IOC_FREE, &handle_data); in alloc_buffer()
196 if (ioctl(mIonFd, ION_IOC_IMPORT, &fd_data)) { in clean_buffer()
225 if(ioctl(mIonFd, ION_IOC_CUSTOM, &d)) { in clean_buffer()
230 ioctl(mIonFd, ION_IOC_FREE, &handle_data); in clean_buffer()
233 ioctl(mIonFd, ION_IOC_FREE, &handle_data); in clean_buffer()