Lines Matching refs:filp
303 static int genwqe_open(struct inode *inode, struct file *filp) in genwqe_open() argument
316 cfile->filp = filp; in genwqe_open()
325 filp->private_data = cfile; in genwqe_open()
346 static int genwqe_fasync(int fd, struct file *filp, int mode) in genwqe_fasync() argument
348 struct genwqe_file *cdev = (struct genwqe_file *)filp->private_data; in genwqe_fasync()
350 return fasync_helper(fd, filp, mode, &cdev->async_queue); in genwqe_fasync()
363 static int genwqe_release(struct inode *inode, struct file *filp) in genwqe_release() argument
365 struct genwqe_file *cfile = (struct genwqe_file *)filp->private_data; in genwqe_release()
373 genwqe_fasync(-1, filp, 0); in genwqe_release()
438 static int genwqe_mmap(struct file *filp, struct vm_area_struct *vma) in genwqe_mmap() argument
442 struct genwqe_file *cfile = (struct genwqe_file *)filp->private_data; in genwqe_mmap()
519 struct file *filp = cfile->filp; in do_flash_update() local
614 rc = __genwqe_execute_raw_ddcb(cd, req, filp->f_flags); in do_flash_update()
654 struct file *filp = cfile->filp; in do_flash_read() local
732 rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags); in do_flash_read()
993 struct file *filp = cfile->filp; in genwqe_execute_ddcb() local
1000 rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags); in genwqe_execute_ddcb()
1012 struct file *filp = cfile->filp; in do_execute_ddcb() local
1028 rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags); in do_execute_ddcb()
1050 static long genwqe_ioctl(struct file *filp, unsigned int cmd, in genwqe_ioctl() argument
1054 struct genwqe_file *cfile = (struct genwqe_file *)filp->private_data; in genwqe_ioctl()
1095 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
1131 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
1154 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
1239 static long genwqe_compat_ioctl(struct file *filp, unsigned int cmd, in genwqe_compat_ioctl() argument
1242 return genwqe_ioctl(filp, cmd, arg); in genwqe_compat_ioctl()