Home
last modified time | relevance | path

Searched refs:filp (Results 1 – 25 of 74) sorted by relevance

123

/arch/x86/mm/
Ddebug_pagetables.c12 static int ptdump_open(struct inode *inode, struct file *filp) in ptdump_open() argument
14 return single_open(filp, ptdump_show, NULL); in ptdump_open()
35 static int ptdump_open_curknl(struct inode *inode, struct file *filp) in ptdump_open_curknl() argument
37 return single_open(filp, ptdump_show_curknl, NULL); in ptdump_open_curknl()
61 static int ptdump_open_curusr(struct inode *inode, struct file *filp) in ptdump_open_curusr() argument
63 return single_open(filp, ptdump_show_curusr, NULL); in ptdump_open_curusr()
/arch/frv/mm/
Delf-fdpic.c60 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsigned long len, in arch_get_unmapped_area() argument
104 len, filp ? filp->f_path.dentry->d_name.name : ""); in arch_get_unmapped_area()
111 len, addr, filp ? filp->f_path.dentry->d_name.name : ""); in arch_get_unmapped_area()
/arch/parisc/kernel/
Dsys_parisc.c43 #define GET_LAST_MMAP(filp) \ argument
44 (filp ? ((unsigned long) filp->f_mapping) >> 8 : 0UL)
45 #define SET_LAST_MMAP(filp, val) \ argument
89 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
102 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area()
104 last_mmap = GET_LAST_MMAP(filp); in arch_get_unmapped_area()
137 SET_LAST_MMAP(filp, addr - (pgoff << PAGE_SHIFT)); in arch_get_unmapped_area()
143 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument
163 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
165 last_mmap = GET_LAST_MMAP(filp); in arch_get_unmapped_area_topdown()
[all …]
/arch/um/drivers/
Drandom.c34 static int rng_dev_open (struct inode *inode, struct file *filp) in rng_dev_open() argument
37 if ((filp->f_mode & FMODE_READ) == 0) in rng_dev_open()
39 if ((filp->f_mode & FMODE_WRITE) != 0) in rng_dev_open()
47 static ssize_t rng_dev_read (struct file *filp, char __user *buf, size_t size, in rng_dev_read() argument
71 if (filp->f_flags & O_NONBLOCK) in rng_dev_read()
Dline.h59 extern void line_close(struct tty_struct *tty, struct file * filp);
60 extern int line_open(struct tty_struct *tty, struct file *filp);
/arch/mips/mm/
Dmmap.c56 static unsigned long arch_get_unmapped_area_common(struct file *filp, in arch_get_unmapped_area_common() argument
85 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_common()
128 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr0, in arch_get_unmapped_area() argument
131 return arch_get_unmapped_area_common(filp, in arch_get_unmapped_area()
139 unsigned long arch_get_unmapped_area_topdown(struct file *filp, in arch_get_unmapped_area_topdown() argument
143 return arch_get_unmapped_area_common(filp, in arch_get_unmapped_area_topdown()
/arch/powerpc/platforms/cell/spufs/
Dsyscalls.c34 static long do_spu_run(struct file *filp, in do_spu_run() argument
48 if (filp->f_op != &spufs_context_fops) in do_spu_run()
51 i = SPUFS_I(file_inode(filp)); in do_spu_run()
Dinode.c302 struct file *filp; in spufs_context_open() local
308 filp = dentry_open(path, O_RDONLY, current_cred()); in spufs_context_open()
309 if (IS_ERR(filp)) { in spufs_context_open()
311 return PTR_ERR(filp); in spufs_context_open()
314 filp->f_op = &spufs_context_fops; in spufs_context_open()
315 fd_install(ret, filp); in spufs_context_open()
321 struct file *filp) in spufs_assert_affinity() argument
346 if (!filp || filp->f_op != &spufs_context_fops) in spufs_assert_affinity()
350 SPUFS_I(file_inode(filp))->i_ctx); in spufs_assert_affinity()
521 struct file *filp; in spufs_gang_open() local
[all …]
/arch/sh/mm/
Dmmap.c34 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
56 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area()
81 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument
105 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
/arch/x86/kernel/
Dsys_x86_64.c132 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
166 if (filp) { in arch_get_unmapped_area()
174 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument
223 if (filp) { in arch_get_unmapped_area_topdown()
239 return arch_get_unmapped_area(filp, addr0, len, pgoff, flags); in arch_get_unmapped_area_topdown()
/arch/sh/boards/mach-landisk/
Dgio.c32 static int gio_open(struct inode *inode, struct file *filp) in gio_open() argument
51 static int gio_close(struct inode *inode, struct file *filp) in gio_close() argument
62 static long gio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in gio_ioctl() argument
/arch/s390/mm/
Dmmap.c86 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
112 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area()
133 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument
163 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
/arch/arm/mm/
Dmmap.c57 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
71 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area()
108 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument
124 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area_topdown()
/arch/s390/hypfs/
Dinode.c117 static int hypfs_open(struct inode *inode, struct file *filp) in hypfs_open() argument
119 char *data = file_inode(filp)->i_private; in hypfs_open()
122 if (filp->f_mode & FMODE_WRITE) { in hypfs_open()
126 if (filp->f_mode & FMODE_READ) { in hypfs_open()
134 filp->private_data = kstrdup(data, GFP_KERNEL); in hypfs_open()
135 if (!filp->private_data) { in hypfs_open()
141 return nonseekable_open(inode, filp); in hypfs_open()
204 static int hypfs_release(struct inode *inode, struct file *filp) in hypfs_release() argument
206 kfree(filp->private_data); in hypfs_release()
/arch/blackfin/kernel/
Dsys_bfin.c45 unsigned long get_fb_unmapped_area(struct file *filp, unsigned long orig_addr, in get_fb_unmapped_area() argument
48 struct fb_info *info = filp->private_data; in get_fb_unmapped_area()
/arch/arc/mm/
Dmmap.c32 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
45 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area()
/arch/powerpc/sysdev/
Dscom.c105 static ssize_t scom_debug_read(struct file *filp, char __user *ubuf, in scom_debug_read() argument
108 struct scom_debug_entry *ent = filp->private_data; in scom_debug_read()
142 static ssize_t scom_debug_write(struct file* filp, const char __user *ubuf, in scom_debug_write() argument
145 struct scom_debug_entry *ent = filp->private_data; in scom_debug_write()
Dmv64x60_pci.c28 static ssize_t mv64x60_hs_reg_read(struct file *filp, struct kobject *kobj, in mv64x60_hs_reg_read() argument
49 static ssize_t mv64x60_hs_reg_write(struct file *filp, struct kobject *kobj, in mv64x60_hs_reg_write() argument
/arch/powerpc/platforms/powernv/
Dmemtrace.c42 static ssize_t memtrace_read(struct file *filp, char __user *ubuf, in memtrace_read() argument
45 struct memtrace_entry *ent = filp->private_data; in memtrace_read()
60 static int memtrace_mmap(struct file *filp, struct vm_area_struct *vma) in memtrace_mmap() argument
63 struct memtrace_entry *dev = filp->private_data; in memtrace_mmap()
Dopal-lpc.c188 static ssize_t lpc_debug_read(struct file *filp, char __user *ubuf, in lpc_debug_read() argument
191 struct lpc_debugfs_entry *lpc = filp->private_data; in lpc_debug_read()
279 static ssize_t lpc_debug_write(struct file *filp, const char __user *ubuf, in lpc_debug_write() argument
282 struct lpc_debugfs_entry *lpc = filp->private_data; in lpc_debug_write()
/arch/mips/sibyte/common/
Dsb_tbprof.c265 static int sbprof_zbprof_start(struct file *filp) in sbprof_zbprof_start() argument
276 filp->f_pos = 0; in sbprof_zbprof_start()
401 static int sbprof_tb_open(struct inode *inode, struct file *filp) in sbprof_tb_open() argument
430 static int sbprof_tb_release(struct inode *inode, struct file *filp) in sbprof_tb_release() argument
452 static ssize_t sbprof_tb_read(struct file *filp, char *buf, in sbprof_tb_read() argument
503 static long sbprof_tb_ioctl(struct file *filp, in sbprof_tb_ioctl() argument
512 err = sbprof_zbprof_start(filp); in sbprof_tb_ioctl()
/arch/powerpc/platforms/pseries/
Ddtl.c242 static int dtl_file_open(struct inode *inode, struct file *filp) in dtl_file_open() argument
251 filp->private_data = dtl; in dtl_file_open()
255 static int dtl_file_release(struct inode *inode, struct file *filp) in dtl_file_release() argument
262 static ssize_t dtl_file_read(struct file *filp, char __user *buf, size_t len, in dtl_file_read() argument
272 dtl = filp->private_data; in dtl_file_read()
/arch/s390/pci/
Dpci_debug.c150 static int pci_perf_seq_open(struct inode *inode, struct file *filp) in pci_perf_seq_open() argument
152 return single_open(filp, pci_perf_show, in pci_perf_seq_open()
153 file_inode(filp)->i_private); in pci_perf_seq_open()
/arch/powerpc/mm/
Dmmap.c103 radix__arch_get_unmapped_area(struct file *filp, unsigned long addr, in radix__arch_get_unmapped_area() argument
149 radix__arch_get_unmapped_area_topdown(struct file *filp, in radix__arch_get_unmapped_area_topdown() argument
205 return radix__arch_get_unmapped_area(filp, addr0, len, pgoff, flags); in radix__arch_get_unmapped_area_topdown()
/arch/m68k/emu/
Dnfcon.c64 static int nfcon_tty_open(struct tty_struct *tty, struct file *filp) in nfcon_tty_open() argument
69 static void nfcon_tty_close(struct tty_struct *tty, struct file *filp) in nfcon_tty_close() argument

123