Lines Matching defs:file
23 static int rtc_dev_open(struct inode *inode, struct file *file)
31 file->private_data = rtc;
142 rtc_dev_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
144 struct rtc_device *rtc = file->private_data;
166 if (file->f_flags & O_NONBLOCK) {
191 static __poll_t rtc_dev_poll(struct file *file, poll_table *wait)
193 struct rtc_device *rtc = file->private_data;
196 poll_wait(file, &rtc->irq_queue, wait);
203 static long rtc_dev_ioctl(struct file *file,
207 struct rtc_device *rtc = file->private_data;
472 static long rtc_dev_compat_ioctl(struct file *file,
475 struct rtc_device *rtc = file->private_data;
484 return rtc_dev_ioctl(file, RTC_IRQP_SET, arg);
488 return rtc_dev_ioctl(file, RTC_EPOCH_SET, arg);
491 return rtc_dev_ioctl(file, cmd, (unsigned long)uarg);
495 static int rtc_dev_fasync(int fd, struct file *file, int on)
497 struct rtc_device *rtc = file->private_data;
499 return fasync_helper(fd, file, on, &rtc->async_queue);
502 static int rtc_dev_release(struct inode *inode, struct file *file)
504 struct rtc_device *rtc = file->private_data;
516 rtc_dev_ioctl(file, RTC_UIE_OFF, 0);