/arch/um/drivers/ |
D | hostaudio_kern.c | 70 static ssize_t hostaudio_read(struct file *file, char __user *buffer, in hostaudio_read() argument 73 struct hostaudio_state *state = file->private_data; in hostaudio_read() 97 static ssize_t hostaudio_write(struct file *file, const char __user *buffer, in hostaudio_write() argument 100 struct hostaudio_state *state = file->private_data; in hostaudio_write() 122 static __poll_t hostaudio_poll(struct file *file, in hostaudio_poll() argument 132 static long hostaudio_ioctl(struct file *file, in hostaudio_ioctl() argument 135 struct hostaudio_state *state = file->private_data; in hostaudio_ioctl() 175 static int hostaudio_open(struct inode *inode, struct file *file) in hostaudio_open() argument 191 if (file->f_mode & FMODE_READ) in hostaudio_open() 193 if (file->f_mode & FMODE_WRITE) in hostaudio_open() [all …]
|
D | harddog_kern.c | 64 static int harddog_open(struct inode *inode, struct file *file) in harddog_open() argument 87 return stream_open(inode, file); in harddog_open() 94 static int harddog_release(struct inode *inode, struct file *file) in harddog_release() argument 112 static ssize_t harddog_write(struct file *file, const char __user *data, size_t len, in harddog_write() argument 123 static int harddog_ioctl_unlocked(struct file *file, in harddog_ioctl_unlocked() argument 147 static long harddog_ioctl(struct file *file, in harddog_ioctl() argument 153 ret = harddog_ioctl_unlocked(file, cmd, arg); in harddog_ioctl()
|
D | mmapper_kern.c | 29 static ssize_t mmapper_read(struct file *file, char __user *buf, size_t count, in mmapper_read() argument 35 static ssize_t mmapper_write(struct file *file, const char __user *buf, in mmapper_write() argument 44 static long mmapper_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in mmapper_ioctl() argument 49 static int mmapper_mmap(struct file *file, struct vm_area_struct *vma) in mmapper_mmap() argument 73 static int mmapper_open(struct inode *inode, struct file *file) in mmapper_open() argument 78 static int mmapper_release(struct inode *inode, struct file *file) in mmapper_release() argument
|
D | ubd_kern.c | 142 char *file; member 156 char *file; member 174 .file = NULL, \ 182 .file = NULL, \ 241 char *file, *backing_file, *serial; in ubd_setup_common() local 271 if(ubd_dev->file != NULL){ in ubd_setup_common() 315 file = strsep(&str, ",:"); in ubd_setup_common() 316 if (*file == '\0') in ubd_setup_common() 317 file = NULL; in ubd_setup_common() 333 ubd_dev->file = file; in ubd_setup_common() [all …]
|
/arch/powerpc/platforms/cell/spufs/ |
D | file.c | 44 static int spufs_attr_open(struct inode *inode, struct file *file, in spufs_attr_open() argument 59 file->private_data = attr; in spufs_attr_open() 61 return nonseekable_open(inode, file); in spufs_attr_open() 64 static int spufs_attr_release(struct inode *inode, struct file *file) in spufs_attr_release() argument 66 kfree(file->private_data); in spufs_attr_release() 70 static ssize_t spufs_attr_read(struct file *file, char __user *buf, in spufs_attr_read() argument 77 attr = file->private_data; in spufs_attr_read() 103 static ssize_t spufs_attr_write(struct file *file, const char __user *buf, in spufs_attr_write() argument 111 attr = file->private_data; in spufs_attr_write() 142 static int __fops ## _open(struct inode *inode, struct file *file) \ [all …]
|
/arch/powerpc/kernel/ |
D | proc_powerpc.c | 19 static loff_t page_map_seek(struct file *file, loff_t off, int whence) in page_map_seek() argument 21 return fixed_size_llseek(file, off, whence, PAGE_SIZE); in page_map_seek() 24 static ssize_t page_map_read( struct file *file, char __user *buf, size_t nbytes, in page_map_read() argument 28 PDE_DATA(file_inode(file)), PAGE_SIZE); in page_map_read() 31 static int page_map_mmap( struct file *file, struct vm_area_struct *vma ) in page_map_mmap() argument 37 __pa(PDE_DATA(file_inode(file))) >> PAGE_SHIFT, in page_map_mmap()
|
D | rtas-proc.c | 140 static ssize_t ppc_rtas_clock_write(struct file *file, 143 static ssize_t ppc_rtas_progress_write(struct file *file, 146 static ssize_t ppc_rtas_poweron_write(struct file *file, 149 static ssize_t ppc_rtas_tone_freq_write(struct file *file, 152 static ssize_t ppc_rtas_tone_volume_write(struct file *file, 157 static int poweron_open(struct inode *inode, struct file *file) in poweron_open() argument 159 return single_open(file, ppc_rtas_poweron_show, NULL); in poweron_open() 170 static int progress_open(struct inode *inode, struct file *file) in progress_open() argument 172 return single_open(file, ppc_rtas_progress_show, NULL); in progress_open() 183 static int clock_open(struct inode *inode, struct file *file) in clock_open() argument [all …]
|
/arch/mips/tools/ |
D | elf-entry.c | 36 FILE *file; in main() local 45 file = fopen(argv[1], "r"); in main() 46 if (!file) { in main() 51 nread = fread(&hdr, 1, sizeof(hdr), file); in main() 54 fclose(file); in main() 59 fclose(file); in main() 73 fclose(file); in main() 90 fclose(file); in main() 96 fclose(file); in main() 101 fclose(file); in main()
|
/arch/um/os-Linux/ |
D | umid.c | 86 char file[256]; in remove_files_and_dir() local 101 if (len > sizeof(file)) { in remove_files_and_dir() 106 sprintf(file, "%s/%s", dir, ent->d_name); in remove_files_and_dir() 107 if (unlink(file) < 0 && errno != ENOENT) { in remove_files_and_dir() 138 char pid[sizeof("nnnnnnnnn")], *end, *file; in is_umdir_used() local 142 file = malloc(filelen); in is_umdir_used() 143 if (!file) in is_umdir_used() 146 snprintf(file, filelen, "%s/pid", dir); 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() [all …]
|
D | execvp.c | 39 int execvp_noalloc(char *buf, const char *file, char *const argv[]) in execvp_noalloc() argument 41 if (*file == '\0') { in execvp_noalloc() 45 if (strchr (file, '/') != NULL) { in execvp_noalloc() 47 execv(file, argv); in execvp_noalloc() 56 len = strlen(file) + 1; in execvp_noalloc() 59 name = memcpy(buf + pathlen + 1, file, len); in execvp_noalloc()
|
/arch/x86/kernel/cpu/sgx/ |
D | driver.c | 17 static int sgx_open(struct inode *inode, struct file *file) in sgx_open() argument 39 file->private_data = encl; in sgx_open() 44 static int sgx_release(struct inode *inode, struct file *file) in sgx_release() argument 46 struct sgx_encl *encl = file->private_data; in sgx_release() 84 static int sgx_mmap(struct file *file, struct vm_area_struct *vma) in sgx_mmap() argument 86 struct sgx_encl *encl = file->private_data; in sgx_mmap() 104 static unsigned long sgx_get_unmapped_area(struct file *file, in sgx_get_unmapped_area() argument 116 return current->mm->get_unmapped_area(file, addr, len, pgoff, flags); in sgx_get_unmapped_area() 120 static long sgx_compat_ioctl(struct file *filep, unsigned int cmd, in sgx_compat_ioctl()
|
/arch/alpha/kernel/ |
D | binfmt_loader.c | 13 struct file *file; in load_binary() local 24 file = open_exec("/sbin/loader"); in load_binary() 25 retval = PTR_ERR(file); in load_binary() 26 if (IS_ERR(file)) in load_binary() 32 bprm->interpreter = file; in load_binary()
|
/arch/x86/mm/ |
D | hugetlbpage.c | 78 static unsigned long hugetlb_get_unmapped_area_bottomup(struct file *file, in hugetlb_get_unmapped_area_bottomup() argument 82 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_bottomup() 101 static unsigned long hugetlb_get_unmapped_area_topdown(struct file *file, in hugetlb_get_unmapped_area_topdown() argument 105 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_topdown() 142 hugetlb_get_unmapped_area(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area() argument 145 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area() 157 if (prepare_hugepage_range(file, addr, len)) in hugetlb_get_unmapped_area() 174 return hugetlb_get_unmapped_area_bottomup(file, addr, len, in hugetlb_get_unmapped_area() 177 return hugetlb_get_unmapped_area_topdown(file, addr, len, in hugetlb_get_unmapped_area()
|
/arch/x86/kernel/cpu/mtrr/ |
D | if.c | 39 unsigned int type, bool increment, struct file *file, int page) in mtrr_file_add() argument 41 unsigned int *fcount = FILE_FCOUNT(file); in mtrr_file_add() 49 FILE_FCOUNT(file) = fcount; in mtrr_file_add() 65 struct file *file, int page) in mtrr_file_del() argument 67 unsigned int *fcount = FILE_FCOUNT(file); in mtrr_file_del() 94 mtrr_write(struct file *file, const char __user *buf, size_t len, loff_t * ppos) in mtrr_write() argument 155 mtrr_ioctl(struct file *file, unsigned int cmd, unsigned long __arg) in mtrr_ioctl() argument 228 file, 0); in mtrr_ioctl() 240 err = mtrr_file_del(sentry.base, sentry.size, file, 0); in mtrr_ioctl() 273 file, 1); in mtrr_ioctl() [all …]
|
/arch/sh/mm/ |
D | cache-debugfs.c | 25 static int cache_debugfs_show(struct seq_file *file, void *iter) in cache_debugfs_show() argument 27 unsigned int cache_type = (unsigned int)file->private; in cache_debugfs_show() 43 seq_printf(file, "disabled\n"); in cache_debugfs_show() 70 seq_printf(file, "-----------------------------------------\n"); in cache_debugfs_show() 71 seq_printf(file, "Way %d\n", way); in cache_debugfs_show() 72 seq_printf(file, "-----------------------------------------\n"); in cache_debugfs_show() 84 seq_printf(file, "%3d: %c 0x%lx\n", in cache_debugfs_show()
|
D | tlb-debugfs.c | 39 static int tlb_seq_show(struct seq_file *file, void *iter) in tlb_seq_show() argument 41 unsigned int tlb_type = (unsigned int)file->private; in tlb_seq_show() 50 seq_printf(file, "address translation disabled\n"); in tlb_seq_show() 91 seq_printf(file, "entry: vpn ppn asid size valid wired\n"); in tlb_seq_show() 125 seq_printf(file, "%2d: 0x%08lx 0x%08lx %5lu %s %s %s\n", in tlb_seq_show() 137 static int tlb_debugfs_open(struct inode *inode, struct file *file) in tlb_debugfs_open() argument 139 return single_open(file, tlb_seq_show, inode->i_private); in tlb_debugfs_open()
|
/arch/arm64/include/asm/ |
D | asm-bug.h | 11 #define _BUGVERBOSE_LOCATION(file, line) __BUGVERBOSE_LOCATION(file, line) argument 12 #define __BUGVERBOSE_LOCATION(file, line) \ argument 14 14472: .string file; \ 20 #define _BUGVERBOSE_LOCATION(file, line) argument
|
/arch/x86/kernel/ |
D | msr.c | 53 static ssize_t msr_read(struct file *file, char __user *buf, in msr_read() argument 59 int cpu = iminor(file_inode(file)); in msr_read() 109 static ssize_t msr_write(struct file *file, const char __user *buf, in msr_write() argument 115 int cpu = iminor(file_inode(file)); in msr_write() 149 static long msr_ioctl(struct file *file, unsigned int ioc, unsigned long arg) in msr_ioctl() argument 153 int cpu = iminor(file_inode(file)); in msr_ioctl() 158 if (!(file->f_mode & FMODE_READ)) { in msr_ioctl() 174 if (!(file->f_mode & FMODE_WRITE)) { in msr_ioctl() 207 static int msr_open(struct inode *inode, struct file *file) in msr_open() argument 209 unsigned int cpu = iminor(file_inode(file)); in msr_open()
|
/arch/x86/boot/ |
D | mtools.conf.in | 2 # mtools configuration file for "make (b)zdisk" 7 file="/dev/fd0" 11 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=18 filter 15 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=36 filter 19 file="@OBJ@/hdimage" partition=1 mformat_only
|
/arch/powerpc/platforms/pseries/ |
D | scanlog.c | 42 static ssize_t scanlog_read(struct file *file, char __user *buf, in scanlog_read() argument 109 static ssize_t scanlog_write(struct file * file, const char __user * buf, in scanlog_write() argument 131 static int scanlog_open(struct inode * inode, struct file * file) in scanlog_open() argument 147 static int scanlog_release(struct inode * inode, struct file * file) in scanlog_release() argument
|
/arch/powerpc/platforms/powernv/ |
D | opal-prd.c | 93 static int opal_prd_open(struct inode *inode, struct file *file) in opal_prd_open() argument 111 static int opal_prd_mmap(struct file *file, struct vm_area_struct *vma) in opal_prd_mmap() argument 127 page_prot = phys_mem_access_prot(file, vma->vm_pgoff, in opal_prd_mmap() 146 static __poll_t opal_prd_poll(struct file *file, in opal_prd_poll() argument 149 poll_wait(file, &opal_prd_msg_wait, wait); in opal_prd_poll() 157 static ssize_t opal_prd_read(struct file *file, char __user *buf, in opal_prd_read() argument 187 if (file->f_flags & O_NONBLOCK) in opal_prd_read() 220 static ssize_t opal_prd_write(struct file *file, const char __user *buf, in opal_prd_write() argument 255 static int opal_prd_release(struct inode *inode, struct file *file) in opal_prd_release() argument 269 static long opal_prd_ioctl(struct file *file, unsigned int cmd, in opal_prd_ioctl() argument
|
/arch/s390/hypfs/ |
D | hypfs_dbfs.c | 31 static ssize_t dbfs_read(struct file *file, char __user *buf, in dbfs_read() argument 41 df = file_inode(file)->i_private; in dbfs_read() 61 static long dbfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in dbfs_ioctl() argument 63 struct hypfs_dbfs_file *df = file_inode(file)->i_private; in dbfs_ioctl() 68 rc = df->unlocked_ioctl(file, cmd, arg); in dbfs_ioctl()
|
/arch/m68k/include/asm/ |
D | fb.h | 12 static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, in fb_pgprotect() argument 18 static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, in fb_pgprotect() argument
|
/arch/um/kernel/ |
D | exitcode.c | 34 static int exitcode_proc_open(struct inode *inode, struct file *file) in exitcode_proc_open() argument 36 return single_open(file, exitcode_proc_show, NULL); in exitcode_proc_open() 39 static ssize_t exitcode_proc_write(struct file *file, in exitcode_proc_write() argument
|
/arch/parisc/kernel/ |
D | perf.c | 182 static int perf_release(struct inode *inode, struct file *file); 183 static int perf_open(struct inode *inode, struct file *file); 184 static ssize_t perf_read(struct file *file, char __user *buf, size_t cnt, loff_t *ppos); 185 static ssize_t perf_write(struct file *file, const char __user *buf, 187 static long perf_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 248 static int perf_open(struct inode *inode, struct file *file) in perf_open() argument 264 static int perf_release(struct inode *inode, struct file *file) in perf_release() argument 276 static ssize_t perf_read(struct file *file, char __user *buf, size_t cnt, loff_t *ppos) in perf_read() argument 288 static ssize_t perf_write(struct file *file, const char __user *buf, in perf_write() argument 427 static long perf_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in perf_ioctl() argument
|