Lines Matching refs:filp
65 static ssize_t counter_chrdev_read(struct file *filp, char __user *buf,
68 struct counter_device *const counter = filp->private_data;
80 if (filp->f_flags & O_NONBLOCK)
103 static __poll_t counter_chrdev_poll(struct file *filp,
106 struct counter_device *const counter = filp->private_data;
112 poll_wait(filp, &counter->events_wait, pollt);
382 static long counter_chrdev_ioctl(struct file *filp, unsigned int cmd,
385 struct counter_device *const counter = filp->private_data;
414 static int counter_chrdev_open(struct inode *inode, struct file *filp)
421 filp->private_data = counter;
423 return nonseekable_open(inode, filp);
426 static int counter_chrdev_release(struct inode *inode, struct file *filp)
428 struct counter_device *const counter = filp->private_data;