/arch/s390/mm/ |
D | mmap.c | 84 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/ |
D | elf-fdpic.c | 59 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/ |
D | sys_parisc.c | 41 #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/ |
D | random.c | 34 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()
|
D | line.h | 59 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/ |
D | mmap.c | 54 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/ |
D | syscalls.c | 33 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()
|
D | inode.c | 302 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/ |
D | sys_x86_64.c | 124 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/ |
D | mmap.c | 33 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/ |
D | debug_pagetables.c | 12 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/ |
D | gio.c | 32 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/ |
D | mmap.c | 55 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/ |
D | sys_bfin.c | 45 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/ |
D | mmap.c | 31 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/ |
D | inode.c | 115 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/ |
D | scom.c | 106 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()
|
D | mv64x60_pci.c | 28 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/ |
D | sb_tbprof.c | 265 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/ |
D | dtl.c | 243 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/ |
D | pci_debug.c | 150 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()
|
D | pci_sysfs.c | 70 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/ |
D | opal-lpc.c | 189 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/ |
D | nfcon.c | 64 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/ |
D | gpio.c | 50 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()
|