/arch/powerpc/boot/dtc-src/ |
D | srcpos.c | 29 static int dtc_open_one(struct dtc_file *file, in dtc_open_one() argument 45 file->file = fopen(fullname, "r"); in dtc_open_one() 46 if (!file->file) { in dtc_open_one() 51 file->name = fullname; in dtc_open_one() 61 struct dtc_file *file; in dtc_open_file() local 64 file = xmalloc(sizeof(struct dtc_file)); in dtc_open_file() 72 file->dir = dir; in dtc_open_file() 74 file->dir = NULL; in dtc_open_file() 78 file->name = "stdin"; in dtc_open_file() 79 file->file = stdin; in dtc_open_file() [all …]
|
D | dtc-lexer.l | 78 yylloc.file = srcpos_file; 88 yylloc.file = srcpos_file; 97 yylloc.file = srcpos_file; 105 yylloc.file = srcpos_file; 114 yylloc.file = srcpos_file; 129 yylloc.file = srcpos_file; 137 yylloc.file = srcpos_file; 145 yylloc.file = srcpos_file; 153 yylloc.file = srcpos_file; 162 yylloc.file = srcpos_file; [all …]
|
D | srcpos.h | 30 FILE *file; member 39 struct dtc_file *file; member 59 (Current).file = YYRHSLOC (Rhs, N).file; \ 67 (Current).file = YYRHSLOC (Rhs, 0).file; \ 85 extern void dtc_close_file(struct dtc_file *file);
|
/arch/ia64/sn/kernel/sn2/ |
D | sn_proc_fs.c | 21 static int partition_id_open(struct inode *inode, struct file *file) in partition_id_open() argument 23 return single_open(file, partition_id_show, NULL); in partition_id_open() 32 static int system_serial_number_open(struct inode *inode, struct file *file) in system_serial_number_open() argument 34 return single_open(file, system_serial_number_show, NULL); in system_serial_number_open() 43 static int licenseID_open(struct inode *inode, struct file *file) in licenseID_open() argument 45 return single_open(file, licenseID_show, NULL); in licenseID_open() 63 static ssize_t sn_force_interrupt_write_proc(struct file *file, in sn_force_interrupt_write_proc() argument 75 static int sn_force_interrupt_open(struct inode *inode, struct file *file) in sn_force_interrupt_open() argument 77 return single_open(file, sn_force_interrupt_show, NULL); in sn_force_interrupt_open() 87 static int coherence_id_open(struct inode *inode, struct file *file) in coherence_id_open() argument [all …]
|
/arch/powerpc/kernel/ |
D | proc_ppc64.c | 31 static loff_t page_map_seek( struct file *file, loff_t off, int whence); 32 static ssize_t page_map_read( struct file *file, char __user *buf, size_t nbytes, 34 static int page_map_mmap( struct file *file, struct vm_area_struct *vma ); 81 static loff_t page_map_seek( struct file *file, loff_t off, int whence) in page_map_seek() argument 84 struct proc_dir_entry *dp = PDE(file->f_path.dentry->d_inode); in page_map_seek() 91 new = file->f_pos + off; in page_map_seek() 101 return (file->f_pos = new); in page_map_seek() 104 static ssize_t page_map_read( struct file *file, char __user *buf, size_t nbytes, in page_map_read() argument 107 struct proc_dir_entry *dp = PDE(file->f_path.dentry->d_inode); in page_map_read() 111 static int page_map_mmap( struct file *file, struct vm_area_struct *vma ) in page_map_mmap() argument [all …]
|
D | rtas-proc.c | 141 static ssize_t ppc_rtas_clock_write(struct file *file, 144 static ssize_t ppc_rtas_progress_write(struct file *file, 147 static ssize_t ppc_rtas_poweron_write(struct file *file, 150 static ssize_t ppc_rtas_tone_freq_write(struct file *file, 153 static ssize_t ppc_rtas_tone_volume_write(struct file *file, 158 static int sensors_open(struct inode *inode, struct file *file) in sensors_open() argument 160 return single_open(file, ppc_rtas_sensors_show, NULL); in sensors_open() 170 static int poweron_open(struct inode *inode, struct file *file) in poweron_open() argument 172 return single_open(file, ppc_rtas_poweron_show, NULL); in poweron_open() 183 static int progress_open(struct inode *inode, struct file *file) in progress_open() argument [all …]
|
/arch/blackfin/mach-bf561/ |
D | coreb.c | 60 static loff_t coreb_lseek(struct file *file, loff_t offset, int origin); 61 static ssize_t coreb_read(struct file *file, char *buf, size_t count, 63 static ssize_t coreb_write(struct file *file, const char *buf, size_t count, 65 static int coreb_ioctl(struct inode *inode, struct file *file, unsigned int cmd, 67 static int coreb_open(struct inode *inode, struct file *file); 68 static int coreb_release(struct inode *inode, struct file *file); 78 static ssize_t coreb_write(struct file *file, const char *buf, size_t count, in coreb_write() argument 124 static ssize_t coreb_read(struct file *file, char *buf, size_t count, in coreb_read() argument 170 static loff_t coreb_lseek(struct file *file, loff_t offset, int origin) in coreb_lseek() argument 174 mutex_lock(&file->f_dentry->d_inode->i_mutex); in coreb_lseek() [all …]
|
/arch/um/drivers/ |
D | hostaudio_kern.c | 71 static ssize_t hostaudio_read(struct file *file, char __user *buffer, in hostaudio_read() argument 74 struct hostaudio_state *state = file->private_data; in hostaudio_read() 98 static ssize_t hostaudio_write(struct file *file, const char __user *buffer, in hostaudio_write() argument 101 struct hostaudio_state *state = file->private_data; in hostaudio_write() 127 static unsigned int hostaudio_poll(struct file *file, in hostaudio_poll() argument 139 static int hostaudio_ioctl(struct inode *inode, struct file *file, in hostaudio_ioctl() argument 142 struct hostaudio_state *state = file->private_data; in hostaudio_ioctl() 182 static int hostaudio_open(struct inode *inode, struct file *file) in hostaudio_open() argument 196 if (file->f_mode & FMODE_READ) in hostaudio_open() 198 if (file->f_mode & FMODE_WRITE) in hostaudio_open() [all …]
|
D | mmapper_kern.c | 28 static ssize_t mmapper_read(struct file *file, char __user *buf, size_t count, in mmapper_read() argument 34 static ssize_t mmapper_write(struct file *file, const char __user *buf, in mmapper_write() argument 49 static int mmapper_ioctl(struct inode *inode, struct file *file, in mmapper_ioctl() argument 55 static int mmapper_mmap(struct file *file, struct vm_area_struct *vma) in mmapper_mmap() argument 79 static int mmapper_open(struct inode *inode, struct file *file) in mmapper_open() argument 85 static int mmapper_release(struct inode *inode, struct file *file) in mmapper_release() argument
|
D | harddog_kern.c | 64 static int harddog_open(struct inode *inode, struct file *file) in harddog_open() argument 87 return nonseekable_open(inode, file); in harddog_open() 96 static int harddog_release(struct inode *inode, struct file *file) in harddog_release() argument 116 static ssize_t harddog_write(struct file *file, const char __user *data, size_t len, in harddog_write() argument 127 static int harddog_ioctl(struct inode *inode, struct file *file, in harddog_ioctl() argument
|
/arch/x86/xen/ |
D | debugfs.c | 27 static int u32_array_open(struct inode *inode, struct file *file) in u32_array_open() argument 29 file->private_data = NULL; in u32_array_open() 30 return nonseekable_open(inode, file); in u32_array_open() 73 static ssize_t u32_array_read(struct file *file, char __user *buf, size_t len, in u32_array_read() argument 76 struct inode *inode = file->f_path.dentry->d_inode; in u32_array_read() 81 if (file->private_data) { in u32_array_read() 82 kfree(file->private_data); in u32_array_read() 83 file->private_data = NULL; in u32_array_read() 86 file->private_data = format_array_alloc("%u", data->array, data->elements); in u32_array_read() 90 if (file->private_data) in u32_array_read() [all …]
|
/arch/powerpc/platforms/cell/spufs/ |
D | coredump.c | 55 static int spufs_dump_write(struct file *file, const void *addr, int nr, loff_t *foffset) in spufs_dump_write() argument 63 written = file->f_op->write(file, addr, nr, &file->f_pos); in spufs_dump_write() 72 static int spufs_dump_align(struct file *file, char *buf, loff_t new_off, in spufs_dump_align() argument 83 rc = spufs_dump_write(file, buf, size, foffset); in spufs_dump_align() 121 struct file *file; in coredump_next_context() local 128 file = fcheck(*fd); in coredump_next_context() 130 if (!file || file->f_op != &spufs_context_fops) in coredump_next_context() 133 ctx = SPUFS_I(file->f_dentry->d_inode)->i_ctx; in coredump_next_context() 168 struct file *file, int dfd, loff_t *foffset) in spufs_arch_write_note() argument 189 rc = spufs_dump_write(file, &en, sizeof(en), foffset); in spufs_arch_write_note() [all …]
|
D | file.c | 55 static int spufs_attr_open(struct inode *inode, struct file *file, in spufs_attr_open() argument 70 file->private_data = attr; in spufs_attr_open() 72 return nonseekable_open(inode, file); in spufs_attr_open() 75 static int spufs_attr_release(struct inode *inode, struct file *file) in spufs_attr_release() argument 77 kfree(file->private_data); in spufs_attr_release() 81 static ssize_t spufs_attr_read(struct file *file, char __user *buf, in spufs_attr_read() argument 88 attr = file->private_data; in spufs_attr_read() 114 static ssize_t spufs_attr_write(struct file *file, const char __user *buf, in spufs_attr_write() argument 122 attr = file->private_data; in spufs_attr_write() 145 static int __fops ## _open(struct inode *inode, struct file *file) \ [all …]
|
/arch/alpha/kernel/ |
D | binfmt_loader.c | 12 struct file *file; in load_binary() local 21 allow_write_access(bprm->file); in load_binary() 22 fput(bprm->file); in load_binary() 23 bprm->file = NULL; in load_binary() 27 file = open_exec("/sbin/loader"); in load_binary() 28 retval = PTR_ERR(file); in load_binary() 29 if (IS_ERR(file)) in load_binary() 35 bprm->file = file; in load_binary()
|
/arch/avr32/kernel/ |
D | sys_avr32.c | 23 struct file *file = NULL; in sys_mmap2() local 27 file = fget(fd); in sys_mmap2() 28 if (!file) in sys_mmap2() 33 error = do_mmap_pgoff(file, addr, len, prot, flags, offset); in sys_mmap2() 36 if (file) in sys_mmap2() 37 fput(file); in sys_mmap2() 41 int kernel_execve(const char *file, char **argv, char **envp) in kernel_execve() argument 44 register long sc1 asm("r12") = (long)file; in kernel_execve()
|
/arch/x86/kernel/ |
D | msr.c | 46 static loff_t msr_seek(struct file *file, loff_t offset, int orig) in msr_seek() argument 49 struct inode *inode = file->f_mapping->host; in msr_seek() 54 file->f_pos = offset; in msr_seek() 55 ret = file->f_pos; in msr_seek() 58 file->f_pos += offset; in msr_seek() 59 ret = file->f_pos; in msr_seek() 68 static ssize_t msr_read(struct file *file, char __user *buf, in msr_read() argument 74 int cpu = iminor(file->f_path.dentry->d_inode); in msr_read() 99 static ssize_t msr_write(struct file *file, const char __user *buf, in msr_write() argument 105 int cpu = iminor(file->f_path.dentry->d_inode); in msr_write() [all …]
|
D | cpuid.c | 62 static loff_t cpuid_seek(struct file *file, loff_t offset, int orig) in cpuid_seek() argument 65 struct inode *inode = file->f_mapping->host; in cpuid_seek() 70 file->f_pos = offset; in cpuid_seek() 71 ret = file->f_pos; in cpuid_seek() 74 file->f_pos += offset; in cpuid_seek() 75 ret = file->f_pos; in cpuid_seek() 84 static ssize_t cpuid_read(struct file *file, char __user *buf, in cpuid_read() argument 89 int cpu = iminor(file->f_path.dentry->d_inode); in cpuid_read() 115 static int cpuid_open(struct inode *inode, struct file *file) in cpuid_open() argument 123 cpu = iminor(file->f_path.dentry->d_inode); in cpuid_open()
|
/arch/cris/arch-v10/drivers/ |
D | eeprom.c | 83 static int eeprom_open(struct inode * inode, struct file * file); 84 static loff_t eeprom_lseek(struct file * file, loff_t offset, int orig); 85 static ssize_t eeprom_read(struct file * file, char * buf, size_t count, 87 static ssize_t eeprom_write(struct file * file, const char * buf, size_t count, 89 static int eeprom_close(struct inode * inode, struct file * file); 379 static int eeprom_open(struct inode * inode, struct file * file) in eeprom_open() argument 399 static loff_t eeprom_lseek(struct file * file, loff_t offset, int orig) in eeprom_lseek() argument 410 file->f_pos = offset; in eeprom_lseek() 413 file->f_pos += offset; in eeprom_lseek() 416 file->f_pos = eeprom.size - offset; in eeprom_lseek() [all …]
|
/arch/sh/mm/ |
D | cache-debugfs.c | 25 static int __uses_jump_to_uncached cache_seq_show(struct seq_file *file, in cache_seq_show() argument 28 unsigned int cache_type = (unsigned int)file->private; in cache_seq_show() 44 seq_printf(file, "disabled\n"); in cache_seq_show() 86 seq_printf(file, "-----------------------------------------\n"); in cache_seq_show() 87 seq_printf(file, "Way %d\n", way); in cache_seq_show() 88 seq_printf(file, "-----------------------------------------\n"); in cache_seq_show() 100 seq_printf(file, "%3d: %c 0x%lx\n", in cache_seq_show() 113 static int cache_debugfs_open(struct inode *inode, struct file *file) in cache_debugfs_open() argument 115 return single_open(file, cache_seq_show, inode->i_private); in cache_debugfs_open()
|
D | asids-debugfs.c | 27 static int asids_seq_show(struct seq_file *file, void *iter) in asids_seq_show() argument 40 seq_printf(file, "%5d : %02lx\n", pid, in asids_seq_show() 43 seq_printf(file, "%5d : (none)\n", pid); in asids_seq_show() 51 static int asids_debugfs_open(struct inode *inode, struct file *file) in asids_debugfs_open() argument 53 return single_open(file, asids_seq_show, inode->i_private); in asids_debugfs_open()
|
/arch/frv/kernel/ |
D | sys_frv.c | 36 struct file * file = NULL; in sys_mmap2() local 49 file = fget(fd); in sys_mmap2() 50 if (!file) in sys_mmap2() 55 error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff); in sys_mmap2() 58 if (file) in sys_mmap2() 59 fput(file); in sys_mmap2() 77 struct file * file = NULL; 93 file = fget(a.fd); 94 if (!file) 100 error = do_mmap_pgoff(file, a.addr, a.len, a.prot, a.flags, pgoff); [all …]
|
/arch/um/os-Linux/ |
D | umid.c | 85 char file[256]; in remove_files_and_dir() local 100 if (len > sizeof(file)) { in remove_files_and_dir() 105 sprintf(file, "%s/%s", dir, ent->d_name); in remove_files_and_dir() 106 if (unlink(file) < 0 && errno != ENOENT) { in remove_files_and_dir() 137 char file[strlen(uml_dir) + UMID_LEN + sizeof("/pid\0")]; in is_umdir_used() local 141 n = snprintf(file, sizeof(file), "%s/pid", dir); in is_umdir_used() 142 if (n >= sizeof(file)) { in is_umdir_used() 149 fd = open(file, O_RDONLY); in is_umdir_used() 154 "file '%s', err = %d\n", file, -fd); in is_umdir_used() 163 "'%s', err = %d\n", file, errno); in is_umdir_used() [all …]
|
/arch/blackfin/kernel/ |
D | sys_bfin.c | 55 struct file *file = NULL; in do_mmap2() local 59 file = fget(fd); in do_mmap2() 60 if (!file) in do_mmap2() 65 error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff); in do_mmap2() 68 if (file) in do_mmap2() 69 fput(file); in do_mmap2()
|
/arch/xtensa/kernel/ |
D | syscall.c | 66 struct file * file = NULL; in xtensa_mmap2() local 70 file = fget(fd); in xtensa_mmap2() 71 if (!file) in xtensa_mmap2() 76 error = do_mmap_pgoff(file, addr, len, prot, flags, pgoff); in xtensa_mmap2() 79 if (file) in xtensa_mmap2() 80 fput(file); in xtensa_mmap2()
|
/arch/blackfin/boot/ |
D | install.sh | 47 local file=$1 48 [ -f ${file} ] || return 0 49 local stamp=$(stat -c %Y ${file} 2>/dev/null) 50 mv ${file} ${file}.${stamp:-old}
|