/arch/mips/mm/ |
D | mmap.c | 29 static unsigned long arch_get_unmapped_area_common(struct file *filp, in arch_get_unmapped_area_common() argument 58 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_common() 101 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr0, in arch_get_unmapped_area() argument 104 return arch_get_unmapped_area_common(filp, in arch_get_unmapped_area() 112 unsigned long arch_get_unmapped_area_topdown(struct file *filp, in arch_get_unmapped_area_topdown() argument 116 return arch_get_unmapped_area_common(filp, in arch_get_unmapped_area_topdown()
|
/arch/parisc/kernel/ |
D | sys_parisc.c | 30 #define GET_LAST_MMAP(filp) \ argument 31 (filp ? ((unsigned long) filp->f_mapping) >> 8 : 0UL) 32 #define SET_LAST_MMAP(filp, val) \ argument 83 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument 96 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area() 98 last_mmap = GET_LAST_MMAP(filp); in arch_get_unmapped_area() 131 SET_LAST_MMAP(filp, addr - (pgoff << PAGE_SHIFT)); in arch_get_unmapped_area() 137 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument 152 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown() 154 last_mmap = GET_LAST_MMAP(filp); in arch_get_unmapped_area_topdown() [all …]
|
D | pdc_cons.c | 84 static int pdc_console_tty_open(struct tty_struct *tty, struct file *filp) in pdc_console_tty_open() argument 92 static void pdc_console_tty_close(struct tty_struct *tty, struct file *filp) in pdc_console_tty_close() argument
|
/arch/powerpc/platforms/cell/spufs/ |
D | inode.c | 282 struct file *filp; in spufs_context_open() local 288 filp = dentry_open(path, O_RDONLY, current_cred()); in spufs_context_open() 289 if (IS_ERR(filp)) { in spufs_context_open() 291 return PTR_ERR(filp); in spufs_context_open() 294 filp->f_op = &spufs_context_fops; in spufs_context_open() 295 fd_install(ret, filp); in spufs_context_open() 301 struct file *filp) in spufs_assert_affinity() argument 326 if (!filp || filp->f_op != &spufs_context_fops) in spufs_assert_affinity() 330 SPUFS_I(file_inode(filp))->i_ctx); in spufs_assert_affinity() 501 struct file *filp; in spufs_gang_open() local [all …]
|
D | syscalls.c | 34 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()
|
/arch/x86/kernel/ |
D | sys_x86_64.c | 127 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument 157 if (filp) { in arch_get_unmapped_area() 165 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument 215 if (filp) { in arch_get_unmapped_area_topdown() 231 return arch_get_unmapped_area(filp, addr0, len, pgoff, flags); in arch_get_unmapped_area_topdown()
|
/arch/sh/mm/ |
D | mmap.c | 34 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/arm/mm/ |
D | mmap.c | 30 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() 81 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument 97 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area_topdown()
|
/arch/sh/boards/mach-landisk/ |
D | gio.c | 28 static int gio_open(struct inode *inode, struct file *filp) in gio_open() argument 47 static int gio_close(struct inode *inode, struct file *filp) in gio_close() argument 58 static long gio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in gio_ioctl() argument
|
/arch/s390/mm/ |
D | mmap.c | 74 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() 113 unsigned long arch_get_unmapped_area_topdown(struct file *filp, unsigned long addr, in arch_get_unmapped_area_topdown() argument 141 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
|
/arch/powerpc/platforms/powernv/ |
D | opal-xscom.c | 87 static ssize_t scom_debug_read(struct file *filp, char __user *ubuf, in scom_debug_read() argument 90 struct scom_debug_entry *ent = filp->private_data; in scom_debug_read() 118 static ssize_t scom_debug_write(struct file *filp, const char __user *ubuf, in scom_debug_write() argument 121 struct scom_debug_entry *ent = filp->private_data; in scom_debug_write()
|
D | opal-lpc.c | 184 static ssize_t lpc_debug_read(struct file *filp, char __user *ubuf, in lpc_debug_read() argument 187 struct lpc_debugfs_entry *lpc = filp->private_data; in lpc_debug_read() 275 static ssize_t lpc_debug_write(struct file *filp, const char __user *ubuf, in lpc_debug_write() argument 278 struct lpc_debugfs_entry *lpc = filp->private_data; in lpc_debug_write()
|
/arch/s390/hypfs/ |
D | inode.c | 117 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/csky/abiv1/ |
D | mmap.c | 25 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument 37 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area()
|
/arch/arc/mm/ |
D | mmap.c | 29 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument 42 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area()
|
/arch/nds32/mm/ |
D | mmap.c | 22 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument 39 do_align = filp || (flags & MAP_SHARED); in arch_get_unmapped_area()
|
/arch/powerpc/platforms/pseries/ |
D | dtl.c | 230 static int dtl_file_open(struct inode *inode, struct file *filp) in dtl_file_open() argument 239 filp->private_data = dtl; in dtl_file_open() 243 static int dtl_file_release(struct inode *inode, struct file *filp) in dtl_file_release() argument 250 static ssize_t dtl_file_read(struct file *filp, char __user *buf, size_t len, in dtl_file_read() argument 260 dtl = filp->private_data; in dtl_file_read()
|
/arch/mips/sibyte/common/ |
D | sb_tbprof.c | 253 static int sbprof_zbprof_start(struct file *filp) in sbprof_zbprof_start() argument 264 filp->f_pos = 0; in sbprof_zbprof_start() 389 static int sbprof_tb_open(struct inode *inode, struct file *filp) in sbprof_tb_open() argument 418 static int sbprof_tb_release(struct inode *inode, struct file *filp) in sbprof_tb_release() argument 440 static ssize_t sbprof_tb_read(struct file *filp, char *buf, in sbprof_tb_read() argument 491 static long sbprof_tb_ioctl(struct file *filp, in sbprof_tb_ioctl() argument 500 err = sbprof_zbprof_start(filp); in sbprof_tb_ioctl()
|
/arch/s390/pci/ |
D | pci_debug.c | 158 static int pci_perf_seq_open(struct inode *inode, struct file *filp) in pci_perf_seq_open() argument 160 return single_open(filp, pci_perf_show, in pci_perf_seq_open() 161 file_inode(filp)->i_private); in pci_perf_seq_open()
|
D | pci_sysfs.c | 102 static ssize_t util_string_read(struct file *filp, struct kobject *kobj, in util_string_read() argument 115 static ssize_t report_error_write(struct file *filp, struct kobject *kobj, in report_error_write() argument
|
/arch/powerpc/mm/ |
D | mmap.c | 90 radix__arch_get_unmapped_area(struct file *filp, unsigned long addr, in radix__arch_get_unmapped_area() argument 131 radix__arch_get_unmapped_area_topdown(struct file *filp, in radix__arch_get_unmapped_area_topdown() argument 182 return radix__arch_get_unmapped_area(filp, addr0, len, pgoff, flags); in radix__arch_get_unmapped_area_topdown()
|
/arch/um/drivers/ |
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/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/xtensa/platforms/iss/ |
D | console.c | 52 static int rs_open(struct tty_struct *tty, struct file * filp) in rs_open() argument 76 static void rs_close(struct tty_struct *tty, struct file * filp) in rs_close() argument
|
/arch/x86/kernel/cpu/resctrl/ |
D | pseudo_lock.c | 1428 static int pseudo_lock_dev_open(struct inode *inode, struct file *filp) in pseudo_lock_dev_open() argument 1440 filp->private_data = rdtgrp; in pseudo_lock_dev_open() 1443 filp->f_mode &= ~(FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE); in pseudo_lock_dev_open() 1450 static int pseudo_lock_dev_release(struct inode *inode, struct file *filp) in pseudo_lock_dev_release() argument 1455 rdtgrp = filp->private_data; in pseudo_lock_dev_release() 1461 filp->private_data = NULL; in pseudo_lock_dev_release() 1477 static int pseudo_lock_dev_mmap(struct file *filp, struct vm_area_struct *vma) in pseudo_lock_dev_mmap() argument 1488 rdtgrp = filp->private_data; in pseudo_lock_dev_mmap()
|