Lines Matching refs:filp

292  * @filp:	file handle
299 static int genwqe_open(struct inode *inode, struct file *filp)
310 cfile->filp = filp;
319 filp->private_data = cfile;
328 * @filp: file handle
340 static int genwqe_fasync(int fd, struct file *filp, int mode)
342 struct genwqe_file *cdev = (struct genwqe_file *)filp->private_data;
344 return fasync_helper(fd, filp, mode, &cdev->async_queue);
351 * @filp: file handle
357 static int genwqe_release(struct inode *inode, struct file *filp)
359 struct genwqe_file *cfile = (struct genwqe_file *)filp->private_data;
366 /* remove this filp from the asynchronously notified filp's */
367 genwqe_fasync(-1, filp, 0);
423 * @filp: File pointer (unused)
435 static int genwqe_mmap(struct file *filp, struct vm_area_struct *vma)
439 struct genwqe_file *cfile = (struct genwqe_file *)filp->private_data;
515 struct file *filp = cfile->filp;
610 rc = __genwqe_execute_raw_ddcb(cd, req, filp->f_flags);
650 struct file *filp = cfile->filp;
728 rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags);
998 struct file *filp = cfile->filp;
1005 rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags);
1016 struct file *filp = cfile->filp;
1030 rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags);
1046 * @filp: file handle
1052 static long genwqe_ioctl(struct file *filp, unsigned int cmd,
1056 struct genwqe_file *cfile = (struct genwqe_file *)filp->private_data;
1097 if ((filp->f_flags & O_ACCMODE) == O_RDONLY)
1133 if ((filp->f_flags & O_ACCMODE) == O_RDONLY)
1156 if ((filp->f_flags & O_ACCMODE) == O_RDONLY)