Home
last modified time | relevance | path

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

123

/arch/s390/mm/
Dmmap.c84 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
109 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area()
118 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument
147 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
183 s390_get_unmapped_area(struct file *filp, unsigned long addr, in s390_get_unmapped_area() argument
190 area = arch_get_unmapped_area(filp, addr, len, pgoff, flags); in s390_get_unmapped_area()
198 area = arch_get_unmapped_area(filp, addr, len, pgoff, flags); in s390_get_unmapped_area()
204 s390_get_unmapped_area_topdown(struct file *filp, const unsigned long addr, in s390_get_unmapped_area_topdown() argument
212 area = arch_get_unmapped_area_topdown(filp, addr, len, pgoff, flags); in s390_get_unmapped_area_topdown()
220 area = arch_get_unmapped_area_topdown(filp, addr, len, in s390_get_unmapped_area_topdown()
/arch/frv/mm/
Delf-fdpic.c59 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsigned long len, in arch_get_unmapped_area() argument
103 len, filp ? filp->f_path.dentry->d_name.name : ""); in arch_get_unmapped_area()
110 len, addr, filp ? filp->f_path.dentry->d_name.name : ""); in arch_get_unmapped_area()
/arch/parisc/kernel/
Dsys_parisc.c41 #define GET_LAST_MMAP(filp) \ argument
42 (filp ? ((unsigned long) filp->f_mapping) >> 8 : 0UL)
43 #define SET_LAST_MMAP(filp, val) \ argument
87 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
100 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area()
102 last_mmap = GET_LAST_MMAP(filp); in arch_get_unmapped_area()
135 SET_LAST_MMAP(filp, addr - (pgoff << PAGE_SHIFT)); in arch_get_unmapped_area()
141 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument
161 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
163 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.c54 static unsigned long arch_get_unmapped_area_common(struct file *filp, in arch_get_unmapped_area_common() argument
83 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_common()
126 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr0, in arch_get_unmapped_area() argument
129 return arch_get_unmapped_area_common(filp, in arch_get_unmapped_area()
137 unsigned long arch_get_unmapped_area_topdown(struct file *filp, in arch_get_unmapped_area_topdown() argument
141 return arch_get_unmapped_area_common(filp, in arch_get_unmapped_area_topdown()
/arch/powerpc/platforms/cell/spufs/
Dsyscalls.c33 static long do_spu_run(struct file *filp, in do_spu_run() argument
47 if (filp->f_op != &spufs_context_fops) in do_spu_run()
50 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/x86/kernel/
Dsys_x86_64.c124 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
154 if (filp) { in arch_get_unmapped_area()
162 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument
197 if (filp) { in arch_get_unmapped_area_topdown()
213 return arch_get_unmapped_area(filp, addr0, len, pgoff, flags); in arch_get_unmapped_area_topdown()
/arch/sh/mm/
Dmmap.c33 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
55 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area()
80 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument
104 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
/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()
/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/arm/mm/
Dmmap.c55 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
69 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area()
106 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument
122 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area_topdown()
/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.c31 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
44 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area()
/arch/s390/hypfs/
Dinode.c115 static int hypfs_open(struct inode *inode, struct file *filp) in hypfs_open() argument
117 char *data = file_inode(filp)->i_private; in hypfs_open()
120 if (filp->f_mode & FMODE_WRITE) { in hypfs_open()
124 if (filp->f_mode & FMODE_READ) { in hypfs_open()
132 filp->private_data = kstrdup(data, GFP_KERNEL); in hypfs_open()
133 if (!filp->private_data) { in hypfs_open()
139 return nonseekable_open(inode, filp); in hypfs_open()
202 static int hypfs_release(struct inode *inode, struct file *filp) in hypfs_release() argument
204 kfree(filp->private_data); in hypfs_release()
/arch/powerpc/sysdev/
Dscom.c106 static ssize_t scom_debug_read(struct file *filp, char __user *ubuf, in scom_debug_read() argument
109 struct scom_debug_entry *ent = filp->private_data; in scom_debug_read()
143 static ssize_t scom_debug_write(struct file* filp, const char __user *ubuf, in scom_debug_write() argument
146 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/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.c243 static int dtl_file_open(struct inode *inode, struct file *filp) in dtl_file_open() argument
252 filp->private_data = dtl; in dtl_file_open()
256 static int dtl_file_release(struct inode *inode, struct file *filp) in dtl_file_release() argument
263 static ssize_t dtl_file_read(struct file *filp, char __user *buf, size_t len, in dtl_file_read() argument
273 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()
Dpci_sysfs.c70 static ssize_t util_string_read(struct file *filp, struct kobject *kobj, in util_string_read() argument
83 static ssize_t report_error_write(struct file *filp, struct kobject *kobj, in report_error_write() argument
/arch/powerpc/platforms/powernv/
Dopal-lpc.c189 static ssize_t lpc_debug_read(struct file *filp, char __user *ubuf, in lpc_debug_read() argument
192 struct lpc_debugfs_entry *lpc = filp->private_data; in lpc_debug_read()
280 static ssize_t lpc_debug_write(struct file *filp, const char __user *ubuf, in lpc_debug_write() argument
283 struct lpc_debugfs_entry *lpc = filp->private_data; in lpc_debug_write()
/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
/arch/cris/arch-v10/drivers/
Dgpio.c50 static int gpio_open(struct inode *inode, struct file *filp);
51 static int gpio_release(struct inode *inode, struct file *filp);
52 static unsigned int gpio_poll(struct file *filp, struct poll_table_struct *wait);
310 gpio_open(struct inode *inode, struct file *filp) in gpio_open() argument
350 filp->private_data = priv; in gpio_open()
362 gpio_release(struct inode *inode, struct file *filp) in gpio_release() argument
371 todel = filp->private_data; in gpio_release()

123