Lines Matching refs:file
257 static int hpet_open(struct inode *inode, struct file *file) in hpet_open() argument
263 if (file->f_mode & FMODE_WRITE) in hpet_open()
284 file->private_data = devp; in hpet_open()
296 hpet_read(struct file *file, char __user *buf, size_t count, loff_t * ppos) in hpet_read() argument
303 devp = file->private_data; in hpet_read()
322 else if (file->f_flags & O_NONBLOCK) { in hpet_read()
342 static __poll_t hpet_poll(struct file *file, poll_table * wait) in hpet_poll() argument
347 devp = file->private_data; in hpet_poll()
352 poll_wait(file, &devp->hd_waitqueue, wait); in hpet_poll()
379 static int hpet_mmap(struct file *file, struct vm_area_struct *vma) in hpet_mmap() argument
387 devp = file->private_data; in hpet_mmap()
397 static int hpet_mmap(struct file *file, struct vm_area_struct *vma) in hpet_mmap() argument
403 static int hpet_fasync(int fd, struct file *file, int on) in hpet_fasync() argument
407 devp = file->private_data; in hpet_fasync()
409 if (fasync_helper(fd, file, on, &devp->hd_async_queue) >= 0) in hpet_fasync()
415 static int hpet_release(struct inode *inode, struct file *file) in hpet_release() argument
421 devp = file->private_data; in hpet_release()
449 file->private_data = NULL; in hpet_release()
665 hpet_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in hpet_ioctl() argument
671 err = hpet_ioctl_common(file->private_data, cmd, arg, &info); in hpet_ioctl()
690 hpet_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in hpet_compat_ioctl() argument
696 err = hpet_ioctl_common(file->private_data, cmd, arg, &info); in hpet_compat_ioctl()