/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 | 29 #define GET_LAST_MMAP(filp) \ argument 30 (filp ? ((unsigned long) filp->f_mapping) >> 8 : 0UL) 31 #define SET_LAST_MMAP(filp, val) \ argument 82 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument 95 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area() 97 last_mmap = GET_LAST_MMAP(filp); in arch_get_unmapped_area() 130 SET_LAST_MMAP(filp, addr - (pgoff << PAGE_SHIFT)); in arch_get_unmapped_area() 136 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument 151 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown() 153 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/um/drivers/ |
D | random.c | 35 static int rng_dev_open (struct inode *inode, struct file *filp) in rng_dev_open() argument 38 if ((filp->f_mode & FMODE_READ) == 0) in rng_dev_open() 40 if ((filp->f_mode & FMODE_WRITE) != 0) in rng_dev_open() 48 static ssize_t rng_dev_read (struct file *filp, char __user *buf, size_t size, in rng_dev_read() argument 72 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/powerpc/platforms/cell/spufs/ |
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()
|
D | inode.c | 284 struct file *filp; in spufs_context_open() local 290 filp = dentry_open(path, O_RDONLY, current_cred()); in spufs_context_open() 291 if (IS_ERR(filp)) { in spufs_context_open() 293 return PTR_ERR(filp); in spufs_context_open() 296 filp->f_op = &spufs_context_fops; in spufs_context_open() 297 fd_install(ret, filp); in spufs_context_open() 303 struct file *filp) in spufs_assert_affinity() argument 328 if (!filp || filp->f_op != &spufs_context_fops) in spufs_assert_affinity() 332 SPUFS_I(file_inode(filp))->i_ctx); in spufs_assert_affinity() 503 struct file *filp; in spufs_gang_open() local [all …]
|
/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/x86/kernel/ |
D | sys_x86_64.c | 132 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 228 if (filp) { in arch_get_unmapped_area_topdown() 244 return arch_get_unmapped_area(filp, addr0, len, pgoff, flags); 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/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/mm/ |
D | mmap.c | 76 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() 123 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument 153 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
|
/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/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/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/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 | 80 static ssize_t util_string_read(struct file *filp, struct kobject *kobj, in util_string_read() argument 93 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/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
|