/arch/c6x/kernel/ |
H A D | ptrace.c | 63 void *kbuf, void __user *ubuf) 67 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, 75 const void *kbuf, const void __user *ubuf) 81 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 87 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 93 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 100 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 106 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 60 gpr_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 72 gpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument
|
/arch/openrisc/kernel/ |
H A D | ptrace.c | 54 void *kbuf, void __user * ubuf) 60 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 0, 4); 63 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 66 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 69 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 72 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 84 const void *kbuf, const void __user * ubuf) 90 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, 4); 93 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 97 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 51 genregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user * ubuf) argument 81 genregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user * ubuf) argument [all...] |
/arch/s390/crypto/ |
H A D | prng.c | 87 static ssize_t prng_read(struct file *file, char __user *ubuf, size_t nbytes, argument 140 if (copy_to_user(ubuf, p->buf, chunk)) 145 ubuf += chunk;
|
/arch/s390/pci/ |
H A D | pci_debug.c | 75 static ssize_t pci_perf_seq_write(struct file *file, const char __user *ubuf, argument 85 rc = kstrtoul_from_user(ubuf, count, 10, &val);
|
/arch/x86/kernel/cpu/mcheck/ |
H A D | mce-inject.c | 206 static ssize_t mce_write(struct file *filp, const char __user *ubuf, argument 222 if (copy_from_user(&m, ubuf, usize))
|
/arch/x86/kernel/ |
H A D | tls.c | 157 void *kbuf, void __user *ubuf) 177 struct user_desc __user *u_info = ubuf; 191 const void *kbuf, const void __user *ubuf) 203 else if (__copy_from_user(infobuf, ubuf, count)) 155 regset_tls_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 189 regset_tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument
|
/arch/arc/kernel/ |
H A D | ptrace.c | 24 void *kbuf, void __user *ubuf) 33 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ 39 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ 45 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, \ 73 const void *kbuf, const void __user *ubuf) 81 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ 88 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ 95 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ 21 genregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 70 genregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument
|
/arch/frv/kernel/ |
H A D | ptrace.c | 43 void *kbuf, void __user *ubuf) 48 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 53 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 63 const void *kbuf, const void __user *ubuf) 81 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 87 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 93 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 98 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 108 void *kbuf, void __user *ubuf) 113 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 40 genregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 60 genregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 105 fpmregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 125 fpmregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument [all...] |
H A D | pm.c | 132 static int user_atoi(char __user *ubuf, size_t len) argument 140 if (copy_from_user(buf, ubuf, len))
|
/arch/hexagon/kernel/ |
H A D | ptrace.c | 53 void *kbuf, void __user *ubuf) 69 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 74 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, \ 101 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 109 const void *kbuf, const void __user *ubuf) 118 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 123 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ 152 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 50 genregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 106 genregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument
|
/arch/mn10300/kernel/ |
H A D | ptrace.c | 84 void *kbuf, void __user *ubuf) 90 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 95 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 101 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 111 const void *kbuf, const void __user *ubuf) 118 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 123 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 131 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 143 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 150 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 81 genregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 108 genregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 157 fpuregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 179 fpuregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument [all...] |
/arch/blackfin/kernel/ |
H A D | ptrace.c | 159 void *kbuf, void __user *ubuf) 167 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 172 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 182 const void *kbuf, const void __user *ubuf) 188 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 197 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 156 genregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 179 genregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument
|
/arch/metag/kernel/ |
H A D | ptrace.c | 29 void *kbuf, void __user *ubuf) 36 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 41 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 50 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 55 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 60 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 68 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 73 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 78 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 86 const void *kbuf, const void __user *ubuf) 27 metag_gp_regs_copyout(const struct pt_regs *regs, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 84 metag_gp_regs_copyin(struct pt_regs *regs, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 138 metag_gp_regs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 147 metag_gp_regs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 156 metag_cb_regs_copyout(const struct pt_regs *regs, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 172 metag_cb_regs_copyin(struct pt_regs *regs, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 184 metag_cb_regs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 193 metag_cb_regs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 202 metag_rp_state_copyout(const struct pt_regs *regs, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 239 metag_rp_state_copyin(struct pt_regs *regs, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 273 metag_rp_state_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 282 metag_rp_state_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 291 metag_tls_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 300 metag_tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument [all...] |
/arch/mips/kernel/ |
H A D | ptrace.c | 254 void *kbuf, void __user *ubuf) 275 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, 0, 282 const void *kbuf, const void __user *ubuf) 295 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, 333 void *kbuf, void __user *ubuf) 354 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, 0, 361 const void *kbuf, const void __user *ubuf) 374 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, 406 void *kbuf, void __user *ubuf) 415 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, 251 gpr32_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 279 gpr32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 330 gpr64_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 358 gpr64_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 403 fpr_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 431 fpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument [all...] |
H A D | signal32.c | 262 static inline int put_sigset(const sigset_t *kbuf, compat_sigset_t __user *ubuf) argument 266 if (!access_ok(VERIFY_WRITE, ubuf, sizeof(*ubuf))) 273 err |= __put_user(kbuf->sig[1] >> 32, &ubuf->sig[3]); 274 err |= __put_user(kbuf->sig[1] & 0xffffffff, &ubuf->sig[2]); 276 err |= __put_user(kbuf->sig[0] >> 32, &ubuf->sig[1]); 277 err |= __put_user(kbuf->sig[0] & 0xffffffff, &ubuf->sig[0]); 283 static inline int get_sigset(sigset_t *kbuf, const compat_sigset_t __user *ubuf) argument 288 if (!access_ok(VERIFY_READ, ubuf, sizeof(*ubuf))) [all...] |
/arch/powerpc/kernel/ |
H A D | sys_ppc32.c | 77 compat_ssize_t compat_sys_pread64(unsigned int fd, char __user *ubuf, compat_size_t count, argument 80 return sys_pread64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo); 83 compat_ssize_t compat_sys_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count, argument 86 return sys_pwrite64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo);
|
/arch/powerpc/platforms/powernv/ |
H A D | opal-lpc.c | 189 static ssize_t lpc_debug_read(struct file *filp, char __user *ubuf, argument 196 if (!access_ok(VERIFY_WRITE, ubuf, count)) 255 rc = __put_user((u32)data, (u32 __user *)ubuf); 261 rc = __put_user((u16)data, (u16 __user *)ubuf); 267 rc = __put_user((u8)data, (u8 __user *)ubuf); 273 ubuf += len; 280 static ssize_t lpc_debug_write(struct file *filp, const char __user *ubuf, argument 287 if (!access_ok(VERIFY_READ, ubuf, count)) 325 rc = __get_user(data, (u32 __user *)ubuf); 329 rc = __get_user(data, (u16 __user *)ubuf); [all...] |
/arch/powerpc/sysdev/ |
H A D | scom.c | 106 static ssize_t scom_debug_read(struct file *filp, char __user *ubuf, argument 110 u64 __user *ubuf64 = (u64 __user *)ubuf; 143 static ssize_t scom_debug_write(struct file* filp, const char __user *ubuf, argument 147 u64 __user *ubuf64 = (u64 __user *)ubuf;
|
/arch/score/kernel/ |
H A D | ptrace.c | 40 void *kbuf, void __user *ubuf) 46 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 50 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 56 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 68 const void *kbuf, const void __user *ubuf) 74 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 78 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 84 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 37 genregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 65 genregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument
|
/arch/sh/kernel/ |
H A D | ptrace_32.c | 141 void *kbuf, void __user *ubuf) 146 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 151 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 156 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 165 const void *kbuf, const void __user *ubuf) 170 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 174 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 179 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 189 void *kbuf, void __user *ubuf) 198 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, 138 genregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 162 genregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 186 fpregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 205 fpregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 234 dspregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 252 dspregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument [all...] |
H A D | ptrace_64.c | 151 void *kbuf, void __user *ubuf) 157 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 163 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 169 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 175 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 184 const void *kbuf, const void __user *ubuf) 190 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 196 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 203 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 209 ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 148 genregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 181 genregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 216 fpregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 231 fpregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument [all...] |
/arch/sparc/kernel/ |
H A D | ptrace_32.c | 51 void *kbuf, void __user *ubuf) 56 unsigned long __user *u = ubuf; 122 return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 129 const void *kbuf, const void __user *ubuf) 134 const unsigned long __user *u = ubuf; 206 return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 213 void *kbuf, void __user *ubuf) 223 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 228 ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 232 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, 48 genregs32_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 126 genregs32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 210 fpregs32_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 254 fpregs32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument [all...] |
H A D | sys_sparc32.c | 199 char __user *ubuf, 204 return sys_pread64(fd, ubuf, count, (poshi << 32) | poslo); 208 char __user *ubuf, 213 return sys_pwrite64(fd, ubuf, count, (poshi << 32) | poslo); 198 sys32_pread64(unsigned int fd, char __user *ubuf, compat_size_t count, unsigned long poshi, unsigned long poslo) argument 207 sys32_pwrite64(unsigned int fd, char __user *ubuf, compat_size_t count, unsigned long poshi, unsigned long poslo) argument
|
/arch/tile/kernel/ |
H A D | ptrace.c | 97 void *kbuf, void __user *ubuf) 103 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ®s, 0, 110 const void *kbuf, const void __user *ubuf) 115 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®s, 0, 94 tile_gpr_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf) argument 107 tile_gpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument
|
/arch/x86/ia32/ |
H A D | sys_ia32.c | 70 static int cp_stat64(struct stat64 __user *ubuf, struct kstat *stat) argument 72 typeof(ubuf->st_uid) uid = 0; 73 typeof(ubuf->st_gid) gid = 0; 76 if (!access_ok(VERIFY_WRITE, ubuf, sizeof(struct stat64)) || 77 __put_user(huge_encode_dev(stat->dev), &ubuf->st_dev) || 78 __put_user(stat->ino, &ubuf->__st_ino) || 79 __put_user(stat->ino, &ubuf->st_ino) || 80 __put_user(stat->mode, &ubuf->st_mode) || 81 __put_user(stat->nlink, &ubuf->st_nlink) || 82 __put_user(uid, &ubuf 176 sys32_pread(unsigned int fd, char __user *ubuf, u32 count, u32 poslo, u32 poshi) argument 183 sys32_pwrite(unsigned int fd, const char __user *ubuf, u32 count, u32 poslo, u32 poshi) argument [all...] |