Lines Matching defs:file
85 static long phantom_ioctl(struct file *file, unsigned int cmd,
88 struct phantom_device *dev = file->private_data;
197 static long phantom_compat_ioctl(struct file *filp, unsigned int cmd,
210 static int phantom_open(struct inode *inode, struct file *file)
216 nonseekable_open(inode, file);
231 file->private_data = dev;
240 static int phantom_release(struct inode *inode, struct file *file)
242 struct phantom_device *dev = file->private_data;
255 static __poll_t phantom_poll(struct file *file, poll_table *wait)
257 struct phantom_device *dev = file->private_data;
261 poll_wait(file, &dev->wait, wait);
514 printk(KERN_ERR "phantom: can't create sysfs version file\n");