filp             1299 arch/alpha/kernel/osf_sys.c arch_get_unmapped_area(struct file *filp, unsigned long addr,
filp               93 arch/alpha/kernel/pci-sysfs.c static int pci_mmap_resource_sparse(struct file *filp, struct kobject *kobj,
filp              100 arch/alpha/kernel/pci-sysfs.c static int pci_mmap_resource_dense(struct file *filp, struct kobject *kobj,
filp              158 arch/alpha/kernel/srmcons.c srmcons_open(struct tty_struct *tty, struct file *filp)
filp              179 arch/alpha/kernel/srmcons.c srmcons_close(struct tty_struct *tty, struct file *filp)
filp               29 arch/arc/mm/mmap.c arch_get_unmapped_area(struct file *filp, unsigned long addr,
filp               42 arch/arc/mm/mmap.c 		do_align = filp || (flags & MAP_SHARED);
filp               30 arch/arm/mm/mmap.c arch_get_unmapped_area(struct file *filp, unsigned long addr,
filp               44 arch/arm/mm/mmap.c 		do_align = filp || (flags & MAP_SHARED);
filp               81 arch/arm/mm/mmap.c arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
filp               97 arch/arm/mm/mmap.c 		do_align = filp || (flags & MAP_SHARED);
filp               25 arch/csky/abiv1/mmap.c arch_get_unmapped_area(struct file *filp, unsigned long addr,
filp               37 arch/csky/abiv1/mmap.c 	do_align = filp || (flags & MAP_SHARED);
filp             1502 arch/ia64/kernel/perfmon.c pfm_read(struct file *filp, char __user *buf, size_t size, loff_t *ppos)
filp             1509 arch/ia64/kernel/perfmon.c 	if (PFM_IS_FILE(filp) == 0) {
filp             1514 arch/ia64/kernel/perfmon.c 	ctx = filp->private_data;
filp             1554 arch/ia64/kernel/perfmon.c 		if(filp->f_flags & O_NONBLOCK) break;
filp             1603 arch/ia64/kernel/perfmon.c pfm_poll(struct file *filp, poll_table * wait)
filp             1609 arch/ia64/kernel/perfmon.c 	if (PFM_IS_FILE(filp) == 0) {
filp             1614 arch/ia64/kernel/perfmon.c 	ctx = filp->private_data;
filp             1623 arch/ia64/kernel/perfmon.c 	poll_wait(filp, &ctx->ctx_msgq_wait, wait);
filp             1648 arch/ia64/kernel/perfmon.c pfm_do_fasync(int fd, struct file *filp, pfm_context_t *ctx, int on)
filp             1652 arch/ia64/kernel/perfmon.c 	ret = fasync_helper (fd, filp, on, &ctx->ctx_async_queue);
filp             1664 arch/ia64/kernel/perfmon.c pfm_fasync(int fd, struct file *filp, int on)
filp             1669 arch/ia64/kernel/perfmon.c 	if (PFM_IS_FILE(filp) == 0) {
filp             1674 arch/ia64/kernel/perfmon.c 	ctx = filp->private_data;
filp             1686 arch/ia64/kernel/perfmon.c 	ret = pfm_do_fasync(fd, filp, ctx, on);
filp             1767 arch/ia64/kernel/perfmon.c pfm_flush(struct file *filp, fl_owner_t id)
filp             1777 arch/ia64/kernel/perfmon.c 	if (PFM_IS_FILE(filp) == 0) {
filp             1782 arch/ia64/kernel/perfmon.c 	ctx = filp->private_data;
filp             1906 arch/ia64/kernel/perfmon.c pfm_close(struct inode *inode, struct file *filp)
filp             1918 arch/ia64/kernel/perfmon.c 	DPRINT(("pfm_close called private=%p\n", filp->private_data));
filp             1920 arch/ia64/kernel/perfmon.c 	if (PFM_IS_FILE(filp) == 0) {
filp             1925 arch/ia64/kernel/perfmon.c 	ctx = filp->private_data;
filp             2080 arch/ia64/kernel/perfmon.c 	filp->private_data = NULL;
filp             2196 arch/ia64/kernel/perfmon.c pfm_smpl_buffer_alloc(struct task_struct *task, struct file *filp, pfm_context_t *ctx, unsigned long rsize, void **user_vaddr)
filp             2243 arch/ia64/kernel/perfmon.c 	vma->vm_file	     = get_file(filp);
filp             2368 arch/ia64/kernel/perfmon.c pfm_setup_buffer_fmt(struct task_struct *task, struct file *filp, pfm_context_t *ctx, unsigned int ctx_flags,
filp             2410 arch/ia64/kernel/perfmon.c 		ret = pfm_smpl_buffer_alloc(current, filp, ctx, size, &uaddr);
filp             2585 arch/ia64/kernel/perfmon.c 	struct file *filp;
filp             2608 arch/ia64/kernel/perfmon.c 	filp = pfm_alloc_file(ctx);
filp             2609 arch/ia64/kernel/perfmon.c 	if (IS_ERR(filp)) {
filp             2610 arch/ia64/kernel/perfmon.c 		ret = PTR_ERR(filp);
filp             2620 arch/ia64/kernel/perfmon.c 		ret = pfm_setup_buffer_fmt(current, filp, ctx, ctx_flags, 0, req);
filp             2639 arch/ia64/kernel/perfmon.c 	fd_install(fd, filp);
filp             2644 arch/ia64/kernel/perfmon.c 	path = filp->f_path;
filp             2645 arch/ia64/kernel/perfmon.c 	put_filp(filp);
filp               27 arch/ia64/kernel/sys_ia64.c arch_get_unmapped_area (struct file *filp, unsigned long addr, unsigned long len,
filp               64 arch/m68k/emu/nfcon.c static int nfcon_tty_open(struct tty_struct *tty, struct file *filp)
filp               69 arch/m68k/emu/nfcon.c static void nfcon_tty_close(struct tty_struct *tty, struct file *filp)
filp              329 arch/mips/kernel/rtlx.c static int file_open(struct inode *inode, struct file *filp)
filp              331 arch/mips/kernel/rtlx.c 	return rtlx_open(iminor(inode), (filp->f_flags & O_NONBLOCK) ? 0 : 1);
filp              334 arch/mips/kernel/rtlx.c static int file_release(struct inode *inode, struct file *filp)
filp              765 arch/mips/kernel/vpe.c static int vpe_open(struct inode *inode, struct file *filp)
filp              818 arch/mips/kernel/vpe.c static int vpe_release(struct inode *inode, struct file *filp)
filp              185 arch/mips/kvm/mips.c long kvm_arch_dev_ioctl(struct file *filp, unsigned int ioctl,
filp              896 arch/mips/kvm/mips.c long kvm_arch_vcpu_async_ioctl(struct file *filp, unsigned int ioctl,
filp              899 arch/mips/kvm/mips.c 	struct kvm_vcpu *vcpu = filp->private_data;
filp              916 arch/mips/kvm/mips.c long kvm_arch_vcpu_ioctl(struct file *filp, unsigned int ioctl,
filp              919 arch/mips/kvm/mips.c 	struct kvm_vcpu *vcpu = filp->private_data;
filp             1039 arch/mips/kvm/mips.c long kvm_arch_vm_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
filp               29 arch/mips/mm/mmap.c static unsigned long arch_get_unmapped_area_common(struct file *filp,
filp               58 arch/mips/mm/mmap.c 	if (filp || (flags & MAP_SHARED))
filp              101 arch/mips/mm/mmap.c unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr0,
filp              104 arch/mips/mm/mmap.c 	return arch_get_unmapped_area_common(filp,
filp              112 arch/mips/mm/mmap.c unsigned long arch_get_unmapped_area_topdown(struct file *filp,
filp              116 arch/mips/mm/mmap.c 	return arch_get_unmapped_area_common(filp,
filp              253 arch/mips/sibyte/common/sb_tbprof.c static int sbprof_zbprof_start(struct file *filp)
filp              264 arch/mips/sibyte/common/sb_tbprof.c 	filp->f_pos = 0;
filp              389 arch/mips/sibyte/common/sb_tbprof.c static int sbprof_tb_open(struct inode *inode, struct file *filp)
filp              418 arch/mips/sibyte/common/sb_tbprof.c static int sbprof_tb_release(struct inode *inode, struct file *filp)
filp              440 arch/mips/sibyte/common/sb_tbprof.c static ssize_t sbprof_tb_read(struct file *filp, char *buf,
filp              491 arch/mips/sibyte/common/sb_tbprof.c static long sbprof_tb_ioctl(struct file *filp,
filp              500 arch/mips/sibyte/common/sb_tbprof.c 		err = sbprof_zbprof_start(filp);
filp              888 arch/mips/txx9/generic/setup.c static ssize_t txx9_sram_read(struct file *filp, struct kobject *kobj,
filp              903 arch/mips/txx9/generic/setup.c static ssize_t txx9_sram_write(struct file *filp, struct kobject *kobj,
filp               22 arch/nds32/mm/mmap.c arch_get_unmapped_area(struct file *filp, unsigned long addr,
filp               39 arch/nds32/mm/mmap.c 		do_align = filp || (flags & MAP_SHARED);
filp               84 arch/parisc/kernel/pdc_cons.c static int pdc_console_tty_open(struct tty_struct *tty, struct file *filp)
filp               92 arch/parisc/kernel/pdc_cons.c static void pdc_console_tty_close(struct tty_struct *tty, struct file *filp)
filp               29 arch/parisc/kernel/sys_parisc.c #define GET_LAST_MMAP(filp)		\
filp               30 arch/parisc/kernel/sys_parisc.c 	(filp ? ((unsigned long) filp->f_mapping) >> 8 : 0UL)
filp               31 arch/parisc/kernel/sys_parisc.c #define SET_LAST_MMAP(filp, val)	\
filp               82 arch/parisc/kernel/sys_parisc.c unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr,
filp               95 arch/parisc/kernel/sys_parisc.c 	if (filp || (flags & MAP_SHARED))
filp               97 arch/parisc/kernel/sys_parisc.c 	last_mmap = GET_LAST_MMAP(filp);
filp              130 arch/parisc/kernel/sys_parisc.c 		SET_LAST_MMAP(filp, addr - (pgoff << PAGE_SHIFT));
filp              136 arch/parisc/kernel/sys_parisc.c arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
filp              151 arch/parisc/kernel/sys_parisc.c 	if (filp || (flags & MAP_SHARED))
filp              153 arch/parisc/kernel/sys_parisc.c 	last_mmap = GET_LAST_MMAP(filp);
filp              194 arch/parisc/kernel/sys_parisc.c 	return arch_get_unmapped_area(filp, addr0, len, pgoff, flags);
filp              198 arch/parisc/kernel/sys_parisc.c 		SET_LAST_MMAP(filp, addr - (pgoff << PAGE_SHIFT));
filp              307 arch/powerpc/include/asm/kvm_ppc.h 	long (*arch_vm_ioctl)(struct file *filp, unsigned int ioctl,
filp              232 arch/powerpc/include/asm/spu.h 	long (*spu_run)(struct file *filp, __u32 __user *unpc,
filp             1819 arch/powerpc/kernel/eeh.c static ssize_t eeh_force_recover_write(struct file *filp,
filp             1875 arch/powerpc/kernel/eeh.c static ssize_t eeh_debugfs_dev_usage(struct file *filp,
filp             1885 arch/powerpc/kernel/eeh.c static ssize_t eeh_dev_check_write(struct file *filp,
filp             2026 arch/powerpc/kernel/eeh.c static ssize_t eeh_dev_break_write(struct file *filp,
filp             1962 arch/powerpc/kvm/book3s_64_mmu_hv.c static int kvm_htab_release(struct inode *inode, struct file *filp)
filp             1964 arch/powerpc/kvm/book3s_64_mmu_hv.c 	struct kvm_htab_ctx *ctx = filp->private_data;
filp             1966 arch/powerpc/kvm/book3s_64_mmu_hv.c 	filp->private_data = NULL;
filp              238 arch/powerpc/kvm/book3s_64_vio.c static int kvm_spapr_tce_release(struct inode *inode, struct file *filp)
filp              240 arch/powerpc/kvm/book3s_64_vio.c 	struct kvmppc_spapr_tce_table *stt = filp->private_data;
filp             5182 arch/powerpc/kvm/book3s_hv.c static long kvm_arch_vm_ioctl_hv(struct file *filp,
filp             5185 arch/powerpc/kvm/book3s_hv.c 	struct kvm *kvm __maybe_unused = filp->private_data;
filp             2050 arch/powerpc/kvm/book3s_pr.c static long kvm_arch_vm_ioctl_pr(struct file *filp,
filp              678 arch/powerpc/kvm/powerpc.c long kvm_arch_dev_ioctl(struct file *filp,
filp             2011 arch/powerpc/kvm/powerpc.c long kvm_arch_vcpu_async_ioctl(struct file *filp,
filp             2014 arch/powerpc/kvm/powerpc.c 	struct kvm_vcpu *vcpu = filp->private_data;
filp             2026 arch/powerpc/kvm/powerpc.c long kvm_arch_vcpu_ioctl(struct file *filp,
filp             2029 arch/powerpc/kvm/powerpc.c 	struct kvm_vcpu *vcpu = filp->private_data;
filp             2313 arch/powerpc/kvm/powerpc.c long kvm_arch_vm_ioctl(struct file *filp,
filp             2316 arch/powerpc/kvm/powerpc.c 	struct kvm *kvm __maybe_unused = filp->private_data;
filp             2367 arch/powerpc/kvm/powerpc.c 		struct kvm *kvm = filp->private_data;
filp             2376 arch/powerpc/kvm/powerpc.c 		struct kvm *kvm = filp->private_data;
filp             2382 arch/powerpc/kvm/powerpc.c 		struct kvm *kvm = filp->private_data;
filp             2395 arch/powerpc/kvm/powerpc.c 		struct kvm *kvm = filp->private_data;
filp             2415 arch/powerpc/kvm/powerpc.c 		struct kvm *kvm = filp->private_data;
filp             2416 arch/powerpc/kvm/powerpc.c 		r = kvm->arch.kvm_ops->arch_vm_ioctl(filp, ioctl, arg);
filp               90 arch/powerpc/mm/mmap.c radix__arch_get_unmapped_area(struct file *filp, unsigned long addr,
filp              131 arch/powerpc/mm/mmap.c radix__arch_get_unmapped_area_topdown(struct file *filp,
filp              182 arch/powerpc/mm/mmap.c 	return radix__arch_get_unmapped_area(filp, addr0, len, pgoff, flags);
filp              642 arch/powerpc/mm/slice.c unsigned long arch_get_unmapped_area(struct file *filp,
filp              652 arch/powerpc/mm/slice.c unsigned long arch_get_unmapped_area_topdown(struct file *filp,
filp              922 arch/powerpc/perf/hv-24x7.c static ssize_t catalog_read(struct file *filp, struct kobject *kobj,
filp              284 arch/powerpc/platforms/cell/spufs/inode.c 	struct file *filp;
filp              290 arch/powerpc/platforms/cell/spufs/inode.c 	filp = dentry_open(path, O_RDONLY, current_cred());
filp              291 arch/powerpc/platforms/cell/spufs/inode.c 	if (IS_ERR(filp)) {
filp              293 arch/powerpc/platforms/cell/spufs/inode.c 		return PTR_ERR(filp);
filp              296 arch/powerpc/platforms/cell/spufs/inode.c 	filp->f_op = &spufs_context_fops;
filp              297 arch/powerpc/platforms/cell/spufs/inode.c 	fd_install(ret, filp);
filp              303 arch/powerpc/platforms/cell/spufs/inode.c 						struct file *filp)
filp              328 arch/powerpc/platforms/cell/spufs/inode.c 		if (!filp || filp->f_op != &spufs_context_fops)
filp              332 arch/powerpc/platforms/cell/spufs/inode.c 				SPUFS_I(file_inode(filp))->i_ctx);
filp              503 arch/powerpc/platforms/cell/spufs/inode.c 	struct file *filp;
filp              513 arch/powerpc/platforms/cell/spufs/inode.c 	filp = dentry_open(path, O_RDONLY, current_cred());
filp              514 arch/powerpc/platforms/cell/spufs/inode.c 	if (IS_ERR(filp)) {
filp              516 arch/powerpc/platforms/cell/spufs/inode.c 		return PTR_ERR(filp);
filp              519 arch/powerpc/platforms/cell/spufs/inode.c 	filp->f_op = &simple_dir_operations;
filp              520 arch/powerpc/platforms/cell/spufs/inode.c 	fd_install(ret, filp);
filp              546 arch/powerpc/platforms/cell/spufs/inode.c 		unsigned int flags, umode_t mode, struct file *filp)
filp              570 arch/powerpc/platforms/cell/spufs/inode.c 					    filp);
filp              236 arch/powerpc/platforms/cell/spufs/spufs.h 			umode_t mode, struct file *filp);
filp               34 arch/powerpc/platforms/cell/spufs/syscalls.c static long do_spu_run(struct file *filp,
filp               48 arch/powerpc/platforms/cell/spufs/syscalls.c 	if (filp->f_op != &spufs_context_fops)
filp               51 arch/powerpc/platforms/cell/spufs/syscalls.c 	i = SPUFS_I(file_inode(filp));
filp              119 arch/powerpc/platforms/powernv/eeh-powernv.c static ssize_t pnv_eeh_ei_write(struct file *filp,
filp              123 arch/powerpc/platforms/powernv/eeh-powernv.c 	struct pci_controller *hose = filp->private_data;
filp               39 arch/powerpc/platforms/powernv/memtrace.c static ssize_t memtrace_read(struct file *filp, char __user *ubuf,
filp               42 arch/powerpc/platforms/powernv/memtrace.c 	struct memtrace_entry *ent = filp->private_data;
filp              434 arch/powerpc/platforms/powernv/opal-flash.c static ssize_t image_data_write(struct file *filp, struct kobject *kobj,
filp              184 arch/powerpc/platforms/powernv/opal-lpc.c static ssize_t lpc_debug_read(struct file *filp, char __user *ubuf,
filp              187 arch/powerpc/platforms/powernv/opal-lpc.c 	struct lpc_debugfs_entry *lpc = filp->private_data;
filp              275 arch/powerpc/platforms/powernv/opal-lpc.c static ssize_t lpc_debug_write(struct file *filp, const char __user *ubuf,
filp              278 arch/powerpc/platforms/powernv/opal-lpc.c 	struct lpc_debugfs_entry *lpc = filp->private_data;
filp               87 arch/powerpc/platforms/powernv/opal-xscom.c static ssize_t scom_debug_read(struct file *filp, char __user *ubuf,
filp               90 arch/powerpc/platforms/powernv/opal-xscom.c 	struct scom_debug_entry *ent = filp->private_data;
filp              118 arch/powerpc/platforms/powernv/opal-xscom.c static ssize_t scom_debug_write(struct file *filp, const char __user *ubuf,
filp              121 arch/powerpc/platforms/powernv/opal-xscom.c 	struct scom_debug_entry *ent = filp->private_data;
filp              230 arch/powerpc/platforms/pseries/dtl.c static int dtl_file_open(struct inode *inode, struct file *filp)
filp              239 arch/powerpc/platforms/pseries/dtl.c 	filp->private_data = dtl;
filp              243 arch/powerpc/platforms/pseries/dtl.c static int dtl_file_release(struct inode *inode, struct file *filp)
filp              250 arch/powerpc/platforms/pseries/dtl.c static ssize_t dtl_file_read(struct file *filp, char __user *buf, size_t len,
filp              260 arch/powerpc/platforms/pseries/dtl.c 	dtl = filp->private_data;
filp             1975 arch/powerpc/platforms/pseries/lpar.c static ssize_t vpa_file_read(struct file *filp, char __user *buf, size_t len,
filp             1978 arch/powerpc/platforms/pseries/lpar.c 	int cpu = (long)filp->private_data;
filp              117 arch/s390/hypfs/inode.c static int hypfs_open(struct inode *inode, struct file *filp)
filp              119 arch/s390/hypfs/inode.c 	char *data = file_inode(filp)->i_private;
filp              122 arch/s390/hypfs/inode.c 	if (filp->f_mode & FMODE_WRITE) {
filp              126 arch/s390/hypfs/inode.c 	if (filp->f_mode & FMODE_READ) {
filp              134 arch/s390/hypfs/inode.c 		filp->private_data = kstrdup(data, GFP_KERNEL);
filp              135 arch/s390/hypfs/inode.c 		if (!filp->private_data) {
filp              141 arch/s390/hypfs/inode.c 	return nonseekable_open(inode, filp);
filp              204 arch/s390/hypfs/inode.c static int hypfs_release(struct inode *inode, struct file *filp)
filp              206 arch/s390/hypfs/inode.c 	kfree(filp->private_data);
filp              325 arch/s390/kernel/ipl.c static ssize_t ipl_parameter_read(struct file *filp, struct kobject *kobj,
filp              336 arch/s390/kernel/ipl.c static ssize_t ipl_scp_data_read(struct file *filp, struct kobject *kobj,
filp              575 arch/s390/kernel/ipl.c static ssize_t reipl_fcp_scpdata_read(struct file *filp, struct kobject *kobj,
filp              585 arch/s390/kernel/ipl.c static ssize_t reipl_fcp_scpdata_write(struct file *filp, struct kobject *kobj,
filp              496 arch/s390/kvm/kvm-s390.c long kvm_arch_dev_ioctl(struct file *filp,
filp             2166 arch/s390/kvm/kvm-s390.c long kvm_arch_vm_ioctl(struct file *filp,
filp             2169 arch/s390/kvm/kvm-s390.c 	struct kvm *kvm = filp->private_data;
filp             4317 arch/s390/kvm/kvm-s390.c long kvm_arch_vcpu_async_ioctl(struct file *filp,
filp             4320 arch/s390/kvm/kvm-s390.c 	struct kvm_vcpu *vcpu = filp->private_data;
filp             4345 arch/s390/kvm/kvm-s390.c long kvm_arch_vcpu_ioctl(struct file *filp,
filp             4348 arch/s390/kvm/kvm-s390.c 	struct kvm_vcpu *vcpu = filp->private_data;
filp              265 arch/s390/mm/dump_pagetables.c static int ptdump_open(struct inode *inode, struct file *filp)
filp              267 arch/s390/mm/dump_pagetables.c 	return single_open(filp, ptdump_show, NULL);
filp               76 arch/s390/mm/mmap.c arch_get_unmapped_area(struct file *filp, unsigned long addr,
filp              102 arch/s390/mm/mmap.c 	if (filp || (flags & MAP_SHARED))
filp              123 arch/s390/mm/mmap.c arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
filp              153 arch/s390/mm/mmap.c 	if (filp || (flags & MAP_SHARED))
filp              624 arch/s390/pci/pci_clp.c static long clp_misc_ioctl(struct file *filp, unsigned int cmd,
filp              641 arch/s390/pci/pci_clp.c static int clp_misc_release(struct inode *inode, struct file *filp)
filp              158 arch/s390/pci/pci_debug.c static int pci_perf_seq_open(struct inode *inode, struct file *filp)
filp              160 arch/s390/pci/pci_debug.c 	return single_open(filp, pci_perf_show,
filp              161 arch/s390/pci/pci_debug.c 			   file_inode(filp)->i_private);
filp              101 arch/s390/pci/pci_sysfs.c static ssize_t util_string_read(struct file *filp, struct kobject *kobj,
filp              114 arch/s390/pci/pci_sysfs.c static ssize_t report_error_write(struct file *filp, struct kobject *kobj,
filp               28 arch/sh/boards/mach-landisk/gio.c static int gio_open(struct inode *inode, struct file *filp)
filp               47 arch/sh/boards/mach-landisk/gio.c static int gio_close(struct inode *inode, struct file *filp)
filp               58 arch/sh/boards/mach-landisk/gio.c static long gio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp               34 arch/sh/mm/mmap.c unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr,
filp               56 arch/sh/mm/mmap.c 	if (filp || (flags & MAP_SHARED))
filp               81 arch/sh/mm/mmap.c arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
filp              105 arch/sh/mm/mmap.c 	if (filp || (flags & MAP_SHARED))
filp             1134 arch/sparc/include/asm/pgtable_64.h unsigned long get_fb_unmapped_area(struct file *filp, unsigned long,
filp               42 arch/sparc/kernel/sys_sparc_32.c unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)
filp               90 arch/sparc/kernel/sys_sparc_64.c unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)
filp              114 arch/sparc/kernel/sys_sparc_64.c 	if (filp || (flags & MAP_SHARED))
filp              148 arch/sparc/kernel/sys_sparc_64.c arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
filp              176 arch/sparc/kernel/sys_sparc_64.c 	if (filp || (flags & MAP_SHARED))
filp              218 arch/sparc/kernel/sys_sparc_64.c unsigned long get_fb_unmapped_area(struct file *filp, unsigned long orig_addr, unsigned long len, unsigned long pgoff, unsigned long flags)
filp               27 arch/sparc/mm/hugetlbpage.c static unsigned long hugetlb_get_unmapped_area_bottomup(struct file *filp,
filp               33 arch/sparc/mm/hugetlbpage.c 	struct hstate *h = hstate_file(filp);
filp               59 arch/sparc/mm/hugetlbpage.c hugetlb_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
filp               64 arch/sparc/mm/hugetlbpage.c 	struct hstate *h = hstate_file(filp);
filp              323 arch/um/drivers/line.c int line_open(struct tty_struct *tty, struct file *filp)
filp              327 arch/um/drivers/line.c 	return tty_port_open(&line->port, tty, filp);
filp              344 arch/um/drivers/line.c void line_close(struct tty_struct *tty, struct file * filp)
filp              348 arch/um/drivers/line.c 	tty_port_close(&line->port, tty, filp);
filp               59 arch/um/drivers/line.h extern void line_close(struct tty_struct *tty, struct file * filp);
filp               60 arch/um/drivers/line.h extern int line_open(struct tty_struct *tty, struct file *filp);
filp               35 arch/um/drivers/random.c static int rng_dev_open (struct inode *inode, struct file *filp)
filp               38 arch/um/drivers/random.c 	if ((filp->f_mode & FMODE_READ) == 0)
filp               40 arch/um/drivers/random.c 	if ((filp->f_mode & FMODE_WRITE) != 0)
filp               48 arch/um/drivers/random.c static ssize_t rng_dev_read (struct file *filp, char __user *buf, size_t size,
filp               72 arch/um/drivers/random.c 			if (filp->f_flags & O_NONBLOCK)
filp             1518 arch/x86/kernel/apm_32.c static long do_ioctl(struct file *filp, u_int cmd, u_long arg)
filp             1523 arch/x86/kernel/apm_32.c 	as = filp->private_data;
filp             1566 arch/x86/kernel/apm_32.c static int do_release(struct inode *inode, struct file *filp)
filp             1570 arch/x86/kernel/apm_32.c 	as = filp->private_data;
filp             1573 arch/x86/kernel/apm_32.c 	filp->private_data = NULL;
filp             1604 arch/x86/kernel/apm_32.c static int do_open(struct inode *inode, struct file *filp)
filp             1624 arch/x86/kernel/apm_32.c 	as->writer = (filp->f_mode & FMODE_WRITE) == FMODE_WRITE;
filp             1625 arch/x86/kernel/apm_32.c 	as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ;
filp             1630 arch/x86/kernel/apm_32.c 	filp->private_data = as;
filp              200 arch/x86/kernel/cpu/mce/dev-mcelog.c static ssize_t mce_chrdev_read(struct file *filp, char __user *ubuf,
filp              291 arch/x86/kernel/cpu/mce/dev-mcelog.c static ssize_t mce_chrdev_write(struct file *filp, const char __user *ubuf,
filp              333 arch/x86/kernel/cpu/mce/inject.c static ssize_t flags_read(struct file *filp, char __user *ubuf,
filp              344 arch/x86/kernel/cpu/mce/inject.c static ssize_t flags_write(struct file *filp, const char __user *ubuf,
filp              635 arch/x86/kernel/cpu/mce/inject.c inj_readme_read(struct file *filp, char __user *ubuf,
filp             1422 arch/x86/kernel/cpu/resctrl/pseudo_lock.c static int pseudo_lock_dev_open(struct inode *inode, struct file *filp)
filp             1434 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	filp->private_data = rdtgrp;
filp             1437 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	filp->f_mode &= ~(FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE);
filp             1444 arch/x86/kernel/cpu/resctrl/pseudo_lock.c static int pseudo_lock_dev_release(struct inode *inode, struct file *filp)
filp             1449 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	rdtgrp = filp->private_data;
filp             1455 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	filp->private_data = NULL;
filp             1471 arch/x86/kernel/cpu/resctrl/pseudo_lock.c static int pseudo_lock_dev_mmap(struct file *filp, struct vm_area_struct *vma)
filp             1482 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	rdtgrp = filp->private_data;
filp              132 arch/x86/kernel/sys_x86_64.c arch_get_unmapped_area(struct file *filp, unsigned long addr,
filp              166 arch/x86/kernel/sys_x86_64.c 	if (filp) {
filp              174 arch/x86/kernel/sys_x86_64.c arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
filp              228 arch/x86/kernel/sys_x86_64.c 	if (filp) {
filp              244 arch/x86/kernel/sys_x86_64.c 	return arch_get_unmapped_area(filp, addr0, len, pgoff, flags);
filp             3390 arch/x86/kvm/x86.c long kvm_arch_dev_ioctl(struct file *filp,
filp             4173 arch/x86/kvm/x86.c long kvm_arch_vcpu_ioctl(struct file *filp,
filp             4176 arch/x86/kvm/x86.c 	struct kvm_vcpu *vcpu = filp->private_data;
filp             4890 arch/x86/kvm/x86.c long kvm_arch_vm_ioctl(struct file *filp,
filp             4893 arch/x86/kvm/x86.c 	struct kvm *kvm = filp->private_data;
filp              802 arch/x86/xen/p2m.c static int p2m_dump_open(struct inode *inode, struct file *filp)
filp              804 arch/x86/xen/p2m.c 	return single_open(filp, p2m_dump_show, NULL);
filp               61 arch/xtensa/kernel/syscall.c unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr,
filp               52 arch/xtensa/platforms/iss/console.c static int rs_open(struct tty_struct *tty, struct file * filp)
filp               76 arch/xtensa/platforms/iss/console.c static void rs_close(struct tty_struct *tty, struct file * filp)
filp               82 drivers/acpi/apei/erst-dbg.c static ssize_t erst_dbg_read(struct file *filp, char __user *ubuf,
filp               95 drivers/acpi/apei/erst-dbg.c 	pos = (int *)&filp->private_data;
filp              152 drivers/acpi/apei/erst-dbg.c static ssize_t erst_dbg_write(struct file *filp, const char __user *ubuf,
filp              341 drivers/acpi/sysfs.c static ssize_t acpi_table_show(struct file *filp, struct kobject *kobj,
filp              436 drivers/acpi/sysfs.c static ssize_t acpi_data_show(struct file *filp, struct kobject *kobj,
filp             4799 drivers/android/binder.c static __poll_t binder_poll(struct file *filp,
filp             4802 drivers/android/binder.c 	struct binder_proc *proc = filp->private_data;
filp             4816 drivers/android/binder.c 	poll_wait(filp, &thread->wait, wait);
filp             4824 drivers/android/binder.c static int binder_ioctl_write_read(struct file *filp,
filp             4829 drivers/android/binder.c 	struct binder_proc *proc = filp->private_data;
filp             4865 drivers/android/binder.c 					 filp->f_flags & O_NONBLOCK);
filp             4890 drivers/android/binder.c static int binder_ioctl_set_ctx_mgr(struct file *filp,
filp             4894 drivers/android/binder.c 	struct binder_proc *proc = filp->private_data;
filp             4999 drivers/android/binder.c static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp             5002 drivers/android/binder.c 	struct binder_proc *proc = filp->private_data;
filp             5026 drivers/android/binder.c 		ret = binder_ioctl_write_read(filp, cmd, arg, thread);
filp             5050 drivers/android/binder.c 		ret = binder_ioctl_set_ctx_mgr(filp, &fbo);
filp             5056 drivers/android/binder.c 		ret = binder_ioctl_set_ctx_mgr(filp, NULL);
filp             5167 drivers/android/binder.c static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
filp             5170 drivers/android/binder.c 	struct binder_proc *proc = filp->private_data;
filp             5204 drivers/android/binder.c static int binder_open(struct inode *nodp, struct file *filp)
filp             5230 drivers/android/binder.c 		binder_dev = container_of(filp->private_data,
filp             5241 drivers/android/binder.c 	filp->private_data = proc;
filp             5296 drivers/android/binder.c static int binder_flush(struct file *filp, fl_owner_t id)
filp             5298 drivers/android/binder.c 	struct binder_proc *proc = filp->private_data;
filp             5327 drivers/android/binder.c static int binder_release(struct inode *nodp, struct file *filp)
filp             5329 drivers/android/binder.c 	struct binder_proc *proc = filp->private_data;
filp               74 drivers/base/devcoredump.c static ssize_t devcd_data_read(struct file *filp, struct kobject *kobj,
filp               84 drivers/base/devcoredump.c static ssize_t devcd_data_write(struct file *filp, struct kobject *kobj,
filp              336 drivers/base/firmware_loader/fallback.c static ssize_t firmware_data_read(struct file *filp, struct kobject *kobj,
filp              393 drivers/base/firmware_loader/fallback.c static ssize_t firmware_data_write(struct file *filp, struct kobject *kobj,
filp              162 drivers/block/aoe/aoechr.c aoechr_write(struct file *filp, const char __user *buf, size_t cnt, loff_t *offp)
filp              166 drivers/block/aoe/aoechr.c 	switch ((unsigned long) filp->private_data) {
filp              189 drivers/block/aoe/aoechr.c aoechr_open(struct inode *inode, struct file *filp)
filp              195 drivers/block/aoe/aoechr.c 	filp->private_data = (void *) (unsigned long) n;
filp              207 drivers/block/aoe/aoechr.c aoechr_rel(struct inode *inode, struct file *filp)
filp              213 drivers/block/aoe/aoechr.c aoechr_read(struct file *filp, char __user *buf, size_t cnt, loff_t *off)
filp              221 drivers/block/aoe/aoechr.c 	n = (unsigned long) filp->private_data;
filp              231 drivers/block/aoe/aoechr.c 		if (filp->f_flags & O_NDELAY) {
filp             1116 drivers/block/loop.c 	struct file *filp = NULL;
filp             1129 drivers/block/loop.c 	filp = lo->lo_backing_file;
filp             1130 drivers/block/loop.c 	if (filp == NULL) {
filp             1168 drivers/block/loop.c 	mapping_set_gfp_mask(filp->f_mapping, gfp);
filp             1220 drivers/block/loop.c 	if (filp)
filp             1221 drivers/block/loop.c 		fput(filp);
filp              200 drivers/block/paride/pg.c static ssize_t pg_read(struct file *filp, char __user *buf,
filp              202 drivers/block/paride/pg.c static ssize_t pg_write(struct file *filp, const char __user *buf,
filp              576 drivers/block/paride/pg.c static ssize_t pg_write(struct file *filp, const char __user *buf, size_t count, loff_t *ppos)
filp              578 drivers/block/paride/pg.c 	struct pg *dev = filp->private_data;
filp              624 drivers/block/paride/pg.c static ssize_t pg_read(struct file *filp, char __user *buf, size_t count, loff_t *ppos)
filp              626 drivers/block/paride/pg.c 	struct pg *dev = filp->private_data;
filp              198 drivers/block/paride/pt.c static ssize_t pt_read(struct file *filp, char __user *buf,
filp              200 drivers/block/paride/pt.c static ssize_t pt_write(struct file *filp, const char __user *buf,
filp              765 drivers/block/paride/pt.c static ssize_t pt_read(struct file *filp, char __user *buf, size_t count, loff_t * ppos)
filp              767 drivers/block/paride/pt.c 	struct pt_unit *tape = filp->private_data;
filp              862 drivers/block/paride/pt.c static ssize_t pt_write(struct file *filp, const char __user *buf, size_t count, loff_t * ppos)
filp              864 drivers/block/paride/pt.c 	struct pt_unit *tape = filp->private_data;
filp              816 drivers/bluetooth/hci_ldisc.c 				      struct file *filp, poll_table *wait)
filp              259 drivers/char/apm-emulation.c apm_ioctl(struct file *filp, u_int cmd, u_long arg)
filp              261 drivers/char/apm-emulation.c 	struct apm_user *as = filp->private_data;
filp              327 drivers/char/apm-emulation.c static int apm_release(struct inode * inode, struct file * filp)
filp              329 drivers/char/apm-emulation.c 	struct apm_user *as = filp->private_data;
filp              331 drivers/char/apm-emulation.c 	filp->private_data = NULL;
filp              353 drivers/char/apm-emulation.c static int apm_open(struct inode * inode, struct file * filp)
filp              367 drivers/char/apm-emulation.c 		as->writer = (filp->f_mode & FMODE_WRITE) == FMODE_WRITE;
filp              368 drivers/char/apm-emulation.c 		as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ;
filp              374 drivers/char/apm-emulation.c 		filp->private_data = as;
filp              539 drivers/char/applicom.c static ssize_t ac_read (struct file *filp, char __user *buf, size_t count, loff_t *ptr)
filp              112 drivers/char/bsr.c static int bsr_mmap(struct file *filp, struct vm_area_struct *vma)
filp              115 drivers/char/bsr.c 	struct bsr_dev *dev = filp->private_data;
filp              137 drivers/char/bsr.c static int bsr_open(struct inode *inode, struct file *filp)
filp              142 drivers/char/bsr.c 	filp->private_data = dev;
filp              172 drivers/char/hw_random/core.c static int rng_dev_open(struct inode *inode, struct file *filp)
filp              175 drivers/char/hw_random/core.c 	if ((filp->f_mode & FMODE_READ) == 0)
filp              177 drivers/char/hw_random/core.c 	if (filp->f_mode & FMODE_WRITE)
filp              201 drivers/char/hw_random/core.c static ssize_t rng_dev_read(struct file *filp, char __user *buf,
filp              227 drivers/char/hw_random/core.c 				!(filp->f_flags & O_NONBLOCK));
filp              236 drivers/char/hw_random/core.c 			if (filp->f_flags & O_NONBLOCK) {
filp              238 drivers/char/ipmi/kcs_bmc.c static inline struct kcs_bmc *to_kcs_bmc(struct file *filp)
filp              240 drivers/char/ipmi/kcs_bmc.c 	return container_of(filp->private_data, struct kcs_bmc, miscdev);
filp              243 drivers/char/ipmi/kcs_bmc.c static int kcs_bmc_open(struct inode *inode, struct file *filp)
filp              245 drivers/char/ipmi/kcs_bmc.c 	struct kcs_bmc *kcs_bmc = to_kcs_bmc(filp);
filp              258 drivers/char/ipmi/kcs_bmc.c static __poll_t kcs_bmc_poll(struct file *filp, poll_table *wait)
filp              260 drivers/char/ipmi/kcs_bmc.c 	struct kcs_bmc *kcs_bmc = to_kcs_bmc(filp);
filp              263 drivers/char/ipmi/kcs_bmc.c 	poll_wait(filp, &kcs_bmc->queue, wait);
filp              273 drivers/char/ipmi/kcs_bmc.c static ssize_t kcs_bmc_read(struct file *filp, char __user *buf,
filp              276 drivers/char/ipmi/kcs_bmc.c 	struct kcs_bmc *kcs_bmc = to_kcs_bmc(filp);
filp              281 drivers/char/ipmi/kcs_bmc.c 	if (!(filp->f_flags & O_NONBLOCK))
filp              335 drivers/char/ipmi/kcs_bmc.c static ssize_t kcs_bmc_write(struct file *filp, const char __user *buf,
filp              338 drivers/char/ipmi/kcs_bmc.c 	struct kcs_bmc *kcs_bmc = to_kcs_bmc(filp);
filp              371 drivers/char/ipmi/kcs_bmc.c static long kcs_bmc_ioctl(struct file *filp, unsigned int cmd,
filp              374 drivers/char/ipmi/kcs_bmc.c 	struct kcs_bmc *kcs_bmc = to_kcs_bmc(filp);
filp              404 drivers/char/ipmi/kcs_bmc.c static int kcs_bmc_release(struct inode *inode, struct file *filp)
filp              406 drivers/char/ipmi/kcs_bmc.c 	struct kcs_bmc *kcs_bmc = to_kcs_bmc(filp);
filp              808 drivers/char/mem.c static int open_port(struct inode *inode, struct file *filp)
filp              906 drivers/char/mem.c static int memory_open(struct inode *inode, struct file *filp)
filp              919 drivers/char/mem.c 	filp->f_op = dev->fops;
filp              920 drivers/char/mem.c 	filp->f_mode |= dev->fmode;
filp              923 drivers/char/mem.c 		return dev->fops->open(inode, filp);
filp               91 drivers/char/mwave/mwavedd.c static long mwave_ioctl(struct file *filp, unsigned int iocmd,
filp              168 drivers/char/nwbutton.c static int button_read (struct file *filp, char __user *buffer,
filp              921 drivers/char/pcmcia/cm4000_cs.c static ssize_t cmm_read(struct file *filp, __user char *buf, size_t count,
filp              924 drivers/char/pcmcia/cm4000_cs.c 	struct cm4000_dev *dev = filp->private_data;
filp              944 drivers/char/pcmcia/cm4000_cs.c 	     ((filp->f_flags & O_NONBLOCK)
filp              946 drivers/char/pcmcia/cm4000_cs.c 		if (filp->f_flags & O_NONBLOCK)
filp              957 drivers/char/pcmcia/cm4000_cs.c 	     ((filp->f_flags & O_NONBLOCK) || (dev->rpos < dev->rlen)))) {
filp              958 drivers/char/pcmcia/cm4000_cs.c 		if (filp->f_flags & O_NONBLOCK)
filp              966 drivers/char/pcmcia/cm4000_cs.c 	     ((filp->f_flags & O_NONBLOCK)
filp              968 drivers/char/pcmcia/cm4000_cs.c 		if (filp->f_flags & O_NONBLOCK)
filp             1045 drivers/char/pcmcia/cm4000_cs.c static ssize_t cmm_write(struct file *filp, const char __user *buf,
filp             1048 drivers/char/pcmcia/cm4000_cs.c 	struct cm4000_dev *dev = filp->private_data;
filp             1096 drivers/char/pcmcia/cm4000_cs.c 	     ((filp->f_flags & O_NONBLOCK)
filp             1098 drivers/char/pcmcia/cm4000_cs.c 		if (filp->f_flags & O_NONBLOCK)
filp             1111 drivers/char/pcmcia/cm4000_cs.c 	     ((filp->f_flags & O_NONBLOCK)
filp             1113 drivers/char/pcmcia/cm4000_cs.c 		if (filp->f_flags & O_NONBLOCK)
filp             1399 drivers/char/pcmcia/cm4000_cs.c static long cmm_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp             1401 drivers/char/pcmcia/cm4000_cs.c 	struct cm4000_dev *dev = filp->private_data;
filp             1403 drivers/char/pcmcia/cm4000_cs.c 	struct inode *inode = file_inode(filp);
filp             1486 drivers/char/pcmcia/cm4000_cs.c 			     ((filp->f_flags & O_NONBLOCK)
filp             1489 drivers/char/pcmcia/cm4000_cs.c 				if (filp->f_flags & O_NONBLOCK)
filp             1536 drivers/char/pcmcia/cm4000_cs.c 			     ((filp->f_flags & O_NONBLOCK)
filp             1539 drivers/char/pcmcia/cm4000_cs.c 				if (filp->f_flags & O_NONBLOCK)
filp             1554 drivers/char/pcmcia/cm4000_cs.c 			     ((filp->f_flags & O_NONBLOCK)
filp             1557 drivers/char/pcmcia/cm4000_cs.c 				if (filp->f_flags & O_NONBLOCK)
filp             1585 drivers/char/pcmcia/cm4000_cs.c 			     ((filp->f_flags & O_NONBLOCK)
filp             1588 drivers/char/pcmcia/cm4000_cs.c 				if (filp->f_flags & O_NONBLOCK)
filp             1597 drivers/char/pcmcia/cm4000_cs.c 			     ((filp->f_flags & O_NONBLOCK)
filp             1600 drivers/char/pcmcia/cm4000_cs.c 				if (filp->f_flags & O_NONBLOCK)
filp             1632 drivers/char/pcmcia/cm4000_cs.c static int cmm_open(struct inode *inode, struct file *filp)
filp             1655 drivers/char/pcmcia/cm4000_cs.c 	filp->private_data = dev;
filp             1672 drivers/char/pcmcia/cm4000_cs.c 	if (filp->f_flags & O_NONBLOCK) {
filp             1685 drivers/char/pcmcia/cm4000_cs.c 	ret = stream_open(inode, filp);
filp             1691 drivers/char/pcmcia/cm4000_cs.c static int cmm_close(struct inode *inode, struct file *filp)
filp              215 drivers/char/pcmcia/cm4040_cs.c static ssize_t cm4040_read(struct file *filp, char __user *buf,
filp              218 drivers/char/pcmcia/cm4040_cs.c 	struct reader_dev *dev = filp->private_data;
filp              234 drivers/char/pcmcia/cm4040_cs.c 	if (filp->f_flags & O_NONBLOCK) {
filp              317 drivers/char/pcmcia/cm4040_cs.c static ssize_t cm4040_write(struct file *filp, const char __user *buf,
filp              320 drivers/char/pcmcia/cm4040_cs.c 	struct reader_dev *dev = filp->private_data;
filp              338 drivers/char/pcmcia/cm4040_cs.c 	if (filp->f_flags & O_NONBLOCK) {
filp              418 drivers/char/pcmcia/cm4040_cs.c static __poll_t cm4040_poll(struct file *filp, poll_table *wait)
filp              420 drivers/char/pcmcia/cm4040_cs.c 	struct reader_dev *dev = filp->private_data;
filp              423 drivers/char/pcmcia/cm4040_cs.c 	poll_wait(filp, &dev->poll_wait, wait);
filp              435 drivers/char/pcmcia/cm4040_cs.c static int cm4040_open(struct inode *inode, struct file *filp)
filp              458 drivers/char/pcmcia/cm4040_cs.c 	filp->private_data = dev;
filp              460 drivers/char/pcmcia/cm4040_cs.c 	if (filp->f_flags & O_NONBLOCK) {
filp              471 drivers/char/pcmcia/cm4040_cs.c 	ret = nonseekable_open(inode, filp);
filp              477 drivers/char/pcmcia/cm4040_cs.c static int cm4040_close(struct inode *inode, struct file *filp)
filp              479 drivers/char/pcmcia/cm4040_cs.c 	struct reader_dev *dev = filp->private_data;
filp               74 drivers/char/pcmcia/scr24x_cs.c static int scr24x_open(struct inode *inode, struct file *filp)
filp               80 drivers/char/pcmcia/scr24x_cs.c 	filp->private_data = dev;
filp               82 drivers/char/pcmcia/scr24x_cs.c 	return stream_open(inode, filp);
filp               85 drivers/char/pcmcia/scr24x_cs.c static int scr24x_release(struct inode *inode, struct file *filp)
filp               87 drivers/char/pcmcia/scr24x_cs.c 	struct scr24x_dev *dev = filp->private_data;
filp              117 drivers/char/pcmcia/scr24x_cs.c static ssize_t scr24x_read(struct file *filp, char __user *buf, size_t count,
filp              120 drivers/char/pcmcia/scr24x_cs.c 	struct scr24x_dev *dev = filp->private_data;
filp              166 drivers/char/pcmcia/scr24x_cs.c static ssize_t scr24x_write(struct file *filp, const char __user *buf,
filp              169 drivers/char/pcmcia/scr24x_cs.c 	struct scr24x_dev *dev = filp->private_data;
filp             2325 drivers/char/pcmcia/synclink_cs.c static void mgslpc_close(struct tty_struct *tty, struct file * filp)
filp             2337 drivers/char/pcmcia/synclink_cs.c 	if (tty_port_close_start(port, tty, filp) == 0)
filp             2467 drivers/char/pcmcia/synclink_cs.c static int mgslpc_open(struct tty_struct *tty, struct file * filp)
filp             2517 drivers/char/pcmcia/synclink_cs.c 	retval = tty_port_block_til_ready(&info->port, tty, filp);
filp               38 drivers/char/powernv-op-panel.c static loff_t oppanel_llseek(struct file *filp, loff_t offset, int whence)
filp               40 drivers/char/powernv-op-panel.c 	return fixed_size_llseek(filp, offset, whence, oppanel_size);
filp               43 drivers/char/powernv-op-panel.c static ssize_t oppanel_read(struct file *filp, char __user *userbuf, size_t len,
filp               88 drivers/char/powernv-op-panel.c static ssize_t oppanel_write(struct file *filp, const char __user *userbuf,
filp              114 drivers/char/powernv-op-panel.c static int oppanel_open(struct inode *inode, struct file *filp)
filp              123 drivers/char/powernv-op-panel.c static int oppanel_release(struct inode *inode, struct file *filp)
filp             2160 drivers/char/random.c static int random_fasync(int fd, struct file *filp, int on)
filp             2162 drivers/char/random.c 	return fasync_helper(fd, filp, on, &fasync);
filp               55 drivers/char/raw.c static int raw_open(struct inode *inode, struct file *filp)
filp               62 drivers/char/raw.c 		filp->f_op = &raw_ctl_fops;
filp               76 drivers/char/raw.c 	err = blkdev_get(bdev, filp->f_mode | FMODE_EXCL, raw_open);
filp               82 drivers/char/raw.c 	filp->f_flags |= O_DIRECT;
filp               83 drivers/char/raw.c 	filp->f_mapping = bdev->bd_inode->i_mapping;
filp               85 drivers/char/raw.c 		file_inode(filp)->i_mapping =
filp               87 drivers/char/raw.c 	filp->private_data = bdev;
filp               92 drivers/char/raw.c 	blkdev_put(bdev, filp->f_mode | FMODE_EXCL);
filp              102 drivers/char/raw.c static int raw_release(struct inode *inode, struct file *filp)
filp              114 drivers/char/raw.c 	blkdev_put(bdev, filp->f_mode | FMODE_EXCL);
filp              122 drivers/char/raw.c raw_ioctl(struct file *filp, unsigned int command, unsigned long arg)
filp              124 drivers/char/raw.c 	struct block_device *bdev = filp->private_data;
filp              209 drivers/char/raw.c static long raw_ctl_ioctl(struct file *filp, unsigned int command,
filp              731 drivers/char/rtc.c static int rtc_fasync(int fd, struct file *filp, int on)
filp              733 drivers/char/rtc.c 	return fasync_helper(fd, filp, on, &rtc_async_queue);
filp              873 drivers/char/sonypi.c static int sonypi_misc_fasync(int fd, struct file *filp, int on)
filp              875 drivers/char/sonypi.c 	return fasync_helper(fd, filp, on, &sonypi_device.fifo_async);
filp              204 drivers/char/tlclk.c static int tlclk_open(struct inode *inode, struct file *filp)
filp              235 drivers/char/tlclk.c static int tlclk_release(struct inode *inode, struct file *filp)
filp              243 drivers/char/tlclk.c static ssize_t tlclk_read(struct file *filp, char __user *buf, size_t count,
filp               72 drivers/char/tpm/tpm_vtpm_proxy.c static ssize_t vtpm_proxy_fops_read(struct file *filp, char __user *buf,
filp               75 drivers/char/tpm/tpm_vtpm_proxy.c 	struct proxy_dev *proxy_dev = filp->private_data;
filp              127 drivers/char/tpm/tpm_vtpm_proxy.c static ssize_t vtpm_proxy_fops_write(struct file *filp, const char __user *buf,
filp              130 drivers/char/tpm/tpm_vtpm_proxy.c 	struct proxy_dev *proxy_dev = filp->private_data;
filp              171 drivers/char/tpm/tpm_vtpm_proxy.c static __poll_t vtpm_proxy_fops_poll(struct file *filp, poll_table *wait)
filp              173 drivers/char/tpm/tpm_vtpm_proxy.c 	struct proxy_dev *proxy_dev = filp->private_data;
filp              176 drivers/char/tpm/tpm_vtpm_proxy.c 	poll_wait(filp, &proxy_dev->wq, wait);
filp              200 drivers/char/tpm/tpm_vtpm_proxy.c static void vtpm_proxy_fops_open(struct file *filp)
filp              202 drivers/char/tpm/tpm_vtpm_proxy.c 	struct proxy_dev *proxy_dev = filp->private_data;
filp              233 drivers/char/tpm/tpm_vtpm_proxy.c static int vtpm_proxy_fops_release(struct inode *inode, struct file *filp)
filp              235 drivers/char/tpm/tpm_vtpm_proxy.c 	struct proxy_dev *proxy_dev = filp->private_data;
filp              237 drivers/char/tpm/tpm_vtpm_proxy.c 	filp->private_data = NULL;
filp               90 drivers/char/ttyprintk.c static int tpk_open(struct tty_struct *tty, struct file *filp)
filp               94 drivers/char/ttyprintk.c 	return tty_port_open(&tpk_port.port, tty, filp);
filp              100 drivers/char/ttyprintk.c static void tpk_close(struct tty_struct *tty, struct file *filp)
filp              110 drivers/char/ttyprintk.c 	tty_port_close(&tpkp->port, tty, filp);
filp              737 drivers/char/virtio_console.c static ssize_t port_fops_read(struct file *filp, char __user *ubuf,
filp              743 drivers/char/virtio_console.c 	port = filp->private_data;
filp              757 drivers/char/virtio_console.c 		if (filp->f_flags & O_NONBLOCK)
filp              804 drivers/char/virtio_console.c static ssize_t port_fops_write(struct file *filp, const char __user *ubuf,
filp              817 drivers/char/virtio_console.c 	port = filp->private_data;
filp              819 drivers/char/virtio_console.c 	nonblock = filp->f_flags & O_NONBLOCK;
filp              909 drivers/char/virtio_console.c 				      struct file *filp, loff_t *ppos,
filp              912 drivers/char/virtio_console.c 	struct port *port = filp->private_data;
filp              942 drivers/char/virtio_console.c 	ret = wait_port_writable(port, filp->f_flags & O_NONBLOCK);
filp              971 drivers/char/virtio_console.c static __poll_t port_fops_poll(struct file *filp, poll_table *wait)
filp              976 drivers/char/virtio_console.c 	port = filp->private_data;
filp              977 drivers/char/virtio_console.c 	poll_wait(filp, &port->waitqueue, wait);
filp              996 drivers/char/virtio_console.c static int port_fops_release(struct inode *inode, struct file *filp)
filp             1000 drivers/char/virtio_console.c 	port = filp->private_data;
filp             1030 drivers/char/virtio_console.c static int port_fops_open(struct inode *inode, struct file *filp)
filp             1042 drivers/char/virtio_console.c 	filp->private_data = port;
filp             1073 drivers/char/virtio_console.c 	nonseekable_open(inode, filp);
filp             1076 drivers/char/virtio_console.c 	send_control_msg(filp->private_data, VIRTIO_CONSOLE_PORT_OPEN, 1);
filp             1084 drivers/char/virtio_console.c static int port_fops_fasync(int fd, struct file *filp, int mode)
filp             1088 drivers/char/virtio_console.c 	port = filp->private_data;
filp             1089 drivers/char/virtio_console.c 	return fasync_helper(fd, filp, mode, &port->async_queue);
filp              666 drivers/char/xillybus/xillybus_core.c static ssize_t xillybus_read(struct file *filp, char __user *userbuf,
filp              674 drivers/char/xillybus/xillybus_core.c 	struct xilly_channel *channel = filp->private_data;
filp              812 drivers/char/xillybus/xillybus_core.c 		if (!no_time_left && (filp->f_flags & O_NONBLOCK)) {
filp              914 drivers/char/xillybus/xillybus_core.c 			if (filp->f_flags & O_NONBLOCK)
filp             1156 drivers/char/xillybus/xillybus_core.c static int xillybus_flush(struct file *filp, fl_owner_t id)
filp             1158 drivers/char/xillybus/xillybus_core.c 	if (!(filp->f_mode & FMODE_WRITE))
filp             1161 drivers/char/xillybus/xillybus_core.c 	return xillybus_myflush(filp->private_data, HZ); /* 1 second timeout */
filp             1181 drivers/char/xillybus/xillybus_core.c static ssize_t xillybus_write(struct file *filp, const char __user *userbuf,
filp             1187 drivers/char/xillybus/xillybus_core.c 	struct xilly_channel *channel = filp->private_data;
filp             1367 drivers/char/xillybus/xillybus_core.c 		if (filp->f_flags & O_NONBLOCK) {
filp             1399 drivers/char/xillybus/xillybus_core.c 		rc = xillybus_myflush(filp->private_data, 0); /* No timeout */
filp             1408 drivers/char/xillybus/xillybus_core.c static int xillybus_open(struct inode *inode, struct file *filp)
filp             1440 drivers/char/xillybus/xillybus_core.c 	filp->private_data = channel;
filp             1448 drivers/char/xillybus/xillybus_core.c 	if ((filp->f_mode & FMODE_READ) && (!channel->num_wr_buffers))
filp             1451 drivers/char/xillybus/xillybus_core.c 	if ((filp->f_mode & FMODE_WRITE) && (!channel->num_rd_buffers))
filp             1454 drivers/char/xillybus/xillybus_core.c 	if ((filp->f_mode & FMODE_READ) && (filp->f_flags & O_NONBLOCK) &&
filp             1462 drivers/char/xillybus/xillybus_core.c 	if ((filp->f_mode & FMODE_WRITE) && (filp->f_flags & O_NONBLOCK) &&
filp             1476 drivers/char/xillybus/xillybus_core.c 	if (filp->f_mode & FMODE_READ) {
filp             1482 drivers/char/xillybus/xillybus_core.c 	if (filp->f_mode & FMODE_WRITE) {
filp             1488 drivers/char/xillybus/xillybus_core.c 	if ((filp->f_mode & FMODE_READ) &&
filp             1495 drivers/char/xillybus/xillybus_core.c 	if ((filp->f_mode & FMODE_WRITE) &&
filp             1502 drivers/char/xillybus/xillybus_core.c 	if (filp->f_mode & FMODE_READ) {
filp             1527 drivers/char/xillybus/xillybus_core.c 	if (filp->f_mode & FMODE_WRITE) {
filp             1549 drivers/char/xillybus/xillybus_core.c 	if (filp->f_mode & FMODE_WRITE)
filp             1552 drivers/char/xillybus/xillybus_core.c 	if (filp->f_mode & FMODE_READ)
filp             1556 drivers/char/xillybus/xillybus_core.c 		return nonseekable_open(inode, filp);
filp             1561 drivers/char/xillybus/xillybus_core.c static int xillybus_release(struct inode *inode, struct file *filp)
filp             1564 drivers/char/xillybus/xillybus_core.c 	struct xilly_channel *channel = filp->private_data;
filp             1572 drivers/char/xillybus/xillybus_core.c 	if (filp->f_mode & FMODE_WRITE) {
filp             1591 drivers/char/xillybus/xillybus_core.c 	if (filp->f_mode & FMODE_READ) {
filp             1662 drivers/char/xillybus/xillybus_core.c static loff_t xillybus_llseek(struct file *filp, loff_t offset, int whence)
filp             1664 drivers/char/xillybus/xillybus_core.c 	struct xilly_channel *channel = filp->private_data;
filp             1665 drivers/char/xillybus/xillybus_core.c 	loff_t pos = filp->f_pos;
filp             1720 drivers/char/xillybus/xillybus_core.c 	filp->f_pos = pos;
filp             1736 drivers/char/xillybus/xillybus_core.c static __poll_t xillybus_poll(struct file *filp, poll_table *wait)
filp             1738 drivers/char/xillybus/xillybus_core.c 	struct xilly_channel *channel = filp->private_data;
filp             1742 drivers/char/xillybus/xillybus_core.c 	poll_wait(filp, &channel->endpoint->ep_wait, wait);
filp             1753 drivers/char/xillybus/xillybus_core.c 		poll_wait(filp, &channel->wr_wait, wait);
filp             1754 drivers/char/xillybus/xillybus_core.c 		poll_wait(filp, &channel->wr_ready_wait, wait);
filp             1777 drivers/char/xillybus/xillybus_core.c 		poll_wait(filp, &channel->rd_wait, wait);
filp              348 drivers/crypto/bcm/util.c static ssize_t spu_debugfs_read(struct file *filp, char __user *ubuf,
filp              367 drivers/crypto/bcm/util.c 	ipriv = filp->private_data;
filp               42 drivers/crypto/ccp/ccp-debugfs.c static ssize_t ccp5_debugfs_info_read(struct file *filp, char __user *ubuf,
filp               45 drivers/crypto/ccp/ccp-debugfs.c 	struct ccp_device *ccp = filp->private_data;
filp               97 drivers/crypto/ccp/ccp-debugfs.c static ssize_t ccp5_debugfs_stats_read(struct file *filp, char __user *ubuf,
filp              100 drivers/crypto/ccp/ccp-debugfs.c 	struct ccp_device *ccp = filp->private_data;
filp              174 drivers/crypto/ccp/ccp-debugfs.c static ssize_t ccp5_debugfs_stats_write(struct file *filp,
filp              178 drivers/crypto/ccp/ccp-debugfs.c 	struct ccp_device *ccp = filp->private_data;
filp              191 drivers/crypto/ccp/ccp-debugfs.c static ssize_t ccp5_debugfs_queue_read(struct file *filp, char __user *ubuf,
filp              194 drivers/crypto/ccp/ccp-debugfs.c 	struct ccp_cmd_queue *cmd_q = filp->private_data;
filp              245 drivers/crypto/ccp/ccp-debugfs.c static ssize_t ccp5_debugfs_queue_write(struct file *filp,
filp              249 drivers/crypto/ccp/ccp-debugfs.c 	struct ccp_cmd_queue *cmd_q = filp->private_data;
filp              810 drivers/crypto/hisilicon/qm.c static ssize_t qm_debug_read(struct file *filp, char __user *buf,
filp              813 drivers/crypto/hisilicon/qm.c 	struct debugfs_file *file = filp->private_data;
filp              836 drivers/crypto/hisilicon/qm.c static ssize_t qm_debug_write(struct file *filp, const char __user *buf,
filp              839 drivers/crypto/hisilicon/qm.c 	struct debugfs_file *file = filp->private_data;
filp              429 drivers/crypto/hisilicon/zip/zip_main.c static ssize_t ctrl_debug_read(struct file *filp, char __user *buf,
filp              432 drivers/crypto/hisilicon/zip/zip_main.c 	struct ctrl_debug_file *file = filp->private_data;
filp              454 drivers/crypto/hisilicon/zip/zip_main.c static ssize_t ctrl_debug_write(struct file *filp, const char __user *buf,
filp              457 drivers/crypto/hisilicon/zip/zip_main.c 	struct ctrl_debug_file *file = filp->private_data;
filp              218 drivers/dax/device.c 	struct file *filp = vmf->vma->vm_file;
filp              223 drivers/dax/device.c 	struct dev_dax *dev_dax = filp->private_data;
filp              265 drivers/dax/device.c 			page->mapping = filp->f_mapping;
filp              281 drivers/dax/device.c 	struct file *filp = vma->vm_file;
filp              282 drivers/dax/device.c 	struct dev_dax *dev_dax = filp->private_data;
filp              292 drivers/dax/device.c 	struct file *filp = vma->vm_file;
filp              293 drivers/dax/device.c 	struct dev_dax *dev_dax = filp->private_data;
filp              306 drivers/dax/device.c static int dax_mmap(struct file *filp, struct vm_area_struct *vma)
filp              308 drivers/dax/device.c 	struct dev_dax *dev_dax = filp->private_data;
filp              329 drivers/dax/device.c static unsigned long dax_get_unmapped_area(struct file *filp,
filp              334 drivers/dax/device.c 	struct dev_dax *dev_dax = filp ? filp->private_data : NULL;
filp              353 drivers/dax/device.c 	addr_align = current->mm->get_unmapped_area(filp, addr, len_align,
filp              360 drivers/dax/device.c 	return current->mm->get_unmapped_area(filp, addr, len, pgoff, flags);
filp              368 drivers/dax/device.c static int dax_open(struct inode *inode, struct file *filp)
filp              378 drivers/dax/device.c 	filp->f_mapping = inode->i_mapping;
filp              379 drivers/dax/device.c 	filp->f_wb_err = filemap_sample_wb_err(filp->f_mapping);
filp              380 drivers/dax/device.c 	filp->private_data = dev_dax;
filp              386 drivers/dax/device.c static int dax_release(struct inode *inode, struct file *filp)
filp              388 drivers/dax/device.c 	struct dev_dax *dev_dax = filp->private_data;
filp              211 drivers/dma-buf/udmabuf.c static long udmabuf_ioctl_create(struct file *filp, unsigned long arg)
filp              230 drivers/dma-buf/udmabuf.c static long udmabuf_ioctl_create_list(struct file *filp, unsigned long arg)
filp              251 drivers/dma-buf/udmabuf.c static long udmabuf_ioctl(struct file *filp, unsigned int ioctl,
filp              258 drivers/dma-buf/udmabuf.c 		ret = udmabuf_ioctl_create(filp, arg);
filp              261 drivers/dma-buf/udmabuf.c 		ret = udmabuf_ioctl_create_list(filp, arg);
filp              430 drivers/firmware/dmi-sysfs.c static ssize_t dmi_sel_raw_read(struct file *filp, struct kobject *kobj,
filp              535 drivers/firmware/dmi-sysfs.c static ssize_t dmi_entry_raw_read(struct file *filp,
filp              364 drivers/firmware/efi/efivars.c static ssize_t efivar_create(struct file *filp, struct kobject *kobj,
filp              434 drivers/firmware/efi/efivars.c static ssize_t efivar_delete(struct file *filp, struct kobject *kobj,
filp              487 drivers/firmware/google/gsmi.c static ssize_t eventlog_write(struct file *filp, struct kobject *kobj,
filp               16 drivers/firmware/google/memconsole.c static ssize_t memconsole_read(struct file *filp, struct kobject *kobp,
filp               58 drivers/firmware/google/vpd.c static ssize_t vpd_attrib_read(struct file *filp, struct kobject *kobp,
filp              158 drivers/firmware/google/vpd.c static ssize_t vpd_section_read(struct file *filp, struct kobject *kobp,
filp              462 drivers/firmware/qemu_fw_cfg.c static ssize_t fw_cfg_sysfs_read_raw(struct file *filp, struct kobject *kobj,
filp              554 drivers/fpga/dfl-afu-main.c static int afu_open(struct inode *inode, struct file *filp)
filp              569 drivers/fpga/dfl-afu-main.c 	filp->private_data = fdev;
filp              574 drivers/fpga/dfl-afu-main.c static int afu_release(struct inode *inode, struct file *filp)
filp              576 drivers/fpga/dfl-afu-main.c 	struct platform_device *pdev = filp->private_data;
filp              707 drivers/fpga/dfl-afu-main.c static long afu_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              709 drivers/fpga/dfl-afu-main.c 	struct platform_device *pdev = filp->private_data;
filp              749 drivers/fpga/dfl-afu-main.c static int afu_mmap(struct file *filp, struct vm_area_struct *vma)
filp              751 drivers/fpga/dfl-afu-main.c 	struct platform_device *pdev = filp->private_data;
filp              209 drivers/fpga/dfl-fme-main.c static int fme_open(struct inode *inode, struct file *filp)
filp              223 drivers/fpga/dfl-fme-main.c 	filp->private_data = pdata;
filp              228 drivers/fpga/dfl-fme-main.c static int fme_release(struct inode *inode, struct file *filp)
filp              230 drivers/fpga/dfl-fme-main.c 	struct dfl_feature_platform_data *pdata = filp->private_data;
filp              239 drivers/fpga/dfl-fme-main.c static long fme_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              241 drivers/fpga/dfl-fme-main.c 	struct dfl_feature_platform_data *pdata = filp->private_data;
filp             1036 drivers/gpio/gpiolib.c static long gpio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp             1038 drivers/gpio/gpiolib.c 	struct gpio_device *gdev = filp->private_data;
filp             1122 drivers/gpio/gpiolib.c static long gpio_ioctl_compat(struct file *filp, unsigned int cmd,
filp             1125 drivers/gpio/gpiolib.c 	return gpio_ioctl(filp, cmd, (unsigned long)compat_ptr(arg));
filp             1135 drivers/gpio/gpiolib.c static int gpio_chrdev_open(struct inode *inode, struct file *filp)
filp             1144 drivers/gpio/gpiolib.c 	filp->private_data = gdev;
filp             1146 drivers/gpio/gpiolib.c 	return nonseekable_open(inode, filp);
filp             1155 drivers/gpio/gpiolib.c static int gpio_chrdev_release(struct inode *inode, struct file *filp)
filp              427 drivers/gpu/drm/amd/amdgpu/amdgpu.h int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv);
filp              458 drivers/gpu/drm/amd/amdgpu/amdgpu.h 	struct drm_file		*filp;
filp              589 drivers/gpu/drm/amd/amdgpu/amdgpu.h 				struct drm_file *filp);
filp              591 drivers/gpu/drm/amd/amdgpu/amdgpu.h int amdgpu_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp);
filp              593 drivers/gpu/drm/amd/amdgpu/amdgpu.h 				    struct drm_file *filp);
filp              594 drivers/gpu/drm/amd/amdgpu/amdgpu.h int amdgpu_cs_wait_ioctl(struct drm_device *dev, void *data, struct drm_file *filp);
filp              596 drivers/gpu/drm/amd/amdgpu/amdgpu.h 				struct drm_file *filp);
filp             1216 drivers/gpu/drm/amd/amdgpu/amdgpu.h long amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd,
filp              202 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h 					struct file *filp, unsigned int pasid,
filp              962 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c 					   struct file *filp, unsigned int pasid,
filp              967 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c 	struct drm_file *drm_priv = filp->private_data;
filp               62 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c int amdgpu_bo_list_create(struct amdgpu_device *adev, struct drm_file *filp,
filp               98 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 		gobj = drm_gem_object_lookup(filp, info[i].bo_handle);
filp              266 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 				struct drm_file *filp)
filp              269 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 	struct amdgpu_fpriv *fpriv = filp->driver_priv;
filp              282 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 		r = amdgpu_bo_list_create(adev, filp, info, args->in.bo_number,
filp              303 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 		r = amdgpu_bo_list_create(adev, filp, info, args->in.bo_number,
filp               61 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.h 				 struct drm_file *filp,
filp               48 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	gobj = drm_gem_object_lookup(p->filp, data->handle);
filp               90 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_bo_list_create(p->adev, p->filp, info, data->bo_number,
filp              107 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	struct amdgpu_fpriv *fpriv = p->filp->driver_priv;
filp              573 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	struct amdgpu_fpriv *fpriv = p->filp->driver_priv;
filp              595 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_bo_list_create(p->adev, p->filp, NULL, 0,
filp              731 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_sync_resv(p->adev, &p->job->sync, resv, p->filp,
filp              787 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	struct amdgpu_fpriv *fpriv = p->filp->driver_priv;
filp              943 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	struct amdgpu_fpriv *fpriv = parser->filp->driver_priv;
filp             1017 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	struct amdgpu_fpriv *fpriv = p->filp->driver_priv;
filp             1075 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = drm_syncobj_find_fence(p->filp, handle, point, flags, &fence);
filp             1155 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			drm_syncobj_find(p->filp, deps[i].handle);
filp             1198 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		dep->syncobj = drm_syncobj_find(p->filp,
filp             1274 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	struct amdgpu_fpriv *fpriv = p->filp->driver_priv;
filp             1286 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = drm_sched_job_init(&job->base, entity, p->filp);
filp             1309 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	job->owner = p->filp;
filp             1350 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c int amdgpu_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
filp             1362 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	parser.filp = filp;
filp             1416 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			 struct drm_file *filp)
filp             1425 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	ctx = amdgpu_ctx_get(filp->driver_priv, wait->in.ctx_id);
filp             1465 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 					     struct drm_file *filp,
filp             1473 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	ctx = amdgpu_ctx_get(filp->driver_priv, user->ctx_id);
filp             1491 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				    struct drm_file *filp)
filp             1500 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	fence = amdgpu_cs_get_fence(adev, filp, &info->in.fence);
filp             1513 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = drm_syncobj_get_handle(filp, syncobj, &info->out.handle);
filp             1558 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				     struct drm_file *filp,
filp             1570 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		fence = amdgpu_cs_get_fence(adev, filp, &fences[i]);
filp             1603 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				    struct drm_file *filp,
filp             1623 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		fence = amdgpu_cs_get_fence(adev, filp, &fences[i]);
filp             1667 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				struct drm_file *filp)
filp             1690 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_cs_wait_all_fences(adev, filp, wait, fences);
filp             1692 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_cs_wait_any_fence(adev, filp, wait, fences);
filp             1715 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	struct amdgpu_fpriv *fpriv = parser->filp->driver_priv;
filp               55 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c static int amdgpu_ctx_priority_permit(struct drm_file *filp,
filp               65 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	if (drm_is_current_master(filp))
filp               73 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 			   struct drm_file *filp,
filp               83 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	r = amdgpu_ctx_priority_permit(filp, priority);
filp              253 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 			    struct drm_file *filp,
filp              274 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	r = amdgpu_ctx_init(adev, priority, filp, ctx);
filp              399 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 		     struct drm_file *filp)
filp              407 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	struct amdgpu_fpriv *fpriv = filp->driver_priv;
filp              420 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 		r = amdgpu_ctx_alloc(adev, fpriv, filp, priority, &id);
filp               80 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h 		     struct drm_file *filp);
filp               39 drivers/gpu/drm/amd/amdgpu/amdgpu_display.h 				  struct drm_file *filp);
filp             1280 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c long amdgpu_drm_ioctl(struct file *filp,
filp             1283 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 	struct drm_file *file_priv = filp->private_data;
filp             1291 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 	ret = drm_ioctl(filp, cmd, arg);
filp             1336 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv)
filp             1340 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 	if (!filp)
filp             1343 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 	if (filp->f_op != &amdgpu_driver_kms_fops) {
filp             1347 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 	file = filp->private_data;
filp               45 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.h long amdgpu_drm_ioctl(struct file *filp,
filp              210 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			    struct drm_file *filp)
filp              213 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	struct amdgpu_fpriv *fpriv = filp->driver_priv;
filp              272 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = drm_gem_handle_create(filp, gobj, &handle);
filp              284 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			     struct drm_file *filp)
filp              347 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = drm_gem_handle_create(filp, gobj, &handle);
filp              363 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c int amdgpu_mode_dumb_mmap(struct drm_file *filp,
filp              370 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	gobj = drm_gem_object_lookup(filp, handle);
filp              386 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			  struct drm_file *filp)
filp              391 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	return amdgpu_mode_dumb_mmap(filp, dev, handle, &args->out.addr_ptr);
filp              423 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			      struct drm_file *filp)
filp              433 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	gobj = drm_gem_object_lookup(filp, handle);
filp              456 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 				struct drm_file *filp)
filp              464 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	gobj = drm_gem_object_lookup(filp, args->handle);
filp              538 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			  struct drm_file *filp)
filp              549 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	struct amdgpu_fpriv *fpriv = filp->driver_priv;
filp              599 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		gobj = drm_gem_object_lookup(filp, args->handle);
filp              670 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			struct drm_file *filp)
filp              679 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	gobj = drm_gem_object_lookup(filp, args->handle);
filp               56 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h int amdgpu_mode_dumb_mmap(struct drm_file *filp,
filp               61 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h 			    struct drm_file *filp);
filp               63 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h 			  struct drm_file *filp);
filp               65 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h 			struct drm_file *filp);
filp               67 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h 			  struct drm_file *filp);
filp               69 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h 			      struct drm_file *filp);
filp               71 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h 			  struct drm_file *filp);
filp               73 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h 			struct drm_file *filp);
filp               76 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h 				struct drm_file *filp);
filp               37 drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c long amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp               43 drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c 		return drm_compat_ioctl(filp, cmd, arg);
filp               45 drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c 	ret = amdgpu_drm_ioctl(filp, cmd, arg);
filp              449 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
filp              115 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 		       struct drm_file *filp)
filp               35 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.h 		       struct drm_file *filp);
filp              218 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c static int amdgpu_verify_access(struct ttm_buffer_object *bo, struct file *filp)
filp              232 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 					  filp->private_data);
filp             1886 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c int amdgpu_mmap(struct file *filp, struct vm_area_struct *vma)
filp             1888 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	struct drm_file *file_priv = filp->private_data;
filp             1894 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return ttm_bo_mmap(filp, vma, &adev->mman.bdev);
filp              102 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h int amdgpu_mmap(struct file *filp, struct vm_area_struct *vma);
filp              269 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		adev->uvd.filp[i] = NULL;
filp              419 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c void amdgpu_uvd_free_handles(struct amdgpu_device *adev, struct drm_file *filp)
filp              427 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		if (handle != 0 && adev->uvd.filp[i] == filp) {
filp              440 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 			adev->uvd.filp[i] = NULL;
filp              754 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 				adev->uvd.filp[i] = ctx->parser->filp;
filp              772 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 				if (adev->uvd.filp[i] != ctx->parser->filp) {
filp               63 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h 	struct drm_file		*filp[AMDGPU_MAX_UVD_HANDLES];
filp               82 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h 			     struct drm_file *filp);
filp              191 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		adev->vce.filp[i] = NULL;
filp              402 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c void amdgpu_vce_free_handles(struct amdgpu_device *adev, struct drm_file *filp)
filp              409 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		if (!handle || adev->vce.filp[i] != filp)
filp              416 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		adev->vce.filp[i] = NULL;
filp              681 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (p->adev->vce.filp[i] != p->filp) {
filp              692 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			p->adev->vce.filp[i] = p->filp;
filp               43 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h 	struct drm_file		*filp[AMDGPU_MAX_VCE_HANDLES];
filp               66 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h void amdgpu_vce_free_handles(struct amdgpu_device *adev, struct drm_file *filp);
filp             3065 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c int amdgpu_vm_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
filp             3069 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	struct amdgpu_fpriv *fpriv = filp->driver_priv;
filp              400 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h int amdgpu_vm_ioctl(struct drm_device *dev, void *data, struct drm_file *filp);
filp              329 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c static int kfd_ioctl_destroy_queue(struct file *filp, struct kfd_process *p,
filp              347 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c static int kfd_ioctl_update_queue(struct file *filp, struct kfd_process *p,
filp              393 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c static int kfd_ioctl_set_cu_mask(struct file *filp, struct kfd_process *p,
filp              851 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c static int kfd_ioctl_get_process_apertures(struct file *filp,
filp              907 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c static int kfd_ioctl_get_process_apertures_new(struct file *filp,
filp              998 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c static int kfd_ioctl_create_event(struct file *filp, struct kfd_process *p,
filp             1056 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	err = kfd_event_create(filp, p, args->event_type,
filp             1069 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c static int kfd_ioctl_destroy_event(struct file *filp, struct kfd_process *p,
filp             1077 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c static int kfd_ioctl_set_event(struct file *filp, struct kfd_process *p,
filp             1085 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c static int kfd_ioctl_reset_event(struct file *filp, struct kfd_process *p,
filp             1093 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c static int kfd_ioctl_wait_events(struct file *filp, struct kfd_process *p,
filp             1897 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c static int kfd_mmap(struct file *filp, struct vm_area_struct *vma)
filp               37 drivers/gpu/drm/arm/display/komeda/komeda_dev.c static int komeda_register_open(struct inode *inode, struct file *filp)
filp               39 drivers/gpu/drm/arm/display/komeda/komeda_dev.c 	return single_open(filp, komeda_register_show, inode->i_private);
filp              222 drivers/gpu/drm/armada/armada_gem.c 	mapping = obj->obj.filp->f_mapping;
filp              307 drivers/gpu/drm/armada/armada_gem.c 	if (!dobj->obj.filp) {
filp              312 drivers/gpu/drm/armada/armada_gem.c 	addr = vm_mmap(dobj->obj.filp, 0, args->size, PROT_READ | PROT_WRITE,
filp              388 drivers/gpu/drm/armada/armada_gem.c 	if (dobj->obj.filp) {
filp              396 drivers/gpu/drm/armada/armada_gem.c 		mapping = dobj->obj.filp->f_mapping;
filp              454 drivers/gpu/drm/armada/armada_gem.c 	if (dobj->obj.filp) {
filp              222 drivers/gpu/drm/cirrus/cirrus_drv.h int cirrus_mmap(struct file *filp, struct vm_area_struct *vma);
filp             1521 drivers/gpu/drm/drm_bufs.c 			virtual = vm_mmap(file_priv->filp, 0, map->size,
filp             1526 drivers/gpu/drm/drm_bufs.c 			virtual = vm_mmap(file_priv->filp, 0, dma->byte_count,
filp             1090 drivers/gpu/drm/drm_drv.c static int drm_stub_open(struct inode *inode, struct file *filp)
filp             1111 drivers/gpu/drm/drm_drv.c 	replace_fops(filp, new_fops);
filp             1112 drivers/gpu/drm/drm_drv.c 	if (filp->f_op->open)
filp             1113 drivers/gpu/drm/drm_drv.c 		err = filp->f_op->open(inode, filp);
filp              228 drivers/gpu/drm/drm_file.c 		drm_legacy_lock_release(dev, file->filp);
filp              262 drivers/gpu/drm/drm_file.c static void drm_close_helper(struct file *filp)
filp              264 drivers/gpu/drm/drm_file.c 	struct drm_file *file_priv = filp->private_data;
filp              297 drivers/gpu/drm/drm_file.c static int drm_open_helper(struct file *filp, struct drm_minor *minor)
filp              303 drivers/gpu/drm/drm_file.c 	if (filp->f_flags & O_EXCL)
filp              324 drivers/gpu/drm/drm_file.c 	filp->private_data = priv;
filp              325 drivers/gpu/drm/drm_file.c 	filp->f_mode |= FMODE_UNSIGNED_OFFSET;
filp              326 drivers/gpu/drm/drm_file.c 	priv->filp = filp;
filp              368 drivers/gpu/drm/drm_file.c int drm_open(struct inode *inode, struct file *filp)
filp              384 drivers/gpu/drm/drm_file.c 	filp->f_mapping = dev->anon_inode->i_mapping;
filp              386 drivers/gpu/drm/drm_file.c 	retcode = drm_open_helper(filp, minor);
filp              392 drivers/gpu/drm/drm_file.c 			drm_close_helper(filp);
filp              433 drivers/gpu/drm/drm_file.c int drm_release(struct inode *inode, struct file *filp)
filp              435 drivers/gpu/drm/drm_file.c 	struct drm_file *file_priv = filp->private_data;
filp              443 drivers/gpu/drm/drm_file.c 	drm_close_helper(filp);
filp              482 drivers/gpu/drm/drm_file.c ssize_t drm_read(struct file *filp, char __user *buffer,
filp              485 drivers/gpu/drm/drm_file.c 	struct drm_file *file_priv = filp->private_data;
filp              512 drivers/gpu/drm/drm_file.c 			if (filp->f_flags & O_NONBLOCK) {
filp              569 drivers/gpu/drm/drm_file.c __poll_t drm_poll(struct file *filp, struct poll_table_struct *wait)
filp              571 drivers/gpu/drm/drm_file.c 	struct drm_file *file_priv = filp->private_data;
filp              574 drivers/gpu/drm/drm_file.c 	poll_wait(filp, &file_priv->event_wait, wait);
filp              127 drivers/gpu/drm/drm_gem.c 	struct file *filp;
filp              131 drivers/gpu/drm/drm_gem.c 	filp = shmem_file_setup("drm mm object", size, VM_NORESERVE);
filp              132 drivers/gpu/drm/drm_gem.c 	if (IS_ERR(filp))
filp              133 drivers/gpu/drm/drm_gem.c 		return PTR_ERR(filp);
filp              135 drivers/gpu/drm/drm_gem.c 	obj->filp = filp;
filp              157 drivers/gpu/drm/drm_gem.c 	obj->filp = NULL;
filp              171 drivers/gpu/drm/drm_gem.c drm_gem_remove_prime_handles(struct drm_gem_object *obj, struct drm_file *filp)
filp              177 drivers/gpu/drm/drm_gem.c 	mutex_lock(&filp->prime.lock);
filp              179 drivers/gpu/drm/drm_gem.c 		drm_prime_remove_buf_handle_locked(&filp->prime,
filp              182 drivers/gpu/drm/drm_gem.c 	mutex_unlock(&filp->prime.lock);
filp              276 drivers/gpu/drm/drm_gem.c drm_gem_handle_delete(struct drm_file *filp, u32 handle)
filp              280 drivers/gpu/drm/drm_gem.c 	spin_lock(&filp->table_lock);
filp              283 drivers/gpu/drm/drm_gem.c 	obj = idr_replace(&filp->object_idr, NULL, handle);
filp              284 drivers/gpu/drm/drm_gem.c 	spin_unlock(&filp->table_lock);
filp              289 drivers/gpu/drm/drm_gem.c 	drm_gem_object_release_handle(handle, obj, filp);
filp              292 drivers/gpu/drm/drm_gem.c 	spin_lock(&filp->table_lock);
filp              293 drivers/gpu/drm/drm_gem.c 	idr_remove(&filp->object_idr, handle);
filp              294 drivers/gpu/drm/drm_gem.c 	spin_unlock(&filp->table_lock);
filp              561 drivers/gpu/drm/drm_gem.c 	mapping = obj->filp->f_mapping;
filp              623 drivers/gpu/drm/drm_gem.c 	mapping = file_inode(obj->filp)->i_mapping;
filp              656 drivers/gpu/drm/drm_gem.c static int objects_lookup(struct drm_file *filp, u32 *handle, int count,
filp              662 drivers/gpu/drm/drm_gem.c 	spin_lock(&filp->table_lock);
filp              666 drivers/gpu/drm/drm_gem.c 		obj = idr_find(&filp->object_idr, handle[i]);
filp              674 drivers/gpu/drm/drm_gem.c 	spin_unlock(&filp->table_lock);
filp              698 drivers/gpu/drm/drm_gem.c int drm_gem_objects_lookup(struct drm_file *filp, void __user *bo_handles,
filp              725 drivers/gpu/drm/drm_gem.c 	ret = objects_lookup(filp, handles, count, objs);
filp              748 drivers/gpu/drm/drm_gem.c drm_gem_object_lookup(struct drm_file *filp, u32 handle)
filp              752 drivers/gpu/drm/drm_gem.c 	objects_lookup(filp, &handle, 1, &obj);
filp              956 drivers/gpu/drm/drm_gem.c 	if (obj->filp)
filp              957 drivers/gpu/drm/drm_gem.c 		fput(obj->filp);
filp             1146 drivers/gpu/drm/drm_gem.c int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)
filp             1148 drivers/gpu/drm/drm_gem.c 	struct drm_file *priv = filp->private_data;
filp              308 drivers/gpu/drm/drm_gem_cma_helper.c int drm_gem_cma_mmap(struct file *filp, struct vm_area_struct *vma)
filp              314 drivers/gpu/drm/drm_gem_cma_helper.c 	ret = drm_gem_mmap(filp, vma);
filp              342 drivers/gpu/drm/drm_gem_cma_helper.c unsigned long drm_gem_cma_get_unmapped_area(struct file *filp,
filp              350 drivers/gpu/drm/drm_gem_cma_helper.c 	struct drm_file *priv = filp->private_data;
filp               87 drivers/gpu/drm/drm_gem_shmem_helper.c 	mapping_set_gfp_mask(obj->filp->f_mapping, GFP_HIGHUSER |
filp              411 drivers/gpu/drm/drm_gem_shmem_helper.c 	shmem_truncate_range(file_inode(obj->filp), 0, (loff_t)-1);
filp              413 drivers/gpu/drm/drm_gem_shmem_helper.c 	invalidate_mapping_pages(file_inode(obj->filp)->i_mapping,
filp              531 drivers/gpu/drm/drm_gem_shmem_helper.c int drm_gem_shmem_mmap(struct file *filp, struct vm_area_struct *vma)
filp              536 drivers/gpu/drm/drm_gem_shmem_helper.c 	ret = drm_gem_mmap(filp, vma);
filp              445 drivers/gpu/drm/drm_gem_vram_helper.c 					 struct file *filp)
filp              450 drivers/gpu/drm/drm_gem_vram_helper.c 					  filp->private_data);
filp               75 drivers/gpu/drm/drm_internal.h 			  struct drm_file *filp);
filp               88 drivers/gpu/drm/drm_internal.h 				struct drm_file *filp);
filp               91 drivers/gpu/drm/drm_internal.h 				  struct drm_file *filp);
filp              970 drivers/gpu/drm/drm_ioc32.c long drm_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              973 drivers/gpu/drm/drm_ioc32.c 	struct drm_file *file_priv = filp->private_data;
filp              982 drivers/gpu/drm/drm_ioc32.c 		return drm_ioctl(filp, cmd, arg);
filp              986 drivers/gpu/drm/drm_ioc32.c 		return drm_ioctl(filp, cmd, arg);
filp              993 drivers/gpu/drm/drm_ioc32.c 	ret = (*fn)(filp, cmd, arg);
filp              809 drivers/gpu/drm/drm_ioctl.c long drm_ioctl(struct file *filp,
filp              812 drivers/gpu/drm/drm_ioctl.c 	struct drm_file *file_priv = filp->private_data;
filp              886 drivers/gpu/drm/drm_ioctl.c 	retcode = drm_ioctl_kernel(filp, func, kdata, ioctl->flags);
filp              492 drivers/gpu/drm/drm_lease.c 	struct file *lessor_file = lessor_priv->filp;
filp              155 drivers/gpu/drm/drm_legacy.h void drm_legacy_lock_release(struct drm_device *dev, struct file *filp);
filp              157 drivers/gpu/drm/drm_legacy.h static inline void drm_legacy_lock_release(struct drm_device *dev, struct file *filp) {}
filp              175 drivers/gpu/drm/drm_legacy.h 				struct drm_file *filp);
filp              178 drivers/gpu/drm/drm_legacy.h 					      struct drm_file *filp) {}
filp              339 drivers/gpu/drm/drm_lock.c void drm_legacy_lock_release(struct drm_device *dev, struct file *filp)
filp              341 drivers/gpu/drm/drm_lock.c 	struct drm_file *file_priv = filp->private_data;
filp              349 drivers/gpu/drm/drm_lock.c 			  filp, _DRM_LOCKING_CONTEXT(file_priv->master->lock.hw_lock->lock));
filp              190 drivers/gpu/drm/drm_sysfs.c static ssize_t edid_show(struct file *filp, struct kobject *kobj,
filp              468 drivers/gpu/drm/drm_vm.c static int drm_mmap_dma(struct file *filp, struct vm_area_struct *vma)
filp              470 drivers/gpu/drm/drm_vm.c 	struct drm_file *priv = filp->private_data;
filp              531 drivers/gpu/drm/drm_vm.c static int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma)
filp              533 drivers/gpu/drm/drm_vm.c 	struct drm_file *priv = filp->private_data;
filp              555 drivers/gpu/drm/drm_vm.c 		return drm_mmap_dma(filp, vma);
filp              645 drivers/gpu/drm/drm_vm.c int drm_legacy_mmap(struct file *filp, struct vm_area_struct *vma)
filp              647 drivers/gpu/drm/drm_vm.c 	struct drm_file *priv = filp->private_data;
filp              655 drivers/gpu/drm/drm_vm.c 	ret = drm_mmap_locked(filp, vma);
filp               92 drivers/gpu/drm/drm_vram_mm_helper.c 				   struct file *filp)
filp               98 drivers/gpu/drm/drm_vram_mm_helper.c 	return vmm->funcs->verify_access(bo, filp);
filp              207 drivers/gpu/drm/drm_vram_mm_helper.c int drm_vram_mm_mmap(struct file *filp, struct vm_area_struct *vma,
filp              210 drivers/gpu/drm/drm_vram_mm_helper.c 	return ttm_bo_mmap(filp, vma, &vmm->bdev);
filp              287 drivers/gpu/drm/drm_vram_mm_helper.c 	struct file *filp, struct vm_area_struct *vma)
filp              289 drivers/gpu/drm/drm_vram_mm_helper.c 	struct drm_file *file_priv = filp->private_data;
filp              295 drivers/gpu/drm/drm_vram_mm_helper.c 	return drm_vram_mm_mmap(filp, vma, dev->vram_mm);
filp               50 drivers/gpu/drm/etnaviv/etnaviv_drv.h int etnaviv_gem_mmap(struct file *filp, struct vm_area_struct *vma);
filp              148 drivers/gpu/drm/etnaviv/etnaviv_gem.c 		get_file(etnaviv_obj->base.filp);
filp              150 drivers/gpu/drm/etnaviv/etnaviv_gem.c 		vma->vm_file  = etnaviv_obj->base.filp;
filp              158 drivers/gpu/drm/etnaviv/etnaviv_gem.c int etnaviv_gem_mmap(struct file *filp, struct vm_area_struct *vma)
filp              163 drivers/gpu/drm/etnaviv/etnaviv_gem.c 	ret = drm_gem_mmap(filp, vma);
filp              627 drivers/gpu/drm/etnaviv/etnaviv_gem.c 	mapping_set_gfp_mask(obj->filp->f_mapping, GFP_HIGHUSER |
filp              227 drivers/gpu/drm/exynos/exynos_drm_g2d.c 	struct drm_file		*filp;
filp              422 drivers/gpu/drm/exynos/exynos_drm_g2d.c 					struct drm_file *filp,
filp              425 drivers/gpu/drm/exynos/exynos_drm_g2d.c 	struct drm_exynos_file_private *file_priv = filp->driver_priv;
filp              553 drivers/gpu/drm/exynos/exynos_drm_g2d.c static void g2d_userptr_free_all(struct g2d_data *g2d, struct drm_file *filp)
filp              555 drivers/gpu/drm/exynos/exynos_drm_g2d.c 	struct drm_exynos_file_private *file_priv = filp->driver_priv;
filp              775 drivers/gpu/drm/exynos/exynos_drm_g2d.c 				  struct drm_file *filp)
filp              840 drivers/gpu/drm/exynos/exynos_drm_g2d.c 		g2d_unmap_cmdlist_gem(g2d, node, runqueue_node->filp);
filp              862 drivers/gpu/drm/exynos/exynos_drm_g2d.c 		if (file && node->filp != file)
filp              987 drivers/gpu/drm/exynos/exynos_drm_g2d.c 	if (file && runqueue_node->filp != file)
filp             1328 drivers/gpu/drm/exynos/exynos_drm_g2d.c 	runqueue_node->filp = file;
filp              199 drivers/gpu/drm/exynos/exynos_drm_gem.c 	DRM_DEV_DEBUG_KMS(dev->dev, "created file object = %pK\n", obj->filp);
filp              280 drivers/gpu/drm/exynos/exynos_drm_gem.c struct exynos_drm_gem *exynos_drm_gem_get(struct drm_file *filp,
filp              285 drivers/gpu/drm/exynos/exynos_drm_gem.c 	obj = drm_gem_object_lookup(filp, gem_handle);
filp              435 drivers/gpu/drm/exynos/exynos_drm_gem.c int exynos_drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)
filp              441 drivers/gpu/drm/exynos/exynos_drm_gem.c 	ret = drm_gem_mmap(filp, vma);
filp               80 drivers/gpu/drm/exynos/exynos_drm_gem.h struct exynos_drm_gem *exynos_drm_gem_get(struct drm_file *filp,
filp              108 drivers/gpu/drm/exynos/exynos_drm_gem.h int exynos_drm_gem_mmap(struct file *filp, struct vm_area_struct *vma);
filp              347 drivers/gpu/drm/exynos/exynos_drm_ipp.c 					    struct drm_file *filp)
filp              357 drivers/gpu/drm/exynos/exynos_drm_ipp.c 		struct exynos_drm_gem *gem = exynos_drm_gem_get(filp,
filp              664 drivers/gpu/drm/exynos/exynos_drm_ipp.c 				     struct drm_file *filp)
filp              672 drivers/gpu/drm/exynos/exynos_drm_ipp.c 	ret = exynos_drm_ipp_task_setup_buffer(src, filp);
filp              679 drivers/gpu/drm/exynos/exynos_drm_ipp.c 	ret = exynos_drm_ipp_task_setup_buffer(dst, filp);
filp              439 drivers/gpu/drm/gma500/framebuffer.c 			(struct drm_device *dev, struct drm_file *filp,
filp              449 drivers/gpu/drm/gma500/framebuffer.c 	obj = drm_gem_object_lookup(filp, cmd->handles[0]);
filp               74 drivers/gpu/drm/gma500/gem.c 	mapping_set_gfp_mask(r->gem.filp->f_mapping, GFP_KERNEL | __GFP_DMA32);
filp              410 drivers/gpu/drm/gma500/psb_drv.c static long psb_unlocked_ioctl(struct file *filp, unsigned int cmd,
filp              413 drivers/gpu/drm/gma500/psb_drv.c 	struct drm_file *file_priv = filp->private_data;
filp              423 drivers/gpu/drm/gma500/psb_drv.c 	return drm_ioctl(filp, cmd, arg);
filp              142 drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c 			      struct drm_file *filp,
filp              155 drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c 	obj = drm_gem_object_lookup(filp, mode_cmd->handles[0]);
filp               94 drivers/gpu/drm/i810/i810_dma.c static int i810_mmap_buffers(struct file *filp, struct vm_area_struct *vma)
filp               96 drivers/gpu/drm/i810/i810_dma.c 	struct drm_file *priv = filp->private_data;
filp              139 drivers/gpu/drm/i810/i810_dma.c 	old_fops = file_priv->filp->f_op;
filp              140 drivers/gpu/drm/i810/i810_dma.c 	file_priv->filp->f_op = &i810_buffer_fops;
filp              142 drivers/gpu/drm/i810/i810_dma.c 	buf_priv->virtual = (void *)vm_mmap(file_priv->filp, 0, buf->total,
filp              146 drivers/gpu/drm/i810/i810_dma.c 	file_priv->filp->f_op = old_fops;
filp             15730 drivers/gpu/drm/i915/display/intel_display.c 			      struct drm_file *filp,
filp             15737 drivers/gpu/drm/i915/display/intel_display.c 	obj = i915_gem_object_lookup(filp, mode_cmd.handles[0]);
filp              138 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c 	if (!obj->base.filp)
filp              141 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c 	ret = call_mmap(obj->base.filp, vma);
filp              146 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c 	vma->vm_file = get_file(obj->base.filp);
filp               20 drivers/gpu/drm/i915/gem/i915_gem_mman.c __vma_matches(struct vm_area_struct *vma, struct file *filp,
filp               23 drivers/gpu/drm/i915/gem/i915_gem_mman.c 	if (vma->vm_file != filp)
filp               71 drivers/gpu/drm/i915/gem/i915_gem_mman.c 	if (!obj->base.filp) {
filp               81 drivers/gpu/drm/i915/gem/i915_gem_mman.c 	addr = vm_mmap(obj->base.filp, 0, args->size,
filp               96 drivers/gpu/drm/i915/gem/i915_gem_mman.c 		if (vma && __vma_matches(vma, obj->base.filp, addr, args->size))
filp               23 drivers/gpu/drm/i915/gem/i915_gem_phys.c 	struct address_space *mapping = obj->base.filp->f_mapping;
filp              103 drivers/gpu/drm/i915/gem/i915_gem_phys.c 		struct address_space *mapping = obj->base.filp->f_mapping;
filp              140 drivers/gpu/drm/i915/gem/i915_gem_phys.c 	fput(obj->base.filp);
filp               74 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 	mapping = obj->base.filp->f_mapping;
filp              225 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 	shmem_truncate_range(file_inode(obj->base.filp), 0, (loff_t)-1);
filp              249 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 	mapping = obj->base.filp->f_mapping;
filp              307 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 	mapping_clear_unevictable(file_inode(obj->base.filp)->i_mapping);
filp              332 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 	struct address_space *mapping = obj->base.filp->f_mapping;
filp              387 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 		err = pagecache_write_begin(obj->base.filp, mapping,
filp              399 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 		err = pagecache_write_end(obj->base.filp, mapping,
filp              420 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 	fput(obj->base.filp);
filp              442 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 	struct file *filp;
filp              447 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 		filp = shmem_file_setup_with_mnt(i915->mm.gemfs, "i915", size,
filp              450 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 		filp = shmem_file_setup("i915", size, flags);
filp              451 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 	if (IS_ERR(filp))
filp              452 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 		return PTR_ERR(filp);
filp              454 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 	obj->filp = filp;
filp              493 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 	mapping = obj->base.filp->f_mapping;
filp              546 drivers/gpu/drm/i915/gem/i915_gem_shmem.c 	file = obj->base.filp;
filp               54 drivers/gpu/drm/i915/gvt/firmware.c gvt_firmware_read(struct file *filp, struct kobject *kobj,
filp              733 drivers/gpu/drm/i915/i915_debugfs.c i915_error_state_write(struct file *filp,
filp              738 drivers/gpu/drm/i915/i915_debugfs.c 	struct i915_gpu_state *error = filp->private_data;
filp             2045 drivers/gpu/drm/i915/i915_debugfs.c i915_guc_log_relay_write(struct file *filp,
filp             2050 drivers/gpu/drm/i915/i915_debugfs.c 	struct intel_guc_log *log = filp->private_data;
filp             4233 drivers/gpu/drm/i915/i915_debugfs.c i915_fifo_underrun_reset_write(struct file *filp,
filp             4237 drivers/gpu/drm/i915/i915_debugfs.c 	struct drm_i915_private *dev_priv = filp->private_data;
filp             2216 drivers/gpu/drm/i915/i915_drv.h long i915_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
filp               78 drivers/gpu/drm/i915/i915_ioc32.c long i915_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp               85 drivers/gpu/drm/i915/i915_ioc32.c 		return drm_compat_ioctl(filp, cmd, arg);
filp               91 drivers/gpu/drm/i915/i915_ioc32.c 		ret = (*fn) (filp, cmd, arg);
filp               93 drivers/gpu/drm/i915/i915_ioc32.c 		ret = drm_ioctl(filp, cmd, arg);
filp              160 drivers/gpu/drm/i915/i915_sysfs.c i915_l3_read(struct file *filp, struct kobject *kobj,
filp              195 drivers/gpu/drm/i915/i915_sysfs.c i915_l3_write(struct file *filp, struct kobject *kobj,
filp              511 drivers/gpu/drm/i915/i915_sysfs.c static ssize_t error_state_read(struct file *filp, struct kobject *kobj,
filp               29 drivers/gpu/drm/i915/selftests/mock_drm.c 	struct file *filp;
filp               42 drivers/gpu/drm/i915/selftests/mock_drm.c 	filp = kzalloc(sizeof(*filp), GFP_KERNEL);
filp               43 drivers/gpu/drm/i915/selftests/mock_drm.c 	if (!filp) {
filp               48 drivers/gpu/drm/i915/selftests/mock_drm.c 	err = drm_open(inode, filp);
filp               52 drivers/gpu/drm/i915/selftests/mock_drm.c 	file = filp->private_data;
filp               53 drivers/gpu/drm/i915/selftests/mock_drm.c 	memset(&file->filp, POISON_INUSE, sizeof(file->filp));
filp               56 drivers/gpu/drm/i915/selftests/mock_drm.c 	kfree(filp);
filp               61 drivers/gpu/drm/i915/selftests/mock_drm.c 	kfree(filp);
filp               70 drivers/gpu/drm/i915/selftests/mock_drm.c 	struct file filp = { .private_data = file };
filp               72 drivers/gpu/drm/i915/selftests/mock_drm.c 	drm_release(NULL, &filp);
filp              121 drivers/gpu/drm/lima/lima_gem.c int lima_gem_mmap(struct file *filp, struct vm_area_struct *vma)
filp              125 drivers/gpu/drm/lima/lima_gem.c 	ret = drm_gem_mmap(filp, vma);
filp               19 drivers/gpu/drm/lima/lima_gem.h int lima_gem_mmap(struct file *filp, struct vm_area_struct *vma);
filp               94 drivers/gpu/drm/lima/lima_object.c 		mapping_set_gfp_mask(bo->gem.filp->f_mapping, GFP_DMA32);
filp              162 drivers/gpu/drm/mediatek/mtk_drm_gem.c int mtk_drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)
filp              167 drivers/gpu/drm/mediatek/mtk_drm_gem.c 	ret = drm_gem_mmap(filp, vma);
filp               42 drivers/gpu/drm/mediatek/mtk_drm_gem.h int mtk_drm_gem_mmap(struct file *filp, struct vm_area_struct *vma);
filp              210 drivers/gpu/drm/mga/mga_drv.h extern long mga_compat_ioctl(struct file *filp, unsigned int cmd,
filp              170 drivers/gpu/drm/mga/mga_ioc32.c long mga_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              173 drivers/gpu/drm/mga/mga_ioc32.c 	struct drm_file *file_priv = filp->private_data;
filp              178 drivers/gpu/drm/mga/mga_ioc32.c 		return drm_compat_ioctl(filp, cmd, arg);
filp              181 drivers/gpu/drm/mga/mga_ioc32.c 		return drm_ioctl(filp, cmd, arg);
filp              185 drivers/gpu/drm/mga/mga_ioc32.c 		return drm_ioctl(filp, cmd, arg);
filp              192 drivers/gpu/drm/mga/mga_ioc32.c 	ret = (*fn) (filp, cmd, arg);
filp              223 drivers/gpu/drm/mgag200/mgag200_drv.h int mgag200_mmap(struct file *filp, struct vm_area_struct *vma);
filp              271 drivers/gpu/drm/msm/msm_drv.h int msm_gem_mmap(struct file *filp, struct vm_area_struct *vma);
filp              227 drivers/gpu/drm/msm/msm_gem.c 		get_file(obj->filp);
filp              229 drivers/gpu/drm/msm/msm_gem.c 		vma->vm_file  = obj->filp;
filp              237 drivers/gpu/drm/msm/msm_gem.c int msm_gem_mmap(struct file *filp, struct vm_area_struct *vma)
filp              241 drivers/gpu/drm/msm/msm_gem.c 	ret = drm_gem_mmap(filp, vma);
filp              671 drivers/gpu/drm/msm/msm_gem.c 	shmem_truncate_range(file_inode(obj->filp), 0, (loff_t)-1);
filp              673 drivers/gpu/drm/msm/msm_gem.c 	invalidate_mapping_pages(file_inode(obj->filp)->i_mapping,
filp             1086 drivers/gpu/drm/msm/msm_gem.c 		mapping_set_gfp_mask(obj->filp->f_mapping, GFP_HIGHUSER);
filp             1429 drivers/gpu/drm/nouveau/nouveau_bo.c nouveau_bo_verify_access(struct ttm_buffer_object *bo, struct file *filp)
filp             1434 drivers/gpu/drm/nouveau/nouveau_bo.c 					  filp->private_data);
filp             1133 drivers/gpu/drm/nouveau/nouveau_drm.c 	struct drm_file *filp = file->private_data;
filp             1134 drivers/gpu/drm/nouveau/nouveau_drm.c 	struct drm_device *dev = filp->minor->dev;
filp             1143 drivers/gpu/drm/nouveau/nouveau_drm.c 		ret = usif_ioctl(filp, (void __user *)arg, _IOC_SIZE(cmd));
filp              215 drivers/gpu/drm/nouveau/nouveau_gem.c 	nvbo->bo.persistent_swap_storage = nvbo->bo.base.filp;
filp               50 drivers/gpu/drm/nouveau/nouveau_ioc32.c long nouveau_compat_ioctl(struct file *filp, unsigned int cmd,
filp               58 drivers/gpu/drm/nouveau/nouveau_ioc32.c 		return drm_compat_ioctl(filp, cmd, arg);
filp               65 drivers/gpu/drm/nouveau/nouveau_ioc32.c 		ret = (*fn)(filp, cmd, arg);
filp               67 drivers/gpu/drm/nouveau/nouveau_ioc32.c 		ret = nouveau_drm_ioctl(filp, cmd, arg);
filp              162 drivers/gpu/drm/nouveau/nouveau_ttm.c nouveau_ttm_mmap(struct file *filp, struct vm_area_struct *vma)
filp              164 drivers/gpu/drm/nouveau/nouveau_ttm.c 	struct drm_file *file_priv = filp->private_data;
filp              167 drivers/gpu/drm/nouveau/nouveau_ttm.c 	return ttm_bo_mmap(filp, vma, &drm->ttm.bdev);
filp               54 drivers/gpu/drm/nouveau/nouveau_usif.c usif_notify_find(struct drm_file *filp, u32 handle)
filp               56 drivers/gpu/drm/nouveau/nouveau_usif.c 	struct nouveau_cli *cli = nouveau_cli(filp);
filp               80 drivers/gpu/drm/nouveau/nouveau_usif.c 	struct drm_file *filp;
filp               93 drivers/gpu/drm/nouveau/nouveau_usif.c 	filp = ntfy->p->base.file_priv;
filp               94 drivers/gpu/drm/nouveau/nouveau_usif.c 	dev = filp->minor->dev;
filp              111 drivers/gpu/drm/nouveau/nouveau_usif.c 	if (!WARN_ON(filp->event_space < ntfy->p->e.base.length)) {
filp              112 drivers/gpu/drm/nouveau/nouveau_usif.c 		list_add_tail(&ntfy->p->base.link, &filp->event_list);
filp              113 drivers/gpu/drm/nouveau/nouveau_usif.c 		filp->event_space -= ntfy->p->e.base.length;
filp              115 drivers/gpu/drm/nouveau/nouveau_usif.c 	wake_up_interruptible(&filp->event_wait);
filp              294 drivers/gpu/drm/nouveau/nouveau_usif.c usif_ioctl(struct drm_file *filp, void __user *user, u32 argc)
filp              296 drivers/gpu/drm/nouveau/nouveau_usif.c 	struct nouveau_cli *cli = nouveau_cli(filp);
filp              329 drivers/gpu/drm/nouveau/nouveau_usif.c 			ret = nouveau_abi16_usif(filp, argv, argc);
filp              338 drivers/gpu/drm/nouveau/nouveau_usif.c 		ret = usif_object_new(filp, data, size, argv, argc);
filp              341 drivers/gpu/drm/nouveau/nouveau_usif.c 		ret = usif_notify_new(filp, data, size, argv, argc);
filp              344 drivers/gpu/drm/nouveau/nouveau_usif.c 		ret = usif_notify_del(filp, data, size, argv, argc);
filp              347 drivers/gpu/drm/nouveau/nouveau_usif.c 		ret = usif_notify_get(filp, data, size, argv, argc);
filp              350 drivers/gpu/drm/nouveau/nouveau_usif.c 		ret = usif_notify_put(filp, data, size, argv, argc);
filp              528 drivers/gpu/drm/omapdrm/omap_gem.c int omap_gem_mmap(struct file *filp, struct vm_area_struct *vma)
filp              532 drivers/gpu/drm/omapdrm/omap_gem.c 	ret = drm_gem_mmap(filp, vma);
filp              559 drivers/gpu/drm/omapdrm/omap_gem.c 		if (WARN_ON(!obj->filp))
filp              569 drivers/gpu/drm/omapdrm/omap_gem.c 		vma->vm_file  = get_file(obj->filp);
filp              748 drivers/gpu/drm/omapdrm/omap_gem.c 		unmap_mapping_range(obj->filp->f_mapping, 0,
filp             1202 drivers/gpu/drm/omapdrm/omap_gem.c 		mapping = obj->filp->f_mapping;
filp               61 drivers/gpu/drm/omapdrm/omap_gem.h int omap_gem_mmap(struct file *filp, struct vm_area_struct *vma);
filp              500 drivers/gpu/drm/panfrost/panfrost_mmu.c 	mapping = bo->base.base.filp->f_mapping;
filp              350 drivers/gpu/drm/qxl/qxl_drv.h int qxl_mode_dumb_mmap(struct drm_file *filp,
filp              357 drivers/gpu/drm/qxl/qxl_drv.h int qxl_mmap(struct file *filp, struct vm_area_struct *vma);
filp               66 drivers/gpu/drm/qxl/qxl_ttm.c int qxl_mmap(struct file *filp, struct vm_area_struct *vma)
filp               69 drivers/gpu/drm/qxl/qxl_ttm.c 	struct drm_file *file_priv = filp->private_data;
filp               78 drivers/gpu/drm/qxl/qxl_ttm.c 		  filp->private_data, vma->vm_pgoff);
filp               80 drivers/gpu/drm/qxl/qxl_ttm.c 	r = ttm_bo_mmap(filp, vma, &qdev->mman.bdev);
filp              154 drivers/gpu/drm/qxl/qxl_ttm.c static int qxl_verify_access(struct ttm_buffer_object *bo, struct file *filp)
filp              159 drivers/gpu/drm/qxl/qxl_ttm.c 					  filp->private_data);
filp              179 drivers/gpu/drm/r128/r128_drv.h extern long r128_compat_ioctl(struct file *filp, unsigned int cmd,
filp              181 drivers/gpu/drm/r128/r128_ioc32.c long r128_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              188 drivers/gpu/drm/r128/r128_ioc32.c 		return drm_compat_ioctl(filp, cmd, arg);
filp              194 drivers/gpu/drm/r128/r128_ioc32.c 		ret = (*fn) (filp, cmd, arg);
filp              196 drivers/gpu/drm/r128/r128_ioc32.c 		ret = drm_ioctl(filp, cmd, arg);
filp             1465 drivers/gpu/drm/radeon/r100.c 	crtc = drm_crtc_find(p->rdev->ddev, p->filp, crtc_id);
filp             2019 drivers/gpu/drm/radeon/r100.c 		if (p->rdev->hyperz_filp != p->filp)
filp              768 drivers/gpu/drm/radeon/r300.c 		    p->rdev->cmask_filp != p->filp) {
filp             1102 drivers/gpu/drm/radeon/r300.c 		if (p->rdev->hyperz_filp != p->filp) {
filp             1112 drivers/gpu/drm/radeon/r300.c 		if (p->rdev->hyperz_filp != p->filp) {
filp             1150 drivers/gpu/drm/radeon/r300.c 		if (idx_value && (p->rdev->hyperz_filp != p->filp))
filp             1154 drivers/gpu/drm/radeon/r300.c 		if (idx_value && (p->rdev->hyperz_filp != p->filp))
filp             1268 drivers/gpu/drm/radeon/r300.c 		if (p->rdev->hyperz_filp != p->filp)
filp             1272 drivers/gpu/drm/radeon/r300.c 		if (p->rdev->cmask_filp != p->filp)
filp              890 drivers/gpu/drm/radeon/r600_cs.c 	crtc = drm_crtc_find(p->rdev->ddev, p->filp, crtc_id);
filp              585 drivers/gpu/drm/radeon/radeon.h int radeon_mode_dumb_mmap(struct drm_file *filp,
filp             1060 drivers/gpu/drm/radeon/radeon.h 	struct drm_file		*filp;
filp             1675 drivers/gpu/drm/radeon/radeon.h 	struct drm_file		*filp[RADEON_MAX_UVD_HANDLES];
filp             1691 drivers/gpu/drm/radeon/radeon.h 			     struct drm_file *filp);
filp             1717 drivers/gpu/drm/radeon/radeon.h 	struct drm_file		*filp[RADEON_MAX_VCE_HANDLES];
filp             1731 drivers/gpu/drm/radeon/radeon.h void radeon_vce_free_handles(struct radeon_device *rdev, struct drm_file *filp);
filp             2213 drivers/gpu/drm/radeon/radeon.h 			  struct drm_file *filp);
filp             2215 drivers/gpu/drm/radeon/radeon.h 			    struct drm_file *filp);
filp             2217 drivers/gpu/drm/radeon/radeon.h 			     struct drm_file *filp);
filp             2227 drivers/gpu/drm/radeon/radeon.h 				struct drm_file *filp);
filp             2229 drivers/gpu/drm/radeon/radeon.h 			  struct drm_file *filp);
filp             2231 drivers/gpu/drm/radeon/radeon.h 			  struct drm_file *filp);
filp             2233 drivers/gpu/drm/radeon/radeon.h 			      struct drm_file *filp);
filp             2235 drivers/gpu/drm/radeon/radeon.h 			  struct drm_file *filp);
filp             2237 drivers/gpu/drm/radeon/radeon.h 			struct drm_file *filp);
filp             2238 drivers/gpu/drm/radeon/radeon.h int radeon_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp);
filp             2240 drivers/gpu/drm/radeon/radeon.h 				struct drm_file *filp);
filp             2242 drivers/gpu/drm/radeon/radeon.h 				struct drm_file *filp);
filp              110 drivers/gpu/drm/radeon/radeon_cs.c 		gobj = drm_gem_object_lookup(p->filp, r->handle);
filp              545 drivers/gpu/drm/radeon/radeon_cs.c 	struct radeon_fpriv *fpriv = parser->filp->driver_priv;
filp              614 drivers/gpu/drm/radeon/radeon_cs.c 		struct radeon_fpriv *fpriv = parser->filp->driver_priv;
filp              660 drivers/gpu/drm/radeon/radeon_cs.c int radeon_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
filp              680 drivers/gpu/drm/radeon/radeon_cs.c 	parser.filp = filp;
filp              144 drivers/gpu/drm/radeon/radeon_drv.c int radeon_mmap(struct file *filp, struct vm_area_struct *vma);
filp              145 drivers/gpu/drm/radeon/radeon_drv.c int radeon_mode_dumb_mmap(struct drm_file *filp,
filp              550 drivers/gpu/drm/radeon/radeon_drv.c long radeon_drm_ioctl(struct file *filp,
filp              553 drivers/gpu/drm/radeon/radeon_drv.c 	struct drm_file *file_priv = filp->private_data;
filp              561 drivers/gpu/drm/radeon/radeon_drv.c 	ret = drm_ioctl(filp, cmd, arg);
filp              569 drivers/gpu/drm/radeon/radeon_drv.c static long radeon_kms_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              575 drivers/gpu/drm/radeon/radeon_drv.c 		return drm_compat_ioctl(filp, cmd, arg);
filp              577 drivers/gpu/drm/radeon/radeon_drv.c 	ret = radeon_drm_ioctl(filp, cmd, arg);
filp              118 drivers/gpu/drm/radeon/radeon_drv.h long radeon_drm_ioctl(struct file *filp,
filp              222 drivers/gpu/drm/radeon/radeon_gem.c 			  struct drm_file *filp)
filp              240 drivers/gpu/drm/radeon/radeon_gem.c 			   struct drm_file *filp)
filp              248 drivers/gpu/drm/radeon/radeon_gem.c 			    struct drm_file *filp)
filp              256 drivers/gpu/drm/radeon/radeon_gem.c 			    struct drm_file *filp)
filp              275 drivers/gpu/drm/radeon/radeon_gem.c 	r = drm_gem_handle_create(filp, gobj, &handle);
filp              289 drivers/gpu/drm/radeon/radeon_gem.c 			     struct drm_file *filp)
filp              359 drivers/gpu/drm/radeon/radeon_gem.c 	r = drm_gem_handle_create(filp, gobj, &handle);
filp              380 drivers/gpu/drm/radeon/radeon_gem.c 				struct drm_file *filp)
filp              395 drivers/gpu/drm/radeon/radeon_gem.c 	gobj = drm_gem_object_lookup(filp, args->handle);
filp              410 drivers/gpu/drm/radeon/radeon_gem.c int radeon_mode_dumb_mmap(struct drm_file *filp,
filp              417 drivers/gpu/drm/radeon/radeon_gem.c 	gobj = drm_gem_object_lookup(filp, handle);
filp              432 drivers/gpu/drm/radeon/radeon_gem.c 			  struct drm_file *filp)
filp              436 drivers/gpu/drm/radeon/radeon_gem.c 	return radeon_mode_dumb_mmap(filp, dev, args->handle, &args->addr_ptr);
filp              440 drivers/gpu/drm/radeon/radeon_gem.c 			  struct drm_file *filp)
filp              448 drivers/gpu/drm/radeon/radeon_gem.c 	gobj = drm_gem_object_lookup(filp, args->handle);
filp              467 drivers/gpu/drm/radeon/radeon_gem.c 			      struct drm_file *filp)
filp              477 drivers/gpu/drm/radeon/radeon_gem.c 	gobj = drm_gem_object_lookup(filp, args->handle);
filp              500 drivers/gpu/drm/radeon/radeon_gem.c 				struct drm_file *filp)
filp              508 drivers/gpu/drm/radeon/radeon_gem.c 	gobj = drm_gem_object_lookup(filp, args->handle);
filp              518 drivers/gpu/drm/radeon/radeon_gem.c 				struct drm_file *filp)
filp              526 drivers/gpu/drm/radeon/radeon_gem.c 	gobj = drm_gem_object_lookup(filp, args->handle);
filp              603 drivers/gpu/drm/radeon/radeon_gem.c 			  struct drm_file *filp)
filp              608 drivers/gpu/drm/radeon/radeon_gem.c 	struct radeon_fpriv *fpriv = filp->driver_priv;
filp              661 drivers/gpu/drm/radeon/radeon_gem.c 	gobj = drm_gem_object_lookup(filp, args->handle);
filp              709 drivers/gpu/drm/radeon/radeon_gem.c 			struct drm_file *filp)
filp              716 drivers/gpu/drm/radeon/radeon_gem.c 	gobj = drm_gem_object_lookup(filp, args->handle);
filp              224 drivers/gpu/drm/radeon/radeon_kms.c static int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
filp              321 drivers/gpu/drm/radeon/radeon_kms.c 		radeon_set_filp_rights(dev, &rdev->hyperz_filp, filp, value);
filp              333 drivers/gpu/drm/radeon/radeon_kms.c 		radeon_set_filp_rights(dev, &rdev->cmask_filp, filp, value);
filp              181 drivers/gpu/drm/radeon/radeon_ttm.c static int radeon_verify_access(struct ttm_buffer_object *bo, struct file *filp)
filp              188 drivers/gpu/drm/radeon/radeon_ttm.c 					  filp->private_data);
filp              903 drivers/gpu/drm/radeon/radeon_ttm.c int radeon_mmap(struct file *filp, struct vm_area_struct *vma)
filp              906 drivers/gpu/drm/radeon/radeon_ttm.c 	struct drm_file *file_priv = filp->private_data;
filp              912 drivers/gpu/drm/radeon/radeon_ttm.c 	r = ttm_bo_mmap(filp, vma, &rdev->mman.bdev);
filp              221 drivers/gpu/drm/radeon/radeon_uvd.c 		rdev->uvd.filp[i] = NULL;
filp              273 drivers/gpu/drm/radeon/radeon_uvd.c 			rdev->uvd.filp[i] = NULL;
filp              328 drivers/gpu/drm/radeon/radeon_uvd.c void radeon_uvd_free_handles(struct radeon_device *rdev, struct drm_file *filp)
filp              333 drivers/gpu/drm/radeon/radeon_uvd.c 		if (handle != 0 && rdev->uvd.filp[i] == filp) {
filp              348 drivers/gpu/drm/radeon/radeon_uvd.c 			rdev->uvd.filp[i] = NULL;
filp              523 drivers/gpu/drm/radeon/radeon_uvd.c 				p->rdev->uvd.filp[i] = p->filp;
filp              544 drivers/gpu/drm/radeon/radeon_uvd.c 				if (p->rdev->uvd.filp[i] != p->filp) {
filp              168 drivers/gpu/drm/radeon/radeon_vce.c 		rdev->vce.filp[i] = NULL;
filp              316 drivers/gpu/drm/radeon/radeon_vce.c void radeon_vce_free_handles(struct radeon_device *rdev, struct drm_file *filp)
filp              321 drivers/gpu/drm/radeon/radeon_vce.c 		if (!handle || rdev->vce.filp[i] != filp)
filp              331 drivers/gpu/drm/radeon/radeon_vce.c 		rdev->vce.filp[i] = NULL;
filp              529 drivers/gpu/drm/radeon/radeon_vce.c 			if (p->rdev->vce.filp[i] != p->filp) {
filp              540 drivers/gpu/drm/radeon/radeon_vce.c 			p->rdev->vce.filp[i] = p->filp;
filp              271 drivers/gpu/drm/rockchip/rockchip_drm_gem.c int rockchip_gem_mmap(struct file *filp, struct vm_area_struct *vma)
filp              276 drivers/gpu/drm/rockchip/rockchip_drm_gem.c 	ret = drm_gem_mmap(filp, vma);
filp               38 drivers/gpu/drm/rockchip/rockchip_drm_gem.h int rockchip_gem_mmap(struct file *filp, struct vm_area_struct *vma);
filp              251 drivers/gpu/drm/tegra/drm.c static int tegra_drm_open(struct drm_device *drm, struct drm_file *filp)
filp              261 drivers/gpu/drm/tegra/drm.c 	filp->driver_priv = fpriv;
filp              427 drivers/gpu/drm/ttm/ttm_bo_vm.c int ttm_bo_mmap(struct file *filp, struct vm_area_struct *vma,
filp              446 drivers/gpu/drm/ttm/ttm_bo_vm.c 	ret = driver->verify_access(bo, filp);
filp              143 drivers/gpu/drm/udl/udl_drv.h int udl_drm_gem_mmap(struct file *filp, struct vm_area_struct *vma);
filp               87 drivers/gpu/drm/udl/udl_gem.c int udl_drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)
filp               91 drivers/gpu/drm/udl/udl_gem.c 	ret = drm_gem_mmap(filp, vma);
filp              861 drivers/gpu/drm/vboxvideo/vbox_mode.c 		struct drm_file *filp,
filp              870 drivers/gpu/drm/vboxvideo/vbox_mode.c 	obj = drm_gem_object_lookup(filp, mode_cmd->handles[0]);
filp              703 drivers/gpu/drm/vc4/vc4_bo.c int vc4_mmap(struct file *filp, struct vm_area_struct *vma)
filp              710 drivers/gpu/drm/vc4/vc4_bo.c 	ret = drm_gem_mmap(filp, vma);
filp              731 drivers/gpu/drm/vc4/vc4_drv.h int vc4_mmap(struct file *filp, struct vm_area_struct *vma);
filp               98 drivers/gpu/drm/vgem/vgem_drv.c 					file_inode(obj->base.filp)->i_mapping,
filp              242 drivers/gpu/drm/vgem/vgem_drv.c 	if (!obj->filp) {
filp              263 drivers/gpu/drm/vgem/vgem_drv.c static int vgem_mmap(struct file *filp, struct vm_area_struct *vma)
filp              268 drivers/gpu/drm/vgem/vgem_drv.c 	ret = drm_gem_mmap(filp, vma);
filp              414 drivers/gpu/drm/vgem/vgem_drv.c 	if (!obj->filp)
filp              417 drivers/gpu/drm/vgem/vgem_drv.c 	ret = call_mmap(obj->filp, vma);
filp              422 drivers/gpu/drm/vgem/vgem_drv.c 	vma->vm_file = get_file(obj->filp);
filp              345 drivers/gpu/drm/virtio/virtgpu_drv.h int virtio_gpu_mmap(struct file *filp, struct vm_area_struct *vma);
filp               52 drivers/gpu/drm/virtio/virtgpu_ttm.c int virtio_gpu_mmap(struct file *filp, struct vm_area_struct *vma)
filp               58 drivers/gpu/drm/virtio/virtgpu_ttm.c 	file_priv = filp->private_data;
filp               65 drivers/gpu/drm/virtio/virtgpu_ttm.c 	r = ttm_bo_mmap(filp, vma, &vgdev->mman.bdev);
filp              154 drivers/gpu/drm/virtio/virtgpu_ttm.c 				    struct file *filp)
filp               69 drivers/gpu/drm/vkms/vkms_gem.c 		mapping = file_inode(obj->gem.filp)->i_mapping;
filp             1041 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c static long vmw_generic_ioctl(struct file *filp, unsigned int cmd,
filp             1046 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 	struct drm_file *file_priv = filp->private_data;
filp             1061 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 			return ioctl_func(filp, cmd, arg);
filp             1075 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 	return ioctl_func(filp, cmd, arg);
filp             1084 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c static long vmw_unlocked_ioctl(struct file *filp, unsigned int cmd,
filp             1087 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 	return vmw_generic_ioctl(filp, cmd, arg, &drm_ioctl);
filp             1091 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c static long vmw_compat_ioctl(struct file *filp, unsigned int cmd,
filp             1094 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 	return vmw_generic_ioctl(filp, cmd, arg, &drm_compat_ioctl);
filp              869 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern __poll_t vmw_fops_poll(struct file *filp,
filp              871 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern ssize_t vmw_fops_read(struct file *filp, char __user *buffer,
filp              913 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern int vmw_mmap(struct file *filp, struct vm_area_struct *vma);
filp              418 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c __poll_t vmw_fops_poll(struct file *filp, struct poll_table_struct *wait)
filp              420 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c 	struct drm_file *file_priv = filp->private_data;
filp              425 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c 	return drm_poll(filp, wait);
filp              440 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c ssize_t vmw_fops_read(struct file *filp, char __user *buffer,
filp              443 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c 	struct drm_file *file_priv = filp->private_data;
filp              448 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c 	return drm_read(filp, buffer, count, offset);
filp              789 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c static int vmw_verify_access(struct ttm_buffer_object *bo, struct file *filp)
filp              792 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c 		vmw_fpriv((struct drm_file *)filp->private_data)->tfile;
filp               30 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c int vmw_mmap(struct file *filp, struct vm_area_struct *vma)
filp               32 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c 	struct drm_file *file_priv = filp->private_data;
filp               35 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c 	return ttm_bo_mmap(filp, vma, &dev_priv->bdev);
filp              382 drivers/gpu/drm/xen/xen_drm_front.c static int xen_drm_drv_dumb_create(struct drm_file *filp,
filp              417 drivers/gpu/drm/xen/xen_drm_front.c 	ret = drm_gem_handle_create(filp, obj, &args->handle);
filp              260 drivers/gpu/drm/xen/xen_drm_front_gem.c int xen_drm_front_gem_mmap(struct file *filp, struct vm_area_struct *vma)
filp              266 drivers/gpu/drm/xen/xen_drm_front_gem.c 	ret = drm_gem_mmap(filp, vma);
filp               35 drivers/gpu/drm/xen/xen_drm_front_gem.h int xen_drm_front_gem_mmap(struct file *filp, struct vm_area_struct *vma);
filp               54 drivers/gpu/drm/xen/xen_drm_front_kms.c fb_create(struct drm_device *dev, struct drm_file *filp,
filp               62 drivers/gpu/drm/xen/xen_drm_front_kms.c 	fb = drm_gem_fb_create_with_funcs(dev, filp, mode_cmd, &fb_funcs);
filp               66 drivers/gpu/drm/xen/xen_drm_front_kms.c 	gem_obj = drm_gem_object_lookup(filp, mode_cmd->handles[0]);
filp              775 drivers/gpu/vga/vga_switcheroo.c vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf,
filp             1872 drivers/hid/hid-core.c read_report_descriptor(struct file *filp, struct kobject *kobj,
filp              795 drivers/hwmon/fschmd.c static int watchdog_open(struct inode *inode, struct file *filp)
filp              825 drivers/hwmon/fschmd.c 	filp->private_data = data;
filp              827 drivers/hwmon/fschmd.c 	return stream_open(inode, filp);
filp              830 drivers/hwmon/fschmd.c static int watchdog_release(struct inode *inode, struct file *filp)
filp              832 drivers/hwmon/fschmd.c 	struct fschmd_data *data = filp->private_data;
filp              852 drivers/hwmon/fschmd.c static ssize_t watchdog_write(struct file *filp, const char __user *buf,
filp              856 drivers/hwmon/fschmd.c 	struct fschmd_data *data = filp->private_data;
filp              880 drivers/hwmon/fschmd.c static long watchdog_ioctl(struct file *filp, unsigned int cmd,
filp              889 drivers/hwmon/fschmd.c 	struct fschmd_data *data = filp->private_data;
filp             1289 drivers/hwmon/w83793.c static int watchdog_open(struct inode *inode, struct file *filp)
filp             1329 drivers/hwmon/w83793.c 	filp->private_data = data;
filp             1331 drivers/hwmon/w83793.c 	return stream_open(inode, filp);
filp             1334 drivers/hwmon/w83793.c static int watchdog_close(struct inode *inode, struct file *filp)
filp             1336 drivers/hwmon/w83793.c 	struct w83793_data *data = filp->private_data;
filp             1357 drivers/hwmon/w83793.c static ssize_t watchdog_write(struct file *filp, const char __user *buf,
filp             1361 drivers/hwmon/w83793.c 	struct w83793_data *data = filp->private_data;
filp             1385 drivers/hwmon/w83793.c static long watchdog_ioctl(struct file *filp, unsigned int cmd,
filp             1396 drivers/hwmon/w83793.c 	struct w83793_data *data = filp->private_data;
filp               93 drivers/i2c/i2c-slave-eeprom.c static ssize_t i2c_slave_eeprom_bin_read(struct file *filp, struct kobject *kobj,
filp              108 drivers/i2c/i2c-slave-eeprom.c static ssize_t i2c_slave_eeprom_bin_write(struct file *filp, struct kobject *kobj,
filp             1464 drivers/ide/ide-tape.c static int idetape_chrdev_open(struct inode *inode, struct file *filp)
filp             1483 drivers/ide/ide-tape.c 	filp->private_data = tape;
filp             1492 drivers/ide/ide-tape.c 	filp->f_mode &= ~(FMODE_PREAD | FMODE_PWRITE);
filp             1515 drivers/ide/ide-tape.c 	if ((filp->f_flags & O_ACCMODE) == O_RDONLY)
filp             1522 drivers/ide/ide-tape.c 		if ((filp->f_flags & O_ACCMODE) == O_WRONLY ||
filp             1523 drivers/ide/ide-tape.c 		    (filp->f_flags & O_ACCMODE) == O_RDWR) {
filp             1566 drivers/ide/ide-tape.c static int idetape_chrdev_release(struct inode *inode, struct file *filp)
filp             1568 drivers/ide/ide-tape.c 	struct ide_tape_obj *tape = filp->private_data;
filp               43 drivers/iio/iio_core.h __poll_t iio_buffer_poll(struct file *filp,
filp               45 drivers/iio/iio_core.h ssize_t iio_buffer_read_first_n_outer(struct file *filp, char __user *buf,
filp              102 drivers/iio/industrialio-buffer.c ssize_t iio_buffer_read_first_n_outer(struct file *filp, char __user *buf,
filp              105 drivers/iio/industrialio-buffer.c 	struct iio_dev *indio_dev = filp->private_data;
filp              127 drivers/iio/industrialio-buffer.c 	if (filp->f_flags & O_NONBLOCK)
filp              151 drivers/iio/industrialio-buffer.c 		if (ret == 0 && (filp->f_flags & O_NONBLOCK))
filp              168 drivers/iio/industrialio-buffer.c __poll_t iio_buffer_poll(struct file *filp,
filp              171 drivers/iio/industrialio-buffer.c 	struct iio_dev *indio_dev = filp->private_data;
filp              177 drivers/iio/industrialio-buffer.c 	poll_wait(filp, &rb->pollq, wait);
filp             1551 drivers/iio/industrialio-core.c static int iio_chrdev_open(struct inode *inode, struct file *filp)
filp             1561 drivers/iio/industrialio-core.c 	filp->private_data = indio_dev;
filp             1573 drivers/iio/industrialio-core.c static int iio_chrdev_release(struct inode *inode, struct file *filp)
filp             1585 drivers/iio/industrialio-core.c static long iio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp             1587 drivers/iio/industrialio-core.c 	struct iio_dev *indio_dev = filp->private_data;
filp              597 drivers/infiniband/core/rdma_core.c 	struct file *filp;
filp              605 drivers/infiniband/core/rdma_core.c 	filp = anon_inode_getfile(fd_type->name,
filp              609 drivers/infiniband/core/rdma_core.c 	if (IS_ERR(filp))
filp              610 drivers/infiniband/core/rdma_core.c 		return PTR_ERR(filp);
filp              612 drivers/infiniband/core/rdma_core.c 	uobj->object = filp;
filp              624 drivers/infiniband/core/rdma_core.c 	fd_install(fd, filp);
filp              687 drivers/infiniband/core/rdma_core.c 	struct file *filp = uobj->object;
filp              691 drivers/infiniband/core/rdma_core.c 	fput(filp);
filp               78 drivers/infiniband/core/ucma.c 	struct file		*filp;
filp              417 drivers/infiniband/core/ucma.c 		if (file->filp->f_flags & O_NONBLOCK)
filp             1700 drivers/infiniband/core/ucma.c static ssize_t ucma_write(struct file *filp, const char __user *buf,
filp             1703 drivers/infiniband/core/ucma.c 	struct ucma_file *file = filp->private_data;
filp             1707 drivers/infiniband/core/ucma.c 	if (!ib_safe_file_access(filp)) {
filp             1736 drivers/infiniband/core/ucma.c static __poll_t ucma_poll(struct file *filp, struct poll_table_struct *wait)
filp             1738 drivers/infiniband/core/ucma.c 	struct ucma_file *file = filp->private_data;
filp             1741 drivers/infiniband/core/ucma.c 	poll_wait(filp, &file->poll_wait, wait);
filp             1757 drivers/infiniband/core/ucma.c static int ucma_open(struct inode *inode, struct file *filp)
filp             1777 drivers/infiniband/core/ucma.c 	filp->private_data = file;
filp             1778 drivers/infiniband/core/ucma.c 	file->filp = filp;
filp             1780 drivers/infiniband/core/ucma.c 	return stream_open(inode, filp);
filp             1783 drivers/infiniband/core/ucma.c static int ucma_close(struct inode *inode, struct file *filp)
filp             1785 drivers/infiniband/core/ucma.c 	struct ucma_file *file = filp->private_data;
filp              370 drivers/infiniband/core/user_mad.c static ssize_t ib_umad_read(struct file *filp, char __user *buf,
filp              373 drivers/infiniband/core/user_mad.c 	struct ib_umad_file *file = filp->private_data;
filp              385 drivers/infiniband/core/user_mad.c 		if (filp->f_flags & O_NONBLOCK)
filp              483 drivers/infiniband/core/user_mad.c static ssize_t ib_umad_write(struct file *filp, const char __user *buf,
filp              486 drivers/infiniband/core/user_mad.c 	struct ib_umad_file *file = filp->private_data;
filp              649 drivers/infiniband/core/user_mad.c static __poll_t ib_umad_poll(struct file *filp, struct poll_table_struct *wait)
filp              651 drivers/infiniband/core/user_mad.c 	struct ib_umad_file *file = filp->private_data;
filp              656 drivers/infiniband/core/user_mad.c 	poll_wait(filp, &file->recv_wait, wait);
filp              928 drivers/infiniband/core/user_mad.c static long ib_umad_ioctl(struct file *filp, unsigned int cmd,
filp              933 drivers/infiniband/core/user_mad.c 		return ib_umad_reg_agent(filp->private_data, (void __user *) arg, 0);
filp              935 drivers/infiniband/core/user_mad.c 		return ib_umad_unreg_agent(filp->private_data, (__u32 __user *) arg);
filp              937 drivers/infiniband/core/user_mad.c 		return ib_umad_enable_pkey(filp->private_data);
filp              939 drivers/infiniband/core/user_mad.c 		return ib_umad_reg_agent2(filp->private_data, (void __user *) arg);
filp              946 drivers/infiniband/core/user_mad.c static long ib_umad_compat_ioctl(struct file *filp, unsigned int cmd,
filp              951 drivers/infiniband/core/user_mad.c 		return ib_umad_reg_agent(filp->private_data, compat_ptr(arg), 1);
filp              953 drivers/infiniband/core/user_mad.c 		return ib_umad_unreg_agent(filp->private_data, compat_ptr(arg));
filp              955 drivers/infiniband/core/user_mad.c 		return ib_umad_enable_pkey(filp->private_data);
filp              957 drivers/infiniband/core/user_mad.c 		return ib_umad_reg_agent2(filp->private_data, compat_ptr(arg));
filp              973 drivers/infiniband/core/user_mad.c static int ib_umad_open(struct inode *inode, struct file *filp)
filp             1006 drivers/infiniband/core/user_mad.c 	filp->private_data = file;
filp             1010 drivers/infiniband/core/user_mad.c 	stream_open(inode, filp);
filp             1016 drivers/infiniband/core/user_mad.c static int ib_umad_close(struct inode *inode, struct file *filp)
filp             1018 drivers/infiniband/core/user_mad.c 	struct ib_umad_file *file = filp->private_data;
filp             1064 drivers/infiniband/core/user_mad.c static int ib_umad_sm_open(struct inode *inode, struct file *filp)
filp             1074 drivers/infiniband/core/user_mad.c 	if (filp->f_flags & O_NONBLOCK) {
filp             1095 drivers/infiniband/core/user_mad.c 	filp->private_data = port;
filp             1097 drivers/infiniband/core/user_mad.c 	nonseekable_open(inode, filp);
filp             1107 drivers/infiniband/core/user_mad.c static int ib_umad_sm_close(struct inode *inode, struct file *filp)
filp             1109 drivers/infiniband/core/user_mad.c 	struct ib_umad_port *port = filp->private_data;
filp              249 drivers/infiniband/core/uverbs.h long ib_uverbs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
filp              212 drivers/infiniband/core/uverbs_cmd.c 	struct file			 *filp;
filp              260 drivers/infiniband/core/uverbs_cmd.c 	filp = ib_uverbs_alloc_async_event_file(file, ib_dev);
filp              261 drivers/infiniband/core/uverbs_cmd.c 	if (IS_ERR(filp)) {
filp              262 drivers/infiniband/core/uverbs_cmd.c 		ret = PTR_ERR(filp);
filp              278 drivers/infiniband/core/uverbs_cmd.c 	fd_install(resp.async_fd, filp);
filp              292 drivers/infiniband/core/uverbs_cmd.c 	fput(filp);
filp              620 drivers/infiniband/core/uverbs_ioctl.c long ib_uverbs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              622 drivers/infiniband/core/uverbs_ioctl.c 	struct ib_uverbs_file *file = filp->private_data;
filp              223 drivers/infiniband/core/uverbs_main.c 				    struct file *filp, char __user *buf,
filp              235 drivers/infiniband/core/uverbs_main.c 		if (filp->f_flags & O_NONBLOCK)
filp              279 drivers/infiniband/core/uverbs_main.c static ssize_t ib_uverbs_async_event_read(struct file *filp, char __user *buf,
filp              282 drivers/infiniband/core/uverbs_main.c 	struct ib_uverbs_async_event_file *file = filp->private_data;
filp              284 drivers/infiniband/core/uverbs_main.c 	return ib_uverbs_event_read(&file->ev_queue, filp, buf, count, pos,
filp              288 drivers/infiniband/core/uverbs_main.c static ssize_t ib_uverbs_comp_event_read(struct file *filp, char __user *buf,
filp              292 drivers/infiniband/core/uverbs_main.c 		filp->private_data;
filp              294 drivers/infiniband/core/uverbs_main.c 	return ib_uverbs_event_read(&comp_ev_file->ev_queue, filp, buf, count,
filp              300 drivers/infiniband/core/uverbs_main.c 					 struct file *filp,
filp              305 drivers/infiniband/core/uverbs_main.c 	poll_wait(filp, &ev_queue->poll_wait, wait);
filp              317 drivers/infiniband/core/uverbs_main.c static __poll_t ib_uverbs_async_event_poll(struct file *filp,
filp              320 drivers/infiniband/core/uverbs_main.c 	struct ib_uverbs_async_event_file *file = filp->private_data;
filp              322 drivers/infiniband/core/uverbs_main.c 	return ib_uverbs_event_poll(&file->ev_queue, filp, wait);
filp              325 drivers/infiniband/core/uverbs_main.c static __poll_t ib_uverbs_comp_event_poll(struct file *filp,
filp              329 drivers/infiniband/core/uverbs_main.c 		filp->private_data;
filp              331 drivers/infiniband/core/uverbs_main.c 	return ib_uverbs_event_poll(&comp_ev_file->ev_queue, filp, wait);
filp              334 drivers/infiniband/core/uverbs_main.c static int ib_uverbs_async_event_fasync(int fd, struct file *filp, int on)
filp              336 drivers/infiniband/core/uverbs_main.c 	struct ib_uverbs_async_event_file *file = filp->private_data;
filp              338 drivers/infiniband/core/uverbs_main.c 	return fasync_helper(fd, filp, on, &file->ev_queue.async_queue);
filp              341 drivers/infiniband/core/uverbs_main.c static int ib_uverbs_comp_event_fasync(int fd, struct file *filp, int on)
filp              344 drivers/infiniband/core/uverbs_main.c 		filp->private_data;
filp              346 drivers/infiniband/core/uverbs_main.c 	return fasync_helper(fd, filp, on, &comp_ev_file->ev_queue.async_queue);
filp              349 drivers/infiniband/core/uverbs_main.c static int ib_uverbs_async_event_close(struct inode *inode, struct file *filp)
filp              351 drivers/infiniband/core/uverbs_main.c 	struct ib_uverbs_async_event_file *file = filp->private_data;
filp              378 drivers/infiniband/core/uverbs_main.c static int ib_uverbs_comp_event_close(struct inode *inode, struct file *filp)
filp              380 drivers/infiniband/core/uverbs_main.c 	struct ib_uobject *uobj = filp->private_data;
filp              394 drivers/infiniband/core/uverbs_main.c 	uverbs_close_fd(filp);
filp              563 drivers/infiniband/core/uverbs_main.c 	struct file *filp;
filp              573 drivers/infiniband/core/uverbs_main.c 	filp = anon_inode_getfile("[infinibandevent]", &uverbs_async_event_fops,
filp              575 drivers/infiniband/core/uverbs_main.c 	if (IS_ERR(filp))
filp              592 drivers/infiniband/core/uverbs_main.c 	return filp;
filp              597 drivers/infiniband/core/uverbs_main.c 	return filp;
filp              659 drivers/infiniband/core/uverbs_main.c static ssize_t ib_uverbs_write(struct file *filp, const char __user *buf,
filp              662 drivers/infiniband/core/uverbs_main.c 	struct ib_uverbs_file *file = filp->private_data;
filp              671 drivers/infiniband/core/uverbs_main.c 	if (!ib_safe_file_access(filp)) {
filp              773 drivers/infiniband/core/uverbs_main.c static int ib_uverbs_mmap(struct file *filp, struct vm_area_struct *vma)
filp              775 drivers/infiniband/core/uverbs_main.c 	struct ib_uverbs_file *file = filp->private_data;
filp             1037 drivers/infiniband/core/uverbs_main.c static int ib_uverbs_open(struct inode *inode, struct file *filp)
filp             1096 drivers/infiniband/core/uverbs_main.c 	filp->private_data = file;
filp             1103 drivers/infiniband/core/uverbs_main.c 	return stream_open(inode, filp);
filp             1118 drivers/infiniband/core/uverbs_main.c static int ib_uverbs_close(struct inode *inode, struct file *filp)
filp             1120 drivers/infiniband/core/uverbs_main.c 	struct ib_uverbs_file *file = filp->private_data;
filp               60 drivers/infiniband/hw/hfi1/sysfs.c static ssize_t read_cc_table_bin(struct file *filp, struct kobject *kobj,
filp              109 drivers/infiniband/hw/hfi1/sysfs.c static ssize_t read_cc_setting_bin(struct file *filp, struct kobject *kobj,
filp              329 drivers/infiniband/hw/mlx5/cong.c static ssize_t set_param(struct file *filp, const char __user *buf,
filp              332 drivers/infiniband/hw/mlx5/cong.c 	struct mlx5_ib_dbg_param *param = filp->private_data;
filp              353 drivers/infiniband/hw/mlx5/cong.c static ssize_t get_param(struct file *filp, char __user *buf, size_t count,
filp              356 drivers/infiniband/hw/mlx5/cong.c 	struct mlx5_ib_dbg_param *param = filp->private_data;
filp               75 drivers/infiniband/hw/mlx5/devx.c 	struct file *filp; /* Upon hot unplug we need a direct access to */
filp             2035 drivers/infiniband/hw/mlx5/devx.c 		event_sub->filp = fd_uobj->object;
filp             2351 drivers/infiniband/hw/mlx5/devx.c 		if (!get_file_rcu(item->filp))
filp             2356 drivers/infiniband/hw/mlx5/devx.c 			fput(item->filp);
filp             2361 drivers/infiniband/hw/mlx5/devx.c 		fput(item->filp);
filp             2445 drivers/infiniband/hw/mlx5/devx.c static ssize_t devx_async_cmd_event_read(struct file *filp, char __user *buf,
filp             2448 drivers/infiniband/hw/mlx5/devx.c 	struct devx_async_cmd_event_file *comp_ev_file = filp->private_data;
filp             2459 drivers/infiniband/hw/mlx5/devx.c 		if (filp->f_flags & O_NONBLOCK)
filp             2499 drivers/infiniband/hw/mlx5/devx.c static int devx_async_cmd_event_close(struct inode *inode, struct file *filp)
filp             2501 drivers/infiniband/hw/mlx5/devx.c 	struct ib_uobject *uobj = filp->private_data;
filp             2512 drivers/infiniband/hw/mlx5/devx.c 	uverbs_close_fd(filp);
filp             2516 drivers/infiniband/hw/mlx5/devx.c static __poll_t devx_async_cmd_event_poll(struct file *filp,
filp             2519 drivers/infiniband/hw/mlx5/devx.c 	struct devx_async_cmd_event_file *comp_ev_file = filp->private_data;
filp             2523 drivers/infiniband/hw/mlx5/devx.c 	poll_wait(filp, &ev_queue->poll_wait, wait);
filp             2543 drivers/infiniband/hw/mlx5/devx.c static ssize_t devx_async_event_read(struct file *filp, char __user *buf,
filp             2546 drivers/infiniband/hw/mlx5/devx.c 	struct devx_async_event_file *ev_file = filp->private_data;
filp             2572 drivers/infiniband/hw/mlx5/devx.c 		if (filp->f_flags & O_NONBLOCK)
filp             2625 drivers/infiniband/hw/mlx5/devx.c static __poll_t devx_async_event_poll(struct file *filp,
filp             2628 drivers/infiniband/hw/mlx5/devx.c 	struct devx_async_event_file *ev_file = filp->private_data;
filp             2631 drivers/infiniband/hw/mlx5/devx.c 	poll_wait(filp, &ev_file->poll_wait, wait);
filp             2643 drivers/infiniband/hw/mlx5/devx.c static int devx_async_event_close(struct inode *inode, struct file *filp)
filp             2645 drivers/infiniband/hw/mlx5/devx.c 	struct devx_async_event_file *ev_file = filp->private_data;
filp             2674 drivers/infiniband/hw/mlx5/devx.c 	uverbs_close_fd(filp);
filp             5725 drivers/infiniband/hw/mlx5/main.c static ssize_t delay_drop_timeout_read(struct file *filp, char __user *buf,
filp             5728 drivers/infiniband/hw/mlx5/main.c 	struct mlx5_ib_delay_drop *delay_drop = filp->private_data;
filp             5736 drivers/infiniband/hw/mlx5/main.c static ssize_t delay_drop_timeout_write(struct file *filp, const char __user *buf,
filp             5739 drivers/infiniband/hw/mlx5/main.c 	struct mlx5_ib_delay_drop *delay_drop = filp->private_data;
filp              230 drivers/infiniband/hw/mlx5/mr.c static ssize_t size_write(struct file *filp, const char __user *buf,
filp              233 drivers/infiniband/hw/mlx5/mr.c 	struct mlx5_cache_ent *ent = filp->private_data;
filp              267 drivers/infiniband/hw/mlx5/mr.c static ssize_t size_read(struct file *filp, char __user *buf, size_t count,
filp              270 drivers/infiniband/hw/mlx5/mr.c 	struct mlx5_cache_ent *ent = filp->private_data;
filp              288 drivers/infiniband/hw/mlx5/mr.c static ssize_t limit_write(struct file *filp, const char __user *buf,
filp              291 drivers/infiniband/hw/mlx5/mr.c 	struct mlx5_cache_ent *ent = filp->private_data;
filp              321 drivers/infiniband/hw/mlx5/mr.c static ssize_t limit_read(struct file *filp, char __user *buf, size_t count,
filp              324 drivers/infiniband/hw/mlx5/mr.c 	struct mlx5_cache_ent *ent = filp->private_data;
filp              634 drivers/infiniband/hw/ocrdma/ocrdma_stats.c static ssize_t ocrdma_dbgfs_ops_write(struct file *filp,
filp              641 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 	struct ocrdma_stats *pstats = filp->private_data;
filp              689 drivers/infiniband/hw/ocrdma/ocrdma_stats.c static ssize_t ocrdma_dbgfs_ops_read(struct file *filp, char __user *buffer,
filp              692 drivers/infiniband/hw/ocrdma/ocrdma_stats.c 	struct ocrdma_stats *pstats = filp->private_data;
filp              211 drivers/infiniband/hw/qib/qib_sysfs.c static ssize_t read_cc_table_bin(struct file *filp, struct kobject *kobj,
filp              261 drivers/infiniband/hw/qib/qib_sysfs.c static ssize_t read_cc_setting_bin(struct file *filp, struct kobject *kobj,
filp               76 drivers/input/misc/hp_sdc_rtc.c static int hp_sdc_rtc_fasync (int fd, struct file *filp, int on);
filp              426 drivers/input/misc/hp_sdc_rtc.c static int hp_sdc_rtc_fasync (int fd, struct file *filp, int on)
filp              428 drivers/input/misc/hp_sdc_rtc.c         return fasync_helper (fd, filp, on, &hp_sdc_rtc_async_queue);
filp              122 drivers/ipack/devices/ipoctal.c static void ipoctal_close(struct tty_struct *tty, struct file *filp)
filp              126 drivers/ipack/devices/ipoctal.c 	tty_port_close(&channel->tty_port, tty, filp);
filp             1026 drivers/isdn/capi/capi.c static int capinc_tty_open(struct tty_struct *tty, struct file *filp)
filp             1031 drivers/isdn/capi/capi.c 	err = tty_port_open(&mp->port, tty, filp);
filp             1039 drivers/isdn/capi/capi.c static void capinc_tty_close(struct tty_struct *tty, struct file *filp)
filp             1043 drivers/isdn/capi/capi.c 	tty_port_close(&mp->port, tty, filp);
filp             2240 drivers/macintosh/via-pmu.c pmu_fpoll(struct file *filp, poll_table *wait)
filp             2242 drivers/macintosh/via-pmu.c 	struct pmu_private *pp = filp->private_data;
filp             2248 drivers/macintosh/via-pmu.c 	poll_wait(filp, &pp->wait, wait);
filp             2365 drivers/macintosh/via-pmu.c static int pmu_ioctl(struct file *filp,
filp             2409 drivers/macintosh/via-pmu.c 		struct pmu_private *pp = filp->private_data;
filp             2430 drivers/macintosh/via-pmu.c static long pmu_unlocked_ioctl(struct file *filp,
filp             2436 drivers/macintosh/via-pmu.c 	ret = pmu_ioctl(filp, cmd, arg);
filp             2450 drivers/macintosh/via-pmu.c static long compat_pmu_ioctl (struct file *filp, u_int cmd, u_long arg)
filp             2476 drivers/macintosh/via-pmu.c 	return pmu_unlocked_ioctl(filp, cmd, (unsigned long)compat_ptr(arg));
filp              424 drivers/mailbox/bcm-pdc-mailbox.c static ssize_t pdc_debugfs_read(struct file *filp, char __user *ubuf,
filp              437 drivers/mailbox/bcm-pdc-mailbox.c 	pdcs = filp->private_data;
filp               46 drivers/mailbox/mailbox-test.c static ssize_t mbox_test_signal_write(struct file *filp,
filp               50 drivers/mailbox/mailbox-test.c 	struct mbox_test_device *tdev = filp->private_data;
filp               86 drivers/mailbox/mailbox-test.c static int mbox_test_message_fasync(int fd, struct file *filp, int on)
filp               88 drivers/mailbox/mailbox-test.c 	struct mbox_test_device *tdev = filp->private_data;
filp               90 drivers/mailbox/mailbox-test.c 	return fasync_helper(fd, filp, on, &tdev->async_queue);
filp               93 drivers/mailbox/mailbox-test.c static ssize_t mbox_test_message_write(struct file *filp,
filp               97 drivers/mailbox/mailbox-test.c 	struct mbox_test_device *tdev = filp->private_data;
filp              162 drivers/mailbox/mailbox-test.c static ssize_t mbox_test_message_read(struct file *filp, char __user *userbuf,
filp              165 drivers/mailbox/mailbox-test.c 	struct mbox_test_device *tdev = filp->private_data;
filp              192 drivers/mailbox/mailbox-test.c 		if (filp->f_flags & O_NONBLOCK) {
filp              235 drivers/mailbox/mailbox-test.c mbox_test_message_poll(struct file *filp, struct poll_table_struct *wait)
filp              237 drivers/mailbox/mailbox-test.c 	struct mbox_test_device *tdev = filp->private_data;
filp              239 drivers/mailbox/mailbox-test.c 	poll_wait(filp, &tdev->waitq, wait);
filp              467 drivers/md/dm-ioctl.c typedef int (*ioctl_fn)(struct file *filp, struct dm_ioctl *param, size_t param_size);
filp              469 drivers/md/dm-ioctl.c static int remove_all(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp              506 drivers/md/dm-ioctl.c static int list_devices(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp              657 drivers/md/dm-ioctl.c static int list_versions(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp              662 drivers/md/dm-ioctl.c static int get_target_version(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp              771 drivers/md/dm-ioctl.c static int dev_create(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp              863 drivers/md/dm-ioctl.c static int dev_remove(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp              928 drivers/md/dm-ioctl.c static int dev_rename(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp              958 drivers/md/dm-ioctl.c static int dev_set_geometry(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp             1107 drivers/md/dm-ioctl.c static int dev_suspend(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp             1119 drivers/md/dm-ioctl.c static int dev_status(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp             1210 drivers/md/dm-ioctl.c static int dev_wait(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp             1251 drivers/md/dm-ioctl.c static int dev_arm_poll(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp             1253 drivers/md/dm-ioctl.c 	struct dm_file *priv = filp->private_data;
filp             1329 drivers/md/dm-ioctl.c static int table_load(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp             1417 drivers/md/dm-ioctl.c static int table_clear(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp             1491 drivers/md/dm-ioctl.c static int table_deps(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp             1517 drivers/md/dm-ioctl.c static int table_status(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp             1572 drivers/md/dm-ioctl.c static int target_message(struct file *filp, struct dm_ioctl *param, size_t param_size)
filp             1929 drivers/md/dm-ioctl.c static int dm_open(struct inode *inode, struct file *filp)
filp             1934 drivers/md/dm-ioctl.c 	r = nonseekable_open(inode, filp);
filp             1938 drivers/md/dm-ioctl.c 	priv = filp->private_data = kmalloc(sizeof(struct dm_file), GFP_KERNEL);
filp             1947 drivers/md/dm-ioctl.c static int dm_release(struct inode *inode, struct file *filp)
filp             1949 drivers/md/dm-ioctl.c 	kfree(filp->private_data);
filp             1953 drivers/md/dm-ioctl.c static __poll_t dm_poll(struct file *filp, poll_table *wait)
filp             1955 drivers/md/dm-ioctl.c 	struct dm_file *priv = filp->private_data;
filp             1958 drivers/md/dm-ioctl.c 	poll_wait(filp, &dm_global_eventq, wait);
filp             8121 drivers/md/md.c static __poll_t mdstat_poll(struct file *filp, poll_table *wait)
filp             8123 drivers/md/md.c 	struct seq_file *seq = filp->private_data;
filp             8128 drivers/md/md.c 	poll_wait(filp, &md_event_waiters, wait);
filp               25 drivers/media/cec/cec-api.c static inline struct cec_devnode *cec_devnode_data(struct file *filp)
filp               27 drivers/media/cec/cec-api.c 	struct cec_fh *fh = filp->private_data;
filp               34 drivers/media/cec/cec-api.c static __poll_t cec_poll(struct file *filp,
filp               37 drivers/media/cec/cec-api.c 	struct cec_fh *fh = filp->private_data;
filp               41 drivers/media/cec/cec-api.c 	poll_wait(filp, &fh->wait, poll);
filp              483 drivers/media/cec/cec-api.c static long cec_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              485 drivers/media/cec/cec-api.c 	struct cec_fh *fh = filp->private_data;
filp              487 drivers/media/cec/cec-api.c 	bool block = !(filp->f_flags & O_NONBLOCK);
filp              529 drivers/media/cec/cec-api.c static int cec_open(struct inode *inode, struct file *filp)
filp              576 drivers/media/cec/cec-api.c 	filp->private_data = fh;
filp              608 drivers/media/cec/cec-api.c static int cec_release(struct inode *inode, struct file *filp)
filp              610 drivers/media/cec/cec-api.c 	struct cec_devnode *devnode = cec_devnode_data(filp);
filp              612 drivers/media/cec/cec-api.c 	struct cec_fh *fh = filp->private_data;
filp              669 drivers/media/cec/cec-api.c 	filp->private_data = NULL;
filp              689 drivers/media/i2c/video-i2c.c static int video_i2c_g_parm(struct file *filp, void *priv,
filp              692 drivers/media/i2c/video-i2c.c 	struct video_i2c_data *data = video_drvdata(filp);
filp              704 drivers/media/i2c/video-i2c.c static int video_i2c_s_parm(struct file *filp, void *priv,
filp              707 drivers/media/i2c/video-i2c.c 	struct video_i2c_data *data = video_drvdata(filp);
filp              717 drivers/media/i2c/video-i2c.c 	return video_i2c_g_parm(filp, priv, parm);
filp               48 drivers/media/mc/mc-device.c static int media_device_open(struct file *filp)
filp               53 drivers/media/mc/mc-device.c static int media_device_close(struct file *filp)
filp              437 drivers/media/mc/mc-device.c static long media_device_ioctl(struct file *filp, unsigned int cmd,
filp              440 drivers/media/mc/mc-device.c 	struct media_devnode *devnode = media_devnode_data(filp);
filp              521 drivers/media/mc/mc-device.c static long media_device_compat_ioctl(struct file *filp, unsigned int cmd,
filp              524 drivers/media/mc/mc-device.c 	struct media_devnode *devnode = media_devnode_data(filp);
filp              537 drivers/media/mc/mc-device.c 		return media_device_ioctl(filp, cmd, arg);
filp               70 drivers/media/mc/mc-devnode.c static ssize_t media_read(struct file *filp, char __user *buf,
filp               73 drivers/media/mc/mc-devnode.c 	struct media_devnode *devnode = media_devnode_data(filp);
filp               79 drivers/media/mc/mc-devnode.c 	return devnode->fops->read(filp, buf, sz, off);
filp               82 drivers/media/mc/mc-devnode.c static ssize_t media_write(struct file *filp, const char __user *buf,
filp               85 drivers/media/mc/mc-devnode.c 	struct media_devnode *devnode = media_devnode_data(filp);
filp               91 drivers/media/mc/mc-devnode.c 	return devnode->fops->write(filp, buf, sz, off);
filp               94 drivers/media/mc/mc-devnode.c static __poll_t media_poll(struct file *filp,
filp               97 drivers/media/mc/mc-devnode.c 	struct media_devnode *devnode = media_devnode_data(filp);
filp              103 drivers/media/mc/mc-devnode.c 	return devnode->fops->poll(filp, poll);
filp              107 drivers/media/mc/mc-devnode.c __media_ioctl(struct file *filp, unsigned int cmd, unsigned long arg,
filp              108 drivers/media/mc/mc-devnode.c 	      long (*ioctl_func)(struct file *filp, unsigned int cmd,
filp              111 drivers/media/mc/mc-devnode.c 	struct media_devnode *devnode = media_devnode_data(filp);
filp              119 drivers/media/mc/mc-devnode.c 	return ioctl_func(filp, cmd, arg);
filp              122 drivers/media/mc/mc-devnode.c static long media_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              124 drivers/media/mc/mc-devnode.c 	struct media_devnode *devnode = media_devnode_data(filp);
filp              126 drivers/media/mc/mc-devnode.c 	return __media_ioctl(filp, cmd, arg, devnode->fops->ioctl);
filp              131 drivers/media/mc/mc-devnode.c static long media_compat_ioctl(struct file *filp, unsigned int cmd,
filp              134 drivers/media/mc/mc-devnode.c 	struct media_devnode *devnode = media_devnode_data(filp);
filp              136 drivers/media/mc/mc-devnode.c 	return __media_ioctl(filp, cmd, arg, devnode->fops->compat_ioctl);
filp              142 drivers/media/mc/mc-devnode.c static int media_open(struct inode *inode, struct file *filp)
filp              165 drivers/media/mc/mc-devnode.c 	filp->private_data = devnode;
filp              168 drivers/media/mc/mc-devnode.c 		ret = devnode->fops->open(filp);
filp              171 drivers/media/mc/mc-devnode.c 			filp->private_data = NULL;
filp              180 drivers/media/mc/mc-devnode.c static int media_release(struct inode *inode, struct file *filp)
filp              182 drivers/media/mc/mc-devnode.c 	struct media_devnode *devnode = media_devnode_data(filp);
filp              185 drivers/media/mc/mc-devnode.c 		devnode->fops->release(filp);
filp              187 drivers/media/mc/mc-devnode.c 	filp->private_data = NULL;
filp               85 drivers/media/mc/mc-request.c static int media_request_close(struct inode *inode, struct file *filp)
filp               87 drivers/media/mc/mc-request.c 	struct media_request *req = filp->private_data;
filp               93 drivers/media/mc/mc-request.c static __poll_t media_request_poll(struct file *filp,
filp               96 drivers/media/mc/mc-request.c 	struct media_request *req = filp->private_data;
filp              103 drivers/media/mc/mc-request.c 	poll_wait(filp, &req->poll_wait, wait);
filp              221 drivers/media/mc/mc-request.c static long media_request_ioctl(struct file *filp, unsigned int cmd,
filp              224 drivers/media/mc/mc-request.c 	struct media_request *req = filp->private_data;
filp              291 drivers/media/mc/mc-request.c 	struct file *filp;
filp              303 drivers/media/mc/mc-request.c 	filp = anon_inode_getfile("request", &request_fops, NULL, O_CLOEXEC);
filp              304 drivers/media/mc/mc-request.c 	if (IS_ERR(filp)) {
filp              305 drivers/media/mc/mc-request.c 		ret = PTR_ERR(filp);
filp              318 drivers/media/mc/mc-request.c 	filp->private_data = req;
filp              335 drivers/media/mc/mc-request.c 	fd_install(fd, filp);
filp              340 drivers/media/mc/mc-request.c 	fput(filp);
filp              571 drivers/media/pci/cx18/cx18-fileops.c ssize_t cx18_v4l2_read(struct file *filp, char __user *buf, size_t count,
filp              574 drivers/media/pci/cx18/cx18-fileops.c 	struct cx18_open_id *id = file2id(filp);
filp              590 drivers/media/pci/cx18/cx18-fileops.c 			filp->f_flags & O_NONBLOCK);
filp              593 drivers/media/pci/cx18/cx18-fileops.c 	return cx18_read_pos(s, buf, count, pos, filp->f_flags & O_NONBLOCK);
filp              596 drivers/media/pci/cx18/cx18-fileops.c __poll_t cx18_v4l2_enc_poll(struct file *filp, poll_table *wait)
filp              599 drivers/media/pci/cx18/cx18-fileops.c 	struct cx18_open_id *id = file2id(filp);
filp              623 drivers/media/pci/cx18/cx18-fileops.c 		__poll_t videobuf_poll = videobuf_poll_stream(filp, &s->vbuf_q, wait);
filp              637 drivers/media/pci/cx18/cx18-fileops.c 		poll_wait(filp, &s->waitq, wait);
filp              738 drivers/media/pci/cx18/cx18-fileops.c int cx18_v4l2_close(struct file *filp)
filp              740 drivers/media/pci/cx18/cx18-fileops.c 	struct v4l2_fh *fh = filp->private_data;
filp              750 drivers/media/pci/cx18/cx18-fileops.c 			v4l2_fh_is_singular_file(filp)) {
filp              780 drivers/media/pci/cx18/cx18-fileops.c static int cx18_serialized_open(struct cx18_stream *s, struct file *filp)
filp              799 drivers/media/pci/cx18/cx18-fileops.c 	filp->private_data = &item->fh;
filp              803 drivers/media/pci/cx18/cx18-fileops.c 			v4l2_fh_is_singular_file(filp)) {
filp              829 drivers/media/pci/cx18/cx18-fileops.c int cx18_v4l2_open(struct file *filp)
filp              832 drivers/media/pci/cx18/cx18-fileops.c 	struct video_device *video_dev = video_devdata(filp);
filp              843 drivers/media/pci/cx18/cx18-fileops.c 	res = cx18_serialized_open(s, filp);
filp               11 drivers/media/pci/cx18/cx18-fileops.h int cx18_v4l2_open(struct file *filp);
filp               12 drivers/media/pci/cx18/cx18-fileops.h ssize_t cx18_v4l2_read(struct file *filp, char __user *buf, size_t count,
filp               14 drivers/media/pci/cx18/cx18-fileops.h ssize_t cx18_v4l2_write(struct file *filp, const char __user *buf, size_t count,
filp               16 drivers/media/pci/cx18/cx18-fileops.h int cx18_v4l2_close(struct file *filp);
filp               17 drivers/media/pci/cx18/cx18-fileops.h __poll_t cx18_v4l2_enc_poll(struct file *filp, poll_table *wait);
filp              292 drivers/media/pci/dt3155/dt3155.c static int dt3155_querycap(struct file *filp, void *p,
filp              295 drivers/media/pci/dt3155/dt3155.c 	struct dt3155_priv *pd = video_drvdata(filp);
filp              303 drivers/media/pci/dt3155/dt3155.c static int dt3155_enum_fmt_vid_cap(struct file *filp,
filp              312 drivers/media/pci/dt3155/dt3155.c static int dt3155_fmt_vid_cap(struct file *filp, void *p, struct v4l2_format *f)
filp              314 drivers/media/pci/dt3155/dt3155.c 	struct dt3155_priv *pd = video_drvdata(filp);
filp              326 drivers/media/pci/dt3155/dt3155.c static int dt3155_g_std(struct file *filp, void *p, v4l2_std_id *norm)
filp              328 drivers/media/pci/dt3155/dt3155.c 	struct dt3155_priv *pd = video_drvdata(filp);
filp              334 drivers/media/pci/dt3155/dt3155.c static int dt3155_s_std(struct file *filp, void *p, v4l2_std_id norm)
filp              336 drivers/media/pci/dt3155/dt3155.c 	struct dt3155_priv *pd = video_drvdata(filp);
filp              355 drivers/media/pci/dt3155/dt3155.c static int dt3155_enum_input(struct file *filp, void *p,
filp              371 drivers/media/pci/dt3155/dt3155.c static int dt3155_g_input(struct file *filp, void *p, unsigned int *i)
filp              373 drivers/media/pci/dt3155/dt3155.c 	struct dt3155_priv *pd = video_drvdata(filp);
filp              379 drivers/media/pci/dt3155/dt3155.c static int dt3155_s_input(struct file *filp, void *p, unsigned int i)
filp              381 drivers/media/pci/dt3155/dt3155.c 	struct dt3155_priv *pd = video_drvdata(filp);
filp              493 drivers/media/pci/ivtv/ivtv-fileops.c ssize_t ivtv_v4l2_read(struct file * filp, char __user *buf, size_t count, loff_t * pos)
filp              495 drivers/media/pci/ivtv/ivtv-fileops.c 	struct ivtv_open_id *id = fh2id(filp->private_data);
filp              506 drivers/media/pci/ivtv/ivtv-fileops.c 		rc = ivtv_read_pos(s, buf, count, pos, filp->f_flags & O_NONBLOCK);
filp              536 drivers/media/pci/ivtv/ivtv-fileops.c static ssize_t ivtv_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos)
filp              538 drivers/media/pci/ivtv/ivtv-fileops.c 	struct ivtv_open_id *id = fh2id(filp->private_data);
filp              619 drivers/media/pci/ivtv/ivtv-fileops.c 		if (filp->f_flags & O_NONBLOCK)
filp              702 drivers/media/pci/ivtv/ivtv-fileops.c 	if (count && !(filp->f_flags & O_NONBLOCK))
filp              708 drivers/media/pci/ivtv/ivtv-fileops.c ssize_t ivtv_v4l2_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *pos)
filp              710 drivers/media/pci/ivtv/ivtv-fileops.c 	struct ivtv_open_id *id = fh2id(filp->private_data);
filp              716 drivers/media/pci/ivtv/ivtv-fileops.c 	res = ivtv_write(filp, user_buf, count, pos);
filp              721 drivers/media/pci/ivtv/ivtv-fileops.c __poll_t ivtv_v4l2_dec_poll(struct file *filp, poll_table *wait)
filp              723 drivers/media/pci/ivtv/ivtv-fileops.c 	struct ivtv_open_id *id = fh2id(filp->private_data);
filp              734 drivers/media/pci/ivtv/ivtv-fileops.c 		poll_wait(filp, &id->fh.wait, wait);
filp              742 drivers/media/pci/ivtv/ivtv-fileops.c 		poll_wait(filp, &s->waitq, wait);
filp              755 drivers/media/pci/ivtv/ivtv-fileops.c __poll_t ivtv_v4l2_enc_poll(struct file *filp, poll_table *wait)
filp              758 drivers/media/pci/ivtv/ivtv-fileops.c 	struct ivtv_open_id *id = fh2id(filp->private_data);
filp              783 drivers/media/pci/ivtv/ivtv-fileops.c 	poll_wait(filp, &s->waitq, wait);
filp              787 drivers/media/pci/ivtv/ivtv-fileops.c 		poll_wait(filp, &id->fh.wait, wait);
filp              866 drivers/media/pci/ivtv/ivtv-fileops.c int ivtv_v4l2_close(struct file *filp)
filp              868 drivers/media/pci/ivtv/ivtv-fileops.c 	struct v4l2_fh *fh = filp->private_data;
filp              879 drivers/media/pci/ivtv/ivtv-fileops.c 			v4l2_fh_is_singular_file(filp)) {
filp              931 drivers/media/pci/ivtv/ivtv-fileops.c static int ivtv_open(struct file *filp)
filp              933 drivers/media/pci/ivtv/ivtv-fileops.c 	struct video_device *vdev = video_devdata(filp);
filp              990 drivers/media/pci/ivtv/ivtv-fileops.c 	filp->private_data = &item->fh;
filp              994 drivers/media/pci/ivtv/ivtv-fileops.c 			v4l2_fh_is_singular_file(filp)) {
filp             1034 drivers/media/pci/ivtv/ivtv-fileops.c int ivtv_v4l2_open(struct file *filp)
filp             1036 drivers/media/pci/ivtv/ivtv-fileops.c 	struct video_device *vdev = video_devdata(filp);
filp             1041 drivers/media/pci/ivtv/ivtv-fileops.c 	res = ivtv_open(filp);
filp               13 drivers/media/pci/ivtv/ivtv-fileops.h int ivtv_v4l2_open(struct file *filp);
filp               14 drivers/media/pci/ivtv/ivtv-fileops.h ssize_t ivtv_v4l2_read(struct file *filp, char __user *buf, size_t count,
filp               16 drivers/media/pci/ivtv/ivtv-fileops.h ssize_t ivtv_v4l2_write(struct file *filp, const char __user *buf, size_t count,
filp               18 drivers/media/pci/ivtv/ivtv-fileops.h int ivtv_v4l2_close(struct file *filp);
filp               19 drivers/media/pci/ivtv/ivtv-fileops.h __poll_t ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait);
filp               20 drivers/media/pci/ivtv/ivtv-fileops.h __poll_t ivtv_v4l2_dec_poll(struct file *filp, poll_table * wait);
filp             1630 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_decoder_ioctls(struct file *filp, unsigned int cmd, void *arg)
filp             1632 drivers/media/pci/ivtv/ivtv-ioctl.c 	struct ivtv_open_id *id = fh2id(filp->private_data);
filp             1636 drivers/media/pci/ivtv/ivtv-ioctl.c 	int nonblocking = filp->f_flags & O_NONBLOCK;
filp             1356 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_vidioc_enum_fmt_vid_cap(struct file *filp,
filp             1365 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_vidioc_try_fmt_vid_cap(struct file *filp, void *priv,
filp             1368 drivers/media/platform/marvell-ccic/mcam-core.c 	struct mcam_camera *cam = video_drvdata(filp);
filp             1396 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_vidioc_s_fmt_vid_cap(struct file *filp, void *priv,
filp             1399 drivers/media/platform/marvell-ccic/mcam-core.c 	struct mcam_camera *cam = video_drvdata(filp);
filp             1415 drivers/media/platform/marvell-ccic/mcam-core.c 	ret = mcam_vidioc_try_fmt_vid_cap(filp, priv, fmt);
filp             1443 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_vidioc_g_fmt_vid_cap(struct file *filp, void *priv,
filp             1446 drivers/media/platform/marvell-ccic/mcam-core.c 	struct mcam_camera *cam = video_drvdata(filp);
filp             1455 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_vidioc_enum_input(struct file *filp, void *priv,
filp             1466 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_vidioc_g_input(struct file *filp, void *priv, unsigned int *i)
filp             1472 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_vidioc_s_input(struct file *filp, void *priv, unsigned int i)
filp             1483 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_vidioc_g_parm(struct file *filp, void *priv,
filp             1486 drivers/media/platform/marvell-ccic/mcam-core.c 	struct mcam_camera *cam = video_drvdata(filp);
filp             1489 drivers/media/platform/marvell-ccic/mcam-core.c 	ret = v4l2_g_parm_cap(video_devdata(filp), cam->sensor, a);
filp             1494 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_vidioc_s_parm(struct file *filp, void *priv,
filp             1497 drivers/media/platform/marvell-ccic/mcam-core.c 	struct mcam_camera *cam = video_drvdata(filp);
filp             1500 drivers/media/platform/marvell-ccic/mcam-core.c 	ret = v4l2_s_parm_cap(video_devdata(filp), cam->sensor, a);
filp             1505 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_vidioc_enum_framesizes(struct file *filp, void *priv,
filp             1508 drivers/media/platform/marvell-ccic/mcam-core.c 	struct mcam_camera *cam = video_drvdata(filp);
filp             1540 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_vidioc_enum_frameintervals(struct file *filp, void *priv,
filp             1543 drivers/media/platform/marvell-ccic/mcam-core.c 	struct mcam_camera *cam = video_drvdata(filp);
filp             1623 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_v4l_open(struct file *filp)
filp             1625 drivers/media/platform/marvell-ccic/mcam-core.c 	struct mcam_camera *cam = video_drvdata(filp);
filp             1629 drivers/media/platform/marvell-ccic/mcam-core.c 	ret = v4l2_fh_open(filp);
filp             1632 drivers/media/platform/marvell-ccic/mcam-core.c 	if (v4l2_fh_is_singular_file(filp)) {
filp             1643 drivers/media/platform/marvell-ccic/mcam-core.c 		v4l2_fh_release(filp);
filp             1648 drivers/media/platform/marvell-ccic/mcam-core.c static int mcam_v4l_release(struct file *filp)
filp             1650 drivers/media/platform/marvell-ccic/mcam-core.c 	struct mcam_camera *cam = video_drvdata(filp);
filp             1654 drivers/media/platform/marvell-ccic/mcam-core.c 	last_open = v4l2_fh_is_singular_file(filp);
filp             1655 drivers/media/platform/marvell-ccic/mcam-core.c 	_vb2_fop_release(filp, NULL);
filp             1842 drivers/media/platform/pxa_camera.c static int pxac_vidioc_enum_fmt_vid_cap(struct file *filp, void  *priv,
filp             1845 drivers/media/platform/pxa_camera.c 	struct pxa_camera_dev *pcdev = video_drvdata(filp);
filp             1858 drivers/media/platform/pxa_camera.c static int pxac_vidioc_g_fmt_vid_cap(struct file *filp, void *priv,
filp             1861 drivers/media/platform/pxa_camera.c 	struct pxa_camera_dev *pcdev = video_drvdata(filp);
filp             1876 drivers/media/platform/pxa_camera.c static int pxac_vidioc_try_fmt_vid_cap(struct file *filp, void *priv,
filp             1879 drivers/media/platform/pxa_camera.c 	struct pxa_camera_dev *pcdev = video_drvdata(filp);
filp             1940 drivers/media/platform/pxa_camera.c static int pxac_vidioc_s_fmt_vid_cap(struct file *filp, void *priv,
filp             1943 drivers/media/platform/pxa_camera.c 	struct pxa_camera_dev *pcdev = video_drvdata(filp);
filp             1963 drivers/media/platform/pxa_camera.c 	ret = pxac_vidioc_try_fmt_vid_cap(filp, priv, f);
filp             2041 drivers/media/platform/pxa_camera.c static int pxac_fops_camera_open(struct file *filp)
filp             2043 drivers/media/platform/pxa_camera.c 	struct pxa_camera_dev *pcdev = video_drvdata(filp);
filp             2047 drivers/media/platform/pxa_camera.c 	ret = v4l2_fh_open(filp);
filp             2051 drivers/media/platform/pxa_camera.c 	if (!v4l2_fh_is_singular_file(filp))
filp             2056 drivers/media/platform/pxa_camera.c 		v4l2_fh_release(filp);
filp             2062 drivers/media/platform/pxa_camera.c static int pxac_fops_camera_release(struct file *filp)
filp             2064 drivers/media/platform/pxa_camera.c 	struct pxa_camera_dev *pcdev = video_drvdata(filp);
filp             2070 drivers/media/platform/pxa_camera.c 	fh_singular = v4l2_fh_is_singular_file(filp);
filp             2072 drivers/media/platform/pxa_camera.c 	ret = _vb2_fop_release(filp, NULL);
filp              352 drivers/media/platform/qcom/venus/core.h static inline struct venus_inst *to_inst(struct file *filp)
filp              354 drivers/media/platform/qcom/venus/core.h 	return container_of(filp->private_data, struct venus_inst, fh);
filp              687 drivers/media/platform/via-camera.c static int viacam_open(struct file *filp)
filp              689 drivers/media/platform/via-camera.c 	struct via_camera *cam = video_drvdata(filp);
filp              697 drivers/media/platform/via-camera.c 	ret = v4l2_fh_open(filp);
filp              700 drivers/media/platform/via-camera.c 	if (v4l2_fh_is_singular_file(filp)) {
filp              704 drivers/media/platform/via-camera.c 			v4l2_fh_release(filp);
filp              715 drivers/media/platform/via-camera.c static int viacam_release(struct file *filp)
filp              717 drivers/media/platform/via-camera.c 	struct via_camera *cam = video_drvdata(filp);
filp              721 drivers/media/platform/via-camera.c 	last_open = v4l2_fh_is_singular_file(filp);
filp              722 drivers/media/platform/via-camera.c 	_vb2_fop_release(filp, NULL);
filp              752 drivers/media/platform/via-camera.c static int viacam_enum_input(struct file *filp, void *priv,
filp              763 drivers/media/platform/via-camera.c static int viacam_g_input(struct file *filp, void *priv, unsigned int *i)
filp              769 drivers/media/platform/via-camera.c static int viacam_s_input(struct file *filp, void *priv, unsigned int i)
filp              792 drivers/media/platform/via-camera.c static int viacam_enum_fmt_vid_cap(struct file *filp, void *priv,
filp              863 drivers/media/platform/via-camera.c static int viacam_try_fmt_vid_cap(struct file *filp, void *priv,
filp              866 drivers/media/platform/via-camera.c 	struct via_camera *cam = video_drvdata(filp);
filp              873 drivers/media/platform/via-camera.c static int viacam_g_fmt_vid_cap(struct file *filp, void *priv,
filp              876 drivers/media/platform/via-camera.c 	struct via_camera *cam = video_drvdata(filp);
filp              882 drivers/media/platform/via-camera.c static int viacam_s_fmt_vid_cap(struct file *filp, void *priv,
filp              885 drivers/media/platform/via-camera.c 	struct via_camera *cam = video_drvdata(filp);
filp              915 drivers/media/platform/via-camera.c static int viacam_querycap(struct file *filp, void *priv,
filp              926 drivers/media/platform/via-camera.c static int viacam_g_parm(struct file *filp, void *priv,
filp              929 drivers/media/platform/via-camera.c 	struct via_camera *cam = video_drvdata(filp);
filp              931 drivers/media/platform/via-camera.c 	return v4l2_g_parm_cap(video_devdata(filp), cam->sensor, parm);
filp              934 drivers/media/platform/via-camera.c static int viacam_s_parm(struct file *filp, void *priv,
filp              937 drivers/media/platform/via-camera.c 	struct via_camera *cam = video_drvdata(filp);
filp              939 drivers/media/platform/via-camera.c 	return v4l2_s_parm_cap(video_devdata(filp), cam->sensor, parm);
filp              942 drivers/media/platform/via-camera.c static int viacam_enum_framesizes(struct file *filp, void *priv,
filp              963 drivers/media/platform/via-camera.c static int viacam_enum_frameintervals(struct file *filp, void *priv,
filp              966 drivers/media/platform/via-camera.c 	struct via_camera *cam = video_drvdata(filp);
filp             1001 drivers/media/usb/au0828/au0828-video.c static int au0828_v4l2_open(struct file *filp)
filp             1003 drivers/media/usb/au0828/au0828-video.c 	struct au0828_dev *dev = video_drvdata(filp);
filp             1014 drivers/media/usb/au0828/au0828-video.c 	ret = v4l2_fh_open(filp);
filp             1033 drivers/media/usb/au0828/au0828-video.c static int au0828_v4l2_close(struct file *filp)
filp             1036 drivers/media/usb/au0828/au0828-video.c 	struct au0828_dev *dev = video_drvdata(filp);
filp             1037 drivers/media/usb/au0828/au0828-video.c 	struct video_device *vdev = video_devdata(filp);
filp             1102 drivers/media/usb/au0828/au0828-video.c 	_vb2_fop_release(filp, NULL);
filp              439 drivers/media/usb/cpia2/cpia2.h 			struct file *filp, poll_table *wait);
filp             2364 drivers/media/usb/cpia2/cpia2_core.c __poll_t cpia2_poll(struct camera_data *cam, struct file *filp,
filp             2367 drivers/media/usb/cpia2/cpia2_core.c 	__poll_t status = v4l2_ctrl_poll(filp, wait);
filp             2376 drivers/media/usb/cpia2/cpia2_core.c 	poll_wait(filp, &cam->wq_stream, wait);
filp              163 drivers/media/usb/cpia2/cpia2_v4l.c static __poll_t cpia2_v4l_poll(struct file *filp, struct poll_table_struct *wait)
filp              165 drivers/media/usb/cpia2/cpia2_v4l.c 	struct camera_data *cam = video_drvdata(filp);
filp              169 drivers/media/usb/cpia2/cpia2_v4l.c 	res = cpia2_poll(cam, filp, wait);
filp             1734 drivers/media/usb/cx231xx/cx231xx-video.c static int cx231xx_v4l2_open(struct file *filp)
filp             1737 drivers/media/usb/cx231xx/cx231xx-video.c 	struct video_device *vdev = video_devdata(filp);
filp             1738 drivers/media/usb/cx231xx/cx231xx-video.c 	struct cx231xx *dev = video_drvdata(filp);
filp             1778 drivers/media/usb/cx231xx/cx231xx-video.c 	filp->private_data = fh;
filp             1872 drivers/media/usb/cx231xx/cx231xx-video.c static int cx231xx_close(struct file *filp)
filp             1874 drivers/media/usb/cx231xx/cx231xx-video.c 	struct cx231xx_fh *fh = filp->private_data;
filp             1955 drivers/media/usb/cx231xx/cx231xx-video.c static int cx231xx_v4l2_close(struct file *filp)
filp             1957 drivers/media/usb/cx231xx/cx231xx-video.c 	struct cx231xx_fh *fh = filp->private_data;
filp             1962 drivers/media/usb/cx231xx/cx231xx-video.c 	rc = cx231xx_close(filp);
filp             1972 drivers/media/usb/cx231xx/cx231xx-video.c cx231xx_v4l2_read(struct file *filp, char __user *buf, size_t count,
filp             1975 drivers/media/usb/cx231xx/cx231xx-video.c 	struct cx231xx_fh *fh = filp->private_data;
filp             1993 drivers/media/usb/cx231xx/cx231xx-video.c 					    filp->f_flags & O_NONBLOCK);
filp             2004 drivers/media/usb/cx231xx/cx231xx-video.c static __poll_t cx231xx_v4l2_poll(struct file *filp, poll_table *wait)
filp             2007 drivers/media/usb/cx231xx/cx231xx-video.c 	struct cx231xx_fh *fh = filp->private_data;
filp             2024 drivers/media/usb/cx231xx/cx231xx-video.c 		poll_wait(filp, &fh->fh.wait, wait);
filp             2032 drivers/media/usb/cx231xx/cx231xx-video.c 		res |= videobuf_poll_stream(filp, &fh->vb_vidq, wait);
filp             2042 drivers/media/usb/cx231xx/cx231xx-video.c static int cx231xx_v4l2_mmap(struct file *filp, struct vm_area_struct *vma)
filp             2044 drivers/media/usb/cx231xx/cx231xx-video.c 	struct cx231xx_fh *fh = filp->private_data;
filp             2135 drivers/media/usb/em28xx/em28xx-video.c static int em28xx_v4l2_open(struct file *filp)
filp             2137 drivers/media/usb/em28xx/em28xx-video.c 	struct video_device *vdev = video_devdata(filp);
filp             2138 drivers/media/usb/em28xx/em28xx-video.c 	struct em28xx *dev = video_drvdata(filp);
filp             2163 drivers/media/usb/em28xx/em28xx-video.c 	ret = v4l2_fh_open(filp);
filp             2290 drivers/media/usb/em28xx/em28xx-video.c static int em28xx_v4l2_close(struct file *filp)
filp             2292 drivers/media/usb/em28xx/em28xx-video.c 	struct em28xx         *dev  = video_drvdata(filp);
filp             2299 drivers/media/usb/em28xx/em28xx-video.c 	vb2_fop_release(filp);
filp              463 drivers/media/usb/go7007/go7007-v4l2.c static int vidioc_g_parm(struct file *filp, void *priv,
filp              466 drivers/media/usb/go7007/go7007-v4l2.c 	struct go7007 *go = video_drvdata(filp);
filp              482 drivers/media/usb/go7007/go7007-v4l2.c static int vidioc_s_parm(struct file *filp, void *priv,
filp              485 drivers/media/usb/go7007/go7007-v4l2.c 	struct go7007 *go = video_drvdata(filp);
filp              499 drivers/media/usb/go7007/go7007-v4l2.c 	return vidioc_g_parm(filp, priv, parm);
filp              512 drivers/media/usb/go7007/go7007-v4l2.c static int vidioc_enum_framesizes(struct file *filp, void *priv,
filp              515 drivers/media/usb/go7007/go7007-v4l2.c 	struct go7007 *go = video_drvdata(filp);
filp              531 drivers/media/usb/go7007/go7007-v4l2.c static int vidioc_enum_frameintervals(struct file *filp, void *priv,
filp              534 drivers/media/usb/go7007/go7007-v4l2.c 	struct go7007 *go = video_drvdata(filp);
filp             1143 drivers/media/usb/gspca/gspca.c static int vidioc_enum_frameintervals(struct file *filp, void *priv,
filp             1146 drivers/media/usb/gspca/gspca.c 	struct gspca_dev *gspca_dev = video_drvdata(filp);
filp             1253 drivers/media/usb/gspca/gspca.c static int vidioc_g_parm(struct file *filp, void *priv,
filp             1256 drivers/media/usb/gspca/gspca.c 	struct gspca_dev *gspca_dev = video_drvdata(filp);
filp             1269 drivers/media/usb/gspca/gspca.c static int vidioc_s_parm(struct file *filp, void *priv,
filp             1272 drivers/media/usb/gspca/gspca.c 	struct gspca_dev *gspca_dev = video_drvdata(filp);
filp              527 drivers/media/usb/hdpvr/hdpvr-video.c static __poll_t hdpvr_poll(struct file *filp, poll_table *wait)
filp              531 drivers/media/usb/hdpvr/hdpvr-video.c 	struct hdpvr_device *dev = video_drvdata(filp);
filp              532 drivers/media/usb/hdpvr/hdpvr-video.c 	__poll_t mask = v4l2_ctrl_poll(filp, wait);
filp              545 drivers/media/usb/hdpvr/hdpvr-video.c 			dev->owner = filp->private_data;
filp              555 drivers/media/usb/hdpvr/hdpvr-video.c 		poll_wait(filp, &dev->wait_data, wait);
filp             1041 drivers/media/usb/hdpvr/hdpvr-video.c static int vidioc_encoder_cmd(struct file *filp, void *priv,
filp             1044 drivers/media/usb/hdpvr/hdpvr-video.c 	struct hdpvr_device *dev = video_drvdata(filp);
filp             1052 drivers/media/usb/hdpvr/hdpvr-video.c 		if (dev->owner && filp->private_data != dev->owner) {
filp             1060 drivers/media/usb/hdpvr/hdpvr-video.c 			dev->owner = filp->private_data;
filp             1065 drivers/media/usb/hdpvr/hdpvr-video.c 		if (dev->owner && filp->private_data != dev->owner) {
filp             1086 drivers/media/usb/hdpvr/hdpvr-video.c static int vidioc_try_encoder_cmd(struct file *filp, void *priv,
filp              792 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_querycap(struct file *filp,
filp              795 drivers/media/usb/stkwebcam/stk-webcam.c 	struct stk_camera *dev = video_drvdata(filp);
filp              803 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_enum_input(struct file *filp,
filp              815 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_g_input(struct file *filp, void *priv, unsigned int *i)
filp              821 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_s_input(struct file *filp, void *priv, unsigned int i)
filp              853 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_enum_fmt_vid_cap(struct file *filp,
filp              890 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_g_fmt_vid_cap(struct file *filp,
filp              894 drivers/media/usb/stkwebcam/stk-webcam.c 	struct stk_camera *dev = video_drvdata(filp);
filp              918 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_try_fmt_vid_cap(struct file *filp,
filp              961 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_try_fmt_vid_cap(struct file *filp,
filp              964 drivers/media/usb/stkwebcam/stk-webcam.c 	return stk_try_fmt_vid_cap(filp, fmtd, NULL);
filp             1003 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_s_fmt_vid_cap(struct file *filp,
filp             1008 drivers/media/usb/stkwebcam/stk-webcam.c 	struct stk_camera *dev = video_drvdata(filp);
filp             1018 drivers/media/usb/stkwebcam/stk-webcam.c 	ret = stk_try_fmt_vid_cap(filp, fmtd, &idx);
filp             1031 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_reqbufs(struct file *filp,
filp             1034 drivers/media/usb/stkwebcam/stk-webcam.c 	struct stk_camera *dev = video_drvdata(filp);
filp             1041 drivers/media/usb/stkwebcam/stk-webcam.c 		|| (dev->owner && dev->owner != filp))
filp             1050 drivers/media/usb/stkwebcam/stk-webcam.c 	dev->owner = filp;
filp             1064 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_querybuf(struct file *filp,
filp             1067 drivers/media/usb/stkwebcam/stk-webcam.c 	struct stk_camera *dev = video_drvdata(filp);
filp             1077 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_qbuf(struct file *filp,
filp             1080 drivers/media/usb/stkwebcam/stk-webcam.c 	struct stk_camera *dev = video_drvdata(filp);
filp             1101 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_dqbuf(struct file *filp,
filp             1104 drivers/media/usb/stkwebcam/stk-webcam.c 	struct stk_camera *dev = video_drvdata(filp);
filp             1112 drivers/media/usb/stkwebcam/stk-webcam.c 	if (filp->f_flags & O_NONBLOCK && list_empty(&dev->sio_full))
filp             1134 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_streamon(struct file *filp,
filp             1137 drivers/media/usb/stkwebcam/stk-webcam.c 	struct stk_camera *dev = video_drvdata(filp);
filp             1146 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_streamoff(struct file *filp,
filp             1149 drivers/media/usb/stkwebcam/stk-webcam.c 	struct stk_camera *dev = video_drvdata(filp);
filp             1165 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_g_parm(struct file *filp,
filp             1175 drivers/media/usb/stkwebcam/stk-webcam.c static int stk_vidioc_enum_framesizes(struct file *filp,
filp              350 drivers/media/usb/tm6000/tm6000.h int tm6000_v4l2_mmap(struct file *filp, struct vm_area_struct *vma);
filp              362 drivers/media/usb/tm6000/tm6000.h ssize_t tm6000_v4l2_read(struct file *filp, char __user * buf, size_t count,
filp              304 drivers/media/v4l2-core/v4l2-dev.c static ssize_t v4l2_read(struct file *filp, char __user *buf,
filp              307 drivers/media/v4l2-core/v4l2-dev.c 	struct video_device *vdev = video_devdata(filp);
filp              313 drivers/media/v4l2-core/v4l2-dev.c 		ret = vdev->fops->read(filp, buf, sz, off);
filp              321 drivers/media/v4l2-core/v4l2-dev.c static ssize_t v4l2_write(struct file *filp, const char __user *buf,
filp              324 drivers/media/v4l2-core/v4l2-dev.c 	struct video_device *vdev = video_devdata(filp);
filp              330 drivers/media/v4l2-core/v4l2-dev.c 		ret = vdev->fops->write(filp, buf, sz, off);
filp              338 drivers/media/v4l2-core/v4l2-dev.c static __poll_t v4l2_poll(struct file *filp, struct poll_table_struct *poll)
filp              340 drivers/media/v4l2-core/v4l2-dev.c 	struct video_device *vdev = video_devdata(filp);
filp              346 drivers/media/v4l2-core/v4l2-dev.c 		res = vdev->fops->poll(filp, poll);
filp              353 drivers/media/v4l2-core/v4l2-dev.c static long v4l2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              355 drivers/media/v4l2-core/v4l2-dev.c 	struct video_device *vdev = video_devdata(filp);
filp              360 drivers/media/v4l2-core/v4l2-dev.c 			ret = vdev->fops->unlocked_ioctl(filp, cmd, arg);
filp              370 drivers/media/v4l2-core/v4l2-dev.c static unsigned long v4l2_get_unmapped_area(struct file *filp,
filp              374 drivers/media/v4l2-core/v4l2-dev.c 	struct video_device *vdev = video_devdata(filp);
filp              381 drivers/media/v4l2-core/v4l2-dev.c 	ret = vdev->fops->get_unmapped_area(filp, addr, len, pgoff, flags);
filp              389 drivers/media/v4l2-core/v4l2-dev.c static int v4l2_mmap(struct file *filp, struct vm_area_struct *vm)
filp              391 drivers/media/v4l2-core/v4l2-dev.c 	struct video_device *vdev = video_devdata(filp);
filp              397 drivers/media/v4l2-core/v4l2-dev.c 		ret = vdev->fops->mmap(filp, vm);
filp              405 drivers/media/v4l2-core/v4l2-dev.c static int v4l2_open(struct inode *inode, struct file *filp)
filp              412 drivers/media/v4l2-core/v4l2-dev.c 	vdev = video_devdata(filp);
filp              423 drivers/media/v4l2-core/v4l2-dev.c 			ret = vdev->fops->open(filp);
filp              438 drivers/media/v4l2-core/v4l2-dev.c static int v4l2_release(struct inode *inode, struct file *filp)
filp              440 drivers/media/v4l2-core/v4l2-dev.c 	struct video_device *vdev = video_devdata(filp);
filp              452 drivers/media/v4l2-core/v4l2-dev.c 			ret = vdev->fops->release(filp);
filp              455 drivers/media/v4l2-core/v4l2-dev.c 			ret = vdev->fops->release(filp);
filp               55 drivers/media/v4l2-core/v4l2-fh.c int v4l2_fh_open(struct file *filp)
filp               57 drivers/media/v4l2-core/v4l2-fh.c 	struct video_device *vdev = video_devdata(filp);
filp               60 drivers/media/v4l2-core/v4l2-fh.c 	filp->private_data = fh;
filp               91 drivers/media/v4l2-core/v4l2-fh.c int v4l2_fh_release(struct file *filp)
filp               93 drivers/media/v4l2-core/v4l2-fh.c 	struct v4l2_fh *fh = filp->private_data;
filp             2712 drivers/message/fusion/mptctl.c compat_mptfwxfer_ioctl(struct file *filp, unsigned int cmd,
filp             2719 drivers/message/fusion/mptctl.c 	int nonblock = (filp->f_flags & O_NONBLOCK);
filp             2752 drivers/message/fusion/mptctl.c compat_mpt_command(struct file *filp, unsigned int cmd,
filp             2760 drivers/message/fusion/mptctl.c 	int nonblock = (filp->f_flags & O_NONBLOCK);
filp              716 drivers/misc/c2port/core.c static ssize_t c2port_read_flash_data(struct file *filp, struct kobject *kobj,
filp              831 drivers/misc/c2port/core.c static ssize_t c2port_write_flash_data(struct file *filp, struct kobject *kobj,
filp              446 drivers/misc/cxl/sysfs.c static ssize_t afu_eb_read(struct file *filp, struct kobject *kobj,
filp              540 drivers/misc/cxl/sysfs.c static ssize_t afu_read_config(struct file *filp, struct kobject *kobj,
filp              155 drivers/misc/ds1682.c static ssize_t ds1682_eeprom_read(struct file *filp, struct kobject *kobj,
filp              173 drivers/misc/ds1682.c static ssize_t ds1682_eeprom_write(struct file *filp, struct kobject *kobj,
filp               92 drivers/misc/eeprom/ee1004.c static ssize_t ee1004_read(struct file *filp, struct kobject *kobj,
filp               75 drivers/misc/eeprom/eeprom.c static ssize_t eeprom_read(struct file *filp, struct kobject *kobj,
filp              880 drivers/misc/eeprom/idt_89hpesx.c static ssize_t eeprom_write(struct file *filp, struct kobject *kobj,
filp              904 drivers/misc/eeprom/idt_89hpesx.c static ssize_t eeprom_read(struct file *filp, struct kobject *kobj,
filp              106 drivers/misc/eeprom/max6875.c static ssize_t max6875_read(struct file *filp, struct kobject *kobj,
filp             1165 drivers/misc/fastrpc.c static int fastrpc_device_open(struct inode *inode, struct file *filp)
filp             1167 drivers/misc/fastrpc.c 	struct fastrpc_channel_ctx *cctx = miscdev_to_cctx(filp->private_data);
filp             1178 drivers/misc/fastrpc.c 	filp->private_data = fl;
filp              400 drivers/misc/genwqe/card_base.h 	struct file *filp;
filp              296 drivers/misc/genwqe/card_dev.c static int genwqe_open(struct inode *inode, struct file *filp)
filp              307 drivers/misc/genwqe/card_dev.c 	cfile->filp = filp;
filp              316 drivers/misc/genwqe/card_dev.c 	filp->private_data = cfile;
filp              337 drivers/misc/genwqe/card_dev.c static int genwqe_fasync(int fd, struct file *filp, int mode)
filp              339 drivers/misc/genwqe/card_dev.c 	struct genwqe_file *cdev = (struct genwqe_file *)filp->private_data;
filp              341 drivers/misc/genwqe/card_dev.c 	return fasync_helper(fd, filp, mode, &cdev->async_queue);
filp              354 drivers/misc/genwqe/card_dev.c static int genwqe_release(struct inode *inode, struct file *filp)
filp              356 drivers/misc/genwqe/card_dev.c 	struct genwqe_file *cfile = (struct genwqe_file *)filp->private_data;
filp              364 drivers/misc/genwqe/card_dev.c 	genwqe_fasync(-1, filp, 0);
filp              429 drivers/misc/genwqe/card_dev.c static int genwqe_mmap(struct file *filp, struct vm_area_struct *vma)
filp              433 drivers/misc/genwqe/card_dev.c 	struct genwqe_file *cfile = (struct genwqe_file *)filp->private_data;
filp              510 drivers/misc/genwqe/card_dev.c 	struct file *filp = cfile->filp;
filp              605 drivers/misc/genwqe/card_dev.c 		rc = __genwqe_execute_raw_ddcb(cd, req, filp->f_flags);
filp              645 drivers/misc/genwqe/card_dev.c 	struct file *filp = cfile->filp;
filp              723 drivers/misc/genwqe/card_dev.c 		rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags);
filp              987 drivers/misc/genwqe/card_dev.c 	struct file *filp = cfile->filp;
filp              994 drivers/misc/genwqe/card_dev.c 	rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags);
filp             1005 drivers/misc/genwqe/card_dev.c 	struct file *filp = cfile->filp;
filp             1019 drivers/misc/genwqe/card_dev.c 		rc = __genwqe_execute_raw_ddcb(cd, cmd, filp->f_flags);
filp             1041 drivers/misc/genwqe/card_dev.c static long genwqe_ioctl(struct file *filp, unsigned int cmd,
filp             1045 drivers/misc/genwqe/card_dev.c 	struct genwqe_file *cfile = (struct genwqe_file *)filp->private_data;
filp             1086 drivers/misc/genwqe/card_dev.c 		if ((filp->f_flags & O_ACCMODE) == O_RDONLY)
filp             1122 drivers/misc/genwqe/card_dev.c 		if ((filp->f_flags & O_ACCMODE) == O_RDONLY)
filp             1145 drivers/misc/genwqe/card_dev.c 		if ((filp->f_flags & O_ACCMODE) == O_RDONLY)
filp             1230 drivers/misc/genwqe/card_dev.c static long genwqe_compat_ioctl(struct file *filp, unsigned int cmd,
filp             1233 drivers/misc/genwqe/card_dev.c 	return genwqe_ioctl(filp, cmd, arg);
filp               84 drivers/misc/habanalabs/device.c static int hl_device_release(struct inode *inode, struct file *filp)
filp               86 drivers/misc/habanalabs/device.c 	struct hl_fpriv *hpriv = filp->private_data;
filp               91 drivers/misc/habanalabs/device.c 	filp->private_data = NULL;
filp               98 drivers/misc/habanalabs/device.c static int hl_device_release_ctrl(struct inode *inode, struct file *filp)
filp              100 drivers/misc/habanalabs/device.c 	struct hl_fpriv *hpriv = filp->private_data;
filp              103 drivers/misc/habanalabs/device.c 	filp->private_data = NULL;
filp              125 drivers/misc/habanalabs/device.c static int hl_mmap(struct file *filp, struct vm_area_struct *vma)
filp              127 drivers/misc/habanalabs/device.c 	struct hl_fpriv *hpriv = filp->private_data;
filp              927 drivers/misc/habanalabs/habanalabs.h 	struct file		*filp;
filp             1424 drivers/misc/habanalabs/habanalabs.h int hl_device_open(struct inode *inode, struct file *filp);
filp             1425 drivers/misc/habanalabs/habanalabs.h int hl_device_open_ctrl(struct inode *inode, struct file *filp);
filp               82 drivers/misc/habanalabs/habanalabs_drv.c int hl_device_open(struct inode *inode, struct file *filp)
filp              103 drivers/misc/habanalabs/habanalabs_drv.c 	filp->private_data = hpriv;
filp              104 drivers/misc/habanalabs/habanalabs_drv.c 	hpriv->filp = filp;
filp              107 drivers/misc/habanalabs/habanalabs_drv.c 	nonseekable_open(inode, filp);
filp              165 drivers/misc/habanalabs/habanalabs_drv.c 	filp->private_data = NULL;
filp              173 drivers/misc/habanalabs/habanalabs_drv.c int hl_device_open_ctrl(struct inode *inode, struct file *filp)
filp              207 drivers/misc/habanalabs/habanalabs_drv.c 	filp->private_data = hpriv;
filp              208 drivers/misc/habanalabs/habanalabs_drv.c 	hpriv->filp = filp;
filp              210 drivers/misc/habanalabs/habanalabs_drv.c 	nonseekable_open(inode, filp);
filp              316 drivers/misc/habanalabs/sysfs.c static ssize_t eeprom_read_handler(struct file *filp, struct kobject *kobj,
filp               61 drivers/misc/ocxl/sysfs.c static ssize_t global_mmio_read(struct file *filp, struct kobject *kobj,
filp               92 drivers/misc/ocxl/sysfs.c static int global_mmio_mmap(struct file *filp, struct kobject *kobj,
filp              482 drivers/misc/pch_phub.c static ssize_t pch_phub_bin_read(struct file *filp, struct kobject *kobj,
filp              552 drivers/misc/pch_phub.c static ssize_t pch_phub_bin_write(struct file *filp, struct kobject *kobj,
filp              197 drivers/misc/phantom.c static long phantom_compat_ioctl(struct file *filp, unsigned int cmd,
filp              204 drivers/misc/phantom.c 	return phantom_ioctl(filp, cmd, (unsigned long)compat_ptr(arg));
filp              413 drivers/misc/pti.c static int pti_tty_driver_open(struct tty_struct *tty, struct file *filp)
filp              422 drivers/misc/pti.c 	return tty_port_open(tty->port, tty, filp);
filp              436 drivers/misc/pti.c static void pti_tty_driver_close(struct tty_struct *tty, struct file *filp)
filp              438 drivers/misc/pti.c 	tty_port_close(tty->port, tty, filp);
filp              546 drivers/misc/pti.c static int pti_char_open(struct inode *inode, struct file *filp)
filp              559 drivers/misc/pti.c 	filp->private_data = mc;
filp              574 drivers/misc/pti.c static int pti_char_release(struct inode *inode, struct file *filp)
filp              576 drivers/misc/pti.c 	pti_release_masterchannel(filp->private_data);
filp              577 drivers/misc/pti.c 	filp->private_data = NULL;
filp              601 drivers/misc/pti.c static ssize_t pti_char_write(struct file *filp, const char __user *data,
filp              611 drivers/misc/pti.c 	mc = filp->private_data;
filp               25 drivers/misc/sram.c static ssize_t sram_read(struct file *filp, struct kobject *kobj,
filp               40 drivers/misc/sram.c static ssize_t sram_write(struct file *filp, struct kobject *kobj,
filp              114 drivers/misc/vmw_vmci/vmci_host.c static int vmci_host_open(struct inode *inode, struct file *filp)
filp              124 drivers/misc/vmw_vmci/vmci_host.c 	filp->private_data = vmci_host_dev;
filp              133 drivers/misc/vmw_vmci/vmci_host.c static int vmci_host_close(struct inode *inode, struct file *filp)
filp              135 drivers/misc/vmw_vmci/vmci_host.c 	struct vmci_host_dev *vmci_host_dev = filp->private_data;
filp              152 drivers/misc/vmw_vmci/vmci_host.c 	filp->private_data = NULL;
filp              160 drivers/misc/vmw_vmci/vmci_host.c static __poll_t vmci_host_poll(struct file *filp, poll_table *wait)
filp              162 drivers/misc/vmw_vmci/vmci_host.c 	struct vmci_host_dev *vmci_host_dev = filp->private_data;
filp              169 drivers/misc/vmw_vmci/vmci_host.c 			poll_wait(filp, &context->host_context.wait_queue,
filp              902 drivers/misc/vmw_vmci/vmci_host.c static long vmci_host_unlocked_ioctl(struct file *filp,
filp              911 drivers/misc/vmw_vmci/vmci_host.c 	struct vmci_host_dev *vmci_host_dev = filp->private_data;
filp             2428 drivers/mmc/core/block.c static long mmc_rpmb_ioctl(struct file *filp, unsigned int cmd,
filp             2431 drivers/mmc/core/block.c 	struct mmc_rpmb_data *rpmb = filp->private_data;
filp             2454 drivers/mmc/core/block.c static long mmc_rpmb_ioctl_compat(struct file *filp, unsigned int cmd,
filp             2457 drivers/mmc/core/block.c 	return mmc_rpmb_ioctl(filp, cmd, (unsigned long)compat_ptr(arg));
filp             2461 drivers/mmc/core/block.c static int mmc_rpmb_chrdev_open(struct inode *inode, struct file *filp)
filp             2467 drivers/mmc/core/block.c 	filp->private_data = rpmb;
filp             2470 drivers/mmc/core/block.c 	return nonseekable_open(inode, filp);
filp             2473 drivers/mmc/core/block.c static int mmc_rpmb_chrdev_release(struct inode *inode, struct file *filp)
filp             2735 drivers/mmc/core/block.c static int mmc_ext_csd_open(struct inode *inode, struct file *filp)
filp             2776 drivers/mmc/core/block.c 	filp->private_data = buf;
filp             2785 drivers/mmc/core/block.c static ssize_t mmc_ext_csd_read(struct file *filp, char __user *ubuf,
filp             2788 drivers/mmc/core/block.c 	char *buf = filp->private_data;
filp              759 drivers/mmc/core/sdio_uart.c static int sdio_uart_open(struct tty_struct *tty, struct file *filp)
filp              762 drivers/mmc/core/sdio_uart.c 	return tty_port_open(&port->port, tty, filp);
filp              765 drivers/mmc/core/sdio_uart.c static void sdio_uart_close(struct tty_struct *tty, struct file * filp)
filp              768 drivers/mmc/core/sdio_uart.c 	tty_port_close(&port->port, tty, filp);
filp              174 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xgmac_reg_addr_read(struct file *filp, char __user *buffer,
filp              177 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              182 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xgmac_reg_addr_write(struct file *filp,
filp              186 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              192 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xgmac_reg_value_read(struct file *filp, char __user *buffer,
filp              195 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              203 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xgmac_reg_value_write(struct file *filp,
filp              207 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              234 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xpcs_mmd_read(struct file *filp, char __user *buffer,
filp              237 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              242 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xpcs_mmd_write(struct file *filp, const char __user *buffer,
filp              245 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              251 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xpcs_reg_addr_read(struct file *filp, char __user *buffer,
filp              254 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              259 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xpcs_reg_addr_write(struct file *filp, const char __user *buffer,
filp              262 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              268 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xpcs_reg_value_read(struct file *filp, char __user *buffer,
filp              271 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              280 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xpcs_reg_value_write(struct file *filp,
filp              284 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              319 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xprop_reg_addr_read(struct file *filp, char __user *buffer,
filp              322 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              327 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xprop_reg_addr_write(struct file *filp,
filp              331 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              337 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xprop_reg_value_read(struct file *filp, char __user *buffer,
filp              340 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              348 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xprop_reg_value_write(struct file *filp,
filp              352 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              379 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xi2c_reg_addr_read(struct file *filp, char __user *buffer,
filp              382 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              387 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xi2c_reg_addr_write(struct file *filp,
filp              391 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              397 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xi2c_reg_value_read(struct file *filp, char __user *buffer,
filp              400 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp              408 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c static ssize_t xi2c_reg_value_write(struct file *filp,
filp              412 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c 	struct xgbe_prv_data *pdata = filp->private_data;
filp             3209 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c static ssize_t blocked_fl_read(struct file *filp, char __user *ubuf,
filp             3213 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	const struct adapter *adap = filp->private_data;
filp             3230 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c static ssize_t blocked_fl_write(struct file *filp, const char __user *ubuf,
filp             3235 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	struct adapter *adap = filp->private_data;
filp              284 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c static ssize_t hns3_dbg_cmd_read(struct file *filp, char __user *buffer,
filp              313 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c static ssize_t hns3_dbg_cmd_write(struct file *filp, const char __user *buffer,
filp              316 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c 	struct hnae3_handle *handle = filp->private_data;
filp               63 drivers/net/ethernet/intel/i40e/i40e_debugfs.c static ssize_t i40e_dbg_command_read(struct file *filp, char __user *buffer,
filp               66 drivers/net/ethernet/intel/i40e/i40e_debugfs.c 	struct i40e_pf *pf = filp->private_data;
filp              699 drivers/net/ethernet/intel/i40e/i40e_debugfs.c static ssize_t i40e_dbg_command_write(struct file *filp,
filp              703 drivers/net/ethernet/intel/i40e/i40e_debugfs.c 	struct i40e_pf *pf = filp->private_data;
filp             1572 drivers/net/ethernet/intel/i40e/i40e_debugfs.c static ssize_t i40e_dbg_netdev_ops_read(struct file *filp, char __user *buffer,
filp             1575 drivers/net/ethernet/intel/i40e/i40e_debugfs.c 	struct i40e_pf *pf = filp->private_data;
filp             1612 drivers/net/ethernet/intel/i40e/i40e_debugfs.c static ssize_t i40e_dbg_netdev_ops_write(struct file *filp,
filp             1616 drivers/net/ethernet/intel/i40e/i40e_debugfs.c 	struct i40e_pf *pf = filp->private_data;
filp               13 drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c static ssize_t ixgbe_dbg_common_ops_read(struct file *filp, char __user *buffer,
filp               17 drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c 	struct ixgbe_adapter *adapter = filp->private_data;
filp               48 drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c static ssize_t ixgbe_dbg_reg_ops_read(struct file *filp, char __user *buffer,
filp               51 drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c 	return ixgbe_dbg_common_ops_read(filp, buffer, count, ppos,
filp               62 drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c static ssize_t ixgbe_dbg_reg_ops_write(struct file *filp,
filp               66 drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c 	struct ixgbe_adapter *adapter = filp->private_data;
filp              131 drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c static ssize_t ixgbe_dbg_netdev_ops_read(struct file *filp, char __user *buffer,
filp              134 drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c 	return ixgbe_dbg_common_ops_read(filp, buffer, count, ppos,
filp              145 drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c static ssize_t ixgbe_dbg_netdev_ops_write(struct file *filp,
filp              149 drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c 	struct ixgbe_adapter *adapter = filp->private_data;
filp             1083 drivers/net/ethernet/mellanox/mlx5/core/cmd.c static ssize_t dbg_write(struct file *filp, const char __user *buf,
filp             1086 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 	struct mlx5_core_dev *dev = filp->private_data;
filp             1272 drivers/net/ethernet/mellanox/mlx5/core/cmd.c static ssize_t data_write(struct file *filp, const char __user *buf,
filp             1275 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 	struct mlx5_core_dev *dev = filp->private_data;
filp             1296 drivers/net/ethernet/mellanox/mlx5/core/cmd.c static ssize_t data_read(struct file *filp, char __user *buf, size_t count,
filp             1299 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 	struct mlx5_core_dev *dev = filp->private_data;
filp             1316 drivers/net/ethernet/mellanox/mlx5/core/cmd.c static ssize_t outlen_read(struct file *filp, char __user *buf, size_t count,
filp             1319 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 	struct mlx5_core_dev *dev = filp->private_data;
filp             1331 drivers/net/ethernet/mellanox/mlx5/core/cmd.c static ssize_t outlen_write(struct file *filp, const char __user *buf,
filp             1334 drivers/net/ethernet/mellanox/mlx5/core/cmd.c 	struct mlx5_core_dev *dev = filp->private_data;
filp              124 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c static ssize_t average_read(struct file *filp, char __user *buf, size_t count,
filp              132 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c 	stats = filp->private_data;
filp              141 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c static ssize_t average_write(struct file *filp, const char __user *buf,
filp              146 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c 	stats = filp->private_data;
filp              371 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c static ssize_t dbg_read(struct file *filp, char __user *buf, size_t count,
filp              381 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c 	desc = filp->private_data;
filp             2850 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c netxen_sysfs_read_crb(struct file *filp, struct kobject *kobj,
filp             2878 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c netxen_sysfs_write_crb(struct file *filp, struct kobject *kobj,
filp             2919 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c netxen_sysfs_read_mem(struct file *filp, struct kobject *kobj,
filp             2940 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c static ssize_t netxen_sysfs_write_mem(struct file *filp, struct kobject *kobj,
filp             2977 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c netxen_sysfs_read_dimm(struct file *filp, struct kobject *kobj,
filp              268 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c static ssize_t qlcnic_sysfs_read_crb(struct file *filp, struct kobject *kobj,
filp              285 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c static ssize_t qlcnic_sysfs_write_crb(struct file *filp, struct kobject *kobj,
filp              314 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c static ssize_t qlcnic_sysfs_read_mem(struct file *filp, struct kobject *kobj,
filp              336 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c static ssize_t qlcnic_sysfs_write_mem(struct file *filp, struct kobject *kobj,
filp              399 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c static ssize_t qlcnic_sysfs_write_pm_config(struct file *filp,
filp              449 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c static ssize_t qlcnic_sysfs_read_pm_config(struct file *filp,
filp              941 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c static ssize_t qlcnic_83xx_sysfs_flash_read_handler(struct file *filp,
filp             1118 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c static ssize_t qlcnic_83xx_sysfs_flash_write_handler(struct file *filp,
filp             2411 drivers/net/ieee802154/ca8210.c static int ca8210_test_int_open(struct inode *inodp, struct file *filp)
filp             2415 drivers/net/ieee802154/ca8210.c 	filp->private_data = priv;
filp             2486 drivers/net/ieee802154/ca8210.c 	struct file        *filp,
filp             2493 drivers/net/ieee802154/ca8210.c 	struct ca8210_priv *priv = filp->private_data;
filp             2561 drivers/net/ieee802154/ca8210.c 	struct file  *filp,
filp             2568 drivers/net/ieee802154/ca8210.c 	struct ca8210_priv *priv = filp->private_data;
filp             2572 drivers/net/ieee802154/ca8210.c 	if (filp->f_flags & O_NONBLOCK) {
filp             2624 drivers/net/ieee802154/ca8210.c 	struct file *filp,
filp             2629 drivers/net/ieee802154/ca8210.c 	struct ca8210_priv *priv = filp->private_data;
filp             2650 drivers/net/ieee802154/ca8210.c 	struct file *filp,
filp             2655 drivers/net/ieee802154/ca8210.c 	struct ca8210_priv *priv = filp->private_data;
filp             2657 drivers/net/ieee802154/ca8210.c 	poll_wait(filp, &priv->test.readq, ptable);
filp               12 drivers/net/netdevsim/ipsec.c static ssize_t nsim_dbg_netdev_ops_read(struct file *filp,
filp               16 drivers/net/netdevsim/ipsec.c 	struct netdevsim *ns = filp->private_data;
filp              297 drivers/net/phy/spi_ks8995.c static ssize_t ks8995_registers_read(struct file *filp, struct kobject *kobj,
filp              309 drivers/net/phy/spi_ks8995.c static ssize_t ks8995_registers_write(struct file *filp, struct kobject *kobj,
filp             1237 drivers/net/usb/hso.c static int hso_serial_open(struct tty_struct *tty, struct file *filp)
filp             1292 drivers/net/usb/hso.c static void hso_serial_close(struct tty_struct *tty, struct file *filp)
filp               41 drivers/net/wimax/i2400m/debugfs.c ssize_t i2400m_rx_stats_read(struct file *filp, char __user *buffer,
filp               44 drivers/net/wimax/i2400m/debugfs.c 	struct i2400m *i2400m = filp->private_data;
filp               65 drivers/net/wimax/i2400m/debugfs.c ssize_t i2400m_rx_stats_write(struct file *filp, const char __user *buffer,
filp               68 drivers/net/wimax/i2400m/debugfs.c 	struct i2400m *i2400m = filp->private_data;
filp               95 drivers/net/wimax/i2400m/debugfs.c ssize_t i2400m_tx_stats_read(struct file *filp, char __user *buffer,
filp               98 drivers/net/wimax/i2400m/debugfs.c 	struct i2400m *i2400m = filp->private_data;
filp              118 drivers/net/wimax/i2400m/debugfs.c ssize_t i2400m_tx_stats_write(struct file *filp, const char __user *buffer,
filp              121 drivers/net/wimax/i2400m/debugfs.c 	struct i2400m *i2400m = filp->private_data;
filp              329 drivers/net/wireless/ath/wil6210/pmc.c ssize_t wil_pmc_read(struct file *filp, char __user *buf, size_t count,
filp              332 drivers/net/wireless/ath/wil6210/pmc.c 	struct wil6210_priv *wil = filp->private_data;
filp              385 drivers/net/wireless/ath/wil6210/pmc.c loff_t wil_pmc_llseek(struct file *filp, loff_t off, int whence)
filp              388 drivers/net/wireless/ath/wil6210/pmc.c 	struct wil6210_priv *wil = filp->private_data;
filp              409 drivers/net/wireless/ath/wil6210/pmc.c 		newpos = filp->f_pos + off;
filp              428 drivers/net/wireless/ath/wil6210/pmc.c 	filp->f_pos = newpos;
filp               27 drivers/net/wireless/ath/wil6210/pmc.h loff_t wil_pmc_llseek(struct file *filp, loff_t off, int whence);
filp               68 drivers/net/wireless/realtek/rtlwifi/debug.c 	ssize_t (*cb_write)(struct file *filp, const char __user *buffer,
filp              285 drivers/net/wireless/realtek/rtlwifi/debug.c static ssize_t rtl_debugfs_set_write_reg(struct file *filp,
filp              289 drivers/net/wireless/realtek/rtlwifi/debug.c 	struct rtl_debugfs_priv *debugfs_priv = filp->private_data;
filp              334 drivers/net/wireless/realtek/rtlwifi/debug.c static ssize_t rtl_debugfs_set_write_h2c(struct file *filp,
filp              338 drivers/net/wireless/realtek/rtlwifi/debug.c 	struct rtl_debugfs_priv *debugfs_priv = filp->private_data;
filp              380 drivers/net/wireless/realtek/rtlwifi/debug.c static ssize_t rtl_debugfs_set_write_rfreg(struct file *filp,
filp              384 drivers/net/wireless/realtek/rtlwifi/debug.c 	struct rtl_debugfs_priv *debugfs_priv = filp->private_data;
filp              421 drivers/net/wireless/realtek/rtlwifi/debug.c static int rtl_debugfs_close(struct inode *inode, struct file *filp)
filp              426 drivers/net/wireless/realtek/rtlwifi/debug.c static ssize_t rtl_debugfs_common_write(struct file *filp,
filp              430 drivers/net/wireless/realtek/rtlwifi/debug.c 	struct rtl_debugfs_priv *debugfs_priv = filp->private_data;
filp              432 drivers/net/wireless/realtek/rtlwifi/debug.c 	return debugfs_priv->cb_write(filp, buffer, count, loff);
filp               18 drivers/net/wireless/realtek/rtw88/debug.c 	ssize_t (*cb_write)(struct file *filp, const char __user *buffer,
filp               46 drivers/net/wireless/realtek/rtw88/debug.c static ssize_t rtw_debugfs_common_write(struct file *filp,
filp               50 drivers/net/wireless/realtek/rtw88/debug.c 	struct rtw_debugfs_priv *debugfs_priv = filp->private_data;
filp               52 drivers/net/wireless/realtek/rtw88/debug.c 	return debugfs_priv->cb_write(filp, buffer, count, loff);
filp               55 drivers/net/wireless/realtek/rtw88/debug.c static ssize_t rtw_debugfs_single_write(struct file *filp,
filp               59 drivers/net/wireless/realtek/rtw88/debug.c 	struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
filp               62 drivers/net/wireless/realtek/rtw88/debug.c 	return debugfs_priv->cb_write(filp, buffer, count, loff);
filp               65 drivers/net/wireless/realtek/rtw88/debug.c static int rtw_debugfs_single_open_rw(struct inode *inode, struct file *filp)
filp               67 drivers/net/wireless/realtek/rtw88/debug.c 	return single_open(filp, rtw_debugfs_single_show, inode->i_private);
filp               70 drivers/net/wireless/realtek/rtw88/debug.c static int rtw_debugfs_close(struct inode *inode, struct file *filp)
filp              162 drivers/net/wireless/realtek/rtw88/debug.c static ssize_t rtw_debugfs_set_read_reg(struct file *filp,
filp              166 drivers/net/wireless/realtek/rtw88/debug.c 	struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
filp              252 drivers/net/wireless/realtek/rtw88/debug.c static ssize_t rtw_debugfs_set_rsvd_page(struct file *filp,
filp              256 drivers/net/wireless/realtek/rtw88/debug.c 	struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
filp              278 drivers/net/wireless/realtek/rtw88/debug.c static ssize_t rtw_debugfs_set_single_input(struct file *filp,
filp              282 drivers/net/wireless/realtek/rtw88/debug.c 	struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
filp              303 drivers/net/wireless/realtek/rtw88/debug.c static ssize_t rtw_debugfs_set_write_reg(struct file *filp,
filp              307 drivers/net/wireless/realtek/rtw88/debug.c 	struct rtw_debugfs_priv *debugfs_priv = filp->private_data;
filp              346 drivers/net/wireless/realtek/rtw88/debug.c static ssize_t rtw_debugfs_set_rf_write(struct file *filp,
filp              350 drivers/net/wireless/realtek/rtw88/debug.c 	struct rtw_debugfs_priv *debugfs_priv = filp->private_data;
filp              373 drivers/net/wireless/realtek/rtw88/debug.c static ssize_t rtw_debugfs_set_rf_read(struct file *filp,
filp              377 drivers/net/wireless/realtek/rtw88/debug.c 	struct seq_file *seqpriv = (struct seq_file *)filp->private_data;
filp              233 drivers/net/wireless/rsi/rsi_91x_debugfs.c static ssize_t rsi_debug_zone_write(struct file *filp,
filp               99 drivers/net/wireless/ti/wlcore/sysfs.c static ssize_t wl1271_sysfs_read_fwlog(struct file *filp, struct kobject *kobj,
filp              106 drivers/net/xen-netback/xenbus.c xenvif_write_io_ring(struct file *filp, const char __user *buf, size_t count,
filp              110 drivers/net/xen-netback/xenbus.c 		((struct seq_file *)filp->private_data)->private;
filp              140 drivers/net/xen-netback/xenbus.c static int xenvif_io_ring_open(struct inode *inode, struct file *filp)
filp              147 drivers/net/xen-netback/xenbus.c 	ret = single_open(filp, xenvif_read_io_ring, queue);
filp              148 drivers/net/xen-netback/xenbus.c 	filp->f_mode |= FMODE_PWRITE;
filp              711 drivers/ntb/hw/amd/ntb_hw_amd.c static ssize_t ndev_debugfs_read(struct file *filp, char __user *ubuf,
filp              721 drivers/ntb/hw/amd/ntb_hw_amd.c 	ndev = filp->private_data;
filp             2315 drivers/ntb/hw/idt/ntb_hw_idt.c static ssize_t idt_dbgfs_info_read(struct file *filp, char __user *ubuf,
filp             2334 drivers/ntb/hw/idt/ntb_hw_idt.c static ssize_t idt_dbgfs_info_read(struct file *filp, char __user *ubuf,
filp             2337 drivers/ntb/hw/idt/ntb_hw_idt.c 	struct idt_ntb_dev *ndev = filp->private_data;
filp              490 drivers/ntb/hw/intel/ntb_hw_gen1.c static ssize_t ndev_ntb_debugfs_read(struct file *filp, char __user *ubuf,
filp              501 drivers/ntb/hw/intel/ntb_hw_gen1.c 	ndev = filp->private_data;
filp              756 drivers/ntb/hw/intel/ntb_hw_gen1.c static ssize_t ndev_debugfs_read(struct file *filp, char __user *ubuf,
filp              759 drivers/ntb/hw/intel/ntb_hw_gen1.c 	struct intel_ntb_dev *ndev = filp->private_data;
filp              762 drivers/ntb/hw/intel/ntb_hw_gen1.c 		return ndev_ntb_debugfs_read(filp, ubuf, count, offp);
filp              764 drivers/ntb/hw/intel/ntb_hw_gen1.c 		return ndev_ntb3_debugfs_read(filp, ubuf, count, offp);
filp              255 drivers/ntb/hw/intel/ntb_hw_gen3.c ssize_t ndev_ntb3_debugfs_read(struct file *filp, char __user *ubuf,
filp              265 drivers/ntb/hw/intel/ntb_hw_gen3.c 	ndev = filp->private_data;
filp              104 drivers/ntb/hw/intel/ntb_hw_gen3.h ssize_t ndev_ntb3_debugfs_read(struct file *filp, char __user *ubuf,
filp              465 drivers/ntb/ntb_transport.c static ssize_t debugfs_read(struct file *filp, char __user *ubuf, size_t count,
filp              472 drivers/ntb/ntb_transport.c 	qp = filp->private_data;
filp               33 drivers/nvmem/nvmem-sysfs.c static ssize_t bin_attr_nvmem_read(struct file *filp, struct kobject *kobj,
filp               70 drivers/nvmem/nvmem-sysfs.c static ssize_t bin_attr_nvmem_write(struct file *filp, struct kobject *kobj,
filp             1269 drivers/of/fdt.c static ssize_t of_fdt_raw_read(struct file *filp, struct kobject *kobj,
filp               31 drivers/of/kobj.c static ssize_t of_node_property_read(struct file *filp, struct kobject *kobj,
filp               86 drivers/pci/hotplug/acpiphp_ibm.c static ssize_t ibm_read_apci_table(struct file *filp, struct kobject *kobj,
filp              355 drivers/pci/hotplug/acpiphp_ibm.c static ssize_t ibm_read_apci_table(struct file *filp, struct kobject *kobj,
filp              676 drivers/pci/pci-sysfs.c static ssize_t pci_read_config(struct file *filp, struct kobject *kobj,
filp              686 drivers/pci/pci-sysfs.c 	if (file_ns_capable(filp, &init_user_ns, CAP_SYS_ADMIN))
filp              752 drivers/pci/pci-sysfs.c static ssize_t pci_write_config(struct file *filp, struct kobject *kobj,
filp              831 drivers/pci/pci-sysfs.c static ssize_t pci_read_legacy_io(struct file *filp, struct kobject *kobj,
filp              856 drivers/pci/pci-sysfs.c static ssize_t pci_write_legacy_io(struct file *filp, struct kobject *kobj,
filp              880 drivers/pci/pci-sysfs.c static int pci_mmap_legacy_mem(struct file *filp, struct kobject *kobj,
filp              900 drivers/pci/pci-sysfs.c static int pci_mmap_legacy_io(struct file *filp, struct kobject *kobj,
filp             1043 drivers/pci/pci-sysfs.c static int pci_mmap_resource_uc(struct file *filp, struct kobject *kobj,
filp             1050 drivers/pci/pci-sysfs.c static int pci_mmap_resource_wc(struct file *filp, struct kobject *kobj,
filp             1057 drivers/pci/pci-sysfs.c static ssize_t pci_resource_io(struct file *filp, struct kobject *kobj,
filp             1096 drivers/pci/pci-sysfs.c static ssize_t pci_read_resource_io(struct file *filp, struct kobject *kobj,
filp             1100 drivers/pci/pci-sysfs.c 	return pci_resource_io(filp, kobj, attr, buf, off, count, false);
filp             1103 drivers/pci/pci-sysfs.c static ssize_t pci_write_resource_io(struct file *filp, struct kobject *kobj,
filp             1113 drivers/pci/pci-sysfs.c 	return pci_resource_io(filp, kobj, attr, buf, off, count, true);
filp             1232 drivers/pci/pci-sysfs.c static ssize_t pci_write_rom(struct file *filp, struct kobject *kobj,
filp             1258 drivers/pci/pci-sysfs.c static ssize_t pci_read_rom(struct file *filp, struct kobject *kobj,
filp              485 drivers/pci/pcie/aer_inject.c static ssize_t aer_inject_write(struct file *filp, const char __user *ubuf,
filp              385 drivers/pci/switch/switchtec.c static int switchtec_dev_open(struct inode *inode, struct file *filp)
filp              396 drivers/pci/switch/switchtec.c 	filp->private_data = stuser;
filp              397 drivers/pci/switch/switchtec.c 	stream_open(inode, filp);
filp              404 drivers/pci/switch/switchtec.c static int switchtec_dev_release(struct inode *inode, struct file *filp)
filp              406 drivers/pci/switch/switchtec.c 	struct switchtec_user *stuser = filp->private_data;
filp              426 drivers/pci/switch/switchtec.c static ssize_t switchtec_dev_write(struct file *filp, const char __user *data,
filp              429 drivers/pci/switch/switchtec.c 	struct switchtec_user *stuser = filp->private_data;
filp              472 drivers/pci/switch/switchtec.c static ssize_t switchtec_dev_read(struct file *filp, char __user *data,
filp              475 drivers/pci/switch/switchtec.c 	struct switchtec_user *stuser = filp->private_data;
filp              496 drivers/pci/switch/switchtec.c 	if (filp->f_flags & O_NONBLOCK) {
filp              542 drivers/pci/switch/switchtec.c static __poll_t switchtec_dev_poll(struct file *filp, poll_table *wait)
filp              544 drivers/pci/switch/switchtec.c 	struct switchtec_user *stuser = filp->private_data;
filp              548 drivers/pci/switch/switchtec.c 	poll_wait(filp, &stuser->comp.wait, wait);
filp              549 drivers/pci/switch/switchtec.c 	poll_wait(filp, &stdev->event_wq, wait);
filp              975 drivers/pci/switch/switchtec.c static long switchtec_dev_ioctl(struct file *filp, unsigned int cmd,
filp              978 drivers/pci/switch/switchtec.c 	struct switchtec_user *stuser = filp->private_data;
filp              400 drivers/pci/vpd.c static ssize_t read_vpd_attr(struct file *filp, struct kobject *kobj,
filp              416 drivers/pci/vpd.c static ssize_t write_vpd_attr(struct file *filp, struct kobject *kobj,
filp             1541 drivers/pcmcia/cistpl.c static ssize_t pccard_show_cis(struct file *filp, struct kobject *kobj,
filp             1572 drivers/pcmcia/cistpl.c static ssize_t pccard_store_cis(struct file *filp, struct kobject *kobj,
filp              161 drivers/platform/chrome/cros_ec_chardev.c static int cros_ec_chardev_open(struct inode *inode, struct file *filp)
filp              163 drivers/platform/chrome/cros_ec_chardev.c 	struct miscdevice *mdev = filp->private_data;
filp              173 drivers/platform/chrome/cros_ec_chardev.c 	filp->private_data = priv;
filp              176 drivers/platform/chrome/cros_ec_chardev.c 	nonseekable_open(inode, filp);
filp              189 drivers/platform/chrome/cros_ec_chardev.c static __poll_t cros_ec_chardev_poll(struct file *filp, poll_table *wait)
filp              191 drivers/platform/chrome/cros_ec_chardev.c 	struct chardev_priv *priv = filp->private_data;
filp              193 drivers/platform/chrome/cros_ec_chardev.c 	poll_wait(filp, &priv->wait_event, wait);
filp              201 drivers/platform/chrome/cros_ec_chardev.c static ssize_t cros_ec_chardev_read(struct file *filp, char __user *buffer,
filp              206 drivers/platform/chrome/cros_ec_chardev.c 	struct chardev_priv *priv = filp->private_data;
filp              215 drivers/platform/chrome/cros_ec_chardev.c 						!(filp->f_flags & O_NONBLOCK));
filp              254 drivers/platform/chrome/cros_ec_chardev.c static int cros_ec_chardev_release(struct inode *inode, struct file *filp)
filp              256 drivers/platform/chrome/cros_ec_chardev.c 	struct chardev_priv *priv = filp->private_data;
filp              342 drivers/platform/chrome/cros_ec_chardev.c static long cros_ec_chardev_ioctl(struct file *filp, unsigned int cmd,
filp              345 drivers/platform/chrome/cros_ec_chardev.c 	struct chardev_priv *priv = filp->private_data;
filp               17 drivers/platform/chrome/cros_ec_vbc.c static ssize_t vboot_context_read(struct file *filp, struct kobject *kobj,
filp               57 drivers/platform/chrome/cros_ec_vbc.c static ssize_t vboot_context_write(struct file *filp, struct kobject *kobj,
filp              305 drivers/platform/chrome/wilco_ec/event.c static int event_open(struct inode *inode, struct file *filp)
filp              318 drivers/platform/chrome/wilco_ec/event.c 	stream_open(inode, filp);
filp              319 drivers/platform/chrome/wilco_ec/event.c 	filp->private_data = dev_data;
filp              324 drivers/platform/chrome/wilco_ec/event.c static __poll_t event_poll(struct file *filp, poll_table *wait)
filp              326 drivers/platform/chrome/wilco_ec/event.c 	struct event_device_data *dev_data = filp->private_data;
filp              329 drivers/platform/chrome/wilco_ec/event.c 	poll_wait(filp, &dev_data->wq, wait);
filp              353 drivers/platform/chrome/wilco_ec/event.c static ssize_t event_read(struct file *filp, char __user *buf, size_t count,
filp              356 drivers/platform/chrome/wilco_ec/event.c 	struct event_device_data *dev_data = filp->private_data;
filp              368 drivers/platform/chrome/wilco_ec/event.c 		if (filp->f_flags & O_NONBLOCK)
filp              392 drivers/platform/chrome/wilco_ec/event.c static int event_release(struct inode *inode, struct file *filp)
filp              394 drivers/platform/chrome/wilco_ec/event.c 	struct event_device_data *dev_data = filp->private_data;
filp              239 drivers/platform/chrome/wilco_ec/telemetry.c static int telem_open(struct inode *inode, struct file *filp)
filp              259 drivers/platform/chrome/wilco_ec/telemetry.c 	nonseekable_open(inode, filp);
filp              260 drivers/platform/chrome/wilco_ec/telemetry.c 	filp->private_data = sess_data;
filp              265 drivers/platform/chrome/wilco_ec/telemetry.c static ssize_t telem_write(struct file *filp, const char __user *buf,
filp              268 drivers/platform/chrome/wilco_ec/telemetry.c 	struct telem_session_data *sess_data = filp->private_data;
filp              299 drivers/platform/chrome/wilco_ec/telemetry.c static ssize_t telem_read(struct file *filp, char __user *buf, size_t count,
filp              302 drivers/platform/chrome/wilco_ec/telemetry.c 	struct telem_session_data *sess_data = filp->private_data;
filp              317 drivers/platform/chrome/wilco_ec/telemetry.c static int telem_release(struct inode *inode, struct file *filp)
filp              319 drivers/platform/chrome/wilco_ec/telemetry.c 	struct telem_session_data *sess_data = filp->private_data;
filp              403 drivers/platform/goldfish/goldfish_pipe.c static ssize_t goldfish_pipe_read_write(struct file *filp,
filp              408 drivers/platform/goldfish/goldfish_pipe.c 	struct goldfish_pipe *pipe = filp->private_data;
filp              471 drivers/platform/goldfish/goldfish_pipe.c 			(filp->f_flags & O_NONBLOCK) != 0) {
filp              486 drivers/platform/goldfish/goldfish_pipe.c static ssize_t goldfish_pipe_read(struct file *filp, char __user *buffer,
filp              489 drivers/platform/goldfish/goldfish_pipe.c 	return goldfish_pipe_read_write(filp, buffer, bufflen,
filp              493 drivers/platform/goldfish/goldfish_pipe.c static ssize_t goldfish_pipe_write(struct file *filp,
filp              500 drivers/platform/goldfish/goldfish_pipe.c 	return goldfish_pipe_read_write(filp, no_const_buffer, bufflen,
filp              504 drivers/platform/goldfish/goldfish_pipe.c static __poll_t goldfish_pipe_poll(struct file *filp, poll_table *wait)
filp              506 drivers/platform/goldfish/goldfish_pipe.c 	struct goldfish_pipe *pipe = filp->private_data;
filp              510 drivers/platform/goldfish/goldfish_pipe.c 	poll_wait(filp, &pipe->wake_queue, wait);
filp              774 drivers/platform/goldfish/goldfish_pipe.c static int goldfish_pipe_release(struct inode *inode, struct file *filp)
filp              777 drivers/platform/goldfish/goldfish_pipe.c 	struct goldfish_pipe *pipe = filp->private_data;
filp              788 drivers/platform/goldfish/goldfish_pipe.c 	filp->private_data = NULL;
filp              150 drivers/platform/x86/dcdbas.c static ssize_t smi_data_read(struct file *filp, struct kobject *kobj,
filp              163 drivers/platform/x86/dcdbas.c static ssize_t smi_data_write(struct file *filp, struct kobject *kobj,
filp              503 drivers/platform/x86/dell_rbu.c static ssize_t read_rbu_data(struct file *filp, struct kobject *kobj,
filp              557 drivers/platform/x86/dell_rbu.c static ssize_t read_rbu_image_type(struct file *filp, struct kobject *kobj,
filp              567 drivers/platform/x86/dell_rbu.c static ssize_t write_rbu_image_type(struct file *filp, struct kobject *kobj,
filp              628 drivers/platform/x86/dell_rbu.c static ssize_t read_rbu_packet_size(struct file *filp, struct kobject *kobj,
filp              641 drivers/platform/x86/dell_rbu.c static ssize_t write_rbu_packet_size(struct file *filp, struct kobject *kobj,
filp             4056 drivers/platform/x86/sony-laptop.c static int sonypi_misc_fasync(int fd, struct file *filp, int on)
filp             4058 drivers/platform/x86/sony-laptop.c 	return fasync_helper(fd, filp, on, &sonypi_compat.fifo_async);
filp               29 drivers/platform/x86/wmi-bmof.c read_bmof(struct file *filp, struct kobject *kobj,
filp              809 drivers/platform/x86/wmi.c static int wmi_char_open(struct inode *inode, struct file *filp)
filp              811 drivers/platform/x86/wmi.c 	const char *driver_name = filp->f_path.dentry->d_iname;
filp              819 drivers/platform/x86/wmi.c 			filp->private_data = wblock;
filp              824 drivers/platform/x86/wmi.c 	if (!filp->private_data)
filp              827 drivers/platform/x86/wmi.c 	return nonseekable_open(inode, filp);
filp              830 drivers/platform/x86/wmi.c static ssize_t wmi_char_read(struct file *filp, char __user *buffer,
filp              833 drivers/platform/x86/wmi.c 	struct wmi_block *wblock = filp->private_data;
filp              840 drivers/platform/x86/wmi.c static long wmi_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              844 drivers/platform/x86/wmi.c 	struct wmi_block *wblock = filp->private_data;
filp              197 drivers/power/supply/ds2760_battery.c static ssize_t w1_slave_read(struct file *filp, struct kobject *kobj,
filp              622 drivers/power/supply/ds2780_battery.c static ssize_t ds2780_read_param_eeprom_bin(struct file *filp,
filp              635 drivers/power/supply/ds2780_battery.c static ssize_t ds2780_write_param_eeprom_bin(struct file *filp,
filp              667 drivers/power/supply/ds2780_battery.c static ssize_t ds2780_read_user_eeprom_bin(struct file *filp,
filp              680 drivers/power/supply/ds2780_battery.c static ssize_t ds2780_write_user_eeprom_bin(struct file *filp,
filp              624 drivers/power/supply/ds2781_battery.c static ssize_t ds2781_read_param_eeprom_bin(struct file *filp,
filp              637 drivers/power/supply/ds2781_battery.c static ssize_t ds2781_write_param_eeprom_bin(struct file *filp,
filp              669 drivers/power/supply/ds2781_battery.c static ssize_t ds2781_read_user_eeprom_bin(struct file *filp,
filp              683 drivers/power/supply/ds2781_battery.c static ssize_t ds2781_write_user_eeprom_bin(struct file *filp,
filp              529 drivers/power/supply/olpc_battery.c static ssize_t olpc_bat_eeprom_read(struct file *filp, struct kobject *kobj,
filp              109 drivers/rapidio/devices/rio_mport_cdev.c 	struct file	*filp;
filp              131 drivers/rapidio/devices/rio_mport_cdev.c 	struct file *filp;
filp              359 drivers/rapidio/devices/rio_mport_cdev.c rio_mport_create_outbound_mapping(struct mport_dev *md, struct file *filp,
filp              382 drivers/rapidio/devices/rio_mport_cdev.c 	map->filp = filp;
filp              393 drivers/rapidio/devices/rio_mport_cdev.c rio_mport_get_outbound_mapping(struct mport_dev *md, struct file *filp,
filp              419 drivers/rapidio/devices/rio_mport_cdev.c 		err = rio_mport_create_outbound_mapping(md, filp, rioid, raddr,
filp              425 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_obw_map(struct file *filp, void __user *arg)
filp              427 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp              439 drivers/rapidio/devices/rio_mport_cdev.c 	ret = rio_mport_get_outbound_mapping(data, filp, map.rioid,
filp              459 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_obw_free(struct file *filp, void __user *arg)
filp              461 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp              477 drivers/rapidio/devices/rio_mport_cdev.c 			if (map->filp == filp) {
filp              479 drivers/rapidio/devices/rio_mport_cdev.c 				map->filp = NULL;
filp              537 drivers/rapidio/devices/rio_mport_cdev.c 	struct file *filp;
filp              808 drivers/rapidio/devices/rio_mport_cdev.c rio_dma_transfer(struct file *filp, u32 transfer_mode,
filp              812 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp              837 drivers/rapidio/devices/rio_mport_cdev.c 	req->filp = filp;
filp              963 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_transfer_ioctl(struct file *filp, void __user *arg)
filp              965 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp              995 drivers/rapidio/devices/rio_mport_cdev.c 		ret = rio_dma_transfer(filp, transaction.transfer_mode,
filp             1009 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_wait_for_async_dma(struct file *filp, void __user *arg)
filp             1020 drivers/rapidio/devices/rio_mport_cdev.c 	priv = (struct mport_cdev_priv *)filp->private_data;
filp             1087 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_create_dma_mapping(struct mport_dev *md, struct file *filp,
filp             1105 drivers/rapidio/devices/rio_mport_cdev.c 	map->filp = filp;
filp             1116 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_alloc_dma(struct file *filp, void __user *arg)
filp             1118 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp             1127 drivers/rapidio/devices/rio_mport_cdev.c 	ret = rio_mport_create_dma_mapping(md, filp, map.length, &mapping);
filp             1143 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_free_dma(struct file *filp, void __user *arg)
filp             1145 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp             1153 drivers/rapidio/devices/rio_mport_cdev.c 	rmcd_debug(EXIT, "filp=%p", filp);
filp             1158 drivers/rapidio/devices/rio_mport_cdev.c 		    map->filp == filp) {
filp             1174 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_transfer_ioctl(struct file *filp, void *arg)
filp             1179 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_wait_for_async_dma(struct file *filp, void __user *arg)
filp             1184 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_alloc_dma(struct file *filp, void __user *arg)
filp             1189 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_free_dma(struct file *filp, void __user *arg)
filp             1200 drivers/rapidio/devices/rio_mport_cdev.c rio_mport_create_inbound_mapping(struct mport_dev *md, struct file *filp,
filp             1232 drivers/rapidio/devices/rio_mport_cdev.c 	map->filp = filp;
filp             1250 drivers/rapidio/devices/rio_mport_cdev.c rio_mport_get_inbound_mapping(struct mport_dev *md, struct file *filp,
filp             1281 drivers/rapidio/devices/rio_mport_cdev.c 	return rio_mport_create_inbound_mapping(md, filp, raddr, size, mapping);
filp             1284 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_map_inbound(struct file *filp, void __user *arg)
filp             1286 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp             1297 drivers/rapidio/devices/rio_mport_cdev.c 	rmcd_debug(IBW, "%s filp=%p", dev_name(&priv->md->dev), filp);
filp             1299 drivers/rapidio/devices/rio_mport_cdev.c 	ret = rio_mport_get_inbound_mapping(md, filp, map.rio_addr,
filp             1309 drivers/rapidio/devices/rio_mport_cdev.c 		if (ret == 0 && mapping->filp == filp) {
filp             1326 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_inbound_free(struct file *filp, void __user *arg)
filp             1328 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp             1333 drivers/rapidio/devices/rio_mport_cdev.c 	rmcd_debug(IBW, "%s filp=%p", dev_name(&priv->md->dev), filp);
filp             1344 drivers/rapidio/devices/rio_mport_cdev.c 			if (map->filp == filp) {
filp             1345 drivers/rapidio/devices/rio_mport_cdev.c 				map->filp = NULL;
filp             1873 drivers/rapidio/devices/rio_mport_cdev.c static int mport_cdev_open(struct inode *inode, struct file *filp)
filp             1888 drivers/rapidio/devices/rio_mport_cdev.c 	rmcd_debug(INIT, "%s filp=%p", dev_name(&chdev->dev), filp);
filp             1926 drivers/rapidio/devices/rio_mport_cdev.c 	filp->private_data = priv;
filp             1934 drivers/rapidio/devices/rio_mport_cdev.c static int mport_cdev_fasync(int fd, struct file *filp, int mode)
filp             1936 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp             1938 drivers/rapidio/devices/rio_mport_cdev.c 	return fasync_helper(fd, filp, mode, &priv->async_queue);
filp             1942 drivers/rapidio/devices/rio_mport_cdev.c static void mport_cdev_release_dma(struct file *filp)
filp             1944 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp             1952 drivers/rapidio/devices/rio_mport_cdev.c 		   filp, current->comm, task_pid_nr(current));
filp             1955 drivers/rapidio/devices/rio_mport_cdev.c 		rmcd_debug(EXIT, "No DMA channel for filp=%p", filp);
filp             1964 drivers/rapidio/devices/rio_mport_cdev.c 			   filp, current->comm, task_pid_nr(current));
filp             1973 drivers/rapidio/devices/rio_mport_cdev.c 				   req->filp, req->cookie,
filp             1990 drivers/rapidio/devices/rio_mport_cdev.c 			   filp, current->comm, task_pid_nr(current));
filp             2006 drivers/rapidio/devices/rio_mport_cdev.c static int mport_cdev_release(struct inode *inode, struct file *filp)
filp             2008 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp             2015 drivers/rapidio/devices/rio_mport_cdev.c 	rmcd_debug(EXIT, "%s filp=%p", dev_name(&priv->md->dev), filp);
filp             2018 drivers/rapidio/devices/rio_mport_cdev.c 	mport_cdev_release_dma(filp);
filp             2041 drivers/rapidio/devices/rio_mport_cdev.c 		if (map->filp == filp) {
filp             2043 drivers/rapidio/devices/rio_mport_cdev.c 				   map->virt_addr, filp);
filp             2049 drivers/rapidio/devices/rio_mport_cdev.c 	mport_cdev_fasync(-1, filp, 0);
filp             2050 drivers/rapidio/devices/rio_mport_cdev.c 	filp->private_data = NULL;
filp             2062 drivers/rapidio/devices/rio_mport_cdev.c static long mport_cdev_ioctl(struct file *filp,
filp             2066 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *data = filp->private_data;
filp             2110 drivers/rapidio/devices/rio_mport_cdev.c 		return rio_mport_obw_map(filp, (void __user *)arg);
filp             2112 drivers/rapidio/devices/rio_mport_cdev.c 		return rio_mport_map_inbound(filp, (void __user *)arg);
filp             2114 drivers/rapidio/devices/rio_mport_cdev.c 		return rio_mport_obw_free(filp, (void __user *)arg);
filp             2116 drivers/rapidio/devices/rio_mport_cdev.c 		return rio_mport_inbound_free(filp, (void __user *)arg);
filp             2118 drivers/rapidio/devices/rio_mport_cdev.c 		return rio_mport_alloc_dma(filp, (void __user *)arg);
filp             2120 drivers/rapidio/devices/rio_mport_cdev.c 		return rio_mport_free_dma(filp, (void __user *)arg);
filp             2122 drivers/rapidio/devices/rio_mport_cdev.c 		return rio_mport_wait_for_async_dma(filp, (void __user *)arg);
filp             2124 drivers/rapidio/devices/rio_mport_cdev.c 		return rio_mport_transfer_ioctl(filp, (void __user *)arg);
filp             2192 drivers/rapidio/devices/rio_mport_cdev.c static int mport_cdev_mmap(struct file *filp, struct vm_area_struct *vma)
filp             2194 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp             2251 drivers/rapidio/devices/rio_mport_cdev.c static __poll_t mport_cdev_poll(struct file *filp, poll_table *wait)
filp             2253 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp             2255 drivers/rapidio/devices/rio_mport_cdev.c 	poll_wait(filp, &priv->event_rx_wait, wait);
filp             2262 drivers/rapidio/devices/rio_mport_cdev.c static ssize_t mport_read(struct file *filp, char __user *buf, size_t count,
filp             2265 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp             2273 drivers/rapidio/devices/rio_mport_cdev.c 	    (filp->f_flags & O_NONBLOCK))
filp             2295 drivers/rapidio/devices/rio_mport_cdev.c static ssize_t mport_write(struct file *filp, const char __user *buf,
filp             2298 drivers/rapidio/devices/rio_mport_cdev.c 	struct mport_cdev_priv *priv = filp->private_data;
filp              116 drivers/rapidio/rio-sysfs.c rio_read_config(struct file *filp, struct kobject *kobj,
filp              187 drivers/rapidio/rio-sysfs.c rio_write_config(struct file *filp, struct kobject *kobj,
filp              179 drivers/rapidio/rio_cm.c 	struct file		*filp;
filp             1480 drivers/rapidio/rio_cm.c static int riocm_cdev_open(struct inode *inode, struct file *filp)
filp             1483 drivers/rapidio/rio_cm.c 		    current->comm, task_pid_nr(current), filp);
filp             1494 drivers/rapidio/rio_cm.c static int riocm_cdev_release(struct inode *inode, struct file *filp)
filp             1501 drivers/rapidio/rio_cm.c 		    current->comm, task_pid_nr(current), filp);
filp             1506 drivers/rapidio/rio_cm.c 		if (ch && ch->filp == filp) {
filp             1656 drivers/rapidio/rio_cm.c static int cm_chan_create(struct file *filp, void __user *arg)
filp             1671 drivers/rapidio/rio_cm.c 	ch->filp = filp;
filp             1682 drivers/rapidio/rio_cm.c static int cm_chan_close(struct file *filp, void __user *arg)
filp             1700 drivers/rapidio/rio_cm.c 	if (ch->filp != filp) {
filp             1746 drivers/rapidio/rio_cm.c static int cm_chan_accept(struct file *filp, void __user *arg)
filp             1764 drivers/rapidio/rio_cm.c 	ch->filp = filp;
filp             1897 drivers/rapidio/rio_cm.c riocm_cdev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp             1905 drivers/rapidio/rio_cm.c 		return cm_chan_create(filp, (void __user *)arg);
filp             1907 drivers/rapidio/rio_cm.c 		return cm_chan_close(filp, (void __user *)arg);
filp             1913 drivers/rapidio/rio_cm.c 		return cm_chan_accept(filp, (void __user *)arg);
filp              470 drivers/ras/cec.c static int array_open(struct inode *inode, struct file *filp)
filp              472 drivers/ras/cec.c 	return single_open(filp, array_dump, NULL);
filp               39 drivers/remoteproc/remoteproc_debugfs.c static ssize_t rproc_trace_read(struct file *filp, char __user *userbuf,
filp               42 drivers/remoteproc/remoteproc_debugfs.c 	struct rproc_debug_trace *data = filp->private_data;
filp               68 drivers/remoteproc/remoteproc_debugfs.c static ssize_t rproc_name_read(struct file *filp, char __user *userbuf,
filp               71 drivers/remoteproc/remoteproc_debugfs.c 	struct rproc *rproc = filp->private_data;
filp               88 drivers/remoteproc/remoteproc_debugfs.c static ssize_t rproc_recovery_read(struct file *filp, char __user *userbuf,
filp               91 drivers/remoteproc/remoteproc_debugfs.c 	struct rproc *rproc = filp->private_data;
filp              122 drivers/remoteproc/remoteproc_debugfs.c rproc_recovery_write(struct file *filp, const char __user *user_buf,
filp              125 drivers/remoteproc/remoteproc_debugfs.c 	struct rproc *rproc = filp->private_data;
filp              165 drivers/remoteproc/remoteproc_debugfs.c rproc_crash_write(struct file *filp, const char __user *user_buf,
filp              168 drivers/remoteproc/remoteproc_debugfs.c 	struct rproc *rproc = filp->private_data;
filp              978 drivers/rpmsg/qcom_smd.c 				  struct file *filp, poll_table *wait)
filp              984 drivers/rpmsg/qcom_smd.c 	poll_wait(filp, &channel->fblockread_event, wait);
filp              123 drivers/rpmsg/rpmsg_char.c static int rpmsg_eptdev_open(struct inode *inode, struct file *filp)
filp              140 drivers/rpmsg/rpmsg_char.c 	filp->private_data = eptdev;
filp              145 drivers/rpmsg/rpmsg_char.c static int rpmsg_eptdev_release(struct inode *inode, struct file *filp)
filp              172 drivers/rpmsg/rpmsg_char.c 	struct file *filp = iocb->ki_filp;
filp              173 drivers/rpmsg/rpmsg_char.c 	struct rpmsg_eptdev *eptdev = filp->private_data;
filp              187 drivers/rpmsg/rpmsg_char.c 		if (filp->f_flags & O_NONBLOCK)
filp              220 drivers/rpmsg/rpmsg_char.c 	struct file *filp = iocb->ki_filp;
filp              221 drivers/rpmsg/rpmsg_char.c 	struct rpmsg_eptdev *eptdev = filp->private_data;
filp              245 drivers/rpmsg/rpmsg_char.c 	if (filp->f_flags & O_NONBLOCK)
filp              258 drivers/rpmsg/rpmsg_char.c static __poll_t rpmsg_eptdev_poll(struct file *filp, poll_table *wait)
filp              260 drivers/rpmsg/rpmsg_char.c 	struct rpmsg_eptdev *eptdev = filp->private_data;
filp              266 drivers/rpmsg/rpmsg_char.c 	poll_wait(filp, &eptdev->readq, wait);
filp              271 drivers/rpmsg/rpmsg_char.c 	mask |= rpmsg_poll(eptdev->ept, filp, wait);
filp              410 drivers/rpmsg/rpmsg_char.c static int rpmsg_ctrldev_open(struct inode *inode, struct file *filp)
filp              415 drivers/rpmsg/rpmsg_char.c 	filp->private_data = ctrldev;
filp              420 drivers/rpmsg/rpmsg_char.c static int rpmsg_ctrldev_release(struct inode *inode, struct file *filp)
filp              243 drivers/rpmsg/rpmsg_core.c __poll_t rpmsg_poll(struct rpmsg_endpoint *ept, struct file *filp,
filp              251 drivers/rpmsg/rpmsg_core.c 	return ept->ops->poll(ept, filp, wait);
filp               67 drivers/rpmsg/rpmsg_internal.h 	__poll_t (*poll)(struct rpmsg_endpoint *ept, struct file *filp,
filp               22 drivers/rtc/nvmem.c rtc_nvram_read(struct file *filp, struct kobject *kobj,
filp               32 drivers/rtc/nvmem.c rtc_nvram_write(struct file *filp, struct kobject *kobj,
filp              547 drivers/s390/block/dasd_eer.c static int dasd_eer_open(struct inode *inp, struct file *filp)
filp              577 drivers/s390/block/dasd_eer.c 	filp->private_data = eerb;
filp              582 drivers/s390/block/dasd_eer.c 	return nonseekable_open(inp,filp);
filp              585 drivers/s390/block/dasd_eer.c static int dasd_eer_close(struct inode *inp, struct file *filp)
filp              590 drivers/s390/block/dasd_eer.c 	eerb = (struct eerbuffer *) filp->private_data;
filp              601 drivers/s390/block/dasd_eer.c static ssize_t dasd_eer_read(struct file *filp, char __user *buf,
filp              609 drivers/s390/block/dasd_eer.c 	eerb = (struct eerbuffer *) filp->private_data;
filp              634 drivers/s390/block/dasd_eer.c 				if (filp->f_flags & O_NONBLOCK)
filp              665 drivers/s390/block/dasd_eer.c static __poll_t dasd_eer_poll(struct file *filp, poll_table *ptable)
filp              671 drivers/s390/block/dasd_eer.c 	eerb = (struct eerbuffer *) filp->private_data;
filp              672 drivers/s390/block/dasd_eer.c 	poll_wait(filp, &dasd_eer_read_wait_queue, ptable);
filp              978 drivers/s390/char/con3215.c static int tty3215_open(struct tty_struct *tty, struct file * filp)
filp             1002 drivers/s390/char/con3215.c static void tty3215_close(struct tty_struct *tty, struct file * filp)
filp              243 drivers/s390/char/fs3270.c fs3270_read(struct file *filp, char __user *data, size_t count, loff_t *off)
filp              252 drivers/s390/char/fs3270.c 	fp = filp->private_data;
filp              288 drivers/s390/char/fs3270.c fs3270_write(struct file *filp, const char __user *data, size_t count, loff_t *off)
filp              296 drivers/s390/char/fs3270.c 	fp = filp->private_data;
filp              326 drivers/s390/char/fs3270.c fs3270_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              333 drivers/s390/char/fs3270.c 	fp = filp->private_data;
filp              430 drivers/s390/char/fs3270.c fs3270_open(struct inode *inode, struct file *filp)
filp              436 drivers/s390/char/fs3270.c 	if (imajor(file_inode(filp)) != IBM_FS3270_MAJOR)
filp              438 drivers/s390/char/fs3270.c 	minor = iminor(file_inode(filp));
filp              489 drivers/s390/char/fs3270.c 	stream_open(inode, filp);
filp              490 drivers/s390/char/fs3270.c 	filp->private_data = fp;
filp              501 drivers/s390/char/fs3270.c fs3270_close(struct inode *inode, struct file *filp)
filp              505 drivers/s390/char/fs3270.c 	fp = filp->private_data;
filp              506 drivers/s390/char/fs3270.c 	filp->private_data = NULL;
filp              278 drivers/s390/char/monreader.c static int mon_open(struct inode *inode, struct file *filp)
filp              321 drivers/s390/char/monreader.c 	filp->private_data = monpriv;
filp              323 drivers/s390/char/monreader.c 	return nonseekable_open(inode, filp);
filp              335 drivers/s390/char/monreader.c static int mon_close(struct inode *inode, struct file *filp)
filp              338 drivers/s390/char/monreader.c 	struct mon_private *monpriv = filp->private_data;
filp              366 drivers/s390/char/monreader.c static ssize_t mon_read(struct file *filp, char __user *data,
filp              369 drivers/s390/char/monreader.c 	struct mon_private *monpriv = filp->private_data;
filp              379 drivers/s390/char/monreader.c 		if (filp->f_flags & O_NONBLOCK)
filp              432 drivers/s390/char/monreader.c static __poll_t mon_poll(struct file *filp, struct poll_table_struct *p)
filp              434 drivers/s390/char/monreader.c 	struct mon_private *monpriv = filp->private_data;
filp              436 drivers/s390/char/monreader.c 	poll_wait(filp, &mon_read_wait_queue, p);
filp              191 drivers/s390/char/monwriter.c static int monwrite_open(struct inode *inode, struct file *filp)
filp              201 drivers/s390/char/monwriter.c 	filp->private_data = monpriv;
filp              203 drivers/s390/char/monwriter.c 	return nonseekable_open(inode, filp);
filp              206 drivers/s390/char/monwriter.c static int monwrite_close(struct inode *inode, struct file *filp)
filp              208 drivers/s390/char/monwriter.c 	struct mon_private *monpriv = filp->private_data;
filp              225 drivers/s390/char/monwriter.c static ssize_t monwrite_write(struct file *filp, const char __user *data,
filp              228 drivers/s390/char/monwriter.c 	struct mon_private *monpriv = filp->private_data;
filp              131 drivers/s390/char/sclp_config.c static ssize_t sysfs_ofb_data_write(struct file *filp, struct kobject *kobj,
filp               93 drivers/s390/char/sclp_ctl.c static long sclp_ctl_ioctl(struct file *filp, unsigned int cmd,
filp               64 drivers/s390/char/sclp_tty.c sclp_tty_open(struct tty_struct *tty, struct file *filp)
filp               74 drivers/s390/char/sclp_tty.c sclp_tty_close(struct tty_struct *tty, struct file *filp)
filp              559 drivers/s390/char/sclp_vt220.c sclp_vt220_open(struct tty_struct *tty, struct file *filp)
filp              576 drivers/s390/char/sclp_vt220.c sclp_vt220_close(struct tty_struct *tty, struct file *filp)
filp              129 drivers/s390/char/tape_char.c tapechar_read(struct file *filp, char __user *data, size_t count, loff_t *ppos)
filp              137 drivers/s390/char/tape_char.c 	device = (struct tape_device *) filp->private_data;
filp              187 drivers/s390/char/tape_char.c tapechar_write(struct file *filp, const char __user *data, size_t count, loff_t *ppos)
filp              197 drivers/s390/char/tape_char.c 	device = (struct tape_device *) filp->private_data;
filp              271 drivers/s390/char/tape_char.c tapechar_open (struct inode *inode, struct file *filp)
filp              277 drivers/s390/char/tape_char.c 		imajor(file_inode(filp)),
filp              278 drivers/s390/char/tape_char.c 		iminor(file_inode(filp)));
filp              280 drivers/s390/char/tape_char.c 	if (imajor(file_inode(filp)) != tapechar_major)
filp              283 drivers/s390/char/tape_char.c 	minor = iminor(file_inode(filp));
filp              292 drivers/s390/char/tape_char.c 		filp->private_data = device;
filp              293 drivers/s390/char/tape_char.c 		stream_open(inode, filp);
filp              305 drivers/s390/char/tape_char.c tapechar_release(struct inode *inode, struct file *filp)
filp              310 drivers/s390/char/tape_char.c 	device = (struct tape_device *) filp->private_data;
filp              333 drivers/s390/char/tape_char.c 	filp->private_data = NULL;
filp              439 drivers/s390/char/tape_char.c tapechar_ioctl(struct file *filp, unsigned int no, unsigned long data)
filp              446 drivers/s390/char/tape_char.c 	device = (struct tape_device *) filp->private_data;
filp              455 drivers/s390/char/tape_char.c tapechar_compat_ioctl(struct file *filp, unsigned int no, unsigned long data)
filp              457 drivers/s390/char/tape_char.c 	struct tape_device *device = filp->private_data;
filp             1036 drivers/s390/char/tty3270.c tty3270_open(struct tty_struct *tty, struct file *filp)
filp             1051 drivers/s390/char/tty3270.c tty3270_close(struct tty_struct *tty, struct file * filp)
filp               91 drivers/s390/char/vmlogrdr.c static ssize_t vmlogrdr_read (struct file *filp, char __user *data,
filp              309 drivers/s390/char/vmlogrdr.c static int vmlogrdr_open (struct inode *inode, struct file *filp)
filp              324 drivers/s390/char/vmlogrdr.c 	if (filp->f_flags & O_NONBLOCK)
filp              341 drivers/s390/char/vmlogrdr.c 	filp->private_data = logptr;
filp              372 drivers/s390/char/vmlogrdr.c 	nonseekable_open(inode, filp);
filp              387 drivers/s390/char/vmlogrdr.c static int vmlogrdr_release (struct inode *inode, struct file *filp)
filp              391 drivers/s390/char/vmlogrdr.c 	struct vmlogrdr_priv_t * logptr = filp->private_data;
filp              476 drivers/s390/char/vmlogrdr.c static ssize_t vmlogrdr_read(struct file *filp, char __user *data,
filp              480 drivers/s390/char/vmlogrdr.c 	struct vmlogrdr_priv_t * priv = filp->private_data;
filp              142 drivers/s390/char/zcore.c static ssize_t zcore_memmap_read(struct file *filp, char __user *buf,
filp              145 drivers/s390/char/zcore.c 	return simple_read_from_buffer(buf, count, ppos, filp->private_data,
filp              149 drivers/s390/char/zcore.c static int zcore_memmap_open(struct inode *inode, struct file *filp)
filp              164 drivers/s390/char/zcore.c 	filp->private_data = buf;
filp              165 drivers/s390/char/zcore.c 	return nonseekable_open(inode, filp);
filp              168 drivers/s390/char/zcore.c static int zcore_memmap_release(struct inode *inode, struct file *filp)
filp              170 drivers/s390/char/zcore.c 	kfree(filp->private_data);
filp              182 drivers/s390/char/zcore.c static ssize_t zcore_reipl_write(struct file *filp, const char __user *buf,
filp              192 drivers/s390/char/zcore.c static int zcore_reipl_open(struct inode *inode, struct file *filp)
filp              194 drivers/s390/char/zcore.c 	return stream_open(inode, filp);
filp              197 drivers/s390/char/zcore.c static int zcore_reipl_release(struct inode *inode, struct file *filp)
filp              210 drivers/s390/char/zcore.c static ssize_t zcore_hsa_read(struct file *filp, char __user *buf,
filp              222 drivers/s390/char/zcore.c static ssize_t zcore_hsa_write(struct file *filp, const char __user *buf,
filp              130 drivers/s390/cio/chp.c static ssize_t chp_measurement_chars_read(struct file *filp,
filp              178 drivers/s390/cio/chp.c static ssize_t chp_measurement_read(struct file *filp, struct kobject *kobj,
filp              387 drivers/s390/cio/chp.c static ssize_t util_string_read(struct file *filp, struct kobject *kobj,
filp              876 drivers/s390/cio/chsc_sch.c static long chsc_ioctl(struct file *filp, unsigned int cmd,
filp              925 drivers/s390/cio/chsc_sch.c static int chsc_release(struct inode *inode, struct file *filp)
filp              273 drivers/s390/cio/qdio_debug.c static int qperf_seq_open(struct inode *inode, struct file *filp)
filp              275 drivers/s390/cio/qdio_debug.c 	return single_open(filp, qperf_show,
filp              276 drivers/s390/cio/qdio_debug.c 			   file_inode(filp)->i_private);
filp              752 drivers/s390/crypto/pkey_api.c static long pkey_unlocked_ioctl(struct file *filp, unsigned int cmd,
filp             1194 drivers/s390/crypto/pkey_api.c static ssize_t protkey_aes_128_read(struct file *filp,
filp             1204 drivers/s390/crypto/pkey_api.c static ssize_t protkey_aes_192_read(struct file *filp,
filp             1214 drivers/s390/crypto/pkey_api.c static ssize_t protkey_aes_256_read(struct file *filp,
filp             1224 drivers/s390/crypto/pkey_api.c static ssize_t protkey_aes_128_xts_read(struct file *filp,
filp             1234 drivers/s390/crypto/pkey_api.c static ssize_t protkey_aes_256_xts_read(struct file *filp,
filp             1298 drivers/s390/crypto/pkey_api.c static ssize_t ccadata_aes_128_read(struct file *filp,
filp             1308 drivers/s390/crypto/pkey_api.c static ssize_t ccadata_aes_192_read(struct file *filp,
filp             1318 drivers/s390/crypto/pkey_api.c static ssize_t ccadata_aes_256_read(struct file *filp,
filp             1328 drivers/s390/crypto/pkey_api.c static ssize_t ccadata_aes_128_xts_read(struct file *filp,
filp             1338 drivers/s390/crypto/pkey_api.c static ssize_t ccadata_aes_256_xts_read(struct file *filp,
filp             1410 drivers/s390/crypto/pkey_api.c static ssize_t ccacipher_aes_128_read(struct file *filp,
filp             1420 drivers/s390/crypto/pkey_api.c static ssize_t ccacipher_aes_192_read(struct file *filp,
filp             1430 drivers/s390/crypto/pkey_api.c static ssize_t ccacipher_aes_256_read(struct file *filp,
filp             1440 drivers/s390/crypto/pkey_api.c static ssize_t ccacipher_aes_128_xts_read(struct file *filp,
filp             1450 drivers/s390/crypto/pkey_api.c static ssize_t ccacipher_aes_256_xts_read(struct file *filp,
filp              469 drivers/s390/crypto/zcrypt_api.c static ssize_t zcrypt_read(struct file *filp, char __user *buf,
filp              480 drivers/s390/crypto/zcrypt_api.c static ssize_t zcrypt_write(struct file *filp, const char __user *buf,
filp              491 drivers/s390/crypto/zcrypt_api.c static int zcrypt_open(struct inode *inode, struct file *filp)
filp              496 drivers/s390/crypto/zcrypt_api.c 	if (filp->f_inode->i_cdev == &zcrypt_cdev) {
filp              501 drivers/s390/crypto/zcrypt_api.c 		zcdndev = find_zcdndev_by_devt(filp->f_inode->i_rdev);
filp              508 drivers/s390/crypto/zcrypt_api.c 	filp->private_data = (void *) perms;
filp              511 drivers/s390/crypto/zcrypt_api.c 	return stream_open(inode, filp);
filp              519 drivers/s390/crypto/zcrypt_api.c static int zcrypt_release(struct inode *inode, struct file *filp)
filp              522 drivers/s390/crypto/zcrypt_api.c 	if (filp->f_inode->i_cdev == &zcrypt_cdev) {
filp              526 drivers/s390/crypto/zcrypt_api.c 		zcdndev = find_zcdndev_by_devt(filp->f_inode->i_rdev);
filp             1291 drivers/s390/crypto/zcrypt_api.c static long zcrypt_unlocked_ioctl(struct file *filp, unsigned int cmd,
filp             1296 drivers/s390/crypto/zcrypt_api.c 		(struct ap_perms *) filp->private_data;
filp             1502 drivers/s390/crypto/zcrypt_api.c static long trans_modexpo32(struct ap_perms *perms, struct file *filp,
filp             1544 drivers/s390/crypto/zcrypt_api.c static long trans_modexpo_crt32(struct ap_perms *perms, struct file *filp,
filp             1597 drivers/s390/crypto/zcrypt_api.c static long trans_xcRB32(struct ap_perms *perms, struct file *filp,
filp             1643 drivers/s390/crypto/zcrypt_api.c static long zcrypt_compat_ioctl(struct file *filp, unsigned int cmd,
filp             1648 drivers/s390/crypto/zcrypt_api.c 		(struct ap_perms *) filp->private_data;
filp             1655 drivers/s390/crypto/zcrypt_api.c 		return trans_modexpo32(perms, filp, cmd, arg);
filp             1657 drivers/s390/crypto/zcrypt_api.c 		return trans_modexpo_crt32(perms, filp, cmd, arg);
filp             1659 drivers/s390/crypto/zcrypt_api.c 		return trans_xcRB32(perms, filp, cmd, arg);
filp             1660 drivers/s390/crypto/zcrypt_api.c 	return zcrypt_unlocked_ioctl(filp, cmd, arg);
filp              207 drivers/sbus/char/oradax.c static ssize_t dax_read(struct file *filp, char __user *buf,
filp              209 drivers/sbus/char/oradax.c static ssize_t dax_write(struct file *filp, const char __user *buf,
filp               98 drivers/scsi/3w-sas.c static ssize_t twl_sysfs_aen_read(struct file *filp, struct kobject *kobj,
filp              129 drivers/scsi/3w-sas.c static ssize_t twl_sysfs_compat_info(struct file *filp, struct kobject *kobj,
filp               63 drivers/scsi/arcmsr/arcmsr_attr.c static ssize_t arcmsr_sysfs_iop_message_read(struct file *filp,
filp              110 drivers/scsi/arcmsr/arcmsr_attr.c static ssize_t arcmsr_sysfs_iop_message_write(struct file *filp,
filp              158 drivers/scsi/arcmsr/arcmsr_attr.c static ssize_t arcmsr_sysfs_iop_message_clear(struct file *filp,
filp              113 drivers/scsi/fnic/fnic_debugfs.c static ssize_t fnic_trace_ctrl_read(struct file *filp,
filp              121 drivers/scsi/fnic/fnic_debugfs.c 	trace_type = (u8 *)filp->private_data;
filp              151 drivers/scsi/fnic/fnic_debugfs.c static ssize_t fnic_trace_ctrl_write(struct file *filp,
filp              159 drivers/scsi/fnic/fnic_debugfs.c 	trace_type = (u8 *)filp->private_data;
filp             2863 drivers/scsi/hisi_sas/hisi_sas_main.c static int hisi_sas_debugfs_global_open(struct inode *inode, struct file *filp)
filp             2865 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_global_show,
filp             2889 drivers/scsi/hisi_sas/hisi_sas_main.c static int hisi_sas_debugfs_axi_open(struct inode *inode, struct file *filp)
filp             2891 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_axi_show,
filp             2915 drivers/scsi/hisi_sas/hisi_sas_main.c static int hisi_sas_debugfs_ras_open(struct inode *inode, struct file *filp)
filp             2917 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_ras_show,
filp             2942 drivers/scsi/hisi_sas/hisi_sas_main.c static int hisi_sas_debugfs_port_open(struct inode *inode, struct file *filp)
filp             2944 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_port_show, inode->i_private);
filp             3010 drivers/scsi/hisi_sas/hisi_sas_main.c static int hisi_sas_debugfs_cq_open(struct inode *inode, struct file *filp)
filp             3012 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_cq_show, inode->i_private);
filp             3044 drivers/scsi/hisi_sas/hisi_sas_main.c static int hisi_sas_debugfs_dq_open(struct inode *inode, struct file *filp)
filp             3046 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_dq_show, inode->i_private);
filp             3072 drivers/scsi/hisi_sas/hisi_sas_main.c static int hisi_sas_debugfs_iost_open(struct inode *inode, struct file *filp)
filp             3074 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_iost_show, inode->i_private);
filp             3111 drivers/scsi/hisi_sas/hisi_sas_main.c 					    struct file *filp)
filp             3113 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_iost_cache_show,
filp             3140 drivers/scsi/hisi_sas/hisi_sas_main.c static int hisi_sas_debugfs_itct_open(struct inode *inode, struct file *filp)
filp             3142 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_itct_show, inode->i_private);
filp             3179 drivers/scsi/hisi_sas/hisi_sas_main.c 					    struct file *filp)
filp             3181 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_itct_cache_show,
filp             3354 drivers/scsi/hisi_sas/hisi_sas_main.c static ssize_t hisi_sas_debugfs_bist_linkrate_write(struct file *filp,
filp             3358 drivers/scsi/hisi_sas/hisi_sas_main.c 	struct seq_file *m = filp->private_data;
filp             3392 drivers/scsi/hisi_sas/hisi_sas_main.c 					       struct file *filp)
filp             3394 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_bist_linkrate_show,
filp             3443 drivers/scsi/hisi_sas/hisi_sas_main.c static ssize_t hisi_sas_debugfs_bist_code_mode_write(struct file *filp,
filp             3448 drivers/scsi/hisi_sas/hisi_sas_main.c 	struct seq_file *m = filp->private_data;
filp             3482 drivers/scsi/hisi_sas/hisi_sas_main.c 						struct file *filp)
filp             3484 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_bist_code_mode_show,
filp             3497 drivers/scsi/hisi_sas/hisi_sas_main.c static ssize_t hisi_sas_debugfs_bist_phy_write(struct file *filp,
filp             3501 drivers/scsi/hisi_sas/hisi_sas_main.c 	struct seq_file *m = filp->private_data;
filp             3531 drivers/scsi/hisi_sas/hisi_sas_main.c 					  struct file *filp)
filp             3533 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_bist_phy_show,
filp             3573 drivers/scsi/hisi_sas/hisi_sas_main.c static ssize_t hisi_sas_debugfs_bist_mode_write(struct file *filp,
filp             3577 drivers/scsi/hisi_sas/hisi_sas_main.c 	struct seq_file *m = filp->private_data;
filp             3610 drivers/scsi/hisi_sas/hisi_sas_main.c 					   struct file *filp)
filp             3612 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_bist_mode_show,
filp             3625 drivers/scsi/hisi_sas/hisi_sas_main.c static ssize_t hisi_sas_debugfs_bist_enable_write(struct file *filp,
filp             3629 drivers/scsi/hisi_sas/hisi_sas_main.c 	struct seq_file *m = filp->private_data;
filp             3666 drivers/scsi/hisi_sas/hisi_sas_main.c 					     struct file *filp)
filp             3668 drivers/scsi/hisi_sas/hisi_sas_main.c 	return single_open(filp, hisi_sas_debugfs_bist_enable_show,
filp             3029 drivers/scsi/ibmvscsi/ibmvfc.c static ssize_t ibmvfc_read_trace(struct file *filp, struct kobject *kobj,
filp             3456 drivers/scsi/ipr.c static ssize_t ipr_read_trace(struct file *filp, struct kobject *kobj,
filp             4252 drivers/scsi/ipr.c static ssize_t ipr_read_dump(struct file *filp, struct kobject *kobj,
filp             4441 drivers/scsi/ipr.c static ssize_t ipr_write_dump(struct file *filp, struct kobject *kobj,
filp             4416 drivers/scsi/lpfc/lpfc_attr.c sysfs_drvr_stat_data_read(struct file *filp, struct kobject *kobj,
filp             6141 drivers/scsi/lpfc/lpfc_attr.c sysfs_ctlreg_write(struct file *filp, struct kobject *kobj,
filp             6200 drivers/scsi/lpfc/lpfc_attr.c sysfs_ctlreg_read(struct file *filp, struct kobject *kobj,
filp             6264 drivers/scsi/lpfc/lpfc_attr.c sysfs_mbox_write(struct file *filp, struct kobject *kobj,
filp             6288 drivers/scsi/lpfc/lpfc_attr.c sysfs_mbox_read(struct file *filp, struct kobject *kobj,
filp               48 drivers/scsi/megaraid/megaraid_sas_debugfs.c megasas_debugfs_read(struct file *filp, char __user *ubuf, size_t cnt,
filp               51 drivers/scsi/megaraid/megaraid_sas_debugfs.c 	struct megasas_debugfs_buffer *debug = filp->private_data;
filp              100 drivers/scsi/qedf/qedf_debugfs.c qedf_dbg_fp_int_cmd_read(struct file *filp, char __user *buffer, size_t count,
filp              107 drivers/scsi/qedf/qedf_debugfs.c 				(struct qedf_dbg_ctx *)filp->private_data;
filp              129 drivers/scsi/qedf/qedf_debugfs.c qedf_dbg_fp_int_cmd_write(struct file *filp, const char __user *buffer,
filp              139 drivers/scsi/qedf/qedf_debugfs.c qedf_dbg_debug_cmd_read(struct file *filp, char __user *buffer, size_t count,
filp              144 drivers/scsi/qedf/qedf_debugfs.c 				(struct qedf_dbg_ctx *)filp->private_data;
filp              155 drivers/scsi/qedf/qedf_debugfs.c qedf_dbg_debug_cmd_write(struct file *filp, const char __user *buffer,
filp              162 drivers/scsi/qedf/qedf_debugfs.c 	    (struct qedf_dbg_ctx *)filp->private_data;
filp              186 drivers/scsi/qedf/qedf_debugfs.c qedf_dbg_stop_io_on_error_cmd_read(struct file *filp, char __user *buffer,
filp              191 drivers/scsi/qedf/qedf_debugfs.c 				(struct qedf_dbg_ctx *)filp->private_data;
filp              205 drivers/scsi/qedf/qedf_debugfs.c qedf_dbg_stop_io_on_error_cmd_write(struct file *filp,
filp              211 drivers/scsi/qedf/qedf_debugfs.c 				(struct qedf_dbg_ctx *)filp->private_data;
filp              381 drivers/scsi/qedf/qedf_debugfs.c qedf_dbg_clear_stats_cmd_read(struct file *filp, char __user *buffer,
filp              393 drivers/scsi/qedf/qedf_debugfs.c qedf_dbg_clear_stats_cmd_write(struct file *filp,
filp              398 drivers/scsi/qedf/qedf_debugfs.c 				(struct qedf_dbg_ctx *)filp->private_data;
filp               94 drivers/scsi/qedi/qedi_debugfs.c qedi_dbg_do_not_recover_cmd_write(struct file *filp, const char __user *buffer,
filp               99 drivers/scsi/qedi/qedi_debugfs.c 			(struct qedi_dbg_ctx *)filp->private_data;
filp              120 drivers/scsi/qedi/qedi_debugfs.c qedi_dbg_do_not_recover_cmd_read(struct file *filp, char __user *buffer,
filp               20 drivers/scsi/qla2xxx/qla_attr.c qla2x00_sysfs_read_fw_dump(struct file *filp, struct kobject *kobj,
filp               56 drivers/scsi/qla2xxx/qla_attr.c qla2x00_sysfs_write_fw_dump(struct file *filp, struct kobject *kobj,
filp              153 drivers/scsi/qla2xxx/qla_attr.c qla2x00_sysfs_read_nvram(struct file *filp, struct kobject *kobj,
filp              193 drivers/scsi/qla2xxx/qla_attr.c qla2x00_sysfs_write_nvram(struct file *filp, struct kobject *kobj,
filp              268 drivers/scsi/qla2xxx/qla_attr.c qla2x00_sysfs_read_optrom(struct file *filp, struct kobject *kobj,
filp              292 drivers/scsi/qla2xxx/qla_attr.c qla2x00_sysfs_write_optrom(struct file *filp, struct kobject *kobj,
filp              330 drivers/scsi/qla2xxx/qla_attr.c qla2x00_sysfs_write_optrom_ctl(struct file *filp, struct kobject *kobj,
filp              514 drivers/scsi/qla2xxx/qla_attr.c qla2x00_sysfs_read_vpd(struct file *filp, struct kobject *kobj,
filp              561 drivers/scsi/qla2xxx/qla_attr.c qla2x00_sysfs_write_vpd(struct file *filp, struct kobject *kobj,
filp              628 drivers/scsi/qla2xxx/qla_attr.c qla2x00_sysfs_read_sfp(struct file *filp, struct kobject *kobj,
filp              664 drivers/scsi/qla2xxx/qla_attr.c qla2x00_sysfs_write_reset(struct file *filp, struct kobject *kobj,
filp              800 drivers/scsi/qla2xxx/qla_attr.c qla2x00_issue_logo(struct file *filp, struct kobject *kobj,
filp              843 drivers/scsi/qla2xxx/qla_attr.c qla2x00_sysfs_read_xgmac_stats(struct file *filp, struct kobject *kobj,
filp              906 drivers/scsi/qla2xxx/qla_attr.c qla2x00_sysfs_read_dcbx_tlv(struct file *filp, struct kobject *kobj,
filp              846 drivers/scsi/scsi_sysfs.c show_vpd_##_page(struct file *filp, struct kobject *kobj,	\
filp              220 drivers/scsi/sg.c static int sg_check_file_access(struct file *filp, const char *caller)
filp              222 drivers/scsi/sg.c 	if (filp->f_cred != current_real_cred()) {
filp              235 drivers/scsi/sg.c static int sg_allow_access(struct file *filp, unsigned char *cmd)
filp              237 drivers/scsi/sg.c 	struct sg_fd *sfp = filp->private_data;
filp              242 drivers/scsi/sg.c 	return blk_verify_command(cmd, filp->f_mode);
filp              283 drivers/scsi/sg.c sg_open(struct inode *inode, struct file *filp)
filp              286 drivers/scsi/sg.c 	int flags = filp->f_flags;
filp              292 drivers/scsi/sg.c 	nonseekable_open(inode, filp);
filp              356 drivers/scsi/sg.c 	filp->private_data = sfp;
filp              382 drivers/scsi/sg.c sg_release(struct inode *inode, struct file *filp)
filp              387 drivers/scsi/sg.c 	if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
filp              409 drivers/scsi/sg.c sg_read(struct file *filp, char __user *buf, size_t count, loff_t * ppos)
filp              423 drivers/scsi/sg.c 	retval = sg_check_file_access(filp, __func__);
filp              427 drivers/scsi/sg.c 	if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
filp              468 drivers/scsi/sg.c 		if (filp->f_flags & O_NONBLOCK) {
filp              603 drivers/scsi/sg.c sg_write(struct file *filp, const char __user *buf, size_t count, loff_t * ppos)
filp              616 drivers/scsi/sg.c 	retval = sg_check_file_access(filp, __func__);
filp              620 drivers/scsi/sg.c 	if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
filp              626 drivers/scsi/sg.c 	if (!((filp->f_flags & O_NONBLOCK) ||
filp              636 drivers/scsi/sg.c 	blocking = !(filp->f_flags & O_NONBLOCK);
filp              638 drivers/scsi/sg.c 		return sg_new_write(sfp, filp, buf, count,
filp              901 drivers/scsi/sg.c sg_ioctl(struct file *filp, unsigned int cmd_in, unsigned long arg)
filp              911 drivers/scsi/sg.c 	if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
filp              916 drivers/scsi/sg.c 	read_only = (O_RDWR != (filp->f_flags & O_ACCMODE));
filp              926 drivers/scsi/sg.c 		result = sg_new_write(sfp, filp, p, SZ_SG_IO_HDR,
filp             1105 drivers/scsi/sg.c 		return sg_scsi_ioctl(sdp->device->request_queue, NULL, filp->f_mode, p);
filp             1141 drivers/scsi/sg.c 			cmd_in, filp->f_flags & O_NDELAY);
filp             1148 drivers/scsi/sg.c static long sg_compat_ioctl(struct file *filp, unsigned int cmd_in, unsigned long arg)
filp             1154 drivers/scsi/sg.c 	if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
filp             1171 drivers/scsi/sg.c sg_poll(struct file *filp, poll_table * wait)
filp             1180 drivers/scsi/sg.c 	sfp = filp->private_data;
filp             1186 drivers/scsi/sg.c 	poll_wait(filp, &sfp->read_wait, wait);
filp             1209 drivers/scsi/sg.c sg_fasync(int fd, struct file *filp, int mode)
filp             1214 drivers/scsi/sg.c 	if ((!(sfp = (Sg_fd *) filp->private_data)) || (!(sdp = sfp->parentdp)))
filp             1219 drivers/scsi/sg.c 	return fasync_helper(fd, filp, mode, &sfp->async_qp);
filp             1264 drivers/scsi/sg.c sg_mmap(struct file *filp, struct vm_area_struct *vma)
filp             1272 drivers/scsi/sg.c 	if ((!filp) || (!vma) || (!(sfp = (Sg_fd *) filp->private_data)))
filp             2301 drivers/scsi/sg.c static ssize_t sg_proc_write_adio(struct file *filp, const char __user *buffer,
filp             2313 drivers/scsi/sg.c static ssize_t sg_proc_write_dressz(struct file *filp, 
filp             2385 drivers/scsi/sg.c sg_proc_write_adio(struct file *filp, const char __user *buffer,
filp             2406 drivers/scsi/sg.c sg_proc_write_dressz(struct file *filp, const char __user *buffer,
filp               62 drivers/scsi/snic/snic_debugfs.c snic_reset_stats_open(struct inode *inode, struct file *filp)
filp               65 drivers/scsi/snic/snic_debugfs.c 	filp->private_data = inode->i_private;
filp               86 drivers/scsi/snic/snic_debugfs.c snic_reset_stats_read(struct file *filp,
filp               91 drivers/scsi/snic/snic_debugfs.c 	struct snic *snic = (struct snic *) filp->private_data;
filp              115 drivers/scsi/snic/snic_debugfs.c snic_reset_stats_write(struct file *filp,
filp              120 drivers/scsi/snic/snic_debugfs.c 	struct snic *snic = (struct snic *) filp->private_data;
filp              168 drivers/scsi/snic/snic_debugfs.c snic_reset_stats_release(struct inode *inode, struct file *filp)
filp              170 drivers/scsi/snic/snic_debugfs.c 	filp->private_data = NULL;
filp              344 drivers/scsi/snic/snic_debugfs.c snic_stats_open(struct inode *inode, struct file *filp)
filp              346 drivers/scsi/snic/snic_debugfs.c 	return single_open(filp, snic_stats_show, inode->i_private);
filp              450 drivers/scsi/snic/snic_debugfs.c snic_trc_open(struct inode *inode, struct file *filp)
filp              452 drivers/scsi/snic/snic_debugfs.c 	return seq_open(filp, &snic_trc_seq_ops);
filp             1039 drivers/scsi/st.c static int check_tape(struct scsi_tape *STp, struct file *filp)
filp             1043 drivers/scsi/st.c 	unsigned short st_flags = filp->f_flags;
filp             1047 drivers/scsi/st.c 	struct inode *inode = file_inode(filp);
filp             1063 drivers/scsi/st.c 	do_wait = ((filp->f_flags & O_NONBLOCK) == 0);
filp             1246 drivers/scsi/st.c static int st_open(struct inode *inode, struct file *filp)
filp             1259 drivers/scsi/st.c 	filp->f_mode &= ~(FMODE_PREAD | FMODE_PWRITE);
filp             1265 drivers/scsi/st.c 	filp->private_data = STp;
filp             1301 drivers/scsi/st.c 	STp->write_prot = ((filp->f_flags & O_ACCMODE) == O_RDONLY);
filp             1313 drivers/scsi/st.c 	retval = check_tape(STp, filp);
filp             1316 drivers/scsi/st.c 	if ((filp->f_flags & O_NONBLOCK) == 0 &&
filp             1340 drivers/scsi/st.c static int st_flush(struct file *filp, fl_owner_t id)
filp             1345 drivers/scsi/st.c 	struct scsi_tape *STp = filp->private_data;
filp             1349 drivers/scsi/st.c 	if (file_count(filp) > 1)
filp             1456 drivers/scsi/st.c static int st_release(struct inode *inode, struct file *filp)
filp             1459 drivers/scsi/st.c 	struct scsi_tape *STp = filp->private_data;
filp             1475 drivers/scsi/st.c static ssize_t rw_checks(struct scsi_tape *STp, struct file *filp, size_t count)
filp             1620 drivers/scsi/st.c st_write(struct file *filp, const char __user *buf, size_t count, loff_t * ppos)
filp             1630 drivers/scsi/st.c 	struct scsi_tape *STp = filp->private_data;
filp             1638 drivers/scsi/st.c 	retval = rw_checks(STp, filp, count);
filp             2095 drivers/scsi/st.c st_read(struct file *filp, char __user *buf, size_t count, loff_t * ppos)
filp             2102 drivers/scsi/st.c 	struct scsi_tape *STp = filp->private_data;
filp             2110 drivers/scsi/st.c 	retval = rw_checks(STp, filp, count);
filp             2601 drivers/scsi/st.c static int do_load_unload(struct scsi_tape *STp, struct file *filp, int load_code)
filp             2659 drivers/scsi/st.c 			retval = check_tape(STp, filp);
filp              175 drivers/sfi/sfi_acpi.c static ssize_t sfi_acpi_table_show(struct file *filp, struct kobject *kobj,
filp              390 drivers/sfi/sfi_core.c static ssize_t sfi_table_show(struct file *filp, struct kobject *kobj,
filp               70 drivers/soc/qcom/rmtfs_mem.c static int qcom_rmtfs_mem_open(struct inode *inode, struct file *filp)
filp               77 drivers/soc/qcom/rmtfs_mem.c 	filp->private_data = rmtfs_mem;
filp               81 drivers/soc/qcom/rmtfs_mem.c static ssize_t qcom_rmtfs_mem_read(struct file *filp,
filp               84 drivers/soc/qcom/rmtfs_mem.c 	struct qcom_rmtfs_mem *rmtfs_mem = filp->private_data;
filp               99 drivers/soc/qcom/rmtfs_mem.c static ssize_t qcom_rmtfs_mem_write(struct file *filp,
filp              103 drivers/soc/qcom/rmtfs_mem.c 	struct qcom_rmtfs_mem *rmtfs_mem = filp->private_data;
filp              118 drivers/soc/qcom/rmtfs_mem.c static int qcom_rmtfs_mem_release(struct inode *inode, struct file *filp)
filp              120 drivers/soc/qcom/rmtfs_mem.c 	struct qcom_rmtfs_mem *rmtfs_mem = filp->private_data;
filp              145 drivers/spi/spidev.c spidev_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos)
filp              154 drivers/spi/spidev.c 	spidev = filp->private_data;
filp              174 drivers/spi/spidev.c spidev_write(struct file *filp, const char __user *buf,
filp              185 drivers/spi/spidev.c 	spidev = filp->private_data;
filp              336 drivers/spi/spidev.c spidev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              352 drivers/spi/spidev.c 	spidev = filp->private_data;
filp              488 drivers/spi/spidev.c spidev_compat_ioc_message(struct file *filp, unsigned int cmd,
filp              503 drivers/spi/spidev.c 	spidev = filp->private_data;
filp              540 drivers/spi/spidev.c spidev_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              545 drivers/spi/spidev.c 		return spidev_compat_ioc_message(filp, cmd, arg);
filp              547 drivers/spi/spidev.c 	return spidev_ioctl(filp, cmd, (unsigned long)compat_ptr(arg));
filp              553 drivers/spi/spidev.c static int spidev_open(struct inode *inode, struct file *filp)
filp              591 drivers/spi/spidev.c 	filp->private_data = spidev;
filp              592 drivers/spi/spidev.c 	stream_open(inode, filp);
filp              605 drivers/spi/spidev.c static int spidev_release(struct inode *inode, struct file *filp)
filp              610 drivers/spi/spidev.c 	spidev = filp->private_data;
filp              611 drivers/spi/spidev.c 	filp->private_data = NULL;
filp              479 drivers/staging/android/ion/ion.c static long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              149 drivers/staging/android/vsoc.c static loff_t vsoc_lseek(struct file *filp, loff_t offset, int origin);
filp              159 drivers/staging/android/vsoc.c static ssize_t vsoc_get_area(struct file *filp, __u32 *perm_off);
filp              174 drivers/staging/android/vsoc.c inline int vsoc_validate_filep(struct file *filp)
filp              176 drivers/staging/android/vsoc.c 	int ret = vsoc_validate_inode(file_inode(filp));
filp              180 drivers/staging/android/vsoc.c 	if (!filp->private_data) {
filp              183 drivers/staging/android/vsoc.c 			iminor(file_inode(filp)));
filp              381 drivers/staging/android/vsoc.c static long do_vsoc_describe_region(struct file *filp,
filp              385 drivers/staging/android/vsoc.c 	int retval = vsoc_validate_filep(filp);
filp              389 drivers/staging/android/vsoc.c 	region_p = vsoc_region_from_filep(filp);
filp              399 drivers/staging/android/vsoc.c static int handle_vsoc_cond_wait(struct file *filp, struct vsoc_cond_wait *arg)
filp              402 drivers/staging/android/vsoc.c 	u32 region_number = iminor(file_inode(filp));
filp              406 drivers/staging/android/vsoc.c 	struct vsoc_device_region *region_p = vsoc_region_from_filep(filp);
filp              491 drivers/staging/android/vsoc.c static int do_vsoc_cond_wait(struct file *filp,
filp              501 drivers/staging/android/vsoc.c 	rval = handle_vsoc_cond_wait(filp, &arg);
filp              507 drivers/staging/android/vsoc.c static int do_vsoc_cond_wake(struct file *filp, uint32_t offset)
filp              509 drivers/staging/android/vsoc.c 	struct vsoc_device_region *region_p = vsoc_region_from_filep(filp);
filp              510 drivers/staging/android/vsoc.c 	u32 region_number = iminor(file_inode(filp));
filp              529 drivers/staging/android/vsoc.c static long vsoc_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              535 drivers/staging/android/vsoc.c 	int retval = vsoc_validate_filep(filp);
filp              539 drivers/staging/android/vsoc.c 	region_p = vsoc_region_from_filep(filp);
filp              540 drivers/staging/android/vsoc.c 	reg_num = iminor(file_inode(filp));
filp              570 drivers/staging/android/vsoc.c 			    ((struct vsoc_private_data *)filp->private_data)->
filp              601 drivers/staging/android/vsoc.c 			(filp,
filp              610 drivers/staging/android/vsoc.c 		return do_vsoc_cond_wait(filp,
filp              613 drivers/staging/android/vsoc.c 		return do_vsoc_cond_wake(filp, arg);
filp              621 drivers/staging/android/vsoc.c static ssize_t vsoc_read(struct file *filp, char __user *buffer, size_t len,
filp              627 drivers/staging/android/vsoc.c 	int retval = vsoc_validate_filep(filp);
filp              631 drivers/staging/android/vsoc.c 	area_len = vsoc_get_area(filp, &area_off);
filp              645 drivers/staging/android/vsoc.c static loff_t vsoc_lseek(struct file *filp, loff_t offset, int origin)
filp              648 drivers/staging/android/vsoc.c 	int retval = vsoc_validate_filep(filp);
filp              652 drivers/staging/android/vsoc.c 	area_len = vsoc_get_area(filp, NULL);
filp              658 drivers/staging/android/vsoc.c 		if (offset > 0 && offset + filp->f_pos < 0)
filp              660 drivers/staging/android/vsoc.c 		offset += filp->f_pos;
filp              690 drivers/staging/android/vsoc.c 	filp->f_pos = offset;
filp              695 drivers/staging/android/vsoc.c static ssize_t vsoc_write(struct file *filp, const char __user *buffer,
filp              701 drivers/staging/android/vsoc.c 	int retval = vsoc_validate_filep(filp);
filp              705 drivers/staging/android/vsoc.c 	area_len = vsoc_get_area(filp, &area_off);
filp             1042 drivers/staging/android/vsoc.c static int vsoc_open(struct inode *inode, struct file *filp)
filp             1049 drivers/staging/android/vsoc.c 	filp->private_data =
filp             1051 drivers/staging/android/vsoc.c 	if (!filp->private_data)
filp             1056 drivers/staging/android/vsoc.c static int vsoc_release(struct inode *inode, struct file *filp)
filp             1061 drivers/staging/android/vsoc.c 	int retval = vsoc_validate_filep(filp);
filp             1065 drivers/staging/android/vsoc.c 	private_data = (struct vsoc_private_data *)filp->private_data;
filp             1080 drivers/staging/android/vsoc.c 	filp->private_data = NULL;
filp             1091 drivers/staging/android/vsoc.c static ssize_t vsoc_get_area(struct file *filp, __u32 *area_offset)
filp             1098 drivers/staging/android/vsoc.c 	region_p = vsoc_region_from_filep(filp);
filp             1100 drivers/staging/android/vsoc.c 	perm = &((struct vsoc_private_data *)filp->private_data)->
filp             1119 drivers/staging/android/vsoc.c static int vsoc_mmap(struct file *filp, struct vm_area_struct *vma)
filp             1125 drivers/staging/android/vsoc.c 	int retval = vsoc_validate_filep(filp);
filp             1129 drivers/staging/android/vsoc.c 	area_len = vsoc_get_area(filp, &area_off);
filp             2200 drivers/staging/exfat/exfat_super.c static int exfat_readdir(struct file *filp, struct dir_context *ctx)
filp             2202 drivers/staging/exfat/exfat_super.c 	struct inode *inode = file_inode(filp);
filp             2223 drivers/staging/exfat/exfat_super.c 				inum = parent_ino(filp->f_path.dentry);
filp             2225 drivers/staging/exfat/exfat_super.c 			if (!dir_emit_dots(filp, ctx))
filp             2264 drivers/staging/exfat/exfat_super.c 		inum = parent_ino(filp->f_path.dentry);
filp             2301 drivers/staging/exfat/exfat_super.c static long exfat_generic_ioctl(struct file *filp, unsigned int cmd,
filp             2304 drivers/staging/exfat/exfat_super.c struct inode *inode = filp->f_path.dentry->d_inode;
filp             3042 drivers/staging/exfat/exfat_super.c static int exfat_file_release(struct inode *inode, struct file *filp)
filp              172 drivers/staging/fieldbus/dev_core.c static int fieldbus_open(struct inode *inode, struct file *filp)
filp              183 drivers/staging/fieldbus/dev_core.c 	filp->private_data = of;
filp              187 drivers/staging/fieldbus/dev_core.c static int fieldbus_release(struct inode *node, struct file *filp)
filp              189 drivers/staging/fieldbus/dev_core.c 	struct fb_open_file *of = filp->private_data;
filp              195 drivers/staging/fieldbus/dev_core.c static ssize_t fieldbus_read(struct file *filp, char __user *buf, size_t size,
filp              198 drivers/staging/fieldbus/dev_core.c 	struct fb_open_file *of = filp->private_data;
filp              205 drivers/staging/fieldbus/dev_core.c static ssize_t fieldbus_write(struct file *filp, const char __user *buf,
filp              208 drivers/staging/fieldbus/dev_core.c 	struct fb_open_file *of = filp->private_data;
filp              214 drivers/staging/fieldbus/dev_core.c static __poll_t fieldbus_poll(struct file *filp, poll_table *wait)
filp              216 drivers/staging/fieldbus/dev_core.c 	struct fb_open_file *of = filp->private_data;
filp              220 drivers/staging/fieldbus/dev_core.c 	poll_wait(filp, &fbdev->dc_wq, wait);
filp              449 drivers/staging/gasket/apex_driver.c static bool apex_ioctl_check_permissions(struct file *filp, uint cmd)
filp              451 drivers/staging/gasket/apex_driver.c 	return !!(filp->f_mode & FMODE_WRITE);
filp              489 drivers/staging/gasket/apex_driver.c static long apex_ioctl(struct file *filp, uint cmd, void __user *argp)
filp              491 drivers/staging/gasket/apex_driver.c 	struct gasket_dev *gasket_dev = filp->private_data;
filp              493 drivers/staging/gasket/apex_driver.c 	if (!apex_ioctl_check_permissions(filp, cmd))
filp             1013 drivers/staging/gasket/gasket_core.c static int gasket_mmap(struct file *filp, struct vm_area_struct *vma)
filp             1022 drivers/staging/gasket/gasket_core.c 	struct gasket_dev *gasket_dev = (struct gasket_dev *)filp->private_data;
filp             1167 drivers/staging/gasket/gasket_core.c static int gasket_open(struct inode *inode, struct file *filp)
filp             1183 drivers/staging/gasket/gasket_core.c 	filp->private_data = gasket_dev;
filp             1189 drivers/staging/gasket/gasket_core.c 		current->tgid, task_name, filp->f_mode,
filp             1190 drivers/staging/gasket/gasket_core.c 		(filp->f_mode & FMODE_WRITE), is_root);
filp             1193 drivers/staging/gasket/gasket_core.c 	if (!(filp->f_mode & FMODE_WRITE)) {
filp             1307 drivers/staging/gasket/gasket_core.c static long gasket_ioctl(struct file *filp, uint cmd, ulong arg)
filp             1314 drivers/staging/gasket/gasket_core.c 	gasket_dev = (struct gasket_dev *)filp->private_data;
filp             1319 drivers/staging/gasket/gasket_core.c 			d_path(&filp->f_path, path, 256));
filp             1330 drivers/staging/gasket/gasket_core.c 			return driver_desc->ioctl_handler_cb(filp, cmd, argp);
filp             1336 drivers/staging/gasket/gasket_core.c 	return gasket_handle_ioctl(filp, cmd, argp);
filp              310 drivers/staging/gasket/gasket_core.h typedef int (*gasket_ioctl_permissions_cb_t)(struct file *filp, uint cmd,
filp              222 drivers/staging/gasket/gasket_ioctl.c static bool gasket_ioctl_check_permissions(struct file *filp, uint cmd)
filp              226 drivers/staging/gasket/gasket_ioctl.c 	struct gasket_dev *gasket_dev = (struct gasket_dev *)filp->private_data;
filp              233 drivers/staging/gasket/gasket_ioctl.c 	read = !!(filp->f_mode & FMODE_READ);
filp              234 drivers/staging/gasket/gasket_ioctl.c 	write = !!(filp->f_mode & FMODE_WRITE);
filp              270 drivers/staging/gasket/gasket_ioctl.c long gasket_handle_ioctl(struct file *filp, uint cmd, void __user *argp)
filp              277 drivers/staging/gasket/gasket_ioctl.c 	gasket_dev = (struct gasket_dev *)filp->private_data;
filp              282 drivers/staging/gasket/gasket_ioctl.c 		retval = ioctl_permissions_cb(filp, cmd, argp);
filp              290 drivers/staging/gasket/gasket_ioctl.c 	} else if (!gasket_ioctl_check_permissions(filp, cmd)) {
filp               18 drivers/staging/gasket/gasket_ioctl.h long gasket_handle_ioctl(struct file *filp, uint cmd, void __user *argp);
filp               86 drivers/staging/gdm724x/gdm_tty.c static int gdm_tty_open(struct tty_struct *tty, struct file *filp)
filp               90 drivers/staging/gdm724x/gdm_tty.c 	return tty_port_open(&gdm->port, tty, filp);
filp              107 drivers/staging/gdm724x/gdm_tty.c static void gdm_tty_close(struct tty_struct *tty, struct file *filp)
filp              111 drivers/staging/gdm724x/gdm_tty.c 	tty_port_close(&gdm->port, tty, filp);
filp              113 drivers/staging/isdn/gigaset/interface.c static int if_open(struct tty_struct *tty, struct file *filp)
filp              141 drivers/staging/isdn/gigaset/interface.c static void if_close(struct tty_struct *tty, struct file *filp)
filp              245 drivers/staging/kpc2000/kpc_dma/fileops.c int  kpc_dma_open(struct inode *inode, struct file *filp)
filp              263 drivers/staging/kpc2000/kpc_dma/fileops.c 	filp->private_data = priv;
filp              269 drivers/staging/kpc2000/kpc_dma/fileops.c int  kpc_dma_close(struct inode *inode, struct file *filp)
filp              272 drivers/staging/kpc2000/kpc_dma/fileops.c 	struct dev_private_data *priv = (struct dev_private_data *)filp->private_data;
filp              303 drivers/staging/kpc2000/kpc_dma/fileops.c ssize_t  kpc_dma_read(struct file *filp,       char __user *user_buf, size_t count, loff_t *ppos)
filp              305 drivers/staging/kpc2000/kpc_dma/fileops.c 	struct dev_private_data *priv = (struct dev_private_data *)filp->private_data;
filp              314 drivers/staging/kpc2000/kpc_dma/fileops.c ssize_t  kpc_dma_write(struct file *filp, const char __user *user_buf, size_t count, loff_t *ppos)
filp              316 drivers/staging/kpc2000/kpc_dma/fileops.c 	struct dev_private_data *priv = (struct dev_private_data *)filp->private_data;
filp              325 drivers/staging/kpc2000/kpc_dma/fileops.c long  kpc_dma_ioctl(struct file *filp, unsigned int ioctl_num, unsigned long ioctl_param)
filp              327 drivers/staging/kpc2000/kpc_dma/fileops.c 	struct dev_private_data *priv = (struct dev_private_data *)filp->private_data;
filp              391 drivers/staging/media/hantro/hantro_drv.c static int hantro_open(struct file *filp)
filp              393 drivers/staging/media/hantro/hantro_drv.c 	struct hantro_dev *vpu = video_drvdata(filp);
filp              394 drivers/staging/media/hantro/hantro_drv.c 	struct video_device *vdev = video_devdata(filp);
filp              433 drivers/staging/media/hantro/hantro_drv.c 	filp->private_data = &ctx->fh;
filp              454 drivers/staging/media/hantro/hantro_drv.c static int hantro_release(struct file *filp)
filp              457 drivers/staging/media/hantro/hantro_drv.c 		container_of(filp->private_data, struct hantro_ctx, fh);
filp              871 drivers/staging/media/tegra-vde/vde.c static long tegra_vde_unlocked_ioctl(struct file *filp,
filp              874 drivers/staging/media/tegra-vde/vde.c 	struct miscdevice *miscdev = filp->private_data;
filp              888 drivers/staging/media/tegra-vde/vde.c static int tegra_vde_release_file(struct inode *inode, struct file *filp)
filp              890 drivers/staging/media/tegra-vde/vde.c 	struct miscdevice *miscdev = filp->private_data;
filp              120 drivers/staging/most/cdev/cdev.c static int comp_open(struct inode *inode, struct file *filp)
filp              126 drivers/staging/most/cdev/cdev.c 	filp->private_data = c;
filp              129 drivers/staging/most/cdev/cdev.c 	     ((filp->f_flags & O_ACCMODE) != O_RDONLY)) ||
filp              131 drivers/staging/most/cdev/cdev.c 		((filp->f_flags & O_ACCMODE) != O_WRONLY))) {
filp              164 drivers/staging/most/cdev/cdev.c static int comp_close(struct inode *inode, struct file *filp)
filp              189 drivers/staging/most/cdev/cdev.c static ssize_t comp_write(struct file *filp, const char __user *buf,
filp              195 drivers/staging/most/cdev/cdev.c 	struct comp_channel *c = filp->private_data;
filp              201 drivers/staging/most/cdev/cdev.c 		if ((filp->f_flags & O_NONBLOCK))
filp              244 drivers/staging/most/cdev/cdev.c comp_read(struct file *filp, char __user *buf, size_t count, loff_t *offset)
filp              248 drivers/staging/most/cdev/cdev.c 	struct comp_channel *c = filp->private_data;
filp              253 drivers/staging/most/cdev/cdev.c 		if (filp->f_flags & O_NONBLOCK)
filp              288 drivers/staging/most/cdev/cdev.c static __poll_t comp_poll(struct file *filp, poll_table *wait)
filp              290 drivers/staging/most/cdev/cdev.c 	struct comp_channel *c = filp->private_data;
filp              293 drivers/staging/most/cdev/cdev.c 	poll_wait(filp, &c->wq, wait);
filp               69 drivers/staging/most/video/video.c static int comp_vdev_open(struct file *filp)
filp               72 drivers/staging/most/video/video.c 	struct video_device *vdev = video_devdata(filp);
filp               73 drivers/staging/most/video/video.c 	struct most_video_dev *mdev = video_drvdata(filp);
filp               95 drivers/staging/most/video/video.c 	filp->private_data = fh;
filp              117 drivers/staging/most/video/video.c static int comp_vdev_close(struct file *filp)
filp              119 drivers/staging/most/video/video.c 	struct comp_fh *fh = filp->private_data;
filp              152 drivers/staging/most/video/video.c static ssize_t comp_vdev_read(struct file *filp, char __user *buf,
filp              155 drivers/staging/most/video/video.c 	struct comp_fh *fh = filp->private_data;
filp              166 drivers/staging/most/video/video.c 	if (!(filp->f_flags & O_NONBLOCK)) {
filp              202 drivers/staging/most/video/video.c static __poll_t comp_vdev_poll(struct file *filp, poll_table *wait)
filp              204 drivers/staging/most/video/video.c 	struct comp_fh *fh = filp->private_data;
filp              210 drivers/staging/most/video/video.c 		poll_wait(filp, &mdev->wait_data, wait);
filp              763 drivers/staging/pi433/pi433_if.c pi433_read(struct file *filp, char __user *buf, size_t size, loff_t *f_pos)
filp              774 drivers/staging/pi433/pi433_if.c 	instance = filp->private_data;
filp              808 drivers/staging/pi433/pi433_if.c pi433_write(struct file *filp, const char __user *buf,
filp              816 drivers/staging/pi433/pi433_if.c 	instance = filp->private_data;
filp              872 drivers/staging/pi433/pi433_if.c pi433_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              883 drivers/staging/pi433/pi433_if.c 	instance = filp->private_data;
filp              933 drivers/staging/pi433/pi433_if.c pi433_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              935 drivers/staging/pi433/pi433_if.c 	return pi433_ioctl(filp, cmd, (unsigned long)compat_ptr(arg));
filp              943 drivers/staging/pi433/pi433_if.c static int pi433_open(struct inode *inode, struct file *filp)
filp              966 drivers/staging/pi433/pi433_if.c 	filp->private_data = instance;
filp              967 drivers/staging/pi433/pi433_if.c 	stream_open(inode, filp);
filp              972 drivers/staging/pi433/pi433_if.c static int pi433_release(struct inode *inode, struct file *filp)
filp              976 drivers/staging/pi433/pi433_if.c 	instance = filp->private_data;
filp              978 drivers/staging/pi433/pi433_if.c 	filp->private_data = NULL;
filp               91 drivers/tee/tee_core.c static int tee_open(struct inode *inode, struct file *filp)
filp              104 drivers/tee/tee_core.c 	filp->private_data = ctx;
filp              108 drivers/tee/tee_core.c static int tee_release(struct inode *inode, struct file *filp)
filp              110 drivers/tee/tee_core.c 	teedev_close_context(filp->private_data);
filp              644 drivers/tee/tee_core.c static long tee_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              646 drivers/tee/tee_core.c 	struct tee_context *ctx = filp->private_data;
filp             1331 drivers/tty/amiserial.c static void rs_close(struct tty_struct *tty, struct file * filp)
filp             1339 drivers/tty/amiserial.c 	if (tty_port_close_start(port, tty, filp) == 0)
filp             1460 drivers/tty/amiserial.c static int rs_open(struct tty_struct *tty, struct file * filp)
filp             1480 drivers/tty/amiserial.c 	return tty_port_block_til_ready(port, tty, filp);
filp             1492 drivers/tty/cyclades.c static int cy_open(struct tty_struct *tty, struct file *filp)
filp             1582 drivers/tty/cyclades.c 	retval = tty_port_block_til_ready(&info->port, tty, filp);
filp             1743 drivers/tty/cyclades.c static void cy_close(struct tty_struct *tty, struct file *filp)
filp             1748 drivers/tty/cyclades.c 	tty_port_close(&info->port, tty, filp);
filp              509 drivers/tty/ehv_bytechan.c static int ehv_bc_tty_open(struct tty_struct *ttys, struct file *filp)
filp              516 drivers/tty/ehv_bytechan.c 	return tty_port_open(&bc->port, ttys, filp);
filp              524 drivers/tty/ehv_bytechan.c static void ehv_bc_tty_close(struct tty_struct *ttys, struct file *filp)
filp              529 drivers/tty/ehv_bytechan.c 		tty_port_close(&bc->port, ttys, filp);
filp              173 drivers/tty/goldfish.c static int goldfish_tty_open(struct tty_struct *tty, struct file *filp)
filp              176 drivers/tty/goldfish.c 	return tty_port_open(&qtty->port, tty, filp);
filp              179 drivers/tty/goldfish.c static void goldfish_tty_close(struct tty_struct *tty, struct file *filp)
filp              181 drivers/tty/goldfish.c 	tty_port_close(tty->port, tty, filp);
filp              347 drivers/tty/hvc/hvc_console.c static int hvc_open(struct tty_struct *tty, struct file * filp)
filp              389 drivers/tty/hvc/hvc_console.c static void hvc_close(struct tty_struct *tty, struct file * filp)
filp              394 drivers/tty/hvc/hvc_console.c 	if (tty_hung_up_p(filp))
filp              316 drivers/tty/hvc/hvcs.c static int hvcs_open(struct tty_struct *tty, struct file *filp);
filp              317 drivers/tty/hvc/hvcs.c static void hvcs_close(struct tty_struct *tty, struct file *filp);
filp             1163 drivers/tty/hvc/hvcs.c static int hvcs_open(struct tty_struct *tty, struct file *filp)
filp             1181 drivers/tty/hvc/hvcs.c static void hvcs_close(struct tty_struct *tty, struct file *filp)
filp             1191 drivers/tty/hvc/hvcs.c 	if (tty_hung_up_p(filp))
filp              699 drivers/tty/hvc/hvsi.c static int hvsi_open(struct tty_struct *tty, struct file *filp)
filp              762 drivers/tty/hvc/hvsi.c static void hvsi_close(struct tty_struct *tty, struct file *filp)
filp              769 drivers/tty/hvc/hvsi.c 	if (tty_hung_up_p(filp))
filp               89 drivers/tty/ipwireless/tty.c static int ipw_open(struct tty_struct *linux_tty, struct file *filp)
filp              149 drivers/tty/ipwireless/tty.c static void ipw_close(struct tty_struct *linux_tty, struct file *filp)
filp              854 drivers/tty/isicom.c static int isicom_open(struct tty_struct *tty, struct file *filp)
filp              865 drivers/tty/isicom.c 	return tty_port_open(tport, tty, filp);
filp              917 drivers/tty/isicom.c static void isicom_close(struct tty_struct *tty, struct file *filp)
filp              928 drivers/tty/isicom.c 	tty_port_close(port, tty, filp);
filp              769 drivers/tty/mips_ejtag_fdc.c static int mips_ejtag_fdc_tty_open(struct tty_struct *tty, struct file *filp)
filp              771 drivers/tty/mips_ejtag_fdc.c 	return tty_port_open(tty->port, tty, filp);
filp              774 drivers/tty/mips_ejtag_fdc.c static void mips_ejtag_fdc_tty_close(struct tty_struct *tty, struct file *filp)
filp              776 drivers/tty/mips_ejtag_fdc.c 	return tty_port_close(tty->port, tty, filp);
filp             1155 drivers/tty/moxa.c static int moxa_open(struct tty_struct *tty, struct file *filp)
filp             1194 drivers/tty/moxa.c 	return tty_port_block_til_ready(&ch->port, tty, filp);
filp             1197 drivers/tty/moxa.c static void moxa_close(struct tty_struct *tty, struct file *filp)
filp             1201 drivers/tty/moxa.c 	tty_port_close(&ch->port, tty, filp);
filp             1001 drivers/tty/mxser.c static int mxser_open(struct tty_struct *tty, struct file *filp)
filp             1014 drivers/tty/mxser.c 	return tty_port_open(&info->port, tty, filp);
filp             1072 drivers/tty/mxser.c static void mxser_close(struct tty_struct *tty, struct file *filp)
filp             1079 drivers/tty/mxser.c 	if (tty_port_close_start(port, tty, filp) == 0)
filp             2977 drivers/tty/n_gsm.c static int gsmtty_open(struct tty_struct *tty, struct file *filp)
filp             2992 drivers/tty/n_gsm.c 	return tty_port_block_til_ready(port, tty, filp);
filp             2995 drivers/tty/n_gsm.c static void gsmtty_close(struct tty_struct *tty, struct file *filp)
filp             3006 drivers/tty/n_gsm.c 	if (tty_port_close_start(&dlci->port, tty, filp) == 0)
filp              183 drivers/tty/n_hdlc.c static __poll_t n_hdlc_tty_poll(struct tty_struct *tty, struct file *filp,
filp              800 drivers/tty/n_hdlc.c static __poll_t n_hdlc_tty_poll(struct tty_struct *tty, struct file *filp,
filp              813 drivers/tty/n_hdlc.c 		poll_wait(filp, &tty->read_wait, wait);
filp              814 drivers/tty/n_hdlc.c 		poll_wait(filp, &tty->write_wait, wait);
filp              821 drivers/tty/n_hdlc.c 		if (tty_hung_up_p(filp))
filp             1580 drivers/tty/nozomi.c static int ntty_open(struct tty_struct *tty, struct file *filp)
filp             1583 drivers/tty/nozomi.c 	return tty_port_open(&port->port, tty, filp);
filp             1601 drivers/tty/nozomi.c static void ntty_close(struct tty_struct *tty, struct file *filp)
filp             1605 drivers/tty/nozomi.c 		tty_port_close(&port->port, tty, filp);
filp               46 drivers/tty/pty.c static void pty_close(struct tty_struct *tty, struct file *filp)
filp              240 drivers/tty/pty.c static int pty_open(struct tty_struct *tty, struct file *filp)
filp              626 drivers/tty/pty.c 	struct file *filp;
filp              647 drivers/tty/pty.c 	filp = dentry_open(&path, flags, current_cred());
filp              649 drivers/tty/pty.c 	if (IS_ERR(filp)) {
filp              650 drivers/tty/pty.c 		retval = PTR_ERR(filp);
filp              654 drivers/tty/pty.c 	fd_install(fd, filp);
filp              811 drivers/tty/pty.c static int ptmx_open(struct inode *inode, struct file *filp)
filp              819 drivers/tty/pty.c 	nonseekable_open(inode, filp);
filp              822 drivers/tty/pty.c 	filp->f_mode |= FMODE_NONOTIFY;
filp              824 drivers/tty/pty.c 	retval = tty_alloc_file(filp);
filp              828 drivers/tty/pty.c 	fsi = devpts_acquire(filp);
filp              861 drivers/tty/pty.c 	tty_add_file(tty, filp);
filp              870 drivers/tty/pty.c 	retval = ptm_driver->ops->open(tty, filp);
filp              881 drivers/tty/pty.c 	tty_release(inode, filp);
filp              888 drivers/tty/pty.c 	tty_free_file(filp);
filp              871 drivers/tty/rocket.c static int rp_open(struct tty_struct *tty, struct file *filp)
filp              949 drivers/tty/rocket.c 	retval = tty_port_block_til_ready(port, tty, filp);
filp              962 drivers/tty/rocket.c static void rp_close(struct tty_struct *tty, struct file *filp)
filp              976 drivers/tty/rocket.c 	if (tty_port_close_start(port, tty, filp) == 0)
filp              340 drivers/tty/serial/ifx6x60.c static int ifx_spi_open(struct tty_struct *tty, struct file *filp)
filp              342 drivers/tty/serial/ifx6x60.c 	return tty_port_open(&saved_ifx_dev->tty_port, tty, filp);
filp              353 drivers/tty/serial/ifx6x60.c static void ifx_spi_close(struct tty_struct *tty, struct file *filp)
filp              356 drivers/tty/serial/ifx6x60.c 	tty_port_close(&ifx_dev->tty_port, tty, filp);
filp             1538 drivers/tty/serial/serial_core.c static void uart_close(struct tty_struct *tty, struct file *filp)
filp             1556 drivers/tty/serial/serial_core.c 	tty_port_close(tty->port, tty, filp);
filp             1769 drivers/tty/serial/serial_core.c static int uart_open(struct tty_struct *tty, struct file *filp)
filp             1774 drivers/tty/serial/serial_core.c 	retval = tty_port_open(&state->port, tty, filp);
filp             3067 drivers/tty/synclink.c static void mgsl_close(struct tty_struct *tty, struct file * filp)
filp             3078 drivers/tty/synclink.c 	if (tty_port_close_start(&info->port, tty, filp) == 0)
filp             3247 drivers/tty/synclink.c static int block_til_ready(struct tty_struct *tty, struct file * filp,
filp             3261 drivers/tty/synclink.c 	if (filp->f_flags & O_NONBLOCK || tty_io_error(tty)) {
filp             3295 drivers/tty/synclink.c 		if (tty_hung_up_p(filp) || !tty_port_initialized(port)) {
filp             3323 drivers/tty/synclink.c 	if (!tty_hung_up_p(filp))
filp             3371 drivers/tty/synclink.c static int mgsl_open(struct tty_struct *tty, struct file * filp)
filp             3401 drivers/tty/synclink.c 	retval = block_til_ready(tty, filp, info);
filp              140 drivers/tty/synclink_gt.c static int  open(struct tty_struct *tty, struct file * filp);
filp              141 drivers/tty/synclink_gt.c static void close(struct tty_struct *tty, struct file * filp);
filp              441 drivers/tty/synclink_gt.c static int  block_til_ready(struct tty_struct *tty, struct file * filp,struct slgt_info *info);
filp              647 drivers/tty/synclink_gt.c static int open(struct tty_struct *tty, struct file *filp)
filp              696 drivers/tty/synclink_gt.c 	retval = block_til_ready(tty, filp, info);
filp              716 drivers/tty/synclink_gt.c static void close(struct tty_struct *tty, struct file *filp)
filp              724 drivers/tty/synclink_gt.c 	if (tty_port_close_start(&info->port, tty, filp) == 0)
filp             3229 drivers/tty/synclink_gt.c static int block_til_ready(struct tty_struct *tty, struct file *filp,
filp             3241 drivers/tty/synclink_gt.c 	if (filp->f_flags & O_NONBLOCK || tty_io_error(tty)) {
filp             3271 drivers/tty/synclink_gt.c 		if (tty_hung_up_p(filp) || !tty_port_initialized(port)) {
filp             3295 drivers/tty/synclink_gt.c 	if (!tty_hung_up_p(filp))
filp              506 drivers/tty/synclinkmp.c static int  open(struct tty_struct *tty, struct file * filp);
filp              507 drivers/tty/synclinkmp.c static void close(struct tty_struct *tty, struct file * filp);
filp              558 drivers/tty/synclinkmp.c static int  block_til_ready(struct tty_struct *tty, struct file * filp,SLMP_INFO *info);
filp              743 drivers/tty/synclinkmp.c static int open(struct tty_struct *tty, struct file *filp)
filp              773 drivers/tty/synclinkmp.c 	retval = block_til_ready(tty, filp, info);
filp              800 drivers/tty/synclinkmp.c static void close(struct tty_struct *tty, struct file *filp)
filp              811 drivers/tty/synclinkmp.c 	if (tty_port_close_start(&info->port, tty, filp) == 0)
filp             3252 drivers/tty/synclinkmp.c static int block_til_ready(struct tty_struct *tty, struct file *filp,
filp             3266 drivers/tty/synclinkmp.c 	if (filp->f_flags & O_NONBLOCK || tty_io_error(tty)) {
filp             3301 drivers/tty/synclinkmp.c 		if (tty_hung_up_p(filp) || !tty_port_initialized(port)) {
filp             3327 drivers/tty/synclinkmp.c 	if (!tty_hung_up_p(filp))
filp              157 drivers/tty/tty_io.c static int __tty_fasync(int fd, struct file *filp, int on);
filp              158 drivers/tty/tty_io.c static int tty_fasync(int fd, struct file *filp, int on);
filp              447 drivers/tty/tty_io.c static __poll_t hung_up_tty_poll(struct file *filp, poll_table *wait)
filp              569 drivers/tty/tty_io.c 	struct file *filp, *f = NULL;
filp              608 drivers/tty/tty_io.c 		filp = priv->file;
filp              609 drivers/tty/tty_io.c 		if (filp->f_op->write == redirected_tty_write)
filp              610 drivers/tty/tty_io.c 			cons_filp = filp;
filp              611 drivers/tty/tty_io.c 		if (filp->f_op->write != tty_write)
filp              614 drivers/tty/tty_io.c 		__tty_fasync(-1, filp, 0);	/* can't block */
filp              615 drivers/tty/tty_io.c 		filp->f_op = &hung_up_tty_fops;
filp              745 drivers/tty/tty_io.c int tty_hung_up_p(struct file *filp)
filp              747 drivers/tty/tty_io.c 	return (filp && filp->f_op == &hung_up_tty_fops);
filp             1649 drivers/tty/tty_io.c int tty_release(struct inode *inode, struct file *filp)
filp             1651 drivers/tty/tty_io.c 	struct tty_struct *tty = file_tty(filp);
filp             1664 drivers/tty/tty_io.c 	__tty_fasync(-1, filp, 0);
filp             1679 drivers/tty/tty_io.c 		tty->ops->close(tty, filp);
filp             1754 drivers/tty/tty_io.c 	tty_del_file(filp);
filp             1800 drivers/tty/tty_io.c static struct tty_struct *tty_open_current_tty(dev_t device, struct file *filp)
filp             1812 drivers/tty/tty_io.c 	filp->f_flags |= O_NONBLOCK; /* Don't let /dev/tty block */
filp             1837 drivers/tty/tty_io.c static struct tty_driver *tty_lookup_driver(dev_t device, struct file *filp,
filp             1855 drivers/tty/tty_io.c 			if (driver && filp) {
filp             1857 drivers/tty/tty_io.c 				filp->f_flags |= O_NONBLOCK;
filp             1941 drivers/tty/tty_io.c 					     struct file *filp)
filp             1949 drivers/tty/tty_io.c 	driver = tty_lookup_driver(device, filp, &index);
filp             1956 drivers/tty/tty_io.c 	tty = tty_driver_lookup_tty(driver, filp, index);
filp             2016 drivers/tty/tty_io.c static int tty_open(struct inode *inode, struct file *filp)
filp             2021 drivers/tty/tty_io.c 	unsigned saved_flags = filp->f_flags;
filp             2023 drivers/tty/tty_io.c 	nonseekable_open(inode, filp);
filp             2026 drivers/tty/tty_io.c 	retval = tty_alloc_file(filp);
filp             2030 drivers/tty/tty_io.c 	tty = tty_open_current_tty(device, filp);
filp             2032 drivers/tty/tty_io.c 		tty = tty_open_by_driver(device, inode, filp);
filp             2035 drivers/tty/tty_io.c 		tty_free_file(filp);
filp             2043 drivers/tty/tty_io.c 	tty_add_file(tty, filp);
filp             2049 drivers/tty/tty_io.c 		retval = tty->ops->open(tty, filp);
filp             2052 drivers/tty/tty_io.c 	filp->f_flags = saved_flags;
filp             2058 drivers/tty/tty_io.c 		tty_release(inode, filp);
filp             2069 drivers/tty/tty_io.c 		if (tty_hung_up_p(filp))
filp             2070 drivers/tty/tty_io.c 			filp->f_op = &tty_fops;
filp             2075 drivers/tty/tty_io.c 	noctty = (filp->f_flags & O_NOCTTY) ||
filp             2081 drivers/tty/tty_io.c 		tty_open_proc_set_tty(filp, tty);
filp             2100 drivers/tty/tty_io.c static __poll_t tty_poll(struct file *filp, poll_table *wait)
filp             2102 drivers/tty/tty_io.c 	struct tty_struct *tty = file_tty(filp);
filp             2106 drivers/tty/tty_io.c 	if (tty_paranoia_check(tty, file_inode(filp), "tty_poll"))
filp             2111 drivers/tty/tty_io.c 		return hung_up_tty_poll(filp, wait);
filp             2113 drivers/tty/tty_io.c 		ret = ld->ops->poll(tty, filp, wait);
filp             2118 drivers/tty/tty_io.c static int __tty_fasync(int fd, struct file *filp, int on)
filp             2120 drivers/tty/tty_io.c 	struct tty_struct *tty = file_tty(filp);
filp             2124 drivers/tty/tty_io.c 	if (tty_paranoia_check(tty, file_inode(filp), "tty_fasync"))
filp             2127 drivers/tty/tty_io.c 	retval = fasync_helper(fd, filp, on, &tty->fasync);
filp             2145 drivers/tty/tty_io.c 		__f_setown(filp, pid, type, 0);
filp             2153 drivers/tty/tty_io.c static int tty_fasync(int fd, struct file *filp, int on)
filp             2155 drivers/tty/tty_io.c 	struct tty_struct *tty = file_tty(filp);
filp             2159 drivers/tty/tty_io.c 	if (!tty_hung_up_p(filp))
filp             2160 drivers/tty/tty_io.c 		retval = __tty_fasync(fd, filp, on);
filp              128 drivers/tty/tty_jobctrl.c void tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty)
filp              149 drivers/tty/tty_jobctrl.c 		if (filp->f_mode & FMODE_READ)
filp              463 drivers/tty/tty_port.c 				struct tty_struct *tty, struct file *filp)
filp              475 drivers/tty/tty_port.c 	if (filp == NULL || (filp->f_flags & O_NONBLOCK)) {
filp              506 drivers/tty/tty_port.c 		if (tty_hung_up_p(filp) || !tty_port_initialized(port)) {
filp              534 drivers/tty/tty_port.c 	if (!tty_hung_up_p(filp))
filp              560 drivers/tty/tty_port.c 				struct tty_struct *tty, struct file *filp)
filp              564 drivers/tty/tty_port.c 	if (tty_hung_up_p(filp))
filp              632 drivers/tty/tty_port.c 							struct file *filp)
filp              634 drivers/tty/tty_port.c 	if (tty_port_close_start(port, tty, filp) == 0)
filp              671 drivers/tty/tty_port.c 							struct file *filp)
filp              698 drivers/tty/tty_port.c 	return tty_port_block_til_ready(port, tty, filp);
filp               17 drivers/tty/ttynull.c static int ttynull_open(struct tty_struct *tty, struct file *filp)
filp               19 drivers/tty/ttynull.c 	return tty_port_open(&ttynull_port, tty, filp);
filp               22 drivers/tty/ttynull.c static void ttynull_close(struct tty_struct *tty, struct file *filp)
filp               24 drivers/tty/ttynull.c 	tty_port_close(&ttynull_port, tty, filp);
filp              677 drivers/tty/vt/vc_screen.c vcs_open(struct inode *inode, struct file *filp)
filp             3290 drivers/tty/vt/vt.c static int con_open(struct tty_struct *tty, struct file *filp)
filp             3297 drivers/tty/vt/vt.c static void con_close(struct tty_struct *tty, struct file *filp)
filp              126 drivers/uio/uio_hv_generic.c static int hv_uio_ring_mmap(struct file *filp, struct kobject *kobj,
filp              629 drivers/usb/class/cdc-acm.c static int acm_tty_open(struct tty_struct *tty, struct file *filp)
filp              633 drivers/usb/class/cdc-acm.c 	return tty_port_open(&acm->port, tty, filp);
filp              767 drivers/usb/class/cdc-acm.c static void acm_tty_close(struct tty_struct *tty, struct file *filp)
filp              771 drivers/usb/class/cdc-acm.c 	tty_port_close(&acm->port, tty, filp);
filp              163 drivers/usb/class/usbtmc.c static int usbtmc_open(struct inode *inode, struct file *filp)
filp              207 drivers/usb/class/usbtmc.c 	filp->private_data = file_data;
filp             1330 drivers/usb/class/usbtmc.c static ssize_t usbtmc_read(struct file *filp, char __user *buf,
filp             1345 drivers/usb/class/usbtmc.c 	file_data = filp->private_data;
filp             1480 drivers/usb/class/usbtmc.c static ssize_t usbtmc_write(struct file *filp, const char __user *buf,
filp             1491 drivers/usb/class/usbtmc.c 	file_data = filp->private_data;
filp              882 drivers/usb/core/sysfs.c read_descriptors(struct file *filp, struct kobject *kobj,
filp              694 drivers/usb/gadget/function/f_mass_storage.c 		nread = kernel_read(curlun->filp, bh->buf, amount,
filp              763 drivers/usb/gadget/function/f_mass_storage.c 	spin_lock(&curlun->filp->f_lock);
filp              764 drivers/usb/gadget/function/f_mass_storage.c 	curlun->filp->f_flags &= ~O_SYNC;	/* Default is not to wait */
filp              765 drivers/usb/gadget/function/f_mass_storage.c 	spin_unlock(&curlun->filp->f_lock);
filp              787 drivers/usb/gadget/function/f_mass_storage.c 			spin_lock(&curlun->filp->f_lock);
filp              788 drivers/usb/gadget/function/f_mass_storage.c 			curlun->filp->f_flags |= O_SYNC;
filp              789 drivers/usb/gadget/function/f_mass_storage.c 			spin_unlock(&curlun->filp->f_lock);
filp              890 drivers/usb/gadget/function/f_mass_storage.c 		nwritten = kernel_write(curlun->filp, bh->buf, amount,
filp              951 drivers/usb/gadget/function/f_mass_storage.c 	struct file	*filp = curlun->filp;
filp              952 drivers/usb/gadget/function/f_mass_storage.c 	struct inode	*inode = file_inode(filp);
filp             1028 drivers/usb/gadget/function/f_mass_storage.c 		nread = kernel_read(curlun->filp, bh->buf, amount,
filp             2800 drivers/usb/gadget/function/f_mass_storage.c 			p = file_path(lun->filp, pathbuf, PATH_MAX);
filp              170 drivers/usb/gadget/function/storage_common.c 	if (curlun->filp) {
filp              172 drivers/usb/gadget/function/storage_common.c 		fput(curlun->filp);
filp              173 drivers/usb/gadget/function/storage_common.c 		curlun->filp = NULL;
filp              181 drivers/usb/gadget/function/storage_common.c 	struct file			*filp = NULL;
filp              193 drivers/usb/gadget/function/storage_common.c 		filp = filp_open(filename, O_RDWR | O_LARGEFILE, 0);
filp              194 drivers/usb/gadget/function/storage_common.c 		if (PTR_ERR(filp) == -EROFS || PTR_ERR(filp) == -EACCES)
filp              198 drivers/usb/gadget/function/storage_common.c 		filp = filp_open(filename, O_RDONLY | O_LARGEFILE, 0);
filp              199 drivers/usb/gadget/function/storage_common.c 	if (IS_ERR(filp)) {
filp              201 drivers/usb/gadget/function/storage_common.c 		return PTR_ERR(filp);
filp              204 drivers/usb/gadget/function/storage_common.c 	if (!(filp->f_mode & FMODE_WRITE))
filp              207 drivers/usb/gadget/function/storage_common.c 	inode = file_inode(filp);
filp              217 drivers/usb/gadget/function/storage_common.c 	if (!(filp->f_mode & FMODE_CAN_READ)) {
filp              221 drivers/usb/gadget/function/storage_common.c 	if (!(filp->f_mode & FMODE_CAN_WRITE))
filp              265 drivers/usb/gadget/function/storage_common.c 	curlun->filp = filp;
filp              272 drivers/usb/gadget/function/storage_common.c 	fput(filp);
filp              286 drivers/usb/gadget/function/storage_common.c 	struct file	*filp = curlun->filp;
filp              288 drivers/usb/gadget/function/storage_common.c 	if (curlun->ro || !filp)
filp              290 drivers/usb/gadget/function/storage_common.c 	return vfs_fsync(filp, 1);
filp              338 drivers/usb/gadget/function/storage_common.c 		p = file_path(curlun->filp, buf, PAGE_SIZE - 1);
filp               99 drivers/usb/gadget/function/storage_common.h 	struct file	*filp;
filp              127 drivers/usb/gadget/function/storage_common.h 	return curlun->filp != NULL;
filp              211 drivers/usb/gadget/function/u_uac1_legacy.c 	snd->filp = filp_open(fn_cntl, O_RDWR, 0);
filp              212 drivers/usb/gadget/function/u_uac1_legacy.c 	if (IS_ERR(snd->filp)) {
filp              213 drivers/usb/gadget/function/u_uac1_legacy.c 		int ret = PTR_ERR(snd->filp);
filp              216 drivers/usb/gadget/function/u_uac1_legacy.c 		snd->filp = NULL;
filp              223 drivers/usb/gadget/function/u_uac1_legacy.c 	snd->filp = filp_open(fn_play, O_WRONLY, 0);
filp              224 drivers/usb/gadget/function/u_uac1_legacy.c 	if (IS_ERR(snd->filp)) {
filp              225 drivers/usb/gadget/function/u_uac1_legacy.c 		int ret = PTR_ERR(snd->filp);
filp              228 drivers/usb/gadget/function/u_uac1_legacy.c 		snd->filp = NULL;
filp              231 drivers/usb/gadget/function/u_uac1_legacy.c 	pcm_file = snd->filp->private_data;
filp              238 drivers/usb/gadget/function/u_uac1_legacy.c 	snd->filp = filp_open(fn_cap, O_RDONLY, 0);
filp              239 drivers/usb/gadget/function/u_uac1_legacy.c 	if (IS_ERR(snd->filp)) {
filp              243 drivers/usb/gadget/function/u_uac1_legacy.c 		snd->filp = NULL;
filp              245 drivers/usb/gadget/function/u_uac1_legacy.c 		pcm_file = snd->filp->private_data;
filp              262 drivers/usb/gadget/function/u_uac1_legacy.c 	if (snd->filp)
filp              263 drivers/usb/gadget/function/u_uac1_legacy.c 		filp_close(snd->filp, NULL);
filp              267 drivers/usb/gadget/function/u_uac1_legacy.c 	if (snd->filp)
filp              268 drivers/usb/gadget/function/u_uac1_legacy.c 		filp_close(snd->filp, NULL);
filp              272 drivers/usb/gadget/function/u_uac1_legacy.c 	if (snd->filp)
filp              273 drivers/usb/gadget/function/u_uac1_legacy.c 		filp_close(snd->filp, NULL);
filp               36 drivers/usb/gadget/function/u_uac1_legacy.h 	struct file			*filp;
filp             1267 drivers/usb/mon/mon_bin.c static int mon_bin_mmap(struct file *filp, struct vm_area_struct *vma)
filp             1272 drivers/usb/mon/mon_bin.c 	vma->vm_private_data = filp->private_data;
filp              242 drivers/usb/serial/usb-serial.c static int serial_open(struct tty_struct *tty, struct file *filp)
filp              248 drivers/usb/serial/usb-serial.c 	return tty_port_open(&port->port, tty, filp);
filp              280 drivers/usb/serial/usb-serial.c static void serial_close(struct tty_struct *tty, struct file *filp)
filp              286 drivers/usb/serial/usb-serial.c 	tty_port_close(&port->port, tty, filp);
filp             2215 drivers/video/fbdev/aty/radeon_base.c static ssize_t radeon_show_edid1(struct file *filp, struct kobject *kobj,
filp             2227 drivers/video/fbdev/aty/radeon_base.c static ssize_t radeon_show_edid2(struct file *filp, struct kobject *kobj,
filp             1445 drivers/video/fbdev/core/fbmem.c unsigned long get_fb_unmapped_area(struct file *filp,
filp             1449 drivers/video/fbdev/core/fbmem.c 	struct fb_info * const info = filp->private_data;
filp             1458 drivers/video/fbdev/udlfb.c 			struct file *filp,
filp             1480 drivers/video/fbdev/udlfb.c 			struct file *filp,
filp              571 drivers/virt/fsl_hypervisor.c static __poll_t fsl_hv_poll(struct file *filp, struct poll_table_struct *p)
filp              573 drivers/virt/fsl_hypervisor.c 	struct doorbell_queue *dbq = filp->private_data;
filp              579 drivers/virt/fsl_hypervisor.c 	poll_wait(filp, &dbq->wait, p);
filp              594 drivers/virt/fsl_hypervisor.c static ssize_t fsl_hv_read(struct file *filp, char __user *buf, size_t len,
filp              597 drivers/virt/fsl_hypervisor.c 	struct doorbell_queue *dbq = filp->private_data;
filp              617 drivers/virt/fsl_hypervisor.c 			if (filp->f_flags & O_NONBLOCK)
filp              659 drivers/virt/fsl_hypervisor.c static int fsl_hv_open(struct inode *inode, struct file *filp)
filp              678 drivers/virt/fsl_hypervisor.c 	filp->private_data = dbq;
filp              686 drivers/virt/fsl_hypervisor.c static int fsl_hv_close(struct inode *inode, struct file *filp)
filp              688 drivers/virt/fsl_hypervisor.c 	struct doorbell_queue *dbq = filp->private_data;
filp               49 drivers/virt/vboxguest/vboxguest_linux.c static int vbg_misc_device_open(struct inode *inode, struct file *filp)
filp               55 drivers/virt/vboxguest/vboxguest_linux.c 	gdev = container_of(filp->private_data, struct vbg_dev, misc_device);
filp               61 drivers/virt/vboxguest/vboxguest_linux.c 	filp->private_data = session;
filp               65 drivers/virt/vboxguest/vboxguest_linux.c static int vbg_misc_device_user_open(struct inode *inode, struct file *filp)
filp               71 drivers/virt/vboxguest/vboxguest_linux.c 	gdev = container_of(filp->private_data, struct vbg_dev,
filp               79 drivers/virt/vboxguest/vboxguest_linux.c 	filp->private_data = session;
filp               89 drivers/virt/vboxguest/vboxguest_linux.c static int vbg_misc_device_close(struct inode *inode, struct file *filp)
filp               91 drivers/virt/vboxguest/vboxguest_linux.c 	vbg_core_close_session(filp->private_data);
filp               92 drivers/virt/vboxguest/vboxguest_linux.c 	filp->private_data = NULL;
filp              103 drivers/virt/vboxguest/vboxguest_linux.c static long vbg_misc_device_ioctl(struct file *filp, unsigned int req,
filp              106 drivers/virt/vboxguest/vboxguest_linux.c 	struct vbg_session *session = filp->private_data;
filp               26 drivers/w1/slaves/w1_ds2406.c 	struct file *filp, struct kobject *kobj,
filp               63 drivers/w1/slaves/w1_ds2406.c 	struct file *filp, struct kobject *kobj,
filp               67 drivers/w1/slaves/w1_ds2408.c static ssize_t state_read(struct file *filp, struct kobject *kobj,
filp               79 drivers/w1/slaves/w1_ds2408.c static ssize_t output_read(struct file *filp, struct kobject *kobj,
filp               92 drivers/w1/slaves/w1_ds2408.c static ssize_t activity_read(struct file *filp, struct kobject *kobj,
filp              105 drivers/w1/slaves/w1_ds2408.c static ssize_t cond_search_mask_read(struct file *filp, struct kobject *kobj,
filp              118 drivers/w1/slaves/w1_ds2408.c static ssize_t cond_search_polarity_read(struct file *filp,
filp              129 drivers/w1/slaves/w1_ds2408.c static ssize_t status_control_read(struct file *filp, struct kobject *kobj,
filp              162 drivers/w1/slaves/w1_ds2408.c static ssize_t output_write(struct file *filp, struct kobject *kobj,
filp              212 drivers/w1/slaves/w1_ds2408.c static ssize_t activity_write(struct file *filp, struct kobject *kobj,
filp              242 drivers/w1/slaves/w1_ds2408.c static ssize_t status_control_write(struct file *filp, struct kobject *kobj,
filp               27 drivers/w1/slaves/w1_ds2413.c static ssize_t state_read(struct file *filp, struct kobject *kobj,
filp               83 drivers/w1/slaves/w1_ds2413.c static ssize_t output_write(struct file *filp, struct kobject *kobj,
filp               97 drivers/w1/slaves/w1_ds2431.c static ssize_t eeprom_read(struct file *filp, struct kobject *kobj,
filp              203 drivers/w1/slaves/w1_ds2431.c static ssize_t eeprom_write(struct file *filp, struct kobject *kobj,
filp               89 drivers/w1/slaves/w1_ds2433.c static ssize_t eeprom_read(struct file *filp, struct kobject *kobj,
filp              203 drivers/w1/slaves/w1_ds2433.c static ssize_t eeprom_write(struct file *filp, struct kobject *kobj,
filp              255 drivers/w1/slaves/w1_ds2438.c static ssize_t iad_write(struct file *filp, struct kobject *kobj,
filp              277 drivers/w1/slaves/w1_ds2438.c static ssize_t iad_read(struct file *filp, struct kobject *kobj,
filp              298 drivers/w1/slaves/w1_ds2438.c static ssize_t page0_read(struct file *filp, struct kobject *kobj,
filp              328 drivers/w1/slaves/w1_ds2438.c static ssize_t temperature_read(struct file *filp, struct kobject *kobj,
filp              349 drivers/w1/slaves/w1_ds2438.c static ssize_t vad_read(struct file *filp, struct kobject *kobj,
filp              370 drivers/w1/slaves/w1_ds2438.c static ssize_t vdd_read(struct file *filp, struct kobject *kobj,
filp               89 drivers/w1/slaves/w1_ds2780.c static ssize_t w1_slave_read(struct file *filp, struct kobject *kobj,
filp               86 drivers/w1/slaves/w1_ds2781.c static ssize_t w1_slave_read(struct file *filp, struct kobject *kobj,
filp               94 drivers/w1/slaves/w1_ds2805.c static ssize_t w1_f0d_read_bin(struct file *filp, struct kobject *kobj,
filp              202 drivers/w1/slaves/w1_ds2805.c static ssize_t w1_f0d_write_bin(struct file *filp, struct kobject *kobj,
filp              114 drivers/w1/slaves/w1_ds28e04.c static ssize_t eeprom_read(struct file *filp, struct kobject *kobj,
filp              222 drivers/w1/slaves/w1_ds28e04.c static ssize_t eeprom_write(struct file *filp, struct kobject *kobj,
filp              278 drivers/w1/slaves/w1_ds28e04.c static ssize_t pio_read(struct file *filp, struct kobject *kobj,
filp              297 drivers/w1/slaves/w1_ds28e04.c static ssize_t pio_write(struct file *filp, struct kobject *kobj,
filp              116 drivers/w1/w1.c static ssize_t rw_write(struct file *filp, struct kobject *kobj,
filp              135 drivers/w1/w1.c static ssize_t rw_read(struct file *filp, struct kobject *kobj,
filp               78 drivers/watchdog/riowd.c static int riowd_open(struct inode *inode, struct file *filp)
filp               80 drivers/watchdog/riowd.c 	stream_open(inode, filp);
filp               84 drivers/watchdog/riowd.c static int riowd_release(struct inode *inode, struct file *filp)
filp               89 drivers/watchdog/riowd.c static long riowd_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              637 drivers/xen/evtchn.c static int evtchn_fasync(int fd, struct file *filp, int on)
filp              639 drivers/xen/evtchn.c 	struct per_user_data *u = filp->private_data;
filp              640 drivers/xen/evtchn.c 	return fasync_helper(fd, filp, on, &u->evtchn_async_queue);
filp              643 drivers/xen/evtchn.c static int evtchn_open(struct inode *inode, struct file *filp)
filp              665 drivers/xen/evtchn.c 	filp->private_data = u;
filp              667 drivers/xen/evtchn.c 	return stream_open(inode, filp);
filp              670 drivers/xen/evtchn.c static int evtchn_release(struct inode *inode, struct file *filp)
filp              672 drivers/xen/evtchn.c 	struct per_user_data *u = filp->private_data;
filp              242 drivers/xen/gntalloc.c static int gntalloc_open(struct inode *inode, struct file *filp)
filp              251 drivers/xen/gntalloc.c 	filp->private_data = priv;
filp              261 drivers/xen/gntalloc.c static int gntalloc_release(struct inode *inode, struct file *filp)
filp              263 drivers/xen/gntalloc.c 	struct gntalloc_file_private_data *priv = filp->private_data;
filp              440 drivers/xen/gntalloc.c static long gntalloc_ioctl(struct file *filp, unsigned int cmd,
filp              443 drivers/xen/gntalloc.c 	struct gntalloc_file_private_data *priv = filp->private_data;
filp              505 drivers/xen/gntalloc.c static int gntalloc_mmap(struct file *filp, struct vm_area_struct *vma)
filp              507 drivers/xen/gntalloc.c 	struct gntalloc_file_private_data *priv = filp->private_data;
filp               88 drivers/xen/gntdev-dmabuf.c 	struct file *filp;
filp              320 drivers/xen/gntdev-dmabuf.c 	fput(gntdev_dmabuf->priv->filp);
filp              433 drivers/xen/gntdev-dmabuf.c 	get_file(gntdev_dmabuf->priv->filp);
filp              853 drivers/xen/gntdev-dmabuf.c struct gntdev_dmabuf_priv *gntdev_dmabuf_init(struct file *filp)
filp              866 drivers/xen/gntdev-dmabuf.c 	priv->filp = filp;
filp               17 drivers/xen/gntdev-dmabuf.h struct gntdev_dmabuf_priv *gntdev_dmabuf_init(struct file *filp);
filp              106 drivers/xen/mcelog.c static ssize_t xen_mce_chrdev_read(struct file *filp, char __user *ubuf,
filp               22 drivers/xen/xenbus/xenbus_dev_backend.c static int xenbus_backend_open(struct inode *inode, struct file *filp)
filp               27 drivers/xen/xenbus/xenbus_dev_backend.c 	return nonseekable_open(inode, filp);
filp              125 drivers/xen/xenbus/xenbus_dev_frontend.c static ssize_t xenbus_file_read(struct file *filp,
filp              129 drivers/xen/xenbus/xenbus_dev_frontend.c 	struct xenbus_file_priv *u = filp->private_data;
filp              138 drivers/xen/xenbus/xenbus_dev_frontend.c 		if (filp->f_flags & O_NONBLOCK)
filp              550 drivers/xen/xenbus/xenbus_dev_frontend.c static ssize_t xenbus_file_write(struct file *filp,
filp              554 drivers/xen/xenbus/xenbus_dev_frontend.c 	struct xenbus_file_priv *u = filp->private_data;
filp              649 drivers/xen/xenbus/xenbus_dev_frontend.c static int xenbus_file_open(struct inode *inode, struct file *filp)
filp              656 drivers/xen/xenbus/xenbus_dev_frontend.c 	stream_open(inode, filp);
filp              673 drivers/xen/xenbus/xenbus_dev_frontend.c 	filp->private_data = u;
filp              678 drivers/xen/xenbus/xenbus_dev_frontend.c static int xenbus_file_release(struct inode *inode, struct file *filp)
filp              680 drivers/xen/xenbus/xenbus_dev_frontend.c 	struct xenbus_file_priv *u = filp->private_data;
filp               83 drivers/zorro/zorro-sysfs.c static ssize_t zorro_read_config(struct file *filp, struct kobject *kobj,
filp              156 fs/9p/cache.c  void v9fs_cache_inode_set_cookie(struct inode *inode, struct file *filp)
filp              165 fs/9p/cache.c  	if ((filp->f_flags & O_ACCMODE) != O_RDONLY)
filp               24 fs/9p/cache.h  extern void v9fs_cache_inode_set_cookie(struct inode *inode, struct file *filp);
filp               56 fs/9p/v9fs_vfs.h int v9fs_dir_release(struct inode *inode, struct file *filp);
filp               63 fs/9p/v9fs_vfs.h int v9fs_file_fsync_dotl(struct file *filp, loff_t start, loff_t end,
filp               83 fs/9p/vfs_addr.c static int v9fs_vfs_readpage(struct file *filp, struct page *page)
filp               85 fs/9p/vfs_addr.c 	return v9fs_fid_readpage(filp->private_data, page);
filp               98 fs/9p/vfs_addr.c static int v9fs_vfs_readpages(struct file *filp, struct address_space *mapping,
filp              105 fs/9p/vfs_addr.c 	p9_debug(P9_DEBUG_VFS, "inode: %p file: %p\n", inode, filp);
filp              112 fs/9p/vfs_addr.c 			filp->private_data);
filp              255 fs/9p/vfs_addr.c static int v9fs_write_begin(struct file *filp, struct address_space *mapping,
filp              266 fs/9p/vfs_addr.c 	p9_debug(P9_DEBUG_VFS, "filp %p, mapping %p\n", filp, mapping);
filp              291 fs/9p/vfs_addr.c static int v9fs_write_end(struct file *filp, struct address_space *mapping,
filp              298 fs/9p/vfs_addr.c 	p9_debug(P9_DEBUG_VFS, "filp %p, mapping %p\n", filp, mapping);
filp               71 fs/9p/vfs_dir.c static struct p9_rdir *v9fs_alloc_rdir_buf(struct file *filp, int buflen)
filp               73 fs/9p/vfs_dir.c 	struct p9_fid *fid = filp->private_data;
filp              206 fs/9p/vfs_dir.c int v9fs_dir_release(struct inode *inode, struct file *filp)
filp              210 fs/9p/vfs_dir.c 	fid = filp->private_data;
filp              212 fs/9p/vfs_dir.c 		 inode, filp, fid ? fid->fid : -1);
filp              116 fs/9p/vfs_file.c static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl)
filp              119 fs/9p/vfs_file.c 	struct inode *inode = file_inode(filp);
filp              121 fs/9p/vfs_file.c 	p9_debug(P9_DEBUG_VFS, "filp: %p lock: %p\n", filp, fl);
filp              135 fs/9p/vfs_file.c static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl)
filp              144 fs/9p/vfs_file.c 	fid = filp->private_data;
filp              150 fs/9p/vfs_file.c 	res = locks_lock_file_wait(filp, fl);
filp              178 fs/9p/vfs_file.c 	v9ses = v9fs_inode2v9ses(file_inode(filp));
filp              232 fs/9p/vfs_file.c 		locks_lock_file_wait(filp, fl);
filp              241 fs/9p/vfs_file.c static int v9fs_file_getlock(struct file *filp, struct file_lock *fl)
filp              247 fs/9p/vfs_file.c 	fid = filp->private_data;
filp              250 fs/9p/vfs_file.c 	posix_test_lock(filp, fl);
filp              306 fs/9p/vfs_file.c static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl)
filp              308 fs/9p/vfs_file.c 	struct inode *inode = file_inode(filp);
filp              312 fs/9p/vfs_file.c 		 filp, cmd, fl, filp);
filp              324 fs/9p/vfs_file.c 		ret = v9fs_file_do_lock(filp, cmd, fl);
filp              326 fs/9p/vfs_file.c 		ret = v9fs_file_getlock(filp, fl);
filp              341 fs/9p/vfs_file.c static int v9fs_file_flock_dotl(struct file *filp, int cmd,
filp              344 fs/9p/vfs_file.c 	struct inode *inode = file_inode(filp);
filp              348 fs/9p/vfs_file.c 		 filp, cmd, fl, filp);
filp              366 fs/9p/vfs_file.c 		ret = v9fs_file_do_lock(filp, cmd, fl);
filp              445 fs/9p/vfs_file.c static int v9fs_file_fsync(struct file *filp, loff_t start, loff_t end,
filp              449 fs/9p/vfs_file.c 	struct inode *inode = filp->f_mapping->host;
filp              453 fs/9p/vfs_file.c 	retval = file_write_and_wait_range(filp, start, end);
filp              458 fs/9p/vfs_file.c 	p9_debug(P9_DEBUG_VFS, "filp %p datasync %x\n", filp, datasync);
filp              460 fs/9p/vfs_file.c 	fid = filp->private_data;
filp              469 fs/9p/vfs_file.c int v9fs_file_fsync_dotl(struct file *filp, loff_t start, loff_t end,
filp              473 fs/9p/vfs_file.c 	struct inode *inode = filp->f_mapping->host;
filp              476 fs/9p/vfs_file.c 	retval = file_write_and_wait_range(filp, start, end);
filp              481 fs/9p/vfs_file.c 	p9_debug(P9_DEBUG_VFS, "filp %p datasync %x\n", filp, datasync);
filp              483 fs/9p/vfs_file.c 	fid = filp->private_data;
filp              492 fs/9p/vfs_file.c v9fs_file_mmap(struct file *filp, struct vm_area_struct *vma)
filp              497 fs/9p/vfs_file.c 	retval = generic_file_mmap(filp, vma);
filp              505 fs/9p/vfs_file.c v9fs_mmap_file_mmap(struct file *filp, struct vm_area_struct *vma)
filp              512 fs/9p/vfs_file.c 	inode = file_inode(filp);
filp              525 fs/9p/vfs_file.c 		fid = v9fs_writeback_fid(file_dentry(filp));
filp              535 fs/9p/vfs_file.c 	retval = generic_file_mmap(filp, vma);
filp              547 fs/9p/vfs_file.c 	struct file *filp = vmf->vma->vm_file;
filp              548 fs/9p/vfs_file.c 	struct inode *inode = file_inode(filp);
filp              552 fs/9p/vfs_file.c 		 page, (unsigned long)filp->private_data);
filp              555 fs/9p/vfs_file.c 	file_update_time(filp);
filp               22 fs/affs/file.c affs_file_open(struct inode *inode, struct file *filp)
filp               31 fs/affs/file.c affs_file_release(struct inode *inode, struct file *filp)
filp              953 fs/affs/file.c int affs_file_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
filp              955 fs/affs/file.c 	struct inode *inode = filp->f_mapping->host;
filp              958 fs/affs/file.c 	err = file_write_and_wait_range(filp, start, end);
filp               25 fs/afs/file.c  static int afs_readpages(struct file *filp, struct address_space *mapping,
filp              231 fs/autofs/dev-ioctl.c 		struct file *filp;
filp              238 fs/autofs/dev-ioctl.c 		filp = dentry_open(&path, O_RDONLY, current_cred());
filp              240 fs/autofs/dev-ioctl.c 		if (IS_ERR(filp)) {
filp              241 fs/autofs/dev-ioctl.c 			err = PTR_ERR(filp);
filp              245 fs/autofs/dev-ioctl.c 		fd_install(fd, filp);
filp              870 fs/autofs/root.c static int autofs_root_ioctl_unlocked(struct inode *inode, struct file *filp,
filp              906 fs/autofs/root.c 		return autofs_ask_umount(filp->f_path.mnt, p);
filp              910 fs/autofs/root.c 		return autofs_expire_run(inode->i_sb, filp->f_path.mnt, sbi, p);
filp              914 fs/autofs/root.c 					   filp->f_path.mnt, sbi, p);
filp              921 fs/autofs/root.c static long autofs_root_ioctl(struct file *filp,
filp              924 fs/autofs/root.c 	struct inode *inode = file_inode(filp);
filp              926 fs/autofs/root.c 	return autofs_root_ioctl_unlocked(inode, filp, cmd, arg);
filp              930 fs/autofs/root.c static long autofs_root_compat_ioctl(struct file *filp,
filp              933 fs/autofs/root.c 	struct inode *inode = file_inode(filp);
filp              937 fs/autofs/root.c 		ret = autofs_root_ioctl_unlocked(inode, filp, cmd, arg);
filp              939 fs/autofs/root.c 		ret = autofs_root_ioctl_unlocked(inode, filp, cmd,
filp               19 fs/bad_inode.c static int bad_file_open(struct inode *inode, struct file *filp)
filp              661 fs/block_dev.c int blkdev_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
filp              663 fs/block_dev.c 	struct inode *bd_inode = bdev_file_inode(filp);
filp              667 fs/block_dev.c 	error = file_write_and_wait_range(filp, start, end);
filp             1822 fs/block_dev.c static int blkdev_open(struct inode * inode, struct file * filp)
filp             1832 fs/block_dev.c 	filp->f_flags |= O_LARGEFILE;
filp             1834 fs/block_dev.c 	filp->f_mode |= FMODE_NOWAIT;
filp             1836 fs/block_dev.c 	if (filp->f_flags & O_NDELAY)
filp             1837 fs/block_dev.c 		filp->f_mode |= FMODE_NDELAY;
filp             1838 fs/block_dev.c 	if (filp->f_flags & O_EXCL)
filp             1839 fs/block_dev.c 		filp->f_mode |= FMODE_EXCL;
filp             1840 fs/block_dev.c 	if ((filp->f_flags & O_ACCMODE) == 3)
filp             1841 fs/block_dev.c 		filp->f_mode |= FMODE_WRITE_IOCTL;
filp             1847 fs/block_dev.c 	filp->f_mapping = bdev->bd_inode->i_mapping;
filp             1848 fs/block_dev.c 	filp->f_wb_err = filemap_sample_wb_err(filp->f_mapping);
filp             1850 fs/block_dev.c 	return blkdev_get(bdev, filp->f_mode, filp);
filp             1937 fs/block_dev.c static int blkdev_close(struct inode * inode, struct file * filp)
filp             1939 fs/block_dev.c 	struct block_device *bdev = I_BDEV(bdev_file_inode(filp));
filp             1940 fs/block_dev.c 	blkdev_put(bdev, filp->f_mode);
filp             2010 fs/btrfs/file.c int btrfs_release_file(struct inode *inode, struct file *filp)
filp             2012 fs/btrfs/file.c 	struct btrfs_file_private *private = filp->private_data;
filp             2017 fs/btrfs/file.c 	filp->private_data = NULL;
filp             2247 fs/btrfs/file.c static int btrfs_file_mmap(struct file	*filp, struct vm_area_struct *vma)
filp             2249 fs/btrfs/file.c 	struct address_space *mapping = filp->f_mapping;
filp             2254 fs/btrfs/file.c 	file_accessed(filp);
filp             3461 fs/btrfs/file.c static int btrfs_file_open(struct inode *inode, struct file *filp)
filp             3463 fs/btrfs/file.c 	filp->f_mode |= FMODE_NOWAIT;
filp             3464 fs/btrfs/file.c 	return generic_file_open(inode, filp);
filp              554 fs/btrfs/send.c static int write_buf(struct file *filp, const void *buf, u32 len, loff_t *off)
filp              560 fs/btrfs/send.c 		ret = kernel_write(filp, buf + pos, len - pos, off);
filp             1988 fs/btrfs/volumes.c 	struct file *filp;
filp             1990 fs/btrfs/volumes.c 	filp = filp_open(path_name, O_RDWR, 0);
filp             1991 fs/btrfs/volumes.c 	if (IS_ERR(filp))
filp             1993 fs/btrfs/volumes.c 	file_update_time(filp);
filp             1994 fs/btrfs/volumes.c 	filp_close(filp, NULL);
filp              188 fs/ceph/addr.c static int ceph_do_readpage(struct file *filp, struct page *page)
filp              190 fs/ceph/addr.c 	struct inode *inode = file_inode(filp);
filp              220 fs/ceph/addr.c 	     inode, filp, page, page->index);
filp              247 fs/ceph/addr.c static int ceph_readpage(struct file *filp, struct page *page)
filp              249 fs/ceph/addr.c 	int r = ceph_do_readpage(filp, page);
filp             1660 fs/ceph/addr.c int ceph_uninline_data(struct file *filp, struct page *locked_page)
filp             1662 fs/ceph/addr.c 	struct inode *inode = file_inode(filp);
filp              185 fs/ceph/cache.c void ceph_fscache_file_set_cookie(struct inode *inode, struct file *filp)
filp              194 fs/ceph/cache.c 		     inode, filp);
filp              202 fs/ceph/cache.c 			     inode, filp);
filp               24 fs/ceph/cache.h void ceph_fscache_file_set_cookie(struct inode *inode, struct file *filp);
filp              113 fs/ceph/cache.h 						struct file *filp)
filp             2743 fs/ceph/caps.c int ceph_get_caps(struct file *filp, int need, int want,
filp             2746 fs/ceph/caps.c 	struct ceph_file_info *fi = filp->private_data;
filp             2747 fs/ceph/caps.c 	struct inode *inode = file_inode(filp);
filp             1257 fs/ceph/file.c 	struct file *filp = iocb->ki_filp;
filp             1258 fs/ceph/file.c 	struct ceph_file_info *fi = filp->private_data;
filp             1260 fs/ceph/file.c 	struct inode *inode = file_inode(filp);
filp             1280 fs/ceph/file.c 	ret = ceph_get_caps(filp, CEPH_CAP_FILE_RD, want, -1,
filp             1076 fs/ceph/super.h extern int ceph_get_caps(struct file *filp, int need, int want,
filp             1088 fs/ceph/super.h extern int ceph_uninline_data(struct file *filp, struct page *locked_page);
filp             1099 fs/ceph/super.h extern int ceph_release(struct inode *inode, struct file *filp);
filp              373 fs/char_dev.c  static int chrdev_open(struct inode *inode, struct file *filp)
filp              412 fs/char_dev.c  	replace_fops(filp, fops);
filp              413 fs/char_dev.c  	if (filp->f_op->open) {
filp              414 fs/char_dev.c  		ret = filp->f_op->open(inode, filp);
filp               78 fs/cifs/cifsfs.h extern int cifs_revalidate_file_attr(struct file *filp);
filp               80 fs/cifs/cifsfs.h extern int cifs_revalidate_file(struct file *filp);
filp              194 fs/cifs/fscache.c void cifs_fscache_set_inode_cookie(struct inode *inode, struct file *filp)
filp              196 fs/cifs/fscache.c 	if ((filp->f_flags & O_ACCMODE) != O_RDONLY)
filp              131 fs/cifs/fscache.h 						 struct file *filp) {}
filp              340 fs/cifs/inode.c cifs_get_file_info_unix(struct file *filp)
filp              346 fs/cifs/inode.c 	struct inode *inode = file_inode(filp);
filp              348 fs/cifs/inode.c 	struct cifsFileInfo *cfile = filp->private_data;
filp              668 fs/cifs/inode.c cifs_get_file_info(struct file *filp)
filp              674 fs/cifs/inode.c 	struct inode *inode = file_inode(filp);
filp              675 fs/cifs/inode.c 	struct cifsFileInfo *cfile = filp->private_data;
filp             1990 fs/cifs/inode.c int cifs_revalidate_file_attr(struct file *filp)
filp             1993 fs/cifs/inode.c 	struct inode *inode = file_inode(filp);
filp             1994 fs/cifs/inode.c 	struct cifsFileInfo *cfile = (struct cifsFileInfo *) filp->private_data;
filp             2000 fs/cifs/inode.c 		rc = cifs_get_file_info_unix(filp);
filp             2002 fs/cifs/inode.c 		rc = cifs_get_file_info(filp);
filp             2051 fs/cifs/inode.c int cifs_revalidate_file(struct file *filp)
filp             2054 fs/cifs/inode.c 	struct inode *inode = file_inode(filp);
filp             2056 fs/cifs/inode.c 	rc = cifs_revalidate_file_attr(filp);
filp               28 fs/coda/pioctl.c static long coda_pioctl(struct file *filp, unsigned int cmd,
filp               48 fs/coda/pioctl.c static long coda_pioctl(struct file *filp, unsigned int cmd,
filp               54 fs/coda/pioctl.c 	struct inode *inode = file_inode(filp);
filp               72 fs/coda/psdev.c static long coda_psdev_ioctl(struct file * filp, unsigned int cmd, unsigned long arg)
filp              447 fs/configfs/file.c static int configfs_release(struct inode *inode, struct file *filp)
filp              449 fs/configfs/file.c 	struct configfs_buffer *buffer = filp->private_data;
filp              459 fs/configfs/file.c static int configfs_open_file(struct inode *inode, struct file *filp)
filp              461 fs/configfs/file.c 	return __configfs_open_file(inode, filp, CONFIGFS_ITEM_ATTR);
filp              464 fs/configfs/file.c static int configfs_open_bin_file(struct inode *inode, struct file *filp)
filp              466 fs/configfs/file.c 	return __configfs_open_file(inode, filp, CONFIGFS_ITEM_BIN_ATTR);
filp               30 fs/crypto/hooks.c int fscrypt_file_open(struct inode *inode, struct file *filp)
filp               39 fs/crypto/hooks.c 	dir = dget_parent(file_dentry(filp));
filp              490 fs/crypto/keyring.c int fscrypt_ioctl_add_key(struct file *filp, void __user *_uarg)
filp              492 fs/crypto/keyring.c 	struct super_block *sb = file_inode(filp)->i_sb;
filp              757 fs/crypto/keyring.c static int do_remove_key(struct file *filp, void __user *_uarg, bool all_users)
filp              759 fs/crypto/keyring.c 	struct super_block *sb = file_inode(filp)->i_sb;
filp              855 fs/crypto/keyring.c int fscrypt_ioctl_remove_key(struct file *filp, void __user *uarg)
filp              857 fs/crypto/keyring.c 	return do_remove_key(filp, uarg, false);
filp              861 fs/crypto/keyring.c int fscrypt_ioctl_remove_key_all_users(struct file *filp, void __user *uarg)
filp              865 fs/crypto/keyring.c 	return do_remove_key(filp, uarg, true);
filp              892 fs/crypto/keyring.c int fscrypt_ioctl_get_key_status(struct file *filp, void __user *uarg)
filp              894 fs/crypto/keyring.c 	struct super_block *sb = file_inode(filp)->i_sb;
filp              273 fs/crypto/policy.c int fscrypt_ioctl_set_policy(struct file *filp, const void __user *arg)
filp              277 fs/crypto/policy.c 	struct inode *inode = file_inode(filp);
filp              308 fs/crypto/policy.c 	ret = mnt_want_write_file(filp);
filp              333 fs/crypto/policy.c 	mnt_drop_write_file(filp);
filp              339 fs/crypto/policy.c int fscrypt_ioctl_get_policy(struct file *filp, void __user *arg)
filp              344 fs/crypto/policy.c 	err = fscrypt_get_policy(file_inode(filp), &policy);
filp              358 fs/crypto/policy.c int fscrypt_ioctl_get_policy_ex(struct file *filp, void __user *uarg)
filp              371 fs/crypto/policy.c 	err = fscrypt_get_policy(file_inode(filp), policy);
filp               47 fs/debugfs/file.c #define F_DENTRY(filp) ((filp)->f_path.dentry)
filp               49 fs/debugfs/file.c const struct file_operations *debugfs_real_fops(const struct file *filp)
filp               51 fs/debugfs/file.c 	struct debugfs_fsdata *fsd = F_DENTRY(filp)->d_fsdata;
filp              146 fs/debugfs/file.c 			       struct file *filp,
filp              150 fs/debugfs/file.c 	    !(filp->f_mode & FMODE_WRITE) &&
filp              162 fs/debugfs/file.c static int open_proxy_open(struct inode *inode, struct file *filp)
filp              164 fs/debugfs/file.c 	struct dentry *dentry = F_DENTRY(filp);
filp              172 fs/debugfs/file.c 	real_fops = debugfs_real_fops(filp);
filp              174 fs/debugfs/file.c 	r = debugfs_locked_down(inode, filp, real_fops);
filp              191 fs/debugfs/file.c 	replace_fops(filp, real_fops);
filp              194 fs/debugfs/file.c 		r = real_fops->open(inode, filp);
filp              208 fs/debugfs/file.c #define FULL_PROXY_FUNC(name, ret_type, filp, proto, args)		\
filp              211 fs/debugfs/file.c 	struct dentry *dentry = F_DENTRY(filp);			\
filp              218 fs/debugfs/file.c 	real_fops = debugfs_real_fops(filp);				\
filp              224 fs/debugfs/file.c FULL_PROXY_FUNC(llseek, loff_t, filp,
filp              225 fs/debugfs/file.c 		PROTO(struct file *filp, loff_t offset, int whence),
filp              226 fs/debugfs/file.c 		ARGS(filp, offset, whence));
filp              228 fs/debugfs/file.c FULL_PROXY_FUNC(read, ssize_t, filp,
filp              229 fs/debugfs/file.c 		PROTO(struct file *filp, char __user *buf, size_t size,
filp              231 fs/debugfs/file.c 		ARGS(filp, buf, size, ppos));
filp              233 fs/debugfs/file.c FULL_PROXY_FUNC(write, ssize_t, filp,
filp              234 fs/debugfs/file.c 		PROTO(struct file *filp, const char __user *buf, size_t size,
filp              236 fs/debugfs/file.c 		ARGS(filp, buf, size, ppos));
filp              238 fs/debugfs/file.c FULL_PROXY_FUNC(unlocked_ioctl, long, filp,
filp              239 fs/debugfs/file.c 		PROTO(struct file *filp, unsigned int cmd, unsigned long arg),
filp              240 fs/debugfs/file.c 		ARGS(filp, cmd, arg));
filp              242 fs/debugfs/file.c static __poll_t full_proxy_poll(struct file *filp,
filp              245 fs/debugfs/file.c 	struct dentry *dentry = F_DENTRY(filp);
filp              252 fs/debugfs/file.c 	real_fops = debugfs_real_fops(filp);
filp              253 fs/debugfs/file.c 	r = real_fops->poll(filp, wait);
filp              258 fs/debugfs/file.c static int full_proxy_release(struct inode *inode, struct file *filp)
filp              260 fs/debugfs/file.c 	const struct dentry *dentry = F_DENTRY(filp);
filp              261 fs/debugfs/file.c 	const struct file_operations *real_fops = debugfs_real_fops(filp);
filp              262 fs/debugfs/file.c 	const struct file_operations *proxy_fops = filp->f_op;
filp              272 fs/debugfs/file.c 		r = real_fops->release(inode, filp);
filp              274 fs/debugfs/file.c 	replace_fops(filp, d_inode(dentry)->i_fop);
filp              296 fs/debugfs/file.c static int full_proxy_open(struct inode *inode, struct file *filp)
filp              298 fs/debugfs/file.c 	struct dentry *dentry = F_DENTRY(filp);
filp              307 fs/debugfs/file.c 	real_fops = debugfs_real_fops(filp);
filp              309 fs/debugfs/file.c 	r = debugfs_locked_down(inode, filp, real_fops);
filp              333 fs/debugfs/file.c 	replace_fops(filp, proxy_fops);
filp              336 fs/debugfs/file.c 		r = real_fops->open(inode, filp);
filp              338 fs/debugfs/file.c 			replace_fops(filp, d_inode(dentry)->i_fop);
filp              340 fs/debugfs/file.c 		} else if (filp->f_op != proxy_fops) {
filp              168 fs/devpts/inode.c struct vfsmount *devpts_mntget(struct file *filp, struct pts_fs_info *fsi)
filp              173 fs/devpts/inode.c 	path = filp->f_path;
filp              199 fs/devpts/inode.c struct pts_fs_info *devpts_acquire(struct file *filp)
filp              205 fs/devpts/inode.c 	path = filp->f_path;
filp              226 fs/direct-io.c void dio_warn_stale_pagecache(struct file *filp)
filp              230 fs/direct-io.c 	struct inode *inode = file_inode(filp);
filp              235 fs/direct-io.c 		path = file_path(filp, pathname, sizeof(pathname));
filp              283 fs/erofs/data.c static int erofs_raw_access_readpages(struct file *filp,
filp             1367 fs/erofs/zdata.c static int z_erofs_vle_normalaccess_readpages(struct file *filp,
filp              140 fs/ext2/file.c static int ext2_release_file (struct inode * inode, struct file * filp)
filp              142 fs/ext2/file.c 	if (filp->f_mode & FMODE_WRITE) {
filp               21 fs/ext2/ioctl.c long ext2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp               23 fs/ext2/ioctl.c 	struct inode *inode = file_inode(filp);
filp               38 fs/ext2/ioctl.c 		ret = mnt_want_write_file(filp);
filp               79 fs/ext2/ioctl.c 		mnt_drop_write_file(filp);
filp               89 fs/ext2/ioctl.c 		ret = mnt_want_write_file(filp);
filp              104 fs/ext2/ioctl.c 		mnt_drop_write_file(filp);
filp              126 fs/ext2/ioctl.c 		ret = mnt_want_write_file(filp);
filp              150 fs/ext2/ioctl.c 		mnt_drop_write_file(filp);
filp               67 fs/ext4/dir.c  			   struct inode *dir, struct file *filp,
filp               95 fs/ext4/dir.c  	if (filp)
filp               96 fs/ext4/dir.c  		ext4_error_file(filp, function, line, bh->b_blocknr,
filp              318 fs/ext4/dir.c  static inline loff_t hash2pos(struct file *filp, __u32 major, __u32 minor)
filp              320 fs/ext4/dir.c  	if ((filp->f_mode & FMODE_32BITHASH) ||
filp              321 fs/ext4/dir.c  	    (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api()))
filp              327 fs/ext4/dir.c  static inline __u32 pos2maj_hash(struct file *filp, loff_t pos)
filp              329 fs/ext4/dir.c  	if ((filp->f_mode & FMODE_32BITHASH) ||
filp              330 fs/ext4/dir.c  	    (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api()))
filp              336 fs/ext4/dir.c  static inline __u32 pos2min_hash(struct file *filp, loff_t pos)
filp              338 fs/ext4/dir.c  	if ((filp->f_mode & FMODE_32BITHASH) ||
filp              339 fs/ext4/dir.c  	    (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api()))
filp              348 fs/ext4/dir.c  static inline loff_t ext4_get_htree_eof(struct file *filp)
filp              350 fs/ext4/dir.c  	if ((filp->f_mode & FMODE_32BITHASH) ||
filp              351 fs/ext4/dir.c  	    (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api()))
filp              418 fs/ext4/dir.c  static struct dir_private_info *ext4_htree_create_dir_info(struct file *filp,
filp              426 fs/ext4/dir.c  	p->curr_hash = pos2maj_hash(filp, pos);
filp              427 fs/ext4/dir.c  	p->curr_minor_hash = pos2min_hash(filp, pos);
filp              621 fs/ext4/dir.c  static int ext4_dir_open(struct inode * inode, struct file * filp)
filp              628 fs/ext4/dir.c  static int ext4_release_dir(struct inode *inode, struct file *filp)
filp              630 fs/ext4/dir.c  	if (filp->private_data)
filp              631 fs/ext4/dir.c  		ext4_htree_free_dir_info(filp->private_data);
filp             2480 fs/ext4/ext4.h #define ext4_check_dir_entry(dir, filp, de, bh, buf, size, offset)	\
filp             2481 fs/ext4/ext4.h 	unlikely(__ext4_check_dir_entry(__func__, __LINE__, (dir), (filp), \
filp             3166 fs/ext4/ext4.h extern int ext4_read_inline_dir(struct file *filp,
filp               86 fs/ext4/file.c static int ext4_release_file(struct inode *inode, struct file *filp)
filp               93 fs/ext4/file.c 	if ((filp->f_mode & FMODE_WRITE) &&
filp              101 fs/ext4/file.c 	if (is_dx(inode) && filp->private_data)
filp              102 fs/ext4/file.c 		ext4_htree_free_dir_info(filp->private_data);
filp              445 fs/ext4/file.c static int ext4_file_open(struct inode * inode, struct file * filp)
filp              452 fs/ext4/file.c 	ret = ext4_sample_last_mounted(inode->i_sb, filp->f_path.mnt);
filp              456 fs/ext4/file.c 	ret = fscrypt_file_open(inode, filp);
filp              460 fs/ext4/file.c 	ret = fsverity_file_open(inode, filp);
filp              468 fs/ext4/file.c 	if (filp->f_mode & FMODE_WRITE) {
filp              474 fs/ext4/file.c 	filp->f_mode |= FMODE_NOWAIT;
filp              475 fs/ext4/file.c 	return dquot_file_open(inode, filp);
filp              431 fs/ext4/ioctl.c static int ext4_ioctl_setproject(struct file *filp, __u32 projid)
filp              433 fs/ext4/ioctl.c 	struct inode *inode = file_inode(filp);
filp              517 fs/ext4/ioctl.c static int ext4_ioctl_setproject(struct file *filp, __u32 projid)
filp              774 fs/ext4/ioctl.c static int ext4_ioctl_get_es_cache(struct file *filp, unsigned long arg)
filp              779 fs/ext4/ioctl.c 	struct inode *inode = file_inode(filp);
filp              816 fs/ext4/ioctl.c long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              818 fs/ext4/ioctl.c 	struct inode *inode = file_inode(filp);
filp              854 fs/ext4/ioctl.c 		err = mnt_want_write_file(filp);
filp              865 fs/ext4/ioctl.c 		mnt_drop_write_file(filp);
filp              887 fs/ext4/ioctl.c 		err = mnt_want_write_file(filp);
filp              912 fs/ext4/ioctl.c 		mnt_drop_write_file(filp);
filp              935 fs/ext4/ioctl.c 		err = mnt_want_write_file(filp);
filp              947 fs/ext4/ioctl.c 		mnt_drop_write_file(filp);
filp              958 fs/ext4/ioctl.c 		if (!(filp->f_mode & FMODE_READ) ||
filp              959 fs/ext4/ioctl.c 		    !(filp->f_mode & FMODE_WRITE))
filp              988 fs/ext4/ioctl.c 		err = mnt_want_write_file(filp);
filp              992 fs/ext4/ioctl.c 		err = ext4_move_extents(filp, donor.file, me.orig_start,
filp              994 fs/ext4/ioctl.c 		mnt_drop_write_file(filp);
filp             1011 fs/ext4/ioctl.c 		return ext4_ioctl_group_add(filp, &input);
filp             1020 fs/ext4/ioctl.c 		err = mnt_want_write_file(filp);
filp             1032 fs/ext4/ioctl.c 		mnt_drop_write_file(filp);
filp             1042 fs/ext4/ioctl.c 		err = mnt_want_write_file(filp);
filp             1046 fs/ext4/ioctl.c 		mnt_drop_write_file(filp);
filp             1053 fs/ext4/ioctl.c 		if (!(filp->f_mode & FMODE_WRITE))
filp             1055 fs/ext4/ioctl.c 		err = mnt_want_write_file(filp);
filp             1059 fs/ext4/ioctl.c 		mnt_drop_write_file(filp);
filp             1077 fs/ext4/ioctl.c 		err = mnt_want_write_file(filp);
filp             1089 fs/ext4/ioctl.c 		mnt_drop_write_file(filp);
filp             1141 fs/ext4/ioctl.c 		return fscrypt_ioctl_set_policy(filp, (const void __user *)arg);
filp             1152 fs/ext4/ioctl.c 			err = mnt_want_write_file(filp);
filp             1171 fs/ext4/ioctl.c 			mnt_drop_write_file(filp);
filp             1186 fs/ext4/ioctl.c 		return fscrypt_ioctl_get_policy(filp, (void __user *)arg);
filp             1191 fs/ext4/ioctl.c 		return fscrypt_ioctl_get_policy_ex(filp, (void __user *)arg);
filp             1196 fs/ext4/ioctl.c 		return fscrypt_ioctl_add_key(filp, (void __user *)arg);
filp             1201 fs/ext4/ioctl.c 		return fscrypt_ioctl_remove_key(filp, (void __user *)arg);
filp             1206 fs/ext4/ioctl.c 		return fscrypt_ioctl_remove_key_all_users(filp,
filp             1211 fs/ext4/ioctl.c 		return fscrypt_ioctl_get_key_status(filp, (void __user *)arg);
filp             1238 fs/ext4/ioctl.c 		return ext4_ioctl_get_es_cache(filp, arg);
filp             1271 fs/ext4/ioctl.c 		err = mnt_want_write_file(filp);
filp             1288 fs/ext4/ioctl.c 		err = ext4_ioctl_setproject(filp, fa.fsx_projid);
filp             1291 fs/ext4/ioctl.c 		mnt_drop_write_file(filp);
filp             1300 fs/ext4/ioctl.c 		return fsverity_ioctl_enable(filp, (const void __user *)arg);
filp             1305 fs/ext4/ioctl.c 		return fsverity_ioctl_measure(filp, (void __user *)arg);
filp              109 fs/ext4/verity.c static int ext4_begin_enable_verity(struct file *filp)
filp              111 fs/ext4/verity.c 	struct inode *inode = file_inode(filp);
filp              195 fs/ext4/verity.c static int ext4_end_enable_verity(struct file *filp, const void *desc,
filp              198 fs/ext4/verity.c 	struct inode *inode = file_inode(filp);
filp             1047 fs/f2fs/dir.c  static int f2fs_dir_open(struct inode *inode, struct file *filp)
filp             2935 fs/f2fs/f2fs.h long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
filp              499 fs/f2fs/file.c static int f2fs_file_open(struct inode *inode, struct file *filp)
filp              501 fs/f2fs/file.c 	int err = fscrypt_file_open(inode, filp);
filp              506 fs/f2fs/file.c 	err = fsverity_file_open(inode, filp);
filp              510 fs/f2fs/file.c 	filp->f_mode |= FMODE_NOWAIT;
filp              512 fs/f2fs/file.c 	return dquot_file_open(inode, filp);
filp             1628 fs/f2fs/file.c static int f2fs_release_file(struct inode *inode, struct file *filp)
filp             1634 fs/f2fs/file.c 	if (!(filp->f_mode & FMODE_WRITE) ||
filp             1770 fs/f2fs/file.c static int f2fs_ioc_getflags(struct file *filp, unsigned long arg)
filp             1772 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             1790 fs/f2fs/file.c static int f2fs_ioc_setflags(struct file *filp, unsigned long arg)
filp             1792 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             1812 fs/f2fs/file.c 	ret = mnt_want_write_file(filp);
filp             1827 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             1831 fs/f2fs/file.c static int f2fs_ioc_getversion(struct file *filp, unsigned long arg)
filp             1833 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             1838 fs/f2fs/file.c static int f2fs_ioc_start_atomic_write(struct file *filp)
filp             1840 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             1851 fs/f2fs/file.c 	if (filp->f_flags & O_DIRECT)
filp             1854 fs/f2fs/file.c 	ret = mnt_want_write_file(filp);
filp             1902 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             1906 fs/f2fs/file.c static int f2fs_ioc_commit_atomic_write(struct file *filp)
filp             1908 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             1914 fs/f2fs/file.c 	ret = mnt_want_write_file(filp);
filp             1932 fs/f2fs/file.c 		ret = f2fs_do_sync_file(filp, 0, LLONG_MAX, 0, true);
filp             1936 fs/f2fs/file.c 		ret = f2fs_do_sync_file(filp, 0, LLONG_MAX, 1, false);
filp             1944 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             1948 fs/f2fs/file.c static int f2fs_ioc_start_volatile_write(struct file *filp)
filp             1950 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             1959 fs/f2fs/file.c 	ret = mnt_want_write_file(filp);
filp             1979 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             1983 fs/f2fs/file.c static int f2fs_ioc_release_volatile_write(struct file *filp)
filp             1985 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             1991 fs/f2fs/file.c 	ret = mnt_want_write_file(filp);
filp             2008 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             2012 fs/f2fs/file.c static int f2fs_ioc_abort_volatile_write(struct file *filp)
filp             2014 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2020 fs/f2fs/file.c 	ret = mnt_want_write_file(filp);
filp             2031 fs/f2fs/file.c 		ret = f2fs_do_sync_file(filp, 0, LLONG_MAX, 0, true);
filp             2038 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             2043 fs/f2fs/file.c static int f2fs_ioc_shutdown(struct file *filp, unsigned long arg)
filp             2045 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2058 fs/f2fs/file.c 		ret = mnt_want_write_file(filp);
filp             2114 fs/f2fs/file.c 		mnt_drop_write_file(filp);
filp             2121 fs/f2fs/file.c static int f2fs_ioc_fitrim(struct file *filp, unsigned long arg)
filp             2123 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2139 fs/f2fs/file.c 	ret = mnt_want_write_file(filp);
filp             2146 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             2167 fs/f2fs/file.c static int f2fs_ioc_set_encryption_policy(struct file *filp, unsigned long arg)
filp             2169 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2176 fs/f2fs/file.c 	return fscrypt_ioctl_set_policy(filp, (const void __user *)arg);
filp             2179 fs/f2fs/file.c static int f2fs_ioc_get_encryption_policy(struct file *filp, unsigned long arg)
filp             2181 fs/f2fs/file.c 	if (!f2fs_sb_has_encrypt(F2FS_I_SB(file_inode(filp))))
filp             2183 fs/f2fs/file.c 	return fscrypt_ioctl_get_policy(filp, (void __user *)arg);
filp             2186 fs/f2fs/file.c static int f2fs_ioc_get_encryption_pwsalt(struct file *filp, unsigned long arg)
filp             2188 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2195 fs/f2fs/file.c 	err = mnt_want_write_file(filp);
filp             2219 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             2223 fs/f2fs/file.c static int f2fs_ioc_get_encryption_policy_ex(struct file *filp,
filp             2226 fs/f2fs/file.c 	if (!f2fs_sb_has_encrypt(F2FS_I_SB(file_inode(filp))))
filp             2229 fs/f2fs/file.c 	return fscrypt_ioctl_get_policy_ex(filp, (void __user *)arg);
filp             2232 fs/f2fs/file.c static int f2fs_ioc_add_encryption_key(struct file *filp, unsigned long arg)
filp             2234 fs/f2fs/file.c 	if (!f2fs_sb_has_encrypt(F2FS_I_SB(file_inode(filp))))
filp             2237 fs/f2fs/file.c 	return fscrypt_ioctl_add_key(filp, (void __user *)arg);
filp             2240 fs/f2fs/file.c static int f2fs_ioc_remove_encryption_key(struct file *filp, unsigned long arg)
filp             2242 fs/f2fs/file.c 	if (!f2fs_sb_has_encrypt(F2FS_I_SB(file_inode(filp))))
filp             2245 fs/f2fs/file.c 	return fscrypt_ioctl_remove_key(filp, (void __user *)arg);
filp             2248 fs/f2fs/file.c static int f2fs_ioc_remove_encryption_key_all_users(struct file *filp,
filp             2251 fs/f2fs/file.c 	if (!f2fs_sb_has_encrypt(F2FS_I_SB(file_inode(filp))))
filp             2254 fs/f2fs/file.c 	return fscrypt_ioctl_remove_key_all_users(filp, (void __user *)arg);
filp             2257 fs/f2fs/file.c static int f2fs_ioc_get_encryption_key_status(struct file *filp,
filp             2260 fs/f2fs/file.c 	if (!f2fs_sb_has_encrypt(F2FS_I_SB(file_inode(filp))))
filp             2263 fs/f2fs/file.c 	return fscrypt_ioctl_get_key_status(filp, (void __user *)arg);
filp             2266 fs/f2fs/file.c static int f2fs_ioc_gc(struct file *filp, unsigned long arg)
filp             2268 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2282 fs/f2fs/file.c 	ret = mnt_want_write_file(filp);
filp             2297 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             2301 fs/f2fs/file.c static int f2fs_ioc_gc_range(struct file *filp, unsigned long arg)
filp             2303 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2324 fs/f2fs/file.c 	ret = mnt_want_write_file(filp);
filp             2343 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             2347 fs/f2fs/file.c static int f2fs_ioc_write_checkpoint(struct file *filp, unsigned long arg)
filp             2349 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2364 fs/f2fs/file.c 	ret = mnt_want_write_file(filp);
filp             2370 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             2375 fs/f2fs/file.c 					struct file *filp,
filp             2378 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2522 fs/f2fs/file.c static int f2fs_ioc_defragment(struct file *filp, unsigned long arg)
filp             2524 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2550 fs/f2fs/file.c 	err = mnt_want_write_file(filp);
filp             2554 fs/f2fs/file.c 	err = f2fs_defragment_range(sbi, filp, &range);
filp             2555 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             2680 fs/f2fs/file.c static int f2fs_ioc_move_range(struct file *filp, unsigned long arg)
filp             2686 fs/f2fs/file.c 	if (!(filp->f_mode & FMODE_READ) ||
filp             2687 fs/f2fs/file.c 			!(filp->f_mode & FMODE_WRITE))
filp             2703 fs/f2fs/file.c 	err = mnt_want_write_file(filp);
filp             2707 fs/f2fs/file.c 	err = f2fs_move_file_range(filp, range.pos_in, dst.file,
filp             2710 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             2722 fs/f2fs/file.c static int f2fs_ioc_flush_device(struct file *filp, unsigned long arg)
filp             2724 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2752 fs/f2fs/file.c 	ret = mnt_want_write_file(filp);
filp             2781 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             2785 fs/f2fs/file.c static int f2fs_ioc_get_features(struct file *filp, unsigned long arg)
filp             2787 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2814 fs/f2fs/file.c static int f2fs_ioc_setproject(struct file *filp, __u32 projid)
filp             2816 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2877 fs/f2fs/file.c static int f2fs_ioc_setproject(struct file *filp, __u32 projid)
filp             2949 fs/f2fs/file.c static int f2fs_ioc_fsgetxattr(struct file *filp, unsigned long arg)
filp             2951 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2961 fs/f2fs/file.c static int f2fs_ioc_fssetxattr(struct file *filp, unsigned long arg)
filp             2963 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             2982 fs/f2fs/file.c 	err = mnt_want_write_file(filp);
filp             2998 fs/f2fs/file.c 	err = f2fs_ioc_setproject(filp, fa.fsx_projid);
filp             3001 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             3025 fs/f2fs/file.c static int f2fs_ioc_set_pin_file(struct file *filp, unsigned long arg)
filp             3027 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             3040 fs/f2fs/file.c 	ret = mnt_want_write_file(filp);
filp             3071 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             3075 fs/f2fs/file.c static int f2fs_ioc_get_pin_file(struct file *filp, unsigned long arg)
filp             3077 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             3118 fs/f2fs/file.c static int f2fs_ioc_precache_extents(struct file *filp, unsigned long arg)
filp             3120 fs/f2fs/file.c 	return f2fs_precache_extents(file_inode(filp));
filp             3123 fs/f2fs/file.c static int f2fs_ioc_resize_fs(struct file *filp, unsigned long arg)
filp             3125 fs/f2fs/file.c 	struct f2fs_sb_info *sbi = F2FS_I_SB(file_inode(filp));
filp             3144 fs/f2fs/file.c static int f2fs_ioc_enable_verity(struct file *filp, unsigned long arg)
filp             3146 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             3157 fs/f2fs/file.c 	return fsverity_ioctl_enable(filp, (const void __user *)arg);
filp             3160 fs/f2fs/file.c static int f2fs_ioc_measure_verity(struct file *filp, unsigned long arg)
filp             3162 fs/f2fs/file.c 	if (!f2fs_sb_has_verity(F2FS_I_SB(file_inode(filp))))
filp             3165 fs/f2fs/file.c 	return fsverity_ioctl_measure(filp, (void __user *)arg);
filp             3168 fs/f2fs/file.c static int f2fs_get_volume_name(struct file *filp, unsigned long arg)
filp             3170 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             3194 fs/f2fs/file.c static int f2fs_set_volume_name(struct file *filp, unsigned long arg)
filp             3196 fs/f2fs/file.c 	struct inode *inode = file_inode(filp);
filp             3208 fs/f2fs/file.c 	err = mnt_want_write_file(filp);
filp             3224 fs/f2fs/file.c 	mnt_drop_write_file(filp);
filp             3230 fs/f2fs/file.c long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp             3232 fs/f2fs/file.c 	if (unlikely(f2fs_cp_error(F2FS_I_SB(file_inode(filp)))))
filp             3234 fs/f2fs/file.c 	if (!f2fs_is_checkpoint_ready(F2FS_I_SB(file_inode(filp))))
filp             3239 fs/f2fs/file.c 		return f2fs_ioc_getflags(filp, arg);
filp             3241 fs/f2fs/file.c 		return f2fs_ioc_setflags(filp, arg);
filp             3243 fs/f2fs/file.c 		return f2fs_ioc_getversion(filp, arg);
filp             3245 fs/f2fs/file.c 		return f2fs_ioc_start_atomic_write(filp);
filp             3247 fs/f2fs/file.c 		return f2fs_ioc_commit_atomic_write(filp);
filp             3249 fs/f2fs/file.c 		return f2fs_ioc_start_volatile_write(filp);
filp             3251 fs/f2fs/file.c 		return f2fs_ioc_release_volatile_write(filp);
filp             3253 fs/f2fs/file.c 		return f2fs_ioc_abort_volatile_write(filp);
filp             3255 fs/f2fs/file.c 		return f2fs_ioc_shutdown(filp, arg);
filp             3257 fs/f2fs/file.c 		return f2fs_ioc_fitrim(filp, arg);
filp             3259 fs/f2fs/file.c 		return f2fs_ioc_set_encryption_policy(filp, arg);
filp             3261 fs/f2fs/file.c 		return f2fs_ioc_get_encryption_policy(filp, arg);
filp             3263 fs/f2fs/file.c 		return f2fs_ioc_get_encryption_pwsalt(filp, arg);
filp             3265 fs/f2fs/file.c 		return f2fs_ioc_get_encryption_policy_ex(filp, arg);
filp             3267 fs/f2fs/file.c 		return f2fs_ioc_add_encryption_key(filp, arg);
filp             3269 fs/f2fs/file.c 		return f2fs_ioc_remove_encryption_key(filp, arg);
filp             3271 fs/f2fs/file.c 		return f2fs_ioc_remove_encryption_key_all_users(filp, arg);
filp             3273 fs/f2fs/file.c 		return f2fs_ioc_get_encryption_key_status(filp, arg);
filp             3275 fs/f2fs/file.c 		return f2fs_ioc_gc(filp, arg);
filp             3277 fs/f2fs/file.c 		return f2fs_ioc_gc_range(filp, arg);
filp             3279 fs/f2fs/file.c 		return f2fs_ioc_write_checkpoint(filp, arg);
filp             3281 fs/f2fs/file.c 		return f2fs_ioc_defragment(filp, arg);
filp             3283 fs/f2fs/file.c 		return f2fs_ioc_move_range(filp, arg);
filp             3285 fs/f2fs/file.c 		return f2fs_ioc_flush_device(filp, arg);
filp             3287 fs/f2fs/file.c 		return f2fs_ioc_get_features(filp, arg);
filp             3289 fs/f2fs/file.c 		return f2fs_ioc_fsgetxattr(filp, arg);
filp             3291 fs/f2fs/file.c 		return f2fs_ioc_fssetxattr(filp, arg);
filp             3293 fs/f2fs/file.c 		return f2fs_ioc_get_pin_file(filp, arg);
filp             3295 fs/f2fs/file.c 		return f2fs_ioc_set_pin_file(filp, arg);
filp             3297 fs/f2fs/file.c 		return f2fs_ioc_precache_extents(filp, arg);
filp             3299 fs/f2fs/file.c 		return f2fs_ioc_resize_fs(filp, arg);
filp             3301 fs/f2fs/file.c 		return f2fs_ioc_enable_verity(filp, arg);
filp             3303 fs/f2fs/file.c 		return f2fs_ioc_measure_verity(filp, arg);
filp             3305 fs/f2fs/file.c 		return f2fs_get_volume_name(filp, arg);
filp             3307 fs/f2fs/file.c 		return f2fs_set_volume_name(filp, arg);
filp              121 fs/f2fs/verity.c static int f2fs_begin_enable_verity(struct file *filp)
filp              123 fs/f2fs/verity.c 	struct inode *inode = file_inode(filp);
filp              149 fs/f2fs/verity.c static int f2fs_end_enable_verity(struct file *filp, const void *desc,
filp              152 fs/f2fs/verity.c 	struct inode *inode = file_inode(filp);
filp              787 fs/fat/dir.c   static long fat_dir_ioctl(struct file *filp, unsigned int cmd,
filp              790 fs/fat/dir.c   	struct inode *inode = file_inode(filp);
filp              804 fs/fat/dir.c   		return fat_generic_ioctl(filp, cmd, arg);
filp              817 fs/fat/dir.c   	return fat_ioctl_readdir(inode, filp, d1, fat_ioctl_filldir,
filp              827 fs/fat/dir.c   static long fat_compat_dir_ioctl(struct file *filp, unsigned cmd,
filp              830 fs/fat/dir.c   	struct inode *inode = file_inode(filp);
filp              844 fs/fat/dir.c   		return fat_generic_ioctl(filp, cmd, (unsigned long)arg);
filp              857 fs/fat/dir.c   	return fat_ioctl_readdir(inode, filp, d1, fat_compat_ioctl_filldir,
filp              396 fs/fat/fat.h   extern long fat_generic_ioctl(struct file *filp, unsigned int cmd,
filp              156 fs/fat/file.c  long fat_generic_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              158 fs/fat/file.c  	struct inode *inode = file_inode(filp);
filp              165 fs/fat/file.c  		return fat_ioctl_set_attributes(filp, user_attr);
filp              176 fs/fat/file.c  static long fat_generic_compat_ioctl(struct file *filp, unsigned int cmd,
filp              180 fs/fat/file.c  	return fat_generic_ioctl(filp, cmd, (unsigned long)compat_ptr(arg));
filp              184 fs/fat/file.c  static int fat_file_release(struct inode *inode, struct file *filp)
filp              186 fs/fat/file.c  	if ((filp->f_mode & FMODE_WRITE) &&
filp              194 fs/fat/file.c  int fat_file_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
filp              196 fs/fat/file.c  	struct inode *inode = filp->f_mapping->host;
filp              199 fs/fat/file.c  	err = __generic_file_fsync(filp, start, end, datasync);
filp               35 fs/fcntl.c     static int setfl(int fd, struct file * filp, unsigned long arg)
filp               37 fs/fcntl.c     	struct inode * inode = file_inode(filp);
filp               44 fs/fcntl.c     	if (((arg ^ filp->f_flags) & O_APPEND) && IS_APPEND(inode))
filp               48 fs/fcntl.c     	if ((arg & O_NOATIME) && !(filp->f_flags & O_NOATIME))
filp               59 fs/fcntl.c     		if (!filp->f_mapping || !filp->f_mapping->a_ops ||
filp               60 fs/fcntl.c     			!filp->f_mapping->a_ops->direct_IO)
filp               64 fs/fcntl.c     	if (filp->f_op->check_flags)
filp               65 fs/fcntl.c     		error = filp->f_op->check_flags(arg);
filp               72 fs/fcntl.c     	if (((arg ^ filp->f_flags) & FASYNC) && filp->f_op->fasync) {
filp               73 fs/fcntl.c     		error = filp->f_op->fasync(fd, filp, (arg & FASYNC) != 0);
filp               79 fs/fcntl.c     	spin_lock(&filp->f_lock);
filp               80 fs/fcntl.c     	filp->f_flags = (arg & SETFL_MASK) | (filp->f_flags & ~SETFL_MASK);
filp               81 fs/fcntl.c     	spin_unlock(&filp->f_lock);
filp               87 fs/fcntl.c     static void f_modown(struct file *filp, struct pid *pid, enum pid_type type,
filp               90 fs/fcntl.c     	write_lock_irq(&filp->f_owner.lock);
filp               91 fs/fcntl.c     	if (force || !filp->f_owner.pid) {
filp               92 fs/fcntl.c     		put_pid(filp->f_owner.pid);
filp               93 fs/fcntl.c     		filp->f_owner.pid = get_pid(pid);
filp               94 fs/fcntl.c     		filp->f_owner.pid_type = type;
filp               98 fs/fcntl.c     			filp->f_owner.uid = cred->uid;
filp               99 fs/fcntl.c     			filp->f_owner.euid = cred->euid;
filp              102 fs/fcntl.c     	write_unlock_irq(&filp->f_owner.lock);
filp              105 fs/fcntl.c     void __f_setown(struct file *filp, struct pid *pid, enum pid_type type,
filp              108 fs/fcntl.c     	security_file_set_fowner(filp);
filp              109 fs/fcntl.c     	f_modown(filp, pid, type, force);
filp              113 fs/fcntl.c     int f_setown(struct file *filp, unsigned long arg, int force)
filp              137 fs/fcntl.c     		__f_setown(filp, pid, type, force);
filp              144 fs/fcntl.c     void f_delown(struct file *filp)
filp              146 fs/fcntl.c     	f_modown(filp, NULL, PIDTYPE_TGID, 1);
filp              149 fs/fcntl.c     pid_t f_getown(struct file *filp)
filp              152 fs/fcntl.c     	read_lock(&filp->f_owner.lock);
filp              153 fs/fcntl.c     	pid = pid_vnr(filp->f_owner.pid);
filp              154 fs/fcntl.c     	if (filp->f_owner.pid_type == PIDTYPE_PGID)
filp              156 fs/fcntl.c     	read_unlock(&filp->f_owner.lock);
filp              160 fs/fcntl.c     static int f_setown_ex(struct file *filp, unsigned long arg)
filp              194 fs/fcntl.c     		 __f_setown(filp, pid, type, 1);
filp              200 fs/fcntl.c     static int f_getown_ex(struct file *filp, unsigned long arg)
filp              206 fs/fcntl.c     	read_lock(&filp->f_owner.lock);
filp              207 fs/fcntl.c     	owner.pid = pid_vnr(filp->f_owner.pid);
filp              208 fs/fcntl.c     	switch (filp->f_owner.pid_type) {
filp              226 fs/fcntl.c     	read_unlock(&filp->f_owner.lock);
filp              237 fs/fcntl.c     static int f_getowner_uids(struct file *filp, unsigned long arg)
filp              244 fs/fcntl.c     	read_lock(&filp->f_owner.lock);
filp              245 fs/fcntl.c     	src[0] = from_kuid(user_ns, filp->f_owner.uid);
filp              246 fs/fcntl.c     	src[1] = from_kuid(user_ns, filp->f_owner.euid);
filp              247 fs/fcntl.c     	read_unlock(&filp->f_owner.lock);
filp              255 fs/fcntl.c     static int f_getowner_uids(struct file *filp, unsigned long arg)
filp              323 fs/fcntl.c     		struct file *filp)
filp              331 fs/fcntl.c     		err = f_dupfd(arg, filp, 0);
filp              334 fs/fcntl.c     		err = f_dupfd(arg, filp, O_CLOEXEC);
filp              344 fs/fcntl.c     		err = filp->f_flags;
filp              347 fs/fcntl.c     		err = setfl(fd, filp, arg);
filp              356 fs/fcntl.c     		err = fcntl_getlk(filp, cmd, &flock);
filp              370 fs/fcntl.c     		err = fcntl_setlk(fd, filp, cmd, &flock);
filp              380 fs/fcntl.c     		err = f_getown(filp);
filp              384 fs/fcntl.c     		err = f_setown(filp, arg, 1);
filp              387 fs/fcntl.c     		err = f_getown_ex(filp, arg);
filp              390 fs/fcntl.c     		err = f_setown_ex(filp, arg);
filp              393 fs/fcntl.c     		err = f_getowner_uids(filp, arg);
filp              396 fs/fcntl.c     		err = filp->f_owner.signum;
filp              404 fs/fcntl.c     		filp->f_owner.signum = arg;
filp              407 fs/fcntl.c     		err = fcntl_getlease(filp);
filp              410 fs/fcntl.c     		err = fcntl_setlease(fd, filp, arg);
filp              413 fs/fcntl.c     		err = fcntl_dirnotify(fd, filp, arg);
filp              417 fs/fcntl.c     		err = pipe_fcntl(filp, cmd, arg);
filp              421 fs/fcntl.c     		err = memfd_fcntl(filp, cmd, arg);
filp              427 fs/fcntl.c     		err = fcntl_rw_hint(filp, cmd, arg);
filp              867 fs/fcntl.c     int fasync_remove_entry(struct file *filp, struct fasync_struct **fapp)
filp              872 fs/fcntl.c     	spin_lock(&filp->f_lock);
filp              875 fs/fcntl.c     		if (fa->fa_file != filp)
filp              884 fs/fcntl.c     		filp->f_flags &= ~FASYNC;
filp              889 fs/fcntl.c     	spin_unlock(&filp->f_lock);
filp              915 fs/fcntl.c     struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, struct fasync_struct *new)
filp              919 fs/fcntl.c     	spin_lock(&filp->f_lock);
filp              922 fs/fcntl.c     		if (fa->fa_file != filp)
filp              933 fs/fcntl.c     	new->fa_file = filp;
filp              937 fs/fcntl.c     	filp->f_flags |= FASYNC;
filp              941 fs/fcntl.c     	spin_unlock(&filp->f_lock);
filp              949 fs/fcntl.c     static int fasync_add_entry(int fd, struct file *filp, struct fasync_struct **fapp)
filp              964 fs/fcntl.c     	if (fasync_insert_entry(fd, filp, fapp, new)) {
filp              978 fs/fcntl.c     int fasync_helper(int fd, struct file * filp, int on, struct fasync_struct **fapp)
filp              981 fs/fcntl.c     		return fasync_remove_entry(filp, fapp);
filp              982 fs/fcntl.c     	return fasync_add_entry(fd, filp, fapp);
filp              156 fs/gfs2/file.c static int gfs2_get_flags(struct file *filp, u32 __user *ptr)
filp              158 fs/gfs2/file.c 	struct inode *inode = file_inode(filp);
filp              216 fs/gfs2/file.c static int do_gfs2_set_flags(struct file *filp, u32 reqflags, u32 mask,
filp              219 fs/gfs2/file.c 	struct inode *inode = file_inode(filp);
filp              227 fs/gfs2/file.c 	error = mnt_want_write_file(filp);
filp              295 fs/gfs2/file.c 	mnt_drop_write_file(filp);
filp              299 fs/gfs2/file.c static int gfs2_set_flags(struct file *filp, u32 __user *ptr)
filp              301 fs/gfs2/file.c 	struct inode *inode = file_inode(filp);
filp              328 fs/gfs2/file.c 	return do_gfs2_set_flags(filp, gfsflags, mask, fsflags);
filp              331 fs/gfs2/file.c static int gfs2_getlabel(struct file *filp, char __user *label)
filp              333 fs/gfs2/file.c 	struct inode *inode = file_inode(filp);
filp              342 fs/gfs2/file.c static long gfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              346 fs/gfs2/file.c 		return gfs2_get_flags(filp, (u32 __user *)arg);
filp              348 fs/gfs2/file.c 		return gfs2_set_flags(filp, (u32 __user *)arg);
filp              350 fs/gfs2/file.c 		return gfs2_fitrim(filp, (void __user *)arg);
filp              352 fs/gfs2/file.c 		return gfs2_getlabel(filp, (char __user *)arg);
filp              359 fs/gfs2/file.c static long gfs2_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              377 fs/gfs2/file.c 	return gfs2_ioctl(filp, cmd, (unsigned long)compat_ptr(arg));
filp             1393 fs/gfs2/rgrp.c int gfs2_fitrim(struct file *filp, void __user *argp)
filp             1395 fs/gfs2/rgrp.c 	struct inode *inode = file_inode(filp);
filp               77 fs/gfs2/rgrp.h extern int gfs2_fitrim(struct file *filp, void __user *argp);
filp              654 fs/hfs/inode.c static int hfs_file_fsync(struct file *filp, loff_t start, loff_t end,
filp              657 fs/hfs/inode.c 	struct inode *inode = filp->f_mapping->host;
filp              661 fs/hfs/inode.c 	ret = file_write_and_wait_range(filp, start, end);
filp              497 fs/hfsplus/hfsplus_fs.h long hfsplus_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
filp               13 fs/hpfs/dir.c  static int hpfs_dir_release(struct inode *inode, struct file *filp)
filp               16 fs/hpfs/dir.c  	hpfs_del_pos(inode, &filp->f_pos);
filp               24 fs/hpfs/dir.c  static loff_t hpfs_dir_lseek(struct file *filp, loff_t off, int whence)
filp               26 fs/hpfs/dir.c  	loff_t new_off = off + (whence == 1 ? filp->f_pos : 0);
filp               29 fs/hpfs/dir.c  	struct inode *i = file_inode(filp);
filp               48 fs/hpfs/dir.c  	if (unlikely(hpfs_add_pos(i, &filp->f_pos) < 0)) {
filp               54 fs/hpfs/dir.c  	filp->f_pos = new_off;
filp             1308 fs/io_uring.c  	struct file *filp = kiocb->ki_filp;
filp             1314 fs/io_uring.c  		max_bytes = filp->f_ra.ra_pages << (PAGE_SHIFT + 3);
filp             1328 fs/io_uring.c  	if (async_list->file != filp) {
filp             1331 fs/io_uring.c  		async_list->file = filp;
filp               40 fs/ioctl.c     long vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp               44 fs/ioctl.c     	if (!filp->f_op->unlocked_ioctl)
filp               47 fs/ioctl.c     	error = filp->f_op->unlocked_ioctl(filp, cmd, arg);
filp               55 fs/ioctl.c     static int ioctl_fibmap(struct file *filp, int __user *p)
filp               57 fs/ioctl.c     	struct address_space *mapping = filp->f_mapping;
filp              178 fs/ioctl.c     static int ioctl_fiemap(struct file *filp, unsigned long arg)
filp              183 fs/ioctl.c     	struct inode *inode = file_inode(filp);
filp              470 fs/ioctl.c     int ioctl_preallocate(struct file *filp, void __user *argp)
filp              472 fs/ioctl.c     	struct inode *inode = file_inode(filp);
filp              482 fs/ioctl.c     		sr.l_start += filp->f_pos;
filp              491 fs/ioctl.c     	return vfs_fallocate(filp, FALLOC_FL_KEEP_SIZE, sr.l_start, sr.l_len);
filp              494 fs/ioctl.c     static int file_ioctl(struct file *filp, unsigned int cmd,
filp              497 fs/ioctl.c     	struct inode *inode = file_inode(filp);
filp              502 fs/ioctl.c     		return ioctl_fibmap(filp, p);
filp              504 fs/ioctl.c     		return put_user(i_size_read(inode) - filp->f_pos, p);
filp              507 fs/ioctl.c     		return ioctl_preallocate(filp, p);
filp              510 fs/ioctl.c     	return vfs_ioctl(filp, cmd, arg);
filp              513 fs/ioctl.c     static int ioctl_fionbio(struct file *filp, int __user *argp)
filp              527 fs/ioctl.c     	spin_lock(&filp->f_lock);
filp              529 fs/ioctl.c     		filp->f_flags |= flag;
filp              531 fs/ioctl.c     		filp->f_flags &= ~flag;
filp              532 fs/ioctl.c     	spin_unlock(&filp->f_lock);
filp              536 fs/ioctl.c     static int ioctl_fioasync(unsigned int fd, struct file *filp,
filp              548 fs/ioctl.c     	if ((flag ^ filp->f_flags) & FASYNC) {
filp              549 fs/ioctl.c     		if (filp->f_op->fasync)
filp              551 fs/ioctl.c     			error = filp->f_op->fasync(fd, filp, on);
filp              558 fs/ioctl.c     static int ioctl_fsfreeze(struct file *filp)
filp              560 fs/ioctl.c     	struct super_block *sb = file_inode(filp)->i_sb;
filp              575 fs/ioctl.c     static int ioctl_fsthaw(struct file *filp)
filp              577 fs/ioctl.c     	struct super_block *sb = file_inode(filp)->i_sb;
filp              635 fs/ioctl.c     int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd,
filp              640 fs/ioctl.c     	struct inode *inode = file_inode(filp);
filp              652 fs/ioctl.c     		error = ioctl_fionbio(filp, argp);
filp              656 fs/ioctl.c     		error = ioctl_fioasync(fd, filp, argp);
filp              670 fs/ioctl.c     		error = ioctl_fsfreeze(filp);
filp              674 fs/ioctl.c     		error = ioctl_fsthaw(filp);
filp              678 fs/ioctl.c     		return ioctl_fiemap(filp, arg);
filp              687 fs/ioctl.c     		return ioctl_file_clone(filp, arg, 0, 0, 0);
filp              690 fs/ioctl.c     		return ioctl_file_clone_range(filp, argp);
filp              693 fs/ioctl.c     		return ioctl_file_dedupe_range(filp, argp);
filp              697 fs/ioctl.c     			error = file_ioctl(filp, cmd, arg);
filp              699 fs/ioctl.c     			error = vfs_ioctl(filp, cmd, arg);
filp               24 fs/jffs2/file.c static int jffs2_write_end(struct file *filp, struct address_space *mapping,
filp               27 fs/jffs2/file.c static int jffs2_write_begin(struct file *filp, struct address_space *mapping,
filp               30 fs/jffs2/file.c static int jffs2_readpage (struct file *filp, struct page *pg);
filp               32 fs/jffs2/file.c int jffs2_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
filp               34 fs/jffs2/file.c 	struct inode *inode = filp->f_mapping->host;
filp               38 fs/jffs2/file.c 	ret = file_write_and_wait_range(filp, start, end);
filp              120 fs/jffs2/file.c static int jffs2_readpage (struct file *filp, struct page *pg)
filp              131 fs/jffs2/file.c static int jffs2_write_begin(struct file *filp, struct address_space *mapping,
filp              235 fs/jffs2/file.c static int jffs2_write_end(struct file *filp, struct address_space *mapping,
filp               16 fs/jffs2/ioctl.c long jffs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp               60 fs/jfs/ioctl.c long jfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp               62 fs/jfs/ioctl.c 	struct inode *inode = file_inode(filp);
filp               75 fs/jfs/ioctl.c 		err = mnt_want_write_file(filp);
filp              118 fs/jfs/ioctl.c 		mnt_drop_write_file(filp);
filp              161 fs/jfs/ioctl.c long jfs_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              175 fs/jfs/ioctl.c 	return jfs_ioctl(filp, cmd, arg);
filp             1604 fs/kernfs/dir.c static int kernfs_dir_fop_release(struct inode *inode, struct file *filp)
filp             1606 fs/kernfs/dir.c 	kernfs_put(filp->private_data);
filp              768 fs/kernfs/file.c static int kernfs_fop_release(struct inode *inode, struct file *filp)
filp              771 fs/kernfs/file.c 	struct kernfs_open_file *of = kernfs_of(filp);
filp              780 fs/kernfs/file.c 	seq_release(inode, filp);
filp              847 fs/kernfs/file.c static __poll_t kernfs_fop_poll(struct file *filp, poll_table *wait)
filp              849 fs/kernfs/file.c 	struct kernfs_open_file *of = kernfs_of(filp);
filp              850 fs/kernfs/file.c 	struct kernfs_node *kn = kernfs_dentry_node(filp->f_path.dentry);
filp              221 fs/libfs.c     ssize_t generic_read_dir(struct file *filp, char __user *buf, size_t siz, loff_t *ppos)
filp             1188 fs/libfs.c     simple_nosetlease(struct file *filp, long arg, struct file_lock **flp,
filp               24 fs/lockd/svc4proc.c 			struct nlm_host **hostp, struct nlm_file **filp)
filp               42 fs/lockd/svc4proc.c 	if (filp != NULL) {
filp               45 fs/lockd/svc4proc.c 		*filp = file;
filp               53 fs/lockd/svcproc.c 			struct nlm_host **hostp, struct nlm_file **filp)
filp               71 fs/lockd/svcproc.c 	if (filp != NULL) {
filp               75 fs/lockd/svcproc.c 		*filp = file;
filp              308 fs/locks.c     locks_check_ctx_file_list(struct file *filp, struct list_head *list,
filp              312 fs/locks.c     	struct inode *inode = locks_inode(filp);
filp              315 fs/locks.c     		if (fl->fl_file == filp)
filp              479 fs/locks.c     flock_make_lock(struct file *filp, unsigned int cmd, struct file_lock *fl)
filp              494 fs/locks.c     	fl->fl_file = filp;
filp              495 fs/locks.c     	fl->fl_owner = filp;
filp              518 fs/locks.c     static int flock64_to_posix_lock(struct file *filp, struct file_lock *fl,
filp              526 fs/locks.c     		fl->fl_start = filp->f_pos;
filp              529 fs/locks.c     		fl->fl_start = i_size_read(file_inode(filp));
filp              557 fs/locks.c     	fl->fl_file = filp;
filp              568 fs/locks.c     static int flock_to_posix_lock(struct file *filp, struct file_lock *fl,
filp              578 fs/locks.c     	return flock64_to_posix_lock(filp, fl, &ll);
filp              592 fs/locks.c     	struct file *filp = fl->fl_file;
filp              600 fs/locks.c     	if (!fasync_insert_entry(fa->fa_fd, filp, &fl->fl_fasync, fa))
filp              603 fs/locks.c     	__f_setown(filp, task_pid(current), PIDTYPE_TGID, 0);
filp              615 fs/locks.c     static int lease_init(struct file *filp, long type, struct file_lock *fl)
filp              620 fs/locks.c     	fl->fl_owner = filp;
filp              623 fs/locks.c     	fl->fl_file = filp;
filp              633 fs/locks.c     static struct file_lock *lease_alloc(struct file *filp, long type)
filp              641 fs/locks.c     	error = lease_init(filp, type, fl);
filp              952 fs/locks.c     posix_test_lock(struct file *filp, struct file_lock *fl)
filp              956 fs/locks.c     	struct inode *inode = locks_inode(filp);
filp             1368 fs/locks.c     int posix_lock_file(struct file *filp, struct file_lock *fl,
filp             1371 fs/locks.c     	return posix_lock_inode(locks_inode(filp), fl, conflock);
filp             1444 fs/locks.c     int locks_mandatory_area(struct inode *inode, struct file *filp, loff_t start,
filp             1453 fs/locks.c     	fl.fl_file = filp;
filp             1455 fs/locks.c     	if (filp && !(filp->f_flags & O_NONBLOCK))
filp             1462 fs/locks.c     		if (filp) {
filp             1463 fs/locks.c     			fl.fl_owner = filp;
filp             1517 fs/locks.c     		struct file *filp = fl->fl_file;
filp             1519 fs/locks.c     		f_delown(filp);
filp             1520 fs/locks.c     		filp->f_owner.signum = 0;
filp             1761 fs/locks.c     int fcntl_getlease(struct file *filp)
filp             1764 fs/locks.c     	struct inode *inode = locks_inode(filp);
filp             1775 fs/locks.c     			if (fl->fl_file != filp)
filp             1800 fs/locks.c     check_conflicting_open(struct file *filp, const long arg, int flags)
filp             1802 fs/locks.c     	struct inode *inode = locks_inode(filp);
filp             1819 fs/locks.c     	if (filp->f_mode & FMODE_WRITE)
filp             1821 fs/locks.c     	else if (filp->f_mode & FMODE_READ)
filp             1832 fs/locks.c     generic_add_lease(struct file *filp, long arg, struct file_lock **flp, void **priv)
filp             1835 fs/locks.c     	struct inode *inode = locks_inode(filp);
filp             1870 fs/locks.c     	error = check_conflicting_open(filp, arg, lease->fl_flags);
filp             1884 fs/locks.c     		if (fl->fl_file == filp &&
filp             1927 fs/locks.c     	error = check_conflicting_open(filp, arg, lease->fl_flags);
filp             1947 fs/locks.c     static int generic_delete_lease(struct file *filp, void *owner)
filp             1951 fs/locks.c     	struct inode *inode = locks_inode(filp);
filp             1964 fs/locks.c     		if (fl->fl_file == filp &&
filp             1990 fs/locks.c     int generic_setlease(struct file *filp, long arg, struct file_lock **flp,
filp             1993 fs/locks.c     	struct inode *inode = locks_inode(filp);
filp             2000 fs/locks.c     	error = security_file_lock(filp, arg);
filp             2006 fs/locks.c     		return generic_delete_lease(filp, *priv);
filp             2014 fs/locks.c     		return generic_add_lease(filp, arg, flp, priv);
filp             2097 fs/locks.c     vfs_setlease(struct file *filp, long arg, struct file_lock **lease, void **priv)
filp             2101 fs/locks.c     	if (filp->f_op->setlease)
filp             2102 fs/locks.c     		return filp->f_op->setlease(filp, arg, lease, priv);
filp             2104 fs/locks.c     		return generic_setlease(filp, arg, lease, priv);
filp             2108 fs/locks.c     static int do_fcntl_add_lease(unsigned int fd, struct file *filp, long arg)
filp             2114 fs/locks.c     	fl = lease_alloc(filp, arg);
filp             2125 fs/locks.c     	error = vfs_setlease(filp, arg, &fl, (void **)&new);
filp             2143 fs/locks.c     int fcntl_setlease(unsigned int fd, struct file *filp, long arg)
filp             2146 fs/locks.c     		return vfs_setlease(filp, F_UNLCK, NULL, (void **)&filp);
filp             2147 fs/locks.c     	return do_fcntl_add_lease(fd, filp, arg);
filp             2271 fs/locks.c     int vfs_test_lock(struct file *filp, struct file_lock *fl)
filp             2273 fs/locks.c     	if (filp->f_op->lock)
filp             2274 fs/locks.c     		return filp->f_op->lock(filp, F_GETLK, fl);
filp             2275 fs/locks.c     	posix_test_lock(filp, fl);
filp             2347 fs/locks.c     int fcntl_getlk(struct file *filp, unsigned int cmd, struct flock *flock)
filp             2359 fs/locks.c     	error = flock_to_posix_lock(filp, fl, flock);
filp             2370 fs/locks.c     		fl->fl_owner = filp;
filp             2373 fs/locks.c     	error = vfs_test_lock(filp, fl);
filp             2421 fs/locks.c     int vfs_lock_file(struct file *filp, unsigned int cmd, struct file_lock *fl, struct file_lock *conf)
filp             2423 fs/locks.c     	if (filp->f_op->lock)
filp             2424 fs/locks.c     		return filp->f_op->lock(filp, cmd, fl);
filp             2426 fs/locks.c     		return posix_lock_file(filp, fl, conf);
filp             2430 fs/locks.c     static int do_lock_file_wait(struct file *filp, unsigned int cmd,
filp             2435 fs/locks.c     	error = security_file_lock(filp, fl->fl_type);
filp             2440 fs/locks.c     		error = vfs_lock_file(filp, cmd, fl, NULL);
filp             2472 fs/locks.c     int fcntl_setlk(unsigned int fd, struct file *filp, unsigned int cmd,
filp             2476 fs/locks.c     	struct inode *inode = locks_inode(filp);
filp             2486 fs/locks.c     	if (mandatory_lock(inode) && mapping_writably_mapped(filp->f_mapping)) {
filp             2491 fs/locks.c     	error = flock_to_posix_lock(filp, file_lock, flock);
filp             2511 fs/locks.c     		file_lock->fl_owner = filp;
filp             2520 fs/locks.c     		file_lock->fl_owner = filp;
filp             2526 fs/locks.c     	error = do_lock_file_wait(filp, cmd, file_lock);
filp             2543 fs/locks.c     		if (f != filp) {
filp             2545 fs/locks.c     			error = do_lock_file_wait(filp, cmd, file_lock);
filp             2560 fs/locks.c     int fcntl_getlk64(struct file *filp, unsigned int cmd, struct flock64 *flock)
filp             2573 fs/locks.c     	error = flock64_to_posix_lock(filp, fl, flock);
filp             2584 fs/locks.c     		fl->fl_owner = filp;
filp             2587 fs/locks.c     	error = vfs_test_lock(filp, fl);
filp             2603 fs/locks.c     int fcntl_setlk64(unsigned int fd, struct file *filp, unsigned int cmd,
filp             2607 fs/locks.c     	struct inode *inode = locks_inode(filp);
filp             2617 fs/locks.c     	if (mandatory_lock(inode) && mapping_writably_mapped(filp->f_mapping)) {
filp             2622 fs/locks.c     	error = flock64_to_posix_lock(filp, file_lock, flock);
filp             2642 fs/locks.c     		file_lock->fl_owner = filp;
filp             2651 fs/locks.c     		file_lock->fl_owner = filp;
filp             2657 fs/locks.c     	error = do_lock_file_wait(filp, cmd, file_lock);
filp             2674 fs/locks.c     		if (f != filp) {
filp             2676 fs/locks.c     			error = do_lock_file_wait(filp, cmd, file_lock);
filp             2692 fs/locks.c     void locks_remove_posix(struct file *filp, fl_owner_t owner)
filp             2695 fs/locks.c     	struct inode *inode = locks_inode(filp);
filp             2715 fs/locks.c     	lock.fl_file = filp;
filp             2719 fs/locks.c     	error = vfs_lock_file(filp, F_SETLK, &lock, NULL);
filp             2729 fs/locks.c     locks_remove_flock(struct file *filp, struct file_lock_context *flctx)
filp             2732 fs/locks.c     	struct inode *inode = locks_inode(filp);
filp             2737 fs/locks.c     	flock_make_lock(filp, LOCK_UN, &fl);
filp             2740 fs/locks.c     	if (filp->f_op->flock)
filp             2741 fs/locks.c     		filp->f_op->flock(filp, F_SETLKW, &fl);
filp             2751 fs/locks.c     locks_remove_lease(struct file *filp, struct file_lock_context *ctx)
filp             2762 fs/locks.c     		if (filp == fl->fl_file)
filp             2773 fs/locks.c     void locks_remove_file(struct file *filp)
filp             2777 fs/locks.c     	ctx = smp_load_acquire(&locks_inode(filp)->i_flctx);
filp             2782 fs/locks.c     	locks_remove_posix(filp, filp);
filp             2785 fs/locks.c     	locks_remove_flock(filp, ctx);
filp             2788 fs/locks.c     	locks_remove_lease(filp, ctx);
filp             2791 fs/locks.c     	locks_check_ctx_file_list(filp, &ctx->flc_posix, "POSIX");
filp             2792 fs/locks.c     	locks_check_ctx_file_list(filp, &ctx->flc_flock, "FLOCK");
filp             2793 fs/locks.c     	locks_check_ctx_file_list(filp, &ctx->flc_lease, "LEASE");
filp             2804 fs/locks.c     int vfs_cancel_lock(struct file *filp, struct file_lock *fl)
filp             2806 fs/locks.c     	if (filp->f_op->lock)
filp             2807 fs/locks.c     		return filp->f_op->lock(filp, F_CANCELLK, fl);
filp             2921 fs/locks.c     			struct file *filp, struct files_struct *files)
filp             2927 fs/locks.c     		if (filp != fl->fl_file)
filp             2930 fs/locks.c     		    fl->fl_owner != filp)
filp             2940 fs/locks.c     		  struct file *filp, struct files_struct *files)
filp             2942 fs/locks.c     	struct inode *inode = locks_inode(filp);
filp             2951 fs/locks.c     	__show_fd_locks(f, &ctx->flc_flock, &id, filp, files);
filp             2952 fs/locks.c     	__show_fd_locks(f, &ctx->flc_posix, &id, filp, files);
filp             2953 fs/locks.c     	__show_fd_locks(f, &ctx->flc_lease, &id, filp, files);
filp             2985 fs/namei.c     static int handle_truncate(struct file *filp)
filp             2987 fs/namei.c     	const struct path *path = &filp->f_path;
filp             2995 fs/namei.c     	error = locks_verify_locked(filp);
filp             3001 fs/namei.c     				    filp);
filp             3555 fs/namei.c     	struct file *filp;
filp             3558 fs/namei.c     	filp = path_openat(&nd, op, flags | LOOKUP_RCU);
filp             3559 fs/namei.c     	if (unlikely(filp == ERR_PTR(-ECHILD)))
filp             3560 fs/namei.c     		filp = path_openat(&nd, op, flags);
filp             3561 fs/namei.c     	if (unlikely(filp == ERR_PTR(-ESTALE)))
filp             3562 fs/namei.c     		filp = path_openat(&nd, op, flags | LOOKUP_REVAL);
filp             3564 fs/namei.c     	return filp;
filp              112 fs/nfs/blocklayout/rpc_pipefs.c static ssize_t bl_pipe_downcall(struct file *filp, const char __user *src,
filp              115 fs/nfs/blocklayout/rpc_pipefs.c 	struct nfs_net *nn = net_generic(file_inode(filp)->i_sb->s_fs_info,
filp              107 fs/nfs/dir.c   nfs_opendir(struct inode *inode, struct file *filp)
filp              112 fs/nfs/dir.c   	dfprintk(FILE, "NFS: open dir(%pD2)\n", filp);
filp              121 fs/nfs/dir.c   	filp->private_data = ctx;
filp              127 fs/nfs/dir.c   nfs_closedir(struct inode *inode, struct file *filp)
filp              129 fs/nfs/dir.c   	put_nfs_open_dir_context(file_inode(filp), filp->private_data);
filp              921 fs/nfs/dir.c   static loff_t nfs_llseek_dir(struct file *filp, loff_t offset, int whence)
filp              923 fs/nfs/dir.c   	struct inode *inode = file_inode(filp);
filp              924 fs/nfs/dir.c   	struct nfs_open_dir_context *dir_ctx = filp->private_data;
filp              927 fs/nfs/dir.c   			filp, offset, whence);
filp              939 fs/nfs/dir.c   			return filp->f_pos;
filp              941 fs/nfs/dir.c   		offset += filp->f_pos;
filp              947 fs/nfs/dir.c   	if (offset != filp->f_pos) {
filp              948 fs/nfs/dir.c   		filp->f_pos = offset;
filp              960 fs/nfs/dir.c   static int nfs_fsync_dir(struct file *filp, loff_t start, loff_t end,
filp              963 fs/nfs/dir.c   	struct inode *inode = file_inode(filp);
filp              965 fs/nfs/dir.c   	dfprintk(FILE, "NFS: fsync dir(%pD2) datasync %d\n", filp, datasync);
filp             1488 fs/nfs/dir.c   static struct nfs_open_context *create_nfs_open_context(struct dentry *dentry, int open_flags, struct file *filp)
filp             1490 fs/nfs/dir.c   	return alloc_nfs_open_context(dentry, flags_to_mode(open_flags), filp);
filp             1493 fs/nfs/dir.c   static int do_open(struct inode *inode, struct file *filp)
filp             1495 fs/nfs/dir.c   	nfs_fscache_open_file(inode, filp);
filp               65 fs/nfs/file.c  nfs_file_open(struct inode *inode, struct file *filp)
filp               69 fs/nfs/file.c  	dprintk("NFS: open file(%pD2)\n", filp);
filp               72 fs/nfs/file.c  	res = nfs_check_flags(filp->f_flags);
filp               76 fs/nfs/file.c  	res = nfs_open(inode, filp);
filp               81 fs/nfs/file.c  nfs_file_release(struct inode *inode, struct file *filp)
filp               83 fs/nfs/file.c  	dprintk("NFS: release(%pD2)\n", filp);
filp               86 fs/nfs/file.c  	nfs_file_clear_open_context(filp);
filp              102 fs/nfs/file.c  static int nfs_revalidate_file_size(struct inode *inode, struct file *filp)
filp              106 fs/nfs/file.c  	if (filp->f_flags & O_DIRECT)
filp              115 fs/nfs/file.c  loff_t nfs_file_llseek(struct file *filp, loff_t offset, int whence)
filp              118 fs/nfs/file.c  			filp, offset, whence);
filp              125 fs/nfs/file.c  		struct inode *inode = filp->f_mapping->host;
filp              127 fs/nfs/file.c  		int retval = nfs_revalidate_file_size(inode, filp);
filp              132 fs/nfs/file.c  	return generic_file_llseek(filp, offset, whence);
filp              535 fs/nfs/file.c  	struct file *filp = vmf->vma->vm_file;
filp              536 fs/nfs/file.c  	struct inode *inode = file_inode(filp);
filp              542 fs/nfs/file.c  		filp, filp->f_mapping->host->i_ino,
filp              565 fs/nfs/file.c  	if (nfs_flush_incompatible(filp, page) == 0 &&
filp              566 fs/nfs/file.c  	    nfs_updatepage(filp, page, 0, pagelen) == 0)
filp              583 fs/nfs/file.c  static int nfs_need_check_write(struct file *filp, struct inode *inode)
filp              587 fs/nfs/file.c  	ctx = nfs_file_open_context(filp);
filp              657 fs/nfs/file.c  do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
filp              659 fs/nfs/file.c  	struct inode *inode = filp->f_mapping->host;
filp              664 fs/nfs/file.c  	posix_test_lock(filp, fl);
filp              677 fs/nfs/file.c  	status = NFS_PROTO(inode)->lock(filp, cmd, fl);
filp              686 fs/nfs/file.c  do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
filp              688 fs/nfs/file.c  	struct inode *inode = filp->f_mapping->host;
filp              698 fs/nfs/file.c  	l_ctx = nfs_get_lock_context(nfs_file_open_context(filp));
filp              715 fs/nfs/file.c  		status = NFS_PROTO(inode)->lock(filp, cmd, fl);
filp              717 fs/nfs/file.c  		status = locks_lock_file_wait(filp, fl);
filp              722 fs/nfs/file.c  do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
filp              724 fs/nfs/file.c  	struct inode *inode = filp->f_mapping->host;
filp              731 fs/nfs/file.c  	status = nfs_sync_mapping(filp->f_mapping);
filp              740 fs/nfs/file.c  		status = NFS_PROTO(inode)->lock(filp, cmd, fl);
filp              742 fs/nfs/file.c  		status = locks_lock_file_wait(filp, fl);
filp              753 fs/nfs/file.c  	nfs_sync_mapping(filp->f_mapping);
filp              756 fs/nfs/file.c  		if (mapping_mapped(filp->f_mapping))
filp              757 fs/nfs/file.c  			nfs_revalidate_mapping(inode, filp->f_mapping);
filp              766 fs/nfs/file.c  int nfs_lock(struct file *filp, int cmd, struct file_lock *fl)
filp              768 fs/nfs/file.c  	struct inode *inode = filp->f_mapping->host;
filp              773 fs/nfs/file.c  			filp, fl->fl_type, fl->fl_flags,
filp              792 fs/nfs/file.c  		ret = do_getlk(filp, cmd, fl, is_local);
filp              794 fs/nfs/file.c  		ret = do_unlk(filp, cmd, fl, is_local);
filp              796 fs/nfs/file.c  		ret = do_setlk(filp, cmd, fl, is_local);
filp              805 fs/nfs/file.c  int nfs_flock(struct file *filp, int cmd, struct file_lock *fl)
filp              807 fs/nfs/file.c  	struct inode *inode = filp->f_mapping->host;
filp              811 fs/nfs/file.c  			filp, fl->fl_type, fl->fl_flags);
filp              830 fs/nfs/file.c  		return do_unlk(filp, cmd, fl, is_local);
filp              831 fs/nfs/file.c  	return do_setlk(filp, cmd, fl, is_local);
filp              307 fs/nfs/fscache.c void nfs_fscache_open_file(struct inode *inode, struct file *filp)
filp              204 fs/nfs/fscache.h 					 struct file *filp) {}
filp              959 fs/nfs/inode.c 						struct file *filp)
filp              968 fs/nfs/inode.c 	if (filp)
filp              969 fs/nfs/inode.c 		ctx->cred = get_cred(filp->f_cred);
filp              977 fs/nfs/inode.c 	ctx->flock_owner = (fl_owner_t)filp;
filp             1046 fs/nfs/inode.c void nfs_file_set_open_context(struct file *filp, struct nfs_open_context *ctx)
filp             1048 fs/nfs/inode.c 	filp->private_data = get_nfs_open_context(ctx);
filp             1076 fs/nfs/inode.c void nfs_file_clear_open_context(struct file *filp)
filp             1078 fs/nfs/inode.c 	struct nfs_open_context *ctx = nfs_file_open_context(filp);
filp             1089 fs/nfs/inode.c 		filp->private_data = NULL;
filp             1097 fs/nfs/inode.c int nfs_open(struct inode *inode, struct file *filp)
filp             1101 fs/nfs/inode.c 	ctx = alloc_nfs_open_context(file_dentry(filp), filp->f_mode, filp);
filp             1104 fs/nfs/inode.c 	nfs_file_set_open_context(filp, ctx);
filp             1106 fs/nfs/inode.c 	nfs_fscache_open_file(inode, filp);
filp              510 fs/nfs/internal.h int nfs_key_timeout_notify(struct file *filp, struct inode *inode);
filp              925 fs/nfs/nfs3proc.c nfs3_proc_lock(struct file *filp, int cmd, struct file_lock *fl)
filp              927 fs/nfs/nfs3proc.c 	struct inode *inode = file_inode(filp);
filp              929 fs/nfs/nfs3proc.c 	struct nfs_open_context *ctx = nfs_file_open_context(filp);
filp               26 fs/nfs/nfs4file.c nfs4_file_open(struct inode *inode, struct file *filp)
filp               29 fs/nfs/nfs4file.c 	struct dentry *dentry = file_dentry(filp);
filp               32 fs/nfs/nfs4file.c 	unsigned openflags = filp->f_flags;
filp               52 fs/nfs/nfs4file.c 		return nfs_open(inode, filp);
filp               60 fs/nfs/nfs4file.c 	ctx = alloc_nfs_open_context(file_dentry(filp), filp->f_mode, filp);
filp               89 fs/nfs/nfs4file.c 	nfs_file_set_open_context(filp, ctx);
filp               90 fs/nfs/nfs4file.c 	nfs_fscache_open_file(inode, filp);
filp              666 fs/nfs/nfs4idmap.c idmap_pipe_downcall(struct file *filp, const char __user *src, size_t mlen)
filp              669 fs/nfs/nfs4idmap.c 	struct rpc_inode *rpci = RPC_I(file_inode(filp));
filp             7160 fs/nfs/nfs4proc.c nfs4_proc_lock(struct file *filp, int cmd, struct file_lock *request)
filp             7167 fs/nfs/nfs4proc.c 	ctx = nfs_file_open_context(filp);
filp             7198 fs/nfs/nfs4proc.c 		if (!(filp->f_mode & FMODE_READ))
filp             7202 fs/nfs/nfs4proc.c 		if (!(filp->f_mode & FMODE_WRITE))
filp              648 fs/nfs/proc.c  nfs_proc_lock(struct file *filp, int cmd, struct file_lock *fl)
filp              650 fs/nfs/proc.c  	struct inode *inode = file_inode(filp);
filp              404 fs/nfs/read.c  int nfs_readpages(struct file *filp, struct address_space *mapping,
filp              425 fs/nfs/read.c  	if (filp == NULL) {
filp              430 fs/nfs/read.c  		desc.ctx = get_nfs_open_context(nfs_file_open_context(filp));
filp             1250 fs/nfs/write.c nfs_key_timeout_notify(struct file *filp, struct inode *inode)
filp             1252 fs/nfs/write.c 	struct nfs_open_context *ctx = nfs_file_open_context(filp);
filp               28 fs/nfsd/lockd.c nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file **filp)
filp               39 fs/nfsd/lockd.c 	nfserr = nfsd_open(rqstp, &fh, S_IFREG, NFSD_MAY_LOCK, filp);
filp               57 fs/nfsd/lockd.c nlm_fclose(struct file *filp)
filp               59 fs/nfsd/lockd.c 	fput(filp);
filp              860 fs/nfsd/nfs4recover.c cld_pipe_downcall(struct file *filp, const char __user *src, size_t mlen)
filp              866 fs/nfsd/nfs4recover.c 	struct nfsd_net *nn = net_generic(file_inode(filp)->i_sb->s_fs_info,
filp              620 fs/nfsd/state.h 		stateid_t *stateid, int flags, struct nfsd_file **filp);
filp              708 fs/nfsd/vfs.c  			int may_flags, struct file **filp)
filp              766 fs/nfsd/vfs.c  	*filp = file;
filp              775 fs/nfsd/vfs.c  		int may_flags, struct file **filp)
filp              795 fs/nfsd/vfs.c  		err = __nfsd_open(rqstp, fhp, type, may_flags, filp);
filp              802 fs/nfsd/vfs.c  		int may_flags, struct file **filp)
filp              807 fs/nfsd/vfs.c  	err = __nfsd_open(rqstp, fhp, type, may_flags, filp);
filp              128 fs/nilfs2/ioctl.c static int nilfs_ioctl_setflags(struct inode *inode, struct file *filp,
filp              141 fs/nilfs2/ioctl.c 	ret = mnt_want_write_file(filp);
filp              171 fs/nilfs2/ioctl.c 	mnt_drop_write_file(filp);
filp              202 fs/nilfs2/ioctl.c static int nilfs_ioctl_change_cpmode(struct inode *inode, struct file *filp,
filp              213 fs/nilfs2/ioctl.c 	ret = mnt_want_write_file(filp);
filp              233 fs/nilfs2/ioctl.c 	mnt_drop_write_file(filp);
filp              257 fs/nilfs2/ioctl.c nilfs_ioctl_delete_checkpoint(struct inode *inode, struct file *filp,
filp              268 fs/nilfs2/ioctl.c 	ret = mnt_want_write_file(filp);
filp              283 fs/nilfs2/ioctl.c 	mnt_drop_write_file(filp);
filp              336 fs/nilfs2/ioctl.c static int nilfs_ioctl_get_cpstat(struct inode *inode, struct file *filp,
filp              403 fs/nilfs2/ioctl.c static int nilfs_ioctl_get_sustat(struct inode *inode, struct file *filp,
filp              512 fs/nilfs2/ioctl.c static int nilfs_ioctl_get_bdescs(struct inode *inode, struct file *filp,
filp              859 fs/nilfs2/ioctl.c static int nilfs_ioctl_clean_segments(struct inode *inode, struct file *filp,
filp              879 fs/nilfs2/ioctl.c 	ret = mnt_want_write_file(filp);
filp              967 fs/nilfs2/ioctl.c 	mnt_drop_write_file(filp);
filp              998 fs/nilfs2/ioctl.c static int nilfs_ioctl_sync(struct inode *inode, struct file *filp,
filp             1032 fs/nilfs2/ioctl.c static int nilfs_ioctl_resize(struct inode *inode, struct file *filp,
filp             1041 fs/nilfs2/ioctl.c 	ret = mnt_want_write_file(filp);
filp             1052 fs/nilfs2/ioctl.c 	mnt_drop_write_file(filp);
filp             1164 fs/nilfs2/ioctl.c static int nilfs_ioctl_get_info(struct inode *inode, struct file *filp,
filp             1215 fs/nilfs2/ioctl.c static int nilfs_ioctl_set_suinfo(struct inode *inode, struct file *filp,
filp             1229 fs/nilfs2/ioctl.c 	ret = mnt_want_write_file(filp);
filp             1276 fs/nilfs2/ioctl.c 	mnt_drop_write_file(filp);
filp             1280 fs/nilfs2/ioctl.c long nilfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp             1282 fs/nilfs2/ioctl.c 	struct inode *inode = file_inode(filp);
filp             1289 fs/nilfs2/ioctl.c 		return nilfs_ioctl_setflags(inode, filp, argp);
filp             1293 fs/nilfs2/ioctl.c 		return nilfs_ioctl_change_cpmode(inode, filp, cmd, argp);
filp             1295 fs/nilfs2/ioctl.c 		return nilfs_ioctl_delete_checkpoint(inode, filp, cmd, argp);
filp             1297 fs/nilfs2/ioctl.c 		return nilfs_ioctl_get_info(inode, filp, cmd, argp,
filp             1301 fs/nilfs2/ioctl.c 		return nilfs_ioctl_get_cpstat(inode, filp, cmd, argp);
filp             1303 fs/nilfs2/ioctl.c 		return nilfs_ioctl_get_info(inode, filp, cmd, argp,
filp             1307 fs/nilfs2/ioctl.c 		return nilfs_ioctl_set_suinfo(inode, filp, cmd, argp);
filp             1309 fs/nilfs2/ioctl.c 		return nilfs_ioctl_get_sustat(inode, filp, cmd, argp);
filp             1311 fs/nilfs2/ioctl.c 		return nilfs_ioctl_get_info(inode, filp, cmd, argp,
filp             1315 fs/nilfs2/ioctl.c 		return nilfs_ioctl_get_bdescs(inode, filp, cmd, argp);
filp             1317 fs/nilfs2/ioctl.c 		return nilfs_ioctl_clean_segments(inode, filp, cmd, argp);
filp             1319 fs/nilfs2/ioctl.c 		return nilfs_ioctl_sync(inode, filp, cmd, argp);
filp             1321 fs/nilfs2/ioctl.c 		return nilfs_ioctl_resize(inode, filp, argp);
filp             1332 fs/nilfs2/ioctl.c long nilfs_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp             1361 fs/nilfs2/ioctl.c 	return nilfs_ioctl(filp, cmd, (unsigned long)compat_ptr(arg));
filp               11 fs/no-block.c  static int no_blkdev_open(struct inode * inode, struct file * filp)
filp              141 fs/notify/dnotify/dnotify.c void dnotify_flush(struct file *filp, fl_owner_t id)
filp              150 fs/notify/dnotify/dnotify.c 	inode = file_inode(filp);
filp              164 fs/notify/dnotify/dnotify.c 		if ((dn->dn_owner == id) && (dn->dn_filp == filp)) {
filp              219 fs/notify/dnotify/dnotify.c 		     fl_owner_t id, int fd, struct file *filp, __u32 mask)
filp              226 fs/notify/dnotify/dnotify.c 		if ((odn->dn_owner == id) && (odn->dn_filp == filp)) {
filp              236 fs/notify/dnotify/dnotify.c 	dn->dn_filp = filp;
filp              249 fs/notify/dnotify/dnotify.c int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg)
filp              271 fs/notify/dnotify/dnotify.c 		dnotify_flush(filp, id);
filp              277 fs/notify/dnotify/dnotify.c 	inode = file_inode(filp);
filp              289 fs/notify/dnotify/dnotify.c 	error = security_path_notify(&filp->f_path, mask,
filp              344 fs/notify/dnotify/dnotify.c 	if (f != filp) {
filp              357 fs/notify/dnotify/dnotify.c 	__f_setown(filp, task_pid(current), PIDTYPE_TGID, 0);
filp              359 fs/notify/dnotify/dnotify.c 	error = attach_dn(dn, dn_mark, id, fd, filp, mask);
filp               16 fs/nsfs.c      static long ns_ioctl(struct file *filp, unsigned int ioctl,
filp              186 fs/nsfs.c      static long ns_ioctl(struct file *filp, unsigned int ioctl,
filp              190 fs/nsfs.c      	struct ns_common *ns = get_proc_ns(file_inode(filp));
filp             1450 fs/ntfs/dir.c  static int ntfs_dir_open(struct inode *vi, struct file *filp)
filp             1486 fs/ntfs/dir.c  static int ntfs_dir_fsync(struct file *filp, loff_t start, loff_t end,
filp             1489 fs/ntfs/dir.c  	struct inode *bmp_vi, *vi = filp->f_mapping->host;
filp             1495 fs/ntfs/dir.c  	err = file_write_and_wait_range(filp, start, end);
filp               48 fs/ntfs/file.c static int ntfs_file_open(struct inode *vi, struct file *filp)
filp               54 fs/ntfs/file.c 	return generic_file_open(vi, filp);
filp             1970 fs/ntfs/file.c static int ntfs_file_fsync(struct file *filp, loff_t start, loff_t end,
filp             1973 fs/ntfs/file.c 	struct inode *vi = filp->f_mapping->host;
filp             1978 fs/ntfs/file.c 	err = file_write_and_wait_range(filp, start, end);
filp              354 fs/ocfs2/aops.c static int ocfs2_readpages(struct file *filp, struct address_space *mapping,
filp              224 fs/ocfs2/dlmfs/dlmfs.c static ssize_t dlmfs_file_read(struct file *filp,
filp              232 fs/ocfs2/dlmfs/dlmfs.c 	struct inode *inode = file_inode(filp);
filp              272 fs/ocfs2/dlmfs/dlmfs.c static ssize_t dlmfs_file_write(struct file *filp,
filp              279 fs/ocfs2/dlmfs/dlmfs.c 	struct inode *inode = file_inode(filp);
filp             2436 fs/ocfs2/file.c 	struct file *filp = iocb->ki_filp;
filp             2437 fs/ocfs2/file.c 	struct inode *inode = file_inode(filp);
filp             2441 fs/ocfs2/file.c 	trace_ocfs2_file_read_iter(inode, filp, filp->f_path.dentry,
filp             2443 fs/ocfs2/file.c 			filp->f_path.dentry->d_name.len,
filp             2444 fs/ocfs2/file.c 			filp->f_path.dentry->d_name.name,
filp             2486 fs/ocfs2/file.c 	ret = ocfs2_inode_lock_atime(inode, filp->f_path.mnt, &lock_level,
filp              836 fs/ocfs2/ioctl.c long ocfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              838 fs/ocfs2/ioctl.c 	struct inode *inode = file_inode(filp);
filp              863 fs/ocfs2/ioctl.c 		status = mnt_want_write_file(filp);
filp              868 fs/ocfs2/ioctl.c 		mnt_drop_write_file(filp);
filp              877 fs/ocfs2/ioctl.c 		return ocfs2_change_file_space(filp, cmd, &sr);
filp              885 fs/ocfs2/ioctl.c 		status = mnt_want_write_file(filp);
filp              889 fs/ocfs2/ioctl.c 		mnt_drop_write_file(filp);
filp              899 fs/ocfs2/ioctl.c 		status = mnt_want_write_file(filp);
filp              903 fs/ocfs2/ioctl.c 		mnt_drop_write_file(filp);
filp              946 fs/ocfs2/ioctl.c 		return ocfs2_ioctl_move_extents(filp, argp);
filp               14 fs/ocfs2/ioctl.h long ocfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
filp              985 fs/ocfs2/move_extents.c int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp)
filp              989 fs/ocfs2/move_extents.c 	struct inode *inode = file_inode(filp);
filp              996 fs/ocfs2/move_extents.c 	status = mnt_want_write_file(filp);
filp             1000 fs/ocfs2/move_extents.c 	if ((!S_ISREG(inode->i_mode)) || !(filp->f_mode & FMODE_WRITE)) {
filp             1018 fs/ocfs2/move_extents.c 	context->file = filp;
filp             1078 fs/ocfs2/move_extents.c 	mnt_drop_write_file(filp);
filp               12 fs/ocfs2/move_extents.h int ocfs2_ioctl_move_extents(struct file *filp,  void __user *argp);
filp               39 fs/open.c      	struct file *filp)
filp               50 fs/open.c      	if (filp) {
filp               51 fs/open.c      		newattrs.ia_file = filp;
filp              896 fs/open.c      char *file_path(struct file *filp, char *buf, int buflen)
filp              898 fs/open.c      	return d_path(&filp->f_path, buf, buflen);
filp             1161 fs/open.c      int filp_close(struct file *filp, fl_owner_t id)
filp             1165 fs/open.c      	if (!file_count(filp)) {
filp             1170 fs/open.c      	if (filp->f_op->flush)
filp             1171 fs/open.c      		retval = filp->f_op->flush(filp, id);
filp             1173 fs/open.c      	if (likely(!(filp->f_mode & FMODE_PATH))) {
filp             1174 fs/open.c      		dnotify_flush(filp, id);
filp             1175 fs/open.c      		locks_remove_posix(filp, id);
filp             1177 fs/open.c      	fput(filp);
filp             1221 fs/open.c      int generic_file_open(struct inode * inode, struct file * filp)
filp             1223 fs/open.c      	if (!(filp->f_flags & O_LARGEFILE) && i_size_read(inode) > MAX_NON_LFS)
filp             1236 fs/open.c      int nonseekable_open(struct inode *inode, struct file *filp)
filp             1238 fs/open.c      	filp->f_mode &= ~(FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE);
filp             1254 fs/open.c      int stream_open(struct inode *inode, struct file *filp)
filp             1256 fs/open.c      	filp->f_mode &= ~(FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE | FMODE_ATOMIC_POS);
filp             1257 fs/open.c      	filp->f_mode |= FMODE_STREAM;
filp              726 fs/orangefs/devorangefs-req.c static long orangefs_devreq_compat_ioctl(struct file *filp, unsigned int cmd,
filp              602 fs/orangefs/file.c static int orangefs_lock(struct file *filp, int cmd, struct file_lock *fl)
filp              606 fs/orangefs/file.c 	if (ORANGEFS_SB(file_inode(filp)->i_sb)->flags & ORANGEFS_OPT_LOCAL_LOCK) {
filp              609 fs/orangefs/file.c 			posix_test_lock(filp, fl);
filp              611 fs/orangefs/file.c 			rc = posix_lock_file(filp, fl, NULL);
filp              275 fs/pipe.c      	struct file *filp = iocb->ki_filp;
filp              276 fs/pipe.c      	struct pipe_inode_info *pipe = filp->private_data;
filp              345 fs/pipe.c      			if (filp->f_flags & O_NONBLOCK) {
filp              369 fs/pipe.c      		file_accessed(filp);
filp              381 fs/pipe.c      	struct file *filp = iocb->ki_filp;
filp              382 fs/pipe.c      	struct pipe_inode_info *pipe = filp->private_data;
filp              469 fs/pipe.c      			if (is_packetized(filp)) {
filp              481 fs/pipe.c      		if (filp->f_flags & O_NONBLOCK) {
filp              506 fs/pipe.c      	if (ret > 0 && sb_start_write_trylock(file_inode(filp)->i_sb)) {
filp              507 fs/pipe.c      		int err = file_update_time(filp);
filp              510 fs/pipe.c      		sb_end_write(file_inode(filp)->i_sb);
filp              515 fs/pipe.c      static long pipe_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              517 fs/pipe.c      	struct pipe_inode_info *pipe = filp->private_data;
filp              540 fs/pipe.c      pipe_poll(struct file *filp, poll_table *wait)
filp              543 fs/pipe.c      	struct pipe_inode_info *pipe = filp->private_data;
filp              546 fs/pipe.c      	poll_wait(filp, &pipe->wait, wait);
filp              551 fs/pipe.c      	if (filp->f_mode & FMODE_READ) {
filp              553 fs/pipe.c      		if (!pipe->writers && filp->f_version != pipe->w_counter)
filp              557 fs/pipe.c      	if (filp->f_mode & FMODE_WRITE) {
filp              608 fs/pipe.c      pipe_fasync(int fd, struct file *filp, int on)
filp              610 fs/pipe.c      	struct pipe_inode_info *pipe = filp->private_data;
filp              614 fs/pipe.c      	if (filp->f_mode & FMODE_READ)
filp              615 fs/pipe.c      		retval = fasync_helper(fd, filp, on, &pipe->fasync_readers);
filp              616 fs/pipe.c      	if ((filp->f_mode & FMODE_WRITE) && retval >= 0) {
filp              617 fs/pipe.c      		retval = fasync_helper(fd, filp, on, &pipe->fasync_writers);
filp              618 fs/pipe.c      		if (retval < 0 && (filp->f_mode & FMODE_READ))
filp              620 fs/pipe.c      			fasync_helper(-1, filp, 0, &pipe->fasync_readers);
filp              898 fs/pipe.c      static int fifo_open(struct inode *inode, struct file *filp)
filp              904 fs/pipe.c      	filp->f_version = 0;
filp              928 fs/pipe.c      	filp->private_data = pipe;
filp              934 fs/pipe.c      	filp->f_mode &= (FMODE_READ | FMODE_WRITE);
filp              936 fs/pipe.c      	switch (filp->f_mode) {
filp              948 fs/pipe.c      			if ((filp->f_flags & O_NONBLOCK)) {
filp              951 fs/pipe.c      				filp->f_version = pipe->w_counter;
filp              966 fs/pipe.c      		if (!is_pipe && (filp->f_flags & O_NONBLOCK) && !pipe->readers)
filp              762 fs/proc/base.c static int proc_single_open(struct inode *inode, struct file *filp)
filp              764 fs/proc/base.c 	return single_open(filp, proc_single_show, inode);
filp             1446 fs/proc/base.c static int sched_open(struct inode *inode, struct file *filp)
filp             1448 fs/proc/base.c 	return single_open(filp, sched_show, inode);
filp             1513 fs/proc/base.c static int sched_autogroup_open(struct inode *inode, struct file *filp)
filp             1517 fs/proc/base.c 	ret = single_open(filp, sched_autogroup_show, NULL);
filp             1519 fs/proc/base.c 		struct seq_file *m = filp->private_data;
filp             1579 fs/proc/base.c static int comm_open(struct inode *inode, struct file *filp)
filp             1581 fs/proc/base.c 	return single_open(filp, comm_show, inode);
filp             2439 fs/proc/base.c static int timerslack_ns_open(struct inode *inode, struct file *filp)
filp             2441 fs/proc/base.c 	return single_open(filp, timerslack_ns_show, inode);
filp             2613 fs/proc/base.c static int proc_##LSM##_attr_dir_iterate(struct file *filp, \
filp             2616 fs/proc/base.c 	return proc_pident_readdir(filp, ctx, \
filp              547 fs/proc/kcore.c static int open_kcore(struct inode *inode, struct file *filp)
filp              557 fs/proc/kcore.c 	filp->private_data = kmalloc(PAGE_SIZE, GFP_KERNEL);
filp              558 fs/proc/kcore.c 	if (!filp->private_data)
filp              575 fs/proc/proc_sysctl.c static ssize_t proc_sys_call_handler(struct file *filp, void __user *buf,
filp              578 fs/proc/proc_sysctl.c 	struct inode *inode = file_inode(filp);
filp              627 fs/proc/proc_sysctl.c static ssize_t proc_sys_read(struct file *filp, char __user *buf,
filp              630 fs/proc/proc_sysctl.c 	return proc_sys_call_handler(filp, (void __user *)buf, count, ppos, 0);
filp              633 fs/proc/proc_sysctl.c static ssize_t proc_sys_write(struct file *filp, const char __user *buf,
filp              636 fs/proc/proc_sysctl.c 	return proc_sys_call_handler(filp, (void __user *)buf, count, ppos, 1);
filp              639 fs/proc/proc_sysctl.c static int proc_sys_open(struct inode *inode, struct file *filp)
filp              649 fs/proc/proc_sysctl.c 		filp->private_data = proc_sys_poll_event(table->poll);
filp              656 fs/proc/proc_sysctl.c static __poll_t proc_sys_poll(struct file *filp, poll_table *wait)
filp              658 fs/proc/proc_sysctl.c 	struct inode *inode = file_inode(filp);
filp              674 fs/proc/proc_sysctl.c 	event = (unsigned long)filp->private_data;
filp              675 fs/proc/proc_sysctl.c 	poll_wait(filp, &table->poll->wait, wait);
filp              678 fs/proc/proc_sysctl.c 		filp->private_data = proc_sys_poll_event(table->poll);
filp              403 fs/read_write.c static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos)
filp              410 fs/read_write.c 	init_sync_kiocb(&kiocb, filp);
filp              414 fs/read_write.c 	ret = call_read_iter(filp, &kiocb, &iter);
filp              472 fs/read_write.c static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos)
filp              479 fs/read_write.c 	init_sync_kiocb(&kiocb, filp);
filp              483 fs/read_write.c 	ret = call_write_iter(filp, &kiocb, &iter);
filp              678 fs/read_write.c static ssize_t do_iter_readv_writev(struct file *filp, struct iov_iter *iter,
filp              684 fs/read_write.c 	init_sync_kiocb(&kiocb, filp);
filp              691 fs/read_write.c 		ret = call_read_iter(filp, &kiocb, iter);
filp              693 fs/read_write.c 		ret = call_write_iter(filp, &kiocb, iter);
filp              701 fs/read_write.c static ssize_t do_loop_readv_writev(struct file *filp, struct iov_iter *iter,
filp              714 fs/read_write.c 			nr = filp->f_op->read(filp, iovec.iov_base,
filp              717 fs/read_write.c 			nr = filp->f_op->write(filp, iovec.iov_base,
filp               17 fs/reiserfs/dir.c static int reiserfs_dir_fsync(struct file *filp, loff_t start, loff_t end,
filp               31 fs/reiserfs/dir.c static int reiserfs_dir_fsync(struct file *filp, loff_t start, loff_t end,
filp               34 fs/reiserfs/dir.c 	struct inode *inode = filp->f_mapping->host;
filp               37 fs/reiserfs/dir.c 	err = file_write_and_wait_range(filp, start, end);
filp               32 fs/reiserfs/file.c static int reiserfs_file_release(struct inode *inode, struct file *filp)
filp              150 fs/reiserfs/file.c static int reiserfs_sync_file(struct file *filp, loff_t start, loff_t end,
filp              153 fs/reiserfs/file.c 	struct inode *inode = filp->f_mapping->host;
filp              157 fs/reiserfs/file.c 	err = file_write_and_wait_range(filp, start, end);
filp               23 fs/reiserfs/ioctl.c long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp               25 fs/reiserfs/ioctl.c 	struct inode *inode = file_inode(filp);
filp               35 fs/reiserfs/ioctl.c 				err = reiserfs_unpack(inode, filp);
filp               58 fs/reiserfs/ioctl.c 			err = mnt_want_write_file(filp);
filp               86 fs/reiserfs/ioctl.c 				result = reiserfs_unpack(inode, filp);
filp               97 fs/reiserfs/ioctl.c 			mnt_drop_write_file(filp);
filp              108 fs/reiserfs/ioctl.c 		err = mnt_want_write_file(filp);
filp              118 fs/reiserfs/ioctl.c 		mnt_drop_write_file(filp);
filp              168 fs/reiserfs/ioctl.c int reiserfs_unpack(struct inode *inode, struct file *filp)
filp             3410 fs/reiserfs/reiserfs.h long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
filp             3411 fs/reiserfs/reiserfs.h long reiserfs_compat_ioctl(struct file *filp,
filp             3413 fs/reiserfs/reiserfs.h int reiserfs_unpack(struct inode *inode, struct file *filp);
filp              118 fs/select.c    static void __pollwait(struct file *filp, wait_queue_head_t *wait_address,
filp              135 fs/select.c    	fput(entry->filp);
filp              221 fs/select.c    static void __pollwait(struct file *filp, wait_queue_head_t *wait_address,
filp              228 fs/select.c    	entry->filp = get_file(filp);
filp              650 fs/seq_file.c  int seq_open_private(struct file *filp, const struct seq_operations *ops,
filp              653 fs/seq_file.c  	return __seq_open_private(filp, ops, psize) ? 0 : -ENOMEM;
filp              181 fs/udf/file.c  long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              183 fs/udf/file.c  	struct inode *inode = file_inode(filp);
filp              227 fs/udf/file.c  static int udf_release_file(struct inode *inode, struct file *filp)
filp              229 fs/udf/file.c  	if (filp->f_mode & FMODE_WRITE &&
filp              157 fs/verity/enable.c static int enable_verity(struct file *filp,
filp              160 fs/verity/enable.c 	struct inode *inode = file_inode(filp);
filp              214 fs/verity/enable.c 		err = vops->begin_enable_verity(filp);
filp              260 fs/verity/enable.c 	err = vops->end_enable_verity(filp, desc, desc_size, params.tree_size);
filp              286 fs/verity/enable.c 	(void)vops->end_enable_verity(filp, NULL, 0, params.tree_size);
filp              299 fs/verity/enable.c int fsverity_ioctl_enable(struct file *filp, const void __user *uarg)
filp              301 fs/verity/enable.c 	struct inode *inode = file_inode(filp);
filp              344 fs/verity/enable.c 	err = mnt_want_write_file(filp);
filp              348 fs/verity/enable.c 	err = deny_write_access(filp);
filp              352 fs/verity/enable.c 	err = enable_verity(filp, &arg);
filp              372 fs/verity/enable.c 	allow_write_access(filp);
filp              374 fs/verity/enable.c 	mnt_drop_write_file(filp);
filp               21 fs/verity/measure.c int fsverity_ioctl_measure(struct file *filp, void __user *_uarg)
filp               23 fs/verity/measure.c 	const struct inode *inode = file_inode(filp);
filp              294 fs/verity/open.c int fsverity_file_open(struct inode *inode, struct file *filp)
filp              299 fs/verity/open.c 	if (filp->f_mode & FMODE_WRITE) {
filp             1070 fs/xfs/xfs_file.c 	struct file	*filp)
filp             1228 fs/xfs/xfs_file.c 	struct file	*filp,
filp             1233 fs/xfs/xfs_file.c 	dax_dev = xfs_find_daxdev_for_inode(file_inode(filp));
filp             1241 fs/xfs/xfs_file.c 	file_accessed(filp);
filp             1243 fs/xfs/xfs_file.c 	if (IS_DAX(file_inode(filp)))
filp              188 fs/xfs/xfs_ioctl.c 	struct file		*filp;
filp              239 fs/xfs/xfs_ioctl.c 	filp = dentry_open(&path, hreq->oflags, cred);
filp              241 fs/xfs/xfs_ioctl.c 	if (IS_ERR(filp)) {
filp              243 fs/xfs/xfs_ioctl.c 		return PTR_ERR(filp);
filp              247 fs/xfs/xfs_ioctl.c 		filp->f_flags |= O_NOATIME;
filp              248 fs/xfs/xfs_ioctl.c 		filp->f_mode |= FMODE_NOCMTIME;
filp              251 fs/xfs/xfs_ioctl.c 	fd_install(fd, filp);
filp              592 fs/xfs/xfs_ioctl.c 	struct file		*filp,
filp              596 fs/xfs/xfs_ioctl.c 	struct inode		*inode = file_inode(filp);
filp              606 fs/xfs/xfs_ioctl.c 	if (!(filp->f_mode & FMODE_WRITE))
filp              612 fs/xfs/xfs_ioctl.c 	if (filp->f_flags & O_DSYNC)
filp              614 fs/xfs/xfs_ioctl.c 	if (filp->f_mode & FMODE_NOCMTIME)
filp              617 fs/xfs/xfs_ioctl.c 	error = mnt_want_write_file(filp);
filp              630 fs/xfs/xfs_ioctl.c 		bf->l_start += filp->f_pos;
filp              700 fs/xfs/xfs_ioctl.c 		error = xfs_vn_setattr_size(file_dentry(filp), &iattr);
filp              714 fs/xfs/xfs_ioctl.c 	mnt_drop_write_file(filp);
filp             1658 fs/xfs/xfs_ioctl.c 	struct file		*filp,
filp             1667 fs/xfs/xfs_ioctl.c 	error = mnt_want_write_file(filp);
filp             1671 fs/xfs/xfs_ioctl.c 	mnt_drop_write_file(filp);
filp             1691 fs/xfs/xfs_ioctl.c 	struct file		*filp,
filp             1711 fs/xfs/xfs_ioctl.c 	error = mnt_want_write_file(filp);
filp             1747 fs/xfs/xfs_ioctl.c 	mnt_drop_write_file(filp);
filp             2040 fs/xfs/xfs_ioctl.c 	struct file		*filp,
filp             2063 fs/xfs/xfs_ioctl.c 	error = mnt_want_write_file(filp);
filp             2094 fs/xfs/xfs_ioctl.c 	mnt_drop_write_file(filp);
filp             2106 fs/xfs/xfs_ioctl.c 	struct file		*filp,
filp             2110 fs/xfs/xfs_ioctl.c 	struct inode		*inode = file_inode(filp);
filp             2124 fs/xfs/xfs_ioctl.c 		return xfs_ioc_setlabel(filp, mp, arg);
filp             2138 fs/xfs/xfs_ioctl.c 		return xfs_ioc_space(filp, cmd, &bf);
filp             2182 fs/xfs/xfs_ioctl.c 		return xfs_ioc_fssetxattr(ip, filp, arg);
filp             2186 fs/xfs/xfs_ioctl.c 		return xfs_ioc_setxflags(ip, filp, arg);
filp             2194 fs/xfs/xfs_ioctl.c 		error = mnt_want_write_file(filp);
filp             2200 fs/xfs/xfs_ioctl.c 		mnt_drop_write_file(filp);
filp             2207 fs/xfs/xfs_ioctl.c 		return xfs_ioc_getbmap(filp, cmd, arg);
filp             2229 fs/xfs/xfs_ioctl.c 		return xfs_open_by_handle(filp, &hreq);
filp             2232 fs/xfs/xfs_ioctl.c 		return xfs_fssetdm_by_handle(filp, arg);
filp             2239 fs/xfs/xfs_ioctl.c 		return xfs_readlink_by_handle(filp, &hreq);
filp             2242 fs/xfs/xfs_ioctl.c 		return xfs_attrlist_by_handle(filp, arg);
filp             2245 fs/xfs/xfs_ioctl.c 		return xfs_attrmulti_by_handle(filp, arg);
filp             2252 fs/xfs/xfs_ioctl.c 		error = mnt_want_write_file(filp);
filp             2256 fs/xfs/xfs_ioctl.c 		mnt_drop_write_file(filp);
filp             2283 fs/xfs/xfs_ioctl.c 		error = mnt_want_write_file(filp);
filp             2290 fs/xfs/xfs_ioctl.c 		mnt_drop_write_file(filp);
filp             2321 fs/xfs/xfs_ioctl.c 		error = mnt_want_write_file(filp);
filp             2325 fs/xfs/xfs_ioctl.c 		mnt_drop_write_file(filp);
filp             2335 fs/xfs/xfs_ioctl.c 		error = mnt_want_write_file(filp);
filp             2339 fs/xfs/xfs_ioctl.c 		mnt_drop_write_file(filp);
filp             2349 fs/xfs/xfs_ioctl.c 		error = mnt_want_write_file(filp);
filp             2353 fs/xfs/xfs_ioctl.c 		mnt_drop_write_file(filp);
filp               11 fs/xfs/xfs_ioctl.h 	struct file		*filp,
filp               64 fs/xfs/xfs_ioctl.h 	struct file		*filp,
filp              545 fs/xfs/xfs_ioctl32.c 	struct file		*filp,
filp              549 fs/xfs/xfs_ioctl32.c 	struct inode		*inode = file_inode(filp);
filp              573 fs/xfs/xfs_ioctl32.c 		return xfs_ioc_space(filp, cmd, &bf);
filp              582 fs/xfs/xfs_ioctl32.c 		error = mnt_want_write_file(filp);
filp              586 fs/xfs/xfs_ioctl32.c 		mnt_drop_write_file(filp);
filp              594 fs/xfs/xfs_ioctl32.c 		error = mnt_want_write_file(filp);
filp              598 fs/xfs/xfs_ioctl32.c 		mnt_drop_write_file(filp);
filp              607 fs/xfs/xfs_ioctl32.c 		return xfs_file_ioctl(filp, cmd, p);
filp              617 fs/xfs/xfs_ioctl32.c 		error = mnt_want_write_file(filp);
filp              621 fs/xfs/xfs_ioctl32.c 		mnt_drop_write_file(filp);
filp              643 fs/xfs/xfs_ioctl32.c 		return xfs_open_by_handle(filp, &hreq);
filp              650 fs/xfs/xfs_ioctl32.c 		return xfs_readlink_by_handle(filp, &hreq);
filp              653 fs/xfs/xfs_ioctl32.c 		return xfs_compat_attrlist_by_handle(filp, arg);
filp              655 fs/xfs/xfs_ioctl32.c 		return xfs_compat_attrmulti_by_handle(filp, arg);
filp              657 fs/xfs/xfs_ioctl32.c 		return xfs_compat_fssetdm_by_handle(filp, arg);
filp              660 fs/xfs/xfs_ioctl32.c 		return xfs_file_ioctl(filp, cmd, (unsigned long)arg);
filp              260 include/drm/drm_file.h 	struct file *filp;
filp              372 include/drm/drm_file.h int drm_open(struct inode *inode, struct file *filp);
filp              373 include/drm/drm_file.h ssize_t drm_read(struct file *filp, char __user *buffer,
filp              375 include/drm/drm_file.h int drm_release(struct inode *inode, struct file *filp);
filp              376 include/drm/drm_file.h __poll_t drm_poll(struct file *filp, struct poll_table_struct *wait);
filp              209 include/drm/drm_gem.h 	struct file *filp;
filp              338 include/drm/drm_gem.h int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma);
filp              379 include/drm/drm_gem.h int drm_gem_handle_delete(struct drm_file *filp, u32 handle);
filp              390 include/drm/drm_gem.h int drm_gem_objects_lookup(struct drm_file *filp, void __user *bo_handles,
filp              392 include/drm/drm_gem.h struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);
filp               80 include/drm/drm_gem_cma_helper.h int drm_gem_cma_mmap(struct file *filp, struct vm_area_struct *vma);
filp               89 include/drm/drm_gem_cma_helper.h unsigned long drm_gem_cma_get_unmapped_area(struct file *filp,
filp              159 include/drm/drm_gem_shmem_helper.h int drm_gem_shmem_mmap(struct file *filp, struct vm_area_struct *vma);
filp               13 include/drm/drm_gem_vram_helper.h struct filp;
filp              102 include/drm/drm_gem_vram_helper.h 					 struct file *filp);
filp               67 include/drm/drm_ioctl.h typedef int drm_ioctl_compat_t(struct file *filp, unsigned int cmd,
filp              170 include/drm/drm_ioctl.h long drm_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
filp              173 include/drm/drm_ioctl.h long drm_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
filp              166 include/drm/drm_legacy.h int drm_legacy_mmap(struct file *filp, struct vm_area_struct *vma);
filp               25 include/drm/drm_vram_mm_helper.h 	int (*verify_access)(struct ttm_buffer_object *bo, struct file *filp);
filp               68 include/drm/drm_vram_mm_helper.h int drm_vram_mm_mmap(struct file *filp, struct vm_area_struct *vma,
filp               85 include/drm/drm_vram_mm_helper.h 	struct file *filp, struct vm_area_struct *vma);
filp              734 include/drm/ttm/ttm_bo_api.h int ttm_bo_mmap(struct file *filp, struct vm_area_struct *vma,
filp              761 include/drm/ttm/ttm_bo_api.h ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp,
filp              327 include/drm/ttm/ttm_bo_driver.h 			     struct file *filp);
filp               87 include/linux/debugfs.h const struct file_operations *debugfs_real_fops(const struct file *filp);
filp              218 include/linux/debugfs.h const struct file_operations *debugfs_real_fops(const struct file *filp);
filp               38 include/linux/dnotify.h static inline void dnotify_flush(struct file *filp, fl_owner_t id)
filp               42 include/linux/dnotify.h static inline int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg)
filp              376 include/linux/fs.h 	int (*readpages)(struct file *filp, struct address_space *mapping,
filp             1147 include/linux/fs.h extern int fcntl_setlease(unsigned int fd, struct file *filp, long arg);
filp             1148 include/linux/fs.h extern int fcntl_getlease(struct file *filp);
filp             1165 include/linux/fs.h extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
filp             1179 include/linux/fs.h 			 struct file *filp, struct files_struct *files);
filp             1206 include/linux/fs.h static inline int fcntl_setlease(unsigned int fd, struct file *filp, long arg)
filp             1211 include/linux/fs.h static inline int fcntl_getlease(struct file *filp)
filp             1236 include/linux/fs.h static inline void locks_remove_posix(struct file *filp, fl_owner_t owner)
filp             1241 include/linux/fs.h static inline void locks_remove_file(struct file *filp)
filp             1246 include/linux/fs.h static inline void posix_test_lock(struct file *filp, struct file_lock *fl)
filp             1251 include/linux/fs.h static inline int posix_lock_file(struct file *filp, struct file_lock *fl,
filp             1262 include/linux/fs.h static inline int vfs_test_lock(struct file *filp, struct file_lock *fl)
filp             1267 include/linux/fs.h static inline int vfs_lock_file(struct file *filp, unsigned int cmd,
filp             1273 include/linux/fs.h static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl)
filp             1294 include/linux/fs.h static inline int generic_setlease(struct file *filp, long arg,
filp             1300 include/linux/fs.h static inline int vfs_setlease(struct file *filp, long arg,
filp             1314 include/linux/fs.h 			struct file *filp, struct files_struct *files) {}
filp             1327 include/linux/fs.h static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl)
filp             1329 include/linux/fs.h 	return locks_lock_inode_wait(locks_inode(filp), fl);
filp             1353 include/linux/fs.h extern void __f_setown(struct file *filp, struct pid *, enum pid_type, int force);
filp             1354 include/linux/fs.h extern int f_setown(struct file *filp, unsigned long arg, int force);
filp             1355 include/linux/fs.h extern void f_delown(struct file *filp);
filp             1356 include/linux/fs.h extern pid_t f_getown(struct file *filp);
filp             2072 include/linux/fs.h static inline void init_sync_kiocb(struct kiocb *kiocb, struct file *filp)
filp             2075 include/linux/fs.h 		.ki_filp = filp,
filp             2076 include/linux/fs.h 		.ki_flags = iocb_flags(filp),
filp             2077 include/linux/fs.h 		.ki_hint = ki_hint_validate(file_write_hint(filp)),
filp             2396 include/linux/fs.h static inline int locks_mandatory_area(struct inode *inode, struct file *filp,
filp             2417 include/linux/fs.h static inline int locks_verify_truncate(struct inode *inode, struct file *filp,
filp             2529 include/linux/fs.h 		       struct file *filp);
filp             2558 include/linux/fs.h extern int ioctl_preallocate(struct file *filp, void __user *argp);
filp             3120 include/linux/fs.h extern int blkdev_fsync(struct file *filp, loff_t start, loff_t end,
filp             3147 include/linux/fs.h extern int generic_file_open(struct inode * inode, struct file * filp);
filp             3148 include/linux/fs.h extern int nonseekable_open(struct inode * inode, struct file * filp);
filp             3149 include/linux/fs.h extern int stream_open(struct inode * inode, struct file * filp);
filp             3164 include/linux/fs.h void dio_warn_stale_pagecache(struct file *filp);
filp             3366 include/linux/fs.h static inline bool io_is_direct(struct file *filp)
filp             3368 include/linux/fs.h 	return (filp->f_flags & O_DIRECT) || IS_DAX(filp->f_mapping->host);
filp              144 include/linux/fscrypt.h extern int fscrypt_ioctl_add_key(struct file *filp, void __user *arg);
filp              145 include/linux/fscrypt.h extern int fscrypt_ioctl_remove_key(struct file *filp, void __user *arg);
filp              146 include/linux/fscrypt.h extern int fscrypt_ioctl_remove_key_all_users(struct file *filp,
filp              148 include/linux/fscrypt.h extern int fscrypt_ioctl_get_key_status(struct file *filp, void __user *arg);
filp              253 include/linux/fscrypt.h extern int fscrypt_file_open(struct inode *inode, struct file *filp);
filp              356 include/linux/fscrypt.h static inline int fscrypt_ioctl_set_policy(struct file *filp,
filp              362 include/linux/fscrypt.h static inline int fscrypt_ioctl_get_policy(struct file *filp, void __user *arg)
filp              367 include/linux/fscrypt.h static inline int fscrypt_ioctl_get_policy_ex(struct file *filp,
filp              391 include/linux/fscrypt.h static inline int fscrypt_ioctl_add_key(struct file *filp, void __user *arg)
filp              396 include/linux/fscrypt.h static inline int fscrypt_ioctl_remove_key(struct file *filp, void __user *arg)
filp              401 include/linux/fscrypt.h static inline int fscrypt_ioctl_remove_key_all_users(struct file *filp,
filp              407 include/linux/fscrypt.h static inline int fscrypt_ioctl_get_key_status(struct file *filp,
filp              500 include/linux/fscrypt.h static inline int fscrypt_file_open(struct inode *inode, struct file *filp)
filp               33 include/linux/fsverity.h 	int (*begin_enable_verity)(struct file *filp);
filp               55 include/linux/fsverity.h 	int (*end_enable_verity)(struct file *filp, const void *desc,
filp              119 include/linux/fsverity.h extern int fsverity_ioctl_enable(struct file *filp, const void __user *arg);
filp              123 include/linux/fsverity.h extern int fsverity_ioctl_measure(struct file *filp, void __user *arg);
filp              127 include/linux/fsverity.h extern int fsverity_file_open(struct inode *inode, struct file *filp);
filp              146 include/linux/fsverity.h static inline int fsverity_ioctl_enable(struct file *filp,
filp              154 include/linux/fsverity.h static inline int fsverity_ioctl_measure(struct file *filp, void __user *arg)
filp              161 include/linux/fsverity.h static inline int fsverity_file_open(struct inode *inode, struct file *filp)
filp              157 include/linux/huge_mm.h extern unsigned long thp_get_unmapped_area(struct file *filp,
filp              800 include/linux/kvm_host.h long kvm_arch_dev_ioctl(struct file *filp,
filp              802 include/linux/kvm_host.h long kvm_arch_vcpu_ioctl(struct file *filp,
filp              830 include/linux/kvm_host.h long kvm_arch_vm_ioctl(struct file *filp,
filp             1301 include/linux/kvm_host.h struct kvm_device *kvm_device_from_filp(struct file *filp);
filp             1368 include/linux/kvm_host.h long kvm_arch_vcpu_async_ioctl(struct file *filp,
filp             1371 include/linux/kvm_host.h static inline long kvm_arch_vcpu_async_ioctl(struct file *filp,
filp             2433 include/linux/mm.h int force_page_cache_readahead(struct address_space *mapping, struct file *filp,
filp             2438 include/linux/mm.h 			       struct file *filp,
filp             2444 include/linux/mm.h 				struct file *filp,
filp              376 include/linux/mm_types.h 		unsigned long (*get_unmapped_area) (struct file *filp,
filp              143 include/linux/netlink.h struct sock *netlink_getsockbyfilp(struct file *filp);
filp              396 include/linux/nfs_fs.h extern struct nfs_open_context *alloc_nfs_open_context(struct dentry *dentry, fmode_t f_mode, struct file *filp);
filp              398 include/linux/nfs_fs.h extern void nfs_file_set_open_context(struct file *filp, struct nfs_open_context *ctx);
filp              461 include/linux/nfs_fs.h static inline struct nfs_open_context *nfs_file_open_context(struct file *filp)
filp              463 include/linux/nfs_fs.h 	return filp->private_data;
filp               48 include/linux/poll.h static inline void poll_wait(struct file * filp, wait_queue_head_t * wait_address, poll_table *p)
filp               51 include/linux/poll.h 		p->_qproc(filp, wait_address, p);
filp               94 include/linux/poll.h 	struct file *filp;
filp              112 include/linux/relay.h 			   struct file *filp);
filp              122 include/linux/relay.h 			     struct file *filp);
filp              102 include/linux/ring_buffer.h 			  struct file *filp, poll_table *poll_table);
filp              135 include/linux/rpmsg.h __poll_t rpmsg_poll(struct rpmsg_endpoint *ept, struct file *filp,
filp              237 include/linux/rpmsg.h 				      struct file *filp, poll_table *wait)
filp              140 include/linux/sched/mm.h arch_get_unmapped_area_topdown(struct file *filp, unsigned long addr,
filp              503 include/linux/tty.h extern int tty_hung_up_p(struct file *filp);
filp              506 include/linux/tty.h extern void tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty);
filp              566 include/linux/tty.h extern int tty_release(struct inode *inode, struct file *filp);
filp              695 include/linux/tty.h 				struct tty_struct *tty, struct file *filp);
filp              697 include/linux/tty.h 				struct tty_struct *tty, struct file *filp);
filp              700 include/linux/tty.h 				struct tty_struct *tty, struct file *filp);
filp              704 include/linux/tty.h 				struct tty_struct *tty, struct file *filp);
filp              256 include/linux/tty_driver.h 			struct file *filp, int idx);
filp              259 include/linux/tty_driver.h 	int  (*open)(struct tty_struct * tty, struct file * filp);
filp              260 include/linux/tty_driver.h 	void (*close)(struct tty_struct * tty, struct file * filp);
filp              147 include/media/media-devnode.h static inline struct media_devnode *media_devnode_data(struct file *filp)
filp              149 include/media/media-devnode.h 	return filp->private_data;
filp               93 include/media/v4l2-fh.h int v4l2_fh_open(struct file *filp);
filp              135 include/media/v4l2-fh.h int v4l2_fh_release(struct file *filp);
filp              158 include/media/v4l2-fh.h static inline int v4l2_fh_is_singular_file(struct file *filp)
filp              160 include/media/v4l2-fh.h 	return v4l2_fh_is_singular(filp->private_data);
filp               16 include/net/af_unix.h struct sock *unix_get_socket(struct file *filp);
filp             2109 include/net/sock.h static inline void sock_poll_wait(struct file *filp, struct socket *sock,
filp             2113 include/net/sock.h 		poll_wait(filp, &sock->wq.wait, p);
filp              103 include/rdma/ib.h static inline bool ib_safe_file_access(struct file *filp)
filp              105 include/rdma/ib.h 	return filp->f_cred == current_cred() && !uaccess_kernel();
filp              562 ipc/mqueue.c   static ssize_t mqueue_read_file(struct file *filp, char __user *u_data,
filp              565 ipc/mqueue.c   	struct mqueue_inode_info *info = MQUEUE_I(file_inode(filp));
filp              586 ipc/mqueue.c   	file_inode(filp)->i_atime = file_inode(filp)->i_ctime = current_time(file_inode(filp));
filp              590 ipc/mqueue.c   static int mqueue_flush_file(struct file *filp, fl_owner_t id)
filp              592 ipc/mqueue.c   	struct mqueue_inode_info *info = MQUEUE_I(file_inode(filp));
filp              602 ipc/mqueue.c   static __poll_t mqueue_poll_file(struct file *filp, struct poll_table_struct *poll_tab)
filp              604 ipc/mqueue.c   	struct mqueue_inode_info *info = MQUEUE_I(file_inode(filp));
filp              607 ipc/mqueue.c   	poll_wait(filp, &info->wait_q, poll_tab);
filp             3379 kernel/bpf/btf.c static void bpf_btf_show_fdinfo(struct seq_file *m, struct file *filp)
filp             3381 kernel/bpf/btf.c 	const struct btf *btf = filp->private_data;
filp             3387 kernel/bpf/btf.c static int btf_release(struct inode *inode, struct file *filp)
filp             3389 kernel/bpf/btf.c 	btf_put(filp->private_data);
filp              348 kernel/bpf/syscall.c static int bpf_map_release(struct inode *inode, struct file *filp)
filp              350 kernel/bpf/syscall.c 	struct bpf_map *map = filp->private_data;
filp              353 kernel/bpf/syscall.c 		map->ops->map_release(map, filp);
filp              372 kernel/bpf/syscall.c static void bpf_map_show_fdinfo(struct seq_file *m, struct file *filp)
filp              374 kernel/bpf/syscall.c 	const struct bpf_map *map = filp->private_data;
filp              412 kernel/bpf/syscall.c static ssize_t bpf_dummy_read(struct file *filp, char __user *buf, size_t siz,
filp              421 kernel/bpf/syscall.c static ssize_t bpf_dummy_write(struct file *filp, const char __user *buf,
filp             1369 kernel/bpf/syscall.c static int bpf_prog_release(struct inode *inode, struct file *filp)
filp             1371 kernel/bpf/syscall.c 	struct bpf_prog *prog = filp->private_data;
filp             1402 kernel/bpf/syscall.c static void bpf_prog_show_fdinfo(struct seq_file *m, struct file *filp)
filp             1404 kernel/bpf/syscall.c 	const struct bpf_prog *prog = filp->private_data;
filp             1797 kernel/bpf/syscall.c static int bpf_raw_tracepoint_release(struct inode *inode, struct file *filp)
filp             1799 kernel/bpf/syscall.c 	struct bpf_raw_tracepoint *raw_tp = filp->private_data;
filp             5921 kernel/events/core.c static int perf_fasync(int fd, struct file *filp, int on)
filp             5923 kernel/events/core.c 	struct inode *inode = file_inode(filp);
filp             5924 kernel/events/core.c 	struct perf_event *event = filp->private_data;
filp             5928 kernel/events/core.c 	retval = fasync_helper(fd, filp, on, &event->fasync);
filp              797 kernel/events/uprobes.c static int __copy_insn(struct address_space *mapping, struct file *filp,
filp              807 kernel/events/uprobes.c 		page = read_mapping_page(mapping, offset >> PAGE_SHIFT, filp);
filp              819 kernel/events/uprobes.c static int copy_insn(struct uprobe *uprobe, struct file *filp)
filp              833 kernel/events/uprobes.c 		err = __copy_insn(mapping, filp, insn, len, offs);
filp              108 kernel/kcmp.c  	struct file *filp, *filp_epoll, *filp_tgt;
filp              115 kernel/kcmp.c  	filp = get_file_raw_ptr(task1, idx1);
filp              116 kernel/kcmp.c  	if (!filp)
filp              140 kernel/kcmp.c  	return kcmp_ptr(filp, filp_tgt, KCMP_FILE);
filp             2408 kernel/kprobes.c static int kprobes_open(struct inode *inode, struct file *filp)
filp             2410 kernel/kprobes.c 	return seq_open(filp, &kprobes_seq_ops);
filp             2456 kernel/kprobes.c static int kprobe_blacklist_open(struct inode *inode, struct file *filp)
filp             2458 kernel/kprobes.c 	return seq_open(filp, &kprobe_blacklist_seq_ops);
filp              192 kernel/ksysfs.c static ssize_t notes_read(struct file *filp, struct kobject *kobj,
filp              253 kernel/latencytop.c static int lstats_open(struct inode *inode, struct file *filp)
filp              255 kernel/latencytop.c 	return single_open(filp, lstats_show, NULL);
filp             1614 kernel/module.c static ssize_t module_notes_read(struct file *filp, struct kobject *kobj,
filp               86 kernel/power/qos.c static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf,
filp               88 kernel/power/qos.c static ssize_t pm_qos_power_read(struct file *filp, char __user *buf,
filp               90 kernel/power/qos.c static int pm_qos_power_open(struct inode *inode, struct file *filp);
filp               91 kernel/power/qos.c static int pm_qos_power_release(struct inode *inode, struct file *filp);
filp              557 kernel/power/qos.c static int pm_qos_power_open(struct inode *inode, struct file *filp)
filp              568 kernel/power/qos.c 		filp->private_data = req;
filp              575 kernel/power/qos.c static int pm_qos_power_release(struct inode *inode, struct file *filp)
filp              579 kernel/power/qos.c 	req = filp->private_data;
filp              587 kernel/power/qos.c static ssize_t pm_qos_power_read(struct file *filp, char __user *buf,
filp              592 kernel/power/qos.c 	struct pm_qos_request *req = filp->private_data;
filp              606 kernel/power/qos.c static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf,
filp              623 kernel/power/qos.c 	req = filp->private_data;
filp               44 kernel/power/user.c static int snapshot_open(struct inode *inode, struct file *filp)
filp               59 kernel/power/user.c 	if ((filp->f_flags & O_ACCMODE) == O_RDWR) {
filp               64 kernel/power/user.c 	nonseekable_open(inode, filp);
filp               66 kernel/power/user.c 	filp->private_data = data;
filp               68 kernel/power/user.c 	if ((filp->f_flags & O_ACCMODE) == O_RDONLY) {
filp              109 kernel/power/user.c static int snapshot_release(struct inode *inode, struct file *filp)
filp              116 kernel/power/user.c 	data = filp->private_data;
filp              134 kernel/power/user.c static ssize_t snapshot_read(struct file *filp, char __user *buf,
filp              143 kernel/power/user.c 	data = filp->private_data;
filp              167 kernel/power/user.c static ssize_t snapshot_write(struct file *filp, const char __user *buf,
filp              176 kernel/power/user.c 	data = filp->private_data;
filp              201 kernel/power/user.c static long snapshot_ioctl(struct file *filp, unsigned int cmd,
filp              220 kernel/power/user.c 	data = filp->private_data;
filp               99 kernel/relay.c 	struct file *filp = vma->vm_file;
filp              110 kernel/relay.c 	buf->chan->cb->buf_mapped(buf, filp);
filp              289 kernel/relay.c 					struct file *filp)
filp              297 kernel/relay.c 					  struct file *filp)
filp              900 kernel/relay.c static int relay_file_open(struct inode *inode, struct file *filp)
filp              904 kernel/relay.c 	filp->private_data = buf;
filp              906 kernel/relay.c 	return nonseekable_open(inode, filp);
filp              916 kernel/relay.c static int relay_file_mmap(struct file *filp, struct vm_area_struct *vma)
filp              918 kernel/relay.c 	struct rchan_buf *buf = filp->private_data;
filp              929 kernel/relay.c static __poll_t relay_file_poll(struct file *filp, poll_table *wait)
filp              932 kernel/relay.c 	struct rchan_buf *buf = filp->private_data;
filp              937 kernel/relay.c 	if (filp->f_mode & FMODE_READ) {
filp              938 kernel/relay.c 		poll_wait(filp, &buf->read_wait, wait);
filp              954 kernel/relay.c static int relay_file_release(struct inode *inode, struct file *filp)
filp              956 kernel/relay.c 	struct rchan_buf *buf = filp->private_data;
filp             1122 kernel/relay.c static ssize_t relay_file_read(struct file *filp,
filp             1127 kernel/relay.c 	struct rchan_buf *buf = filp->private_data;
filp             1135 kernel/relay.c 	inode_lock(file_inode(filp));
filp             1160 kernel/relay.c 	inode_unlock(file_inode(filp));
filp              127 kernel/sched/debug.c sched_feat_write(struct file *filp, const char __user *ubuf,
filp              145 kernel/sched/debug.c 	inode = file_inode(filp);
filp              159 kernel/sched/debug.c static int sched_feat_open(struct inode *inode, struct file *filp)
filp              161 kernel/sched/debug.c 	return single_open(filp, sched_feat_show, NULL);
filp              370 kernel/trace/blktrace.c static ssize_t blk_dropped_read(struct file *filp, char __user *buffer,
filp              373 kernel/trace/blktrace.c 	struct blk_trace *bt = filp->private_data;
filp              388 kernel/trace/blktrace.c static ssize_t blk_msg_write(struct file *filp, const char __user *buffer,
filp              401 kernel/trace/blktrace.c 	bt = filp->private_data;
filp              889 kernel/trace/ftrace.c ftrace_profile_write(struct file *filp, const char __user *ubuf,
filp              934 kernel/trace/ftrace.c ftrace_profile_read(struct file *filp, char __user *ubuf,
filp             6615 kernel/trace/ftrace.c ftrace_pid_write(struct file *filp, const char __user *ubuf,
filp             6618 kernel/trace/ftrace.c 	struct seq_file *m = filp->private_data;
filp              688 kernel/trace/ring_buffer.c 			  struct file *filp, poll_table *poll_table)
filp              703 kernel/trace/ring_buffer.c 	poll_wait(filp, &work->waiters, poll_table);
filp             4167 kernel/trace/trace.c int tracing_open_generic(struct inode *inode, struct file *filp)
filp             4175 kernel/trace/trace.c 	filp->private_data = inode->i_private;
filp             4188 kernel/trace/trace.c int tracing_open_generic_tr(struct inode *inode, struct file *filp)
filp             4197 kernel/trace/trace.c 	filp->private_data = inode->i_private;
filp             4409 kernel/trace/trace.c tracing_write_stub(struct file *filp, const char __user *ubuf,
filp             4443 kernel/trace/trace.c tracing_cpumask_read(struct file *filp, char __user *ubuf,
filp             4446 kernel/trace/trace.c 	struct trace_array *tr = file_inode(filp)->i_private;
filp             4471 kernel/trace/trace.c tracing_cpumask_write(struct file *filp, const char __user *ubuf,
filp             4474 kernel/trace/trace.c 	struct trace_array *tr = file_inode(filp)->i_private;
filp             4716 kernel/trace/trace.c tracing_trace_options_write(struct file *filp, const char __user *ubuf,
filp             4719 kernel/trace/trace.c 	struct seq_file *m = filp->private_data;
filp             5016 kernel/trace/trace.c tracing_readme_read(struct file *filp, char __user *ubuf,
filp             5083 kernel/trace/trace.c static int tracing_saved_tgids_open(struct inode *inode, struct file *filp)
filp             5091 kernel/trace/trace.c 	return seq_open(filp, &tracing_saved_tgids_seq_ops);
filp             5163 kernel/trace/trace.c static int tracing_saved_cmdlines_open(struct inode *inode, struct file *filp)
filp             5171 kernel/trace/trace.c 	return seq_open(filp, &tracing_saved_cmdlines_seq_ops);
filp             5182 kernel/trace/trace.c tracing_saved_cmdlines_size_read(struct file *filp, char __user *ubuf,
filp             5225 kernel/trace/trace.c tracing_saved_cmdlines_size_write(struct file *filp, const char __user *ubuf,
filp             5331 kernel/trace/trace.c static int tracing_eval_map_open(struct inode *inode, struct file *filp)
filp             5339 kernel/trace/trace.c 	return seq_open(filp, &tracing_eval_map_seq_ops);
filp             5434 kernel/trace/trace.c tracing_set_trace_read(struct file *filp, char __user *ubuf,
filp             5437 kernel/trace/trace.c 	struct trace_array *tr = filp->private_data;
filp             5744 kernel/trace/trace.c tracing_set_trace_write(struct file *filp, const char __user *ubuf,
filp             5747 kernel/trace/trace.c 	struct trace_array *tr = filp->private_data;
filp             5807 kernel/trace/trace.c tracing_thresh_read(struct file *filp, char __user *ubuf,
filp             5814 kernel/trace/trace.c tracing_thresh_write(struct file *filp, const char __user *ubuf,
filp             5817 kernel/trace/trace.c 	struct trace_array *tr = filp->private_data;
filp             5841 kernel/trace/trace.c tracing_max_lat_read(struct file *filp, char __user *ubuf,
filp             5844 kernel/trace/trace.c 	return tracing_nsecs_read(filp->private_data, ubuf, cnt, ppos);
filp             5848 kernel/trace/trace.c tracing_max_lat_write(struct file *filp, const char __user *ubuf,
filp             5851 kernel/trace/trace.c 	return tracing_nsecs_write(filp->private_data, ubuf, cnt, ppos);
filp             5856 kernel/trace/trace.c static int tracing_open_pipe(struct inode *inode, struct file *filp)
filp             5898 kernel/trace/trace.c 	filp->private_data = iter;
filp             5903 kernel/trace/trace.c 	nonseekable_open(inode, filp);
filp             5941 kernel/trace/trace.c trace_poll(struct trace_iterator *iter, struct file *filp, poll_table *poll_table)
filp             5956 kernel/trace/trace.c 					     filp, poll_table);
filp             5960 kernel/trace/trace.c tracing_poll_pipe(struct file *filp, poll_table *poll_table)
filp             5962 kernel/trace/trace.c 	struct trace_iterator *iter = filp->private_data;
filp             5964 kernel/trace/trace.c 	return trace_poll(iter, filp, poll_table);
filp             5968 kernel/trace/trace.c static int tracing_wait_pipe(struct file *filp)
filp             5970 kernel/trace/trace.c 	struct trace_iterator *iter = filp->private_data;
filp             5975 kernel/trace/trace.c 		if ((filp->f_flags & O_NONBLOCK)) {
filp             6008 kernel/trace/trace.c tracing_read_pipe(struct file *filp, char __user *ubuf,
filp             6011 kernel/trace/trace.c 	struct trace_iterator *iter = filp->private_data;
filp             6029 kernel/trace/trace.c 		sret = iter->trace->read(iter, filp, ubuf, cnt, ppos);
filp             6035 kernel/trace/trace.c 	sret = tracing_wait_pipe(filp);
filp             6163 kernel/trace/trace.c static ssize_t tracing_splice_read_pipe(struct file *filp,
filp             6171 kernel/trace/trace.c 	struct trace_iterator *iter = filp->private_data;
filp             6190 kernel/trace/trace.c 		ret = iter->trace->splice_read(iter, filp,
filp             6196 kernel/trace/trace.c 	ret = tracing_wait_pipe(filp);
filp             6250 kernel/trace/trace.c tracing_entries_read(struct file *filp, char __user *ubuf,
filp             6253 kernel/trace/trace.c 	struct inode *inode = file_inode(filp);
filp             6298 kernel/trace/trace.c tracing_entries_write(struct file *filp, const char __user *ubuf,
filp             6301 kernel/trace/trace.c 	struct inode *inode = file_inode(filp);
filp             6326 kernel/trace/trace.c tracing_total_entries_read(struct file *filp, char __user *ubuf,
filp             6329 kernel/trace/trace.c 	struct trace_array *tr = filp->private_data;
filp             6350 kernel/trace/trace.c tracing_free_buffer_write(struct file *filp, const char __user *ubuf,
filp             6364 kernel/trace/trace.c tracing_free_buffer_release(struct inode *inode, struct file *filp)
filp             6380 kernel/trace/trace.c tracing_mark_write(struct file *filp, const char __user *ubuf,
filp             6383 kernel/trace/trace.c 	struct trace_array *tr = filp->private_data;
filp             6461 kernel/trace/trace.c tracing_mark_raw_write(struct file *filp, const char __user *ubuf,
filp             6464 kernel/trace/trace.c 	struct trace_array *tr = filp->private_data;
filp             6569 kernel/trace/trace.c static ssize_t tracing_clock_write(struct file *filp, const char __user *ubuf,
filp             6572 kernel/trace/trace.c 	struct seq_file *m = filp->private_data;
filp             6726 kernel/trace/trace.c tracing_snapshot_write(struct file *filp, const char __user *ubuf, size_t cnt,
filp             6729 kernel/trace/trace.c 	struct seq_file *m = filp->private_data;
filp             6826 kernel/trace/trace.c static int tracing_buffers_open(struct inode *inode, struct file *filp);
filp             6827 kernel/trace/trace.c static ssize_t tracing_buffers_read(struct file *filp, char __user *ubuf,
filp             6833 kernel/trace/trace.c static int snapshot_raw_open(struct inode *inode, struct file *filp)
filp             6839 kernel/trace/trace.c 	ret = tracing_buffers_open(inode, filp);
filp             6843 kernel/trace/trace.c 	info = filp->private_data;
filp             6846 kernel/trace/trace.c 		tracing_buffers_release(inode, filp);
filp             7205 kernel/trace/trace.c static int tracing_buffers_open(struct inode *inode, struct file *filp)
filp             7231 kernel/trace/trace.c 	filp->private_data = info;
filp             7237 kernel/trace/trace.c 	ret = nonseekable_open(inode, filp);
filp             7245 kernel/trace/trace.c tracing_buffers_poll(struct file *filp, poll_table *poll_table)
filp             7247 kernel/trace/trace.c 	struct ftrace_buffer_info *info = filp->private_data;
filp             7250 kernel/trace/trace.c 	return trace_poll(iter, filp, poll_table);
filp             7254 kernel/trace/trace.c tracing_buffers_read(struct file *filp, char __user *ubuf,
filp             7257 kernel/trace/trace.c 	struct ftrace_buffer_info *info = filp->private_data;
filp             7297 kernel/trace/trace.c 			if ((filp->f_flags & O_NONBLOCK))
filp             7524 kernel/trace/trace.c tracing_stats_read(struct file *filp, char __user *ubuf,
filp             7527 kernel/trace/trace.c 	struct inode *inode = file_inode(filp);
filp             7597 kernel/trace/trace.c tracing_read_dyn_info(struct file *filp, char __user *ubuf,
filp             7600 kernel/trace/trace.c 	unsigned long *p = filp->private_data;
filp             7867 kernel/trace/trace.c trace_options_read(struct file *filp, char __user *ubuf, size_t cnt,
filp             7870 kernel/trace/trace.c 	struct trace_option_dentry *topt = filp->private_data;
filp             7882 kernel/trace/trace.c trace_options_write(struct file *filp, const char __user *ubuf, size_t cnt,
filp             7885 kernel/trace/trace.c 	struct trace_option_dentry *topt = filp->private_data;
filp             7952 kernel/trace/trace.c trace_options_core_read(struct file *filp, char __user *ubuf, size_t cnt,
filp             7955 kernel/trace/trace.c 	void *tr_index = filp->private_data;
filp             7971 kernel/trace/trace.c trace_options_core_write(struct file *filp, const char __user *ubuf, size_t cnt,
filp             7974 kernel/trace/trace.c 	void *tr_index = filp->private_data;
filp             8161 kernel/trace/trace.c rb_simple_read(struct file *filp, char __user *ubuf,
filp             8164 kernel/trace/trace.c 	struct trace_array *tr = filp->private_data;
filp             8175 kernel/trace/trace.c rb_simple_write(struct file *filp, const char __user *ubuf,
filp             8178 kernel/trace/trace.c 	struct trace_array *tr = filp->private_data;
filp             8217 kernel/trace/trace.c buffer_percent_read(struct file *filp, char __user *ubuf,
filp             8220 kernel/trace/trace.c 	struct trace_array *tr = filp->private_data;
filp             8231 kernel/trace/trace.c buffer_percent_write(struct file *filp, const char __user *ubuf,
filp             8234 kernel/trace/trace.c 	struct trace_array *tr = filp->private_data;
filp              478 kernel/trace/trace.h 					struct file *filp, char __user *ubuf,
filp              481 kernel/trace/trace.h 					       struct file *filp,
filp              684 kernel/trace/trace.h int tracing_open_generic(struct inode *inode, struct file *filp);
filp              685 kernel/trace/trace.h int tracing_open_generic_tr(struct inode *inode, struct file *filp);
filp             1595 kernel/trace/trace.h static inline void *event_file_data(struct file *filp)
filp             1597 kernel/trace/trace.h 	return READ_ONCE(file_inode(filp)->i_private);
filp             1026 kernel/trace/trace_events.c event_enable_read(struct file *filp, char __user *ubuf, size_t cnt,
filp             1034 kernel/trace/trace_events.c 	file = event_file_data(filp);
filp             1056 kernel/trace/trace_events.c event_enable_write(struct file *filp, const char __user *ubuf, size_t cnt,
filp             1076 kernel/trace/trace_events.c 		file = event_file_data(filp);
filp             1092 kernel/trace/trace_events.c system_enable_read(struct file *filp, char __user *ubuf, size_t cnt,
filp             1096 kernel/trace/trace_events.c 	struct trace_subsystem_dir *dir = filp->private_data;
filp             1138 kernel/trace/trace_events.c system_enable_write(struct file *filp, const char __user *ubuf, size_t cnt,
filp             1141 kernel/trace/trace_events.c 	struct trace_subsystem_dir *dir = filp->private_data;
filp             1311 kernel/trace/trace_events.c event_id_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos)
filp             1313 kernel/trace/trace_events.c 	int id = (long)event_file_data(filp);
filp             1326 kernel/trace/trace_events.c event_filter_read(struct file *filp, char __user *ubuf, size_t cnt,
filp             1344 kernel/trace/trace_events.c 	file = event_file_data(filp);
filp             1359 kernel/trace/trace_events.c event_filter_write(struct file *filp, const char __user *ubuf, size_t cnt,
filp             1374 kernel/trace/trace_events.c 	file = event_file_data(filp);
filp             1390 kernel/trace/trace_events.c static int subsystem_open(struct inode *inode, struct file *filp)
filp             1431 kernel/trace/trace_events.c 	ret = tracing_open_generic(inode, filp);
filp             1440 kernel/trace/trace_events.c static int system_tr_open(struct inode *inode, struct file *filp)
filp             1451 kernel/trace/trace_events.c 	ret = tracing_open_generic_tr(inode, filp);
filp             1457 kernel/trace/trace_events.c 	filp->private_data = dir;
filp             1482 kernel/trace/trace_events.c subsystem_filter_read(struct file *filp, char __user *ubuf, size_t cnt,
filp             1485 kernel/trace/trace_events.c 	struct trace_subsystem_dir *dir = filp->private_data;
filp             1509 kernel/trace/trace_events.c subsystem_filter_write(struct file *filp, const char __user *ubuf, size_t cnt,
filp             1512 kernel/trace/trace_events.c 	struct trace_subsystem_dir *dir = filp->private_data;
filp             1534 kernel/trace/trace_events.c show_header(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos)
filp             1536 kernel/trace/trace_events.c 	int (*func)(struct trace_seq *s) = filp->private_data;
filp             1575 kernel/trace/trace_events.c ftrace_event_pid_write(struct file *filp, const char __user *ubuf,
filp             1578 kernel/trace/trace_events.c 	struct seq_file *m = filp->private_data;
filp              292 kernel/trace/trace_events_trigger.c event_trigger_write(struct file *filp, const char __user *ubuf,
filp              295 kernel/trace/trace_events_trigger.c 	return event_trigger_regex_write(filp, ubuf, cnt, ppos);
filp              299 kernel/trace/trace_events_trigger.c event_trigger_open(struct inode *inode, struct file *filp)
filp              302 kernel/trace/trace_events_trigger.c 	return event_trigger_regex_open(inode, filp);
filp             1301 kernel/trace/trace_functions_graph.c graph_depth_write(struct file *filp, const char __user *ubuf, size_t cnt,
filp             1319 kernel/trace/trace_functions_graph.c graph_depth_read(struct file *filp, char __user *ubuf, size_t cnt,
filp              407 kernel/trace/trace_hwlat.c static ssize_t hwlat_read(struct file *filp, char __user *ubuf,
filp              411 kernel/trace/trace_hwlat.c 	u64 *entry = filp->private_data;
filp              444 kernel/trace/trace_hwlat.c hwlat_width_write(struct file *filp, const char __user *ubuf,
filp              483 kernel/trace/trace_hwlat.c hwlat_window_write(struct file *filp, const char __user *ubuf,
filp              133 kernel/trace/trace_mmiotrace.c static ssize_t mmio_read(struct trace_iterator *iter, struct file *filp,
filp              325 kernel/trace/trace_stack.c stack_max_size_read(struct file *filp, char __user *ubuf,
filp              328 kernel/trace/trace_stack.c 	unsigned long *ptr = filp->private_data;
filp              339 kernel/trace/trace_stack.c stack_max_size_write(struct file *filp, const char __user *ubuf,
filp              342 kernel/trace/trace_stack.c 	long *ptr = filp->private_data;
filp             1026 lib/debugobjects.c static int debug_stats_open(struct inode *inode, struct file *filp)
filp             1028 lib/debugobjects.c 	return single_open(filp, debug_stats_show, NULL);
filp              204 lib/error-inject.c static int ei_open(struct inode *inode, struct file *filp)
filp              206 lib/error-inject.c 	return seq_open(filp, &ei_seq_ops);
filp             1987 mm/filemap.c   static void shrink_readahead_size_eio(struct file *filp,
filp             2012 mm/filemap.c   	struct file *filp = iocb->ki_filp;
filp             2013 mm/filemap.c   	struct address_space *mapping = filp->f_mapping;
filp             2015 mm/filemap.c   	struct file_ra_state *ra = &filp->f_ra;
filp             2052 mm/filemap.c   					ra, filp,
filp             2060 mm/filemap.c   					ra, filp, page,
filp             2188 mm/filemap.c   		error = mapping->a_ops->readpage(filp, page);
filp             2213 mm/filemap.c   				shrink_readahead_size_eio(filp, ra);
filp             2258 mm/filemap.c   	file_accessed(filp);
filp              522 mm/huge_memory.c static unsigned long __thp_get_unmapped_area(struct file *filp,
filp              537 mm/huge_memory.c 	ret = current->mm->get_unmapped_area(filp, addr, len_pad,
filp              558 mm/huge_memory.c unsigned long thp_get_unmapped_area(struct file *filp, unsigned long addr,
filp              564 mm/huge_memory.c 	if (!IS_DAX(filp->f_mapping->host) || !IS_ENABLED(CONFIG_FS_DAX_PMD))
filp              567 mm/huge_memory.c 	ret = __thp_get_unmapped_area(filp, addr, len, off, flags, PMD_SIZE);
filp              571 mm/huge_memory.c 	return current->mm->get_unmapped_area(filp, addr, len, pgoff, flags);
filp               53 mm/internal.h  		struct file *filp, pgoff_t offset, unsigned long nr_to_read,
filp               60 mm/internal.h  		struct address_space *mapping, struct file *filp)
filp               62 mm/internal.h  	return __do_page_cache_readahead(mapping, filp,
filp             2101 mm/mmap.c      arch_get_unmapped_area(struct file *filp, unsigned long addr,
filp             2139 mm/mmap.c      arch_get_unmapped_area_topdown(struct file *filp, unsigned long addr,
filp              116 mm/readahead.c static int read_pages(struct address_space *mapping, struct file *filp,
filp              126 mm/readahead.c 		ret = mapping->a_ops->readpages(filp, mapping, pages, nr_pages);
filp              136 mm/readahead.c 			mapping->a_ops->readpage(filp, page);
filp              156 mm/readahead.c 		struct file *filp, pgoff_t offset, unsigned long nr_to_read,
filp              190 mm/readahead.c 				read_pages(mapping, filp, &page_pool, nr_pages,
filp              212 mm/readahead.c 		read_pages(mapping, filp, &page_pool, nr_pages, gfp_mask);
filp              222 mm/readahead.c int force_page_cache_readahead(struct address_space *mapping, struct file *filp,
filp              226 mm/readahead.c 	struct file_ra_state *ra = &filp->f_ra;
filp              243 mm/readahead.c 		__do_page_cache_readahead(mapping, filp, offset, this_chunk, 0);
filp              383 mm/readahead.c 		   struct file_ra_state *ra, struct file *filp,
filp              467 mm/readahead.c 	return __do_page_cache_readahead(mapping, filp, offset, req_size, 0);
filp              492 mm/readahead.c 	return ra_submit(ra, mapping, filp);
filp              510 mm/readahead.c 			       struct file_ra_state *ra, struct file *filp,
filp              521 mm/readahead.c 	if (filp && (filp->f_mode & FMODE_RANDOM)) {
filp              522 mm/readahead.c 		force_page_cache_readahead(mapping, filp, offset, req_size);
filp              527 mm/readahead.c 	ondemand_readahead(mapping, ra, filp, false, offset, req_size);
filp              548 mm/readahead.c 			   struct file_ra_state *ra, struct file *filp,
filp              574 mm/readahead.c 	ondemand_readahead(mapping, ra, filp, true, offset, req_size);
filp              544 net/9p/trans_fd.c p9_pollwait(struct file *filp, wait_queue_head_t *wait_address, poll_table *p)
filp              745 net/bluetooth/rfcomm/tty.c static int rfcomm_tty_open(struct tty_struct *tty, struct file *filp)
filp              755 net/bluetooth/rfcomm/tty.c 	err = tty_port_open(&dev->port, tty, filp);
filp              771 net/bluetooth/rfcomm/tty.c static void rfcomm_tty_close(struct tty_struct *tty, struct file *filp)
filp              778 net/bluetooth/rfcomm/tty.c 	tty_port_close(&dev->port, tty, filp);
filp              915 net/bridge/br_sysfs_br.c static ssize_t brforward_read(struct file *filp, struct kobject *kobj,
filp               63 net/hsr/hsr_debugfs.c hsr_node_table_open(struct inode *inode, struct file *filp)
filp               65 net/hsr/hsr_debugfs.c 	return single_open(filp, hsr_node_table_show, inode->i_private);
filp               66 net/netfilter/xt_owner.c 	const struct file *filp;
filp               79 net/netfilter/xt_owner.c 	filp = sk->sk_socket->file;
filp               80 net/netfilter/xt_owner.c 	if (filp == NULL)
filp               87 net/netfilter/xt_owner.c 		if ((uid_gte(filp->f_cred->fsuid, uid_min) &&
filp               88 net/netfilter/xt_owner.c 		     uid_lte(filp->f_cred->fsuid, uid_max)) ^
filp               97 net/netfilter/xt_owner.c 		struct group_info *gi = filp->f_cred->group_info;
filp               99 net/netfilter/xt_owner.c 		if (gid_gte(filp->f_cred->fsgid, gid_min) &&
filp              100 net/netfilter/xt_owner.c 		    gid_lte(filp->f_cred->fsgid, gid_max))
filp             1152 net/netlink/af_netlink.c struct sock *netlink_getsockbyfilp(struct file *filp)
filp             1154 net/netlink/af_netlink.c 	struct inode *inode = file_inode(filp);
filp              307 net/nfc/nci/uart.c 				      struct file *filp, poll_table *wait)
filp               31 net/qrtr/tun.c static int qrtr_tun_open(struct inode *inode, struct file *filp)
filp               44 net/qrtr/tun.c 	filp->private_data = tun;
filp               51 net/qrtr/tun.c 	struct file *filp = iocb->ki_filp;
filp               52 net/qrtr/tun.c 	struct qrtr_tun *tun = filp->private_data;
filp               57 net/qrtr/tun.c 		if (filp->f_flags & O_NONBLOCK)
filp               77 net/qrtr/tun.c 	struct file *filp = iocb->ki_filp;
filp               78 net/qrtr/tun.c 	struct qrtr_tun *tun = filp->private_data;
filp               98 net/qrtr/tun.c static __poll_t qrtr_tun_poll(struct file *filp, poll_table *wait)
filp              100 net/qrtr/tun.c 	struct qrtr_tun *tun = filp->private_data;
filp              103 net/qrtr/tun.c 	poll_wait(filp, &tun->readq, wait);
filp              111 net/qrtr/tun.c static int qrtr_tun_release(struct inode *inode, struct file *filp)
filp              113 net/qrtr/tun.c 	struct qrtr_tun *tun = filp->private_data;
filp              124 net/socket.c   static int sock_fasync(int fd, struct file *filp, int on);
filp             1266 net/socket.c   static int sock_close(struct inode *inode, struct file *filp)
filp             1283 net/socket.c   static int sock_fasync(int fd, struct file *filp, int on)
filp             1285 net/socket.c   	struct socket *sock = filp->private_data;
filp             1293 net/socket.c   	fasync_helper(fd, filp, on, &wq->fasync_list);
filp              717 net/sunrpc/auth_gss/auth_gss.c gss_pipe_downcall(struct file *filp, const char __user *src, size_t mlen)
filp              722 net/sunrpc/auth_gss/auth_gss.c 	struct rpc_pipe *pipe = RPC_I(file_inode(filp))->pipe;
filp              796 net/sunrpc/cache.c static ssize_t cache_read(struct file *filp, char __user *buf, size_t count,
filp              799 net/sunrpc/cache.c 	struct cache_reader *rp = filp->private_data;
filp              801 net/sunrpc/cache.c 	struct inode *inode = file_inode(filp);
filp              934 net/sunrpc/cache.c static ssize_t cache_write(struct file *filp, const char __user *buf,
filp              938 net/sunrpc/cache.c 	struct address_space *mapping = filp->f_mapping;
filp              939 net/sunrpc/cache.c 	struct inode *inode = file_inode(filp);
filp              954 net/sunrpc/cache.c static __poll_t cache_poll(struct file *filp, poll_table *wait,
filp              958 net/sunrpc/cache.c 	struct cache_reader *rp = filp->private_data;
filp              961 net/sunrpc/cache.c 	poll_wait(filp, &queue_wait, wait);
filp              981 net/sunrpc/cache.c static int cache_ioctl(struct inode *ino, struct file *filp,
filp              986 net/sunrpc/cache.c 	struct cache_reader *rp = filp->private_data;
filp             1010 net/sunrpc/cache.c static int cache_open(struct inode *inode, struct file *filp,
filp             1017 net/sunrpc/cache.c 	nonseekable_open(inode, filp);
filp             1018 net/sunrpc/cache.c 	if (filp->f_mode & FMODE_READ) {
filp             1031 net/sunrpc/cache.c 	if (filp->f_mode & FMODE_WRITE)
filp             1033 net/sunrpc/cache.c 	filp->private_data = rp;
filp             1037 net/sunrpc/cache.c static int cache_release(struct inode *inode, struct file *filp,
filp             1040 net/sunrpc/cache.c 	struct cache_reader *rp = filp->private_data;
filp             1058 net/sunrpc/cache.c 		filp->private_data = NULL;
filp             1062 net/sunrpc/cache.c 	if (filp->f_mode & FMODE_WRITE) {
filp             1528 net/sunrpc/cache.c static ssize_t cache_read_procfs(struct file *filp, char __user *buf,
filp             1531 net/sunrpc/cache.c 	struct cache_detail *cd = PDE_DATA(file_inode(filp));
filp             1533 net/sunrpc/cache.c 	return cache_read(filp, buf, count, ppos, cd);
filp             1536 net/sunrpc/cache.c static ssize_t cache_write_procfs(struct file *filp, const char __user *buf,
filp             1539 net/sunrpc/cache.c 	struct cache_detail *cd = PDE_DATA(file_inode(filp));
filp             1541 net/sunrpc/cache.c 	return cache_write(filp, buf, count, ppos, cd);
filp             1544 net/sunrpc/cache.c static __poll_t cache_poll_procfs(struct file *filp, poll_table *wait)
filp             1546 net/sunrpc/cache.c 	struct cache_detail *cd = PDE_DATA(file_inode(filp));
filp             1548 net/sunrpc/cache.c 	return cache_poll(filp, wait, cd);
filp             1551 net/sunrpc/cache.c static long cache_ioctl_procfs(struct file *filp,
filp             1554 net/sunrpc/cache.c 	struct inode *inode = file_inode(filp);
filp             1557 net/sunrpc/cache.c 	return cache_ioctl(inode, filp, cmd, arg, cd);
filp             1560 net/sunrpc/cache.c static int cache_open_procfs(struct inode *inode, struct file *filp)
filp             1564 net/sunrpc/cache.c 	return cache_open(inode, filp, cd);
filp             1567 net/sunrpc/cache.c static int cache_release_procfs(struct inode *inode, struct file *filp)
filp             1571 net/sunrpc/cache.c 	return cache_release(inode, filp, cd);
filp             1585 net/sunrpc/cache.c static int content_open_procfs(struct inode *inode, struct file *filp)
filp             1589 net/sunrpc/cache.c 	return content_open(inode, filp, cd);
filp             1592 net/sunrpc/cache.c static int content_release_procfs(struct inode *inode, struct file *filp)
filp             1596 net/sunrpc/cache.c 	return content_release(inode, filp, cd);
filp             1606 net/sunrpc/cache.c static int open_flush_procfs(struct inode *inode, struct file *filp)
filp             1610 net/sunrpc/cache.c 	return open_flush(inode, filp, cd);
filp             1613 net/sunrpc/cache.c static int release_flush_procfs(struct inode *inode, struct file *filp)
filp             1617 net/sunrpc/cache.c 	return release_flush(inode, filp, cd);
filp             1620 net/sunrpc/cache.c static ssize_t read_flush_procfs(struct file *filp, char __user *buf,
filp             1623 net/sunrpc/cache.c 	struct cache_detail *cd = PDE_DATA(file_inode(filp));
filp             1625 net/sunrpc/cache.c 	return read_flush(filp, buf, count, ppos, cd);
filp             1628 net/sunrpc/cache.c static ssize_t write_flush_procfs(struct file *filp,
filp             1632 net/sunrpc/cache.c 	struct cache_detail *cd = PDE_DATA(file_inode(filp));
filp             1634 net/sunrpc/cache.c 	return write_flush(filp, buf, count, ppos, cd);
filp             1747 net/sunrpc/cache.c static ssize_t cache_read_pipefs(struct file *filp, char __user *buf,
filp             1750 net/sunrpc/cache.c 	struct cache_detail *cd = RPC_I(file_inode(filp))->private;
filp             1752 net/sunrpc/cache.c 	return cache_read(filp, buf, count, ppos, cd);
filp             1755 net/sunrpc/cache.c static ssize_t cache_write_pipefs(struct file *filp, const char __user *buf,
filp             1758 net/sunrpc/cache.c 	struct cache_detail *cd = RPC_I(file_inode(filp))->private;
filp             1760 net/sunrpc/cache.c 	return cache_write(filp, buf, count, ppos, cd);
filp             1763 net/sunrpc/cache.c static __poll_t cache_poll_pipefs(struct file *filp, poll_table *wait)
filp             1765 net/sunrpc/cache.c 	struct cache_detail *cd = RPC_I(file_inode(filp))->private;
filp             1767 net/sunrpc/cache.c 	return cache_poll(filp, wait, cd);
filp             1770 net/sunrpc/cache.c static long cache_ioctl_pipefs(struct file *filp,
filp             1773 net/sunrpc/cache.c 	struct inode *inode = file_inode(filp);
filp             1776 net/sunrpc/cache.c 	return cache_ioctl(inode, filp, cmd, arg, cd);
filp             1779 net/sunrpc/cache.c static int cache_open_pipefs(struct inode *inode, struct file *filp)
filp             1783 net/sunrpc/cache.c 	return cache_open(inode, filp, cd);
filp             1786 net/sunrpc/cache.c static int cache_release_pipefs(struct inode *inode, struct file *filp)
filp             1790 net/sunrpc/cache.c 	return cache_release(inode, filp, cd);
filp             1804 net/sunrpc/cache.c static int content_open_pipefs(struct inode *inode, struct file *filp)
filp             1808 net/sunrpc/cache.c 	return content_open(inode, filp, cd);
filp             1811 net/sunrpc/cache.c static int content_release_pipefs(struct inode *inode, struct file *filp)
filp             1815 net/sunrpc/cache.c 	return content_release(inode, filp, cd);
filp             1825 net/sunrpc/cache.c static int open_flush_pipefs(struct inode *inode, struct file *filp)
filp             1829 net/sunrpc/cache.c 	return open_flush(inode, filp, cd);
filp             1832 net/sunrpc/cache.c static int release_flush_pipefs(struct inode *inode, struct file *filp)
filp             1836 net/sunrpc/cache.c 	return release_flush(inode, filp, cd);
filp             1839 net/sunrpc/cache.c static ssize_t read_flush_pipefs(struct file *filp, char __user *buf,
filp             1842 net/sunrpc/cache.c 	struct cache_detail *cd = RPC_I(file_inode(filp))->private;
filp             1844 net/sunrpc/cache.c 	return read_flush(filp, buf, count, ppos, cd);
filp             1847 net/sunrpc/cache.c static ssize_t write_flush_pipefs(struct file *filp,
filp             1851 net/sunrpc/cache.c 	struct cache_detail *cd = RPC_I(file_inode(filp))->private;
filp             1853 net/sunrpc/cache.c 	return write_flush(filp, buf, count, ppos, cd);
filp               86 net/sunrpc/debugfs.c static int tasks_open(struct inode *inode, struct file *filp)
filp               88 net/sunrpc/debugfs.c 	int ret = seq_open(filp, &tasks_seq_operations);
filp               90 net/sunrpc/debugfs.c 		struct seq_file *seq = filp->private_data;
filp               94 net/sunrpc/debugfs.c 			seq_release(inode, filp);
filp              103 net/sunrpc/debugfs.c tasks_release(struct inode *inode, struct file *filp)
filp              105 net/sunrpc/debugfs.c 	struct seq_file *seq = filp->private_data;
filp              109 net/sunrpc/debugfs.c 	return seq_release(inode, filp);
filp              186 net/sunrpc/debugfs.c xprt_info_open(struct inode *inode, struct file *filp)
filp              191 net/sunrpc/debugfs.c 	ret = single_open(filp, xprt_info_show, xprt);
filp              195 net/sunrpc/debugfs.c 			single_release(inode, filp);
filp              203 net/sunrpc/debugfs.c xprt_info_release(struct inode *inode, struct file *filp)
filp              208 net/sunrpc/debugfs.c 	return single_release(inode, filp);
filp              250 net/sunrpc/debugfs.c fault_open(struct inode *inode, struct file *filp)
filp              252 net/sunrpc/debugfs.c 	filp->private_data = kmalloc(128, GFP_KERNEL);
filp              253 net/sunrpc/debugfs.c 	if (!filp->private_data)
filp              259 net/sunrpc/debugfs.c fault_release(struct inode *inode, struct file *filp)
filp              261 net/sunrpc/debugfs.c 	kfree(filp->private_data);
filp              266 net/sunrpc/debugfs.c fault_disconnect_read(struct file *filp, char __user *user_buf,
filp              269 net/sunrpc/debugfs.c 	char *buffer = (char *)filp->private_data;
filp              277 net/sunrpc/debugfs.c fault_disconnect_write(struct file *filp, const char __user *user_buf,
filp              104 net/sunrpc/rpc_pipe.c ssize_t rpc_pipe_generic_upcall(struct file *filp, struct rpc_pipe_msg *msg,
filp              213 net/sunrpc/rpc_pipe.c rpc_pipe_open(struct inode *inode, struct file *filp)
filp              229 net/sunrpc/rpc_pipe.c 	if (filp->f_mode & FMODE_READ)
filp              231 net/sunrpc/rpc_pipe.c 	if (filp->f_mode & FMODE_WRITE)
filp              240 net/sunrpc/rpc_pipe.c rpc_pipe_release(struct inode *inode, struct file *filp)
filp              250 net/sunrpc/rpc_pipe.c 	msg = filp->private_data;
filp              258 net/sunrpc/rpc_pipe.c 	if (filp->f_mode & FMODE_WRITE)
filp              260 net/sunrpc/rpc_pipe.c 	if (filp->f_mode & FMODE_READ) {
filp              281 net/sunrpc/rpc_pipe.c rpc_pipe_read(struct file *filp, char __user *buf, size_t len, loff_t *offset)
filp              283 net/sunrpc/rpc_pipe.c 	struct inode *inode = file_inode(filp);
filp              294 net/sunrpc/rpc_pipe.c 	msg = filp->private_data;
filp              303 net/sunrpc/rpc_pipe.c 			filp->private_data = msg;
filp              311 net/sunrpc/rpc_pipe.c 	res = pipe->ops->upcall(filp, msg, buf, len);
filp              313 net/sunrpc/rpc_pipe.c 		filp->private_data = NULL;
filp              325 net/sunrpc/rpc_pipe.c rpc_pipe_write(struct file *filp, const char __user *buf, size_t len, loff_t *offset)
filp              327 net/sunrpc/rpc_pipe.c 	struct inode *inode = file_inode(filp);
filp              333 net/sunrpc/rpc_pipe.c 		res = RPC_I(inode)->pipe->ops->downcall(filp, buf, len);
filp              339 net/sunrpc/rpc_pipe.c rpc_pipe_poll(struct file *filp, struct poll_table_struct *wait)
filp              341 net/sunrpc/rpc_pipe.c 	struct inode *inode = file_inode(filp);
filp              345 net/sunrpc/rpc_pipe.c 	poll_wait(filp, &rpci->waitq, wait);
filp              350 net/sunrpc/rpc_pipe.c 	else if (filp->private_data || !list_empty(&rpci->pipe->pipe))
filp              357 net/sunrpc/rpc_pipe.c rpc_pipe_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
filp              359 net/sunrpc/rpc_pipe.c 	struct inode *inode = file_inode(filp);
filp              373 net/sunrpc/rpc_pipe.c 		if (filp->private_data) {
filp              375 net/sunrpc/rpc_pipe.c 			msg = filp->private_data;
filp             1252 net/sunrpc/rpc_pipe.c dummy_downcall(struct file *filp, const char __user *src, size_t len)
filp             1277 net/sunrpc/xprtsock.c 	struct file *filp = transport->file;
filp             1304 net/sunrpc/xprtsock.c 	fput(filp);
filp             1900 net/sunrpc/xprtsock.c 	struct file *filp;
filp             1921 net/sunrpc/xprtsock.c 	filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
filp             1922 net/sunrpc/xprtsock.c 	if (IS_ERR(filp))
filp             1923 net/sunrpc/xprtsock.c 		return ERR_CAST(filp);
filp             1924 net/sunrpc/xprtsock.c 	transport->file = filp;
filp             1971 net/sunrpc/xprtsock.c 	struct file *filp;
filp             1984 net/sunrpc/xprtsock.c 	filp = sock_alloc_file(sock, O_NONBLOCK, NULL);
filp             1985 net/sunrpc/xprtsock.c 	if (IS_ERR(filp)) {
filp             1986 net/sunrpc/xprtsock.c 		status = PTR_ERR(filp);
filp             1989 net/sunrpc/xprtsock.c 	transport->file = filp;
filp               23 net/unix/scm.c struct sock *unix_get_socket(struct file *filp)
filp               26 net/unix/scm.c 	struct inode *inode = file_inode(filp);
filp               29 net/unix/scm.c 	if (S_ISSOCK(inode->i_mode) && !(filp->f_mode & FMODE_PATH)) {
filp               38 net/unix/scm.c 		u_sock = io_uring_get_socket(filp);
filp             1877 net/vmw_vsock/af_vsock.c static long vsock_dev_do_ioctl(struct file *filp,
filp             1897 net/vmw_vsock/af_vsock.c static long vsock_dev_ioctl(struct file *filp,
filp             1900 net/vmw_vsock/af_vsock.c 	return vsock_dev_do_ioctl(filp, cmd, (void __user *)arg);
filp             1904 net/vmw_vsock/af_vsock.c static long vsock_dev_compat_ioctl(struct file *filp,
filp             1907 net/vmw_vsock/af_vsock.c 	return vsock_dev_do_ioctl(filp, cmd, compat_ptr(arg));
filp              318 security/inode.c static ssize_t lsm_read(struct file *filp, char __user *buf, size_t count,
filp               41 security/integrity/evm/evm_secfs.c static ssize_t evm_read_key(struct file *filp, char __user *buf,
filp              128 security/integrity/evm/evm_secfs.c static ssize_t evm_read_xattrs(struct file *filp, char __user *buf,
filp               52 security/integrity/ima/ima_fs.c static ssize_t ima_show_htable_violations(struct file *filp,
filp               64 security/integrity/ima/ima_fs.c static ssize_t ima_show_measurements_count(struct file *filp,
filp              383 security/integrity/ima/ima_fs.c static int ima_open_policy(struct inode *inode, struct file *filp)
filp              385 security/integrity/ima/ima_fs.c 	if (!(filp->f_flags & O_WRONLY)) {
filp              389 security/integrity/ima/ima_fs.c 		if ((filp->f_flags & O_ACCMODE) != O_RDONLY)
filp              393 security/integrity/ima/ima_fs.c 		return seq_open(filp, &ima_policy_seqops);
filp              117 security/lockdown/lockdown.c static ssize_t lockdown_read(struct file *filp, char __user *buf, size_t count,
filp              121 security/selinux/selinuxfs.c static ssize_t sel_read_enforce(struct file *filp, char __user *buf,
filp              124 security/selinux/selinuxfs.c 	struct selinux_fs_info *fsi = file_inode(filp)->i_sb->s_fs_info;
filp              199 security/selinux/selinuxfs.c static ssize_t sel_read_handle_unknown(struct file *filp, char __user *buf,
filp              202 security/selinux/selinuxfs.c 	struct selinux_fs_info *fsi = file_inode(filp)->i_sb->s_fs_info;
filp              206 security/selinux/selinuxfs.c 	ino_t ino = file_inode(filp)->i_ino;
filp              220 security/selinux/selinuxfs.c static int sel_open_handle_status(struct inode *inode, struct file *filp)
filp              222 security/selinux/selinuxfs.c 	struct selinux_fs_info *fsi = file_inode(filp)->i_sb->s_fs_info;
filp              228 security/selinux/selinuxfs.c 	filp->private_data = status;
filp              233 security/selinux/selinuxfs.c static ssize_t sel_read_handle_status(struct file *filp, char __user *buf,
filp              236 security/selinux/selinuxfs.c 	struct page    *status = filp->private_data;
filp              245 security/selinux/selinuxfs.c static int sel_mmap_handle_status(struct file *filp,
filp              248 security/selinux/selinuxfs.c 	struct page    *status = filp->private_data;
filp              327 security/selinux/selinuxfs.c static ssize_t sel_read_policyvers(struct file *filp, char __user *buf,
filp              351 security/selinux/selinuxfs.c static ssize_t sel_read_mls(struct file *filp, char __user *buf,
filp              354 security/selinux/selinuxfs.c 	struct selinux_fs_info *fsi = file_inode(filp)->i_sb->s_fs_info;
filp              373 security/selinux/selinuxfs.c static int sel_open_policy(struct inode *inode, struct file *filp)
filp              380 security/selinux/selinuxfs.c 	BUG_ON(filp->private_data);
filp              411 security/selinux/selinuxfs.c 	filp->private_data = plm;
filp              425 security/selinux/selinuxfs.c static int sel_release_policy(struct inode *inode, struct file *filp)
filp              428 security/selinux/selinuxfs.c 	struct policy_load_memory *plm = filp->private_data;
filp              440 security/selinux/selinuxfs.c static ssize_t sel_read_policy(struct file *filp, char __user *buf,
filp              443 security/selinux/selinuxfs.c 	struct policy_load_memory *plm = filp->private_data;
filp              481 security/selinux/selinuxfs.c static int sel_mmap_policy(struct file *filp, struct vm_area_struct *vma)
filp              628 security/selinux/selinuxfs.c static ssize_t sel_read_checkreqprot(struct file *filp, char __user *buf,
filp              631 security/selinux/selinuxfs.c 	struct selinux_fs_info *fsi = file_inode(filp)->i_sb->s_fs_info;
filp             1415 security/selinux/selinuxfs.c static ssize_t sel_read_avc_cache_threshold(struct file *filp, char __user *buf,
filp             1418 security/selinux/selinuxfs.c 	struct selinux_fs_info *fsi = file_inode(filp)->i_sb->s_fs_info;
filp             1469 security/selinux/selinuxfs.c static ssize_t sel_read_avc_hash_stats(struct file *filp, char __user *buf,
filp             1472 security/selinux/selinuxfs.c 	struct selinux_fs_info *fsi = file_inode(filp)->i_sb->s_fs_info;
filp             1559 security/smack/smackfs.c static ssize_t smk_read_doi(struct file *filp, char __user *buf,
filp             1625 security/smack/smackfs.c static ssize_t smk_read_direct(struct file *filp, char __user *buf,
filp             1703 security/smack/smackfs.c static ssize_t smk_read_mapped(struct file *filp, char __user *buf,
filp             1781 security/smack/smackfs.c static ssize_t smk_read_ambient(struct file *filp, char __user *buf,
filp             2047 security/smack/smackfs.c static ssize_t smk_read_unconfined(struct file *filp, char __user *buf,
filp             2131 security/smack/smackfs.c static ssize_t smk_read_logging(struct file *filp, char __user *buf,
filp             2599 security/smack/smackfs.c static ssize_t smk_read_syslog(struct file *filp, char __user *buf,
filp             2774 security/smack/smackfs.c static ssize_t smk_read_ptrace(struct file *filp, char __user *buf,
filp              223 sound/usb/usx2y/us122l.c 				 struct file *filp, struct vm_area_struct *area)
filp               47 sound/usb/usx2y/usX2Yhwdep.c static int snd_us428ctls_mmap(struct snd_hwdep * hw, struct file *filp, struct vm_area_struct *area)
filp              665 sound/usb/usx2y/usx2yhwdeppcm.c static int snd_usX2Y_hwdep_pcm_mmap(struct snd_hwdep * hw, struct file *filp, struct vm_area_struct *area)
filp              234 virt/kvm/arm/arm.c long kvm_arch_dev_ioctl(struct file *filp,
filp             1105 virt/kvm/arm/arm.c long kvm_arch_vcpu_ioctl(struct file *filp,
filp             1108 virt/kvm/arm/arm.c 	struct kvm_vcpu *vcpu = filp->private_data;
filp             1297 virt/kvm/arm/arm.c long kvm_arch_vm_ioctl(struct file *filp,
filp             1300 virt/kvm/arm/arm.c 	struct kvm *kvm = filp->private_data;
filp              848 virt/kvm/kvm_main.c static int kvm_vm_release(struct inode *inode, struct file *filp)
filp              850 virt/kvm/kvm_main.c 	struct kvm *kvm = filp->private_data;
filp             2743 virt/kvm/kvm_main.c static int kvm_vcpu_release(struct inode *inode, struct file *filp)
filp             2745 virt/kvm/kvm_main.c 	struct kvm_vcpu *vcpu = filp->private_data;
filp             2873 virt/kvm/kvm_main.c static long kvm_vcpu_ioctl(struct file *filp,
filp             2876 virt/kvm/kvm_main.c 	struct kvm_vcpu *vcpu = filp->private_data;
filp             2892 virt/kvm/kvm_main.c 	r = kvm_arch_vcpu_async_ioctl(filp, ioctl, arg);
filp             3072 virt/kvm/kvm_main.c 		r = kvm_arch_vcpu_ioctl(filp, ioctl, arg);
filp             3082 virt/kvm/kvm_main.c static long kvm_vcpu_compat_ioctl(struct file *filp,
filp             3085 virt/kvm/kvm_main.c 	struct kvm_vcpu *vcpu = filp->private_data;
filp             3115 virt/kvm/kvm_main.c 		r = kvm_vcpu_ioctl(filp, ioctl, arg);
filp             3123 virt/kvm/kvm_main.c static int kvm_device_mmap(struct file *filp, struct vm_area_struct *vma)
filp             3125 virt/kvm/kvm_main.c 	struct kvm_device *dev = filp->private_data;
filp             3149 virt/kvm/kvm_main.c static long kvm_device_ioctl(struct file *filp, unsigned int ioctl,
filp             3152 virt/kvm/kvm_main.c 	struct kvm_device *dev = filp->private_data;
filp             3172 virt/kvm/kvm_main.c static int kvm_device_release(struct inode *inode, struct file *filp)
filp             3174 virt/kvm/kvm_main.c 	struct kvm_device *dev = filp->private_data;
filp             3195 virt/kvm/kvm_main.c struct kvm_device *kvm_device_from_filp(struct file *filp)
filp             3197 virt/kvm/kvm_main.c 	if (filp->f_op != &kvm_device_fops)
filp             3200 virt/kvm/kvm_main.c 	return filp->private_data;
filp             3348 virt/kvm/kvm_main.c static long kvm_vm_ioctl(struct file *filp,
filp             3351 virt/kvm/kvm_main.c 	struct kvm *kvm = filp->private_data;
filp             3531 virt/kvm/kvm_main.c 		r = kvm_arch_vm_ioctl(filp, ioctl, arg);
filp             3547 virt/kvm/kvm_main.c static long kvm_vm_compat_ioctl(struct file *filp,
filp             3550 virt/kvm/kvm_main.c 	struct kvm *kvm = filp->private_data;
filp             3572 virt/kvm/kvm_main.c 		r = kvm_vm_ioctl(filp, ioctl, arg);
filp             3631 virt/kvm/kvm_main.c static long kvm_dev_ioctl(struct file *filp,
filp             3665 virt/kvm/kvm_main.c 		return kvm_arch_dev_ioctl(filp, ioctl, arg);