/linux-master/arch/nios2/kernel/ |
H A D | ptrace.c | 49 const void *kbuf, const void __user *ubuf) 57 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ 62 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ 67 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ 83 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 46 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
|
/linux-master/arch/riscv/kernel/ |
H A D | ptrace.c | 44 const void *kbuf, const void __user *ubuf) 49 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, regs, 0, -1); 70 const void *kbuf, const void __user *ubuf) 75 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fstate, 0, 78 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fstate, 0, 124 const void *kbuf, const void __user *ubuf) 134 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ptrace_vstate, 0, 149 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, vstate->datap, 327 const void *kbuf, const void __user *ubuf) 332 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 41 riscv_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 67 riscv_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 121 riscv_vr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 324 compat_riscv_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 [all...] |
/linux-master/fs/bcachefs/ |
H A D | thread_with_file.c | 109 static ssize_t thread_with_stdio_read(struct file *file, char __user *ubuf, argument 126 if (fault_in_writeable(ubuf, len) == len) { 134 if (b && !copy_to_user_nofault(ubuf, buf->buf.data, b)) { 135 ubuf += b; 162 static ssize_t thread_with_stdio_write(struct file *file, const char __user *ubuf, argument 177 size_t b = len - fault_in_readable(ubuf, len); 189 if (b && !copy_from_user_nofault(&darray_top(buf->buf), ubuf, b)) { 191 ubuf += b; 329 int bch2_stdio_redirect_read(struct stdio_redirect *stdio, char *ubuf, size_t len) argument 348 memcpy(ubuf, bu 358 bch2_stdio_redirect_readline(struct stdio_redirect *stdio, char *ubuf, size_t len) argument [all...] |
/linux-master/drivers/s390/char/ |
H A D | hmcdrv_dev.c | 59 static ssize_t hmcdrv_dev_read(struct file *fp, char __user *ubuf, 61 static ssize_t hmcdrv_dev_write(struct file *fp, const char __user *ubuf, 221 static ssize_t hmcdrv_dev_read(struct file *fp, char __user *ubuf, argument 232 *pos, ubuf, len); 246 static ssize_t hmcdrv_dev_write(struct file *fp, const char __user *ubuf, argument 260 if (!copy_from_user(fp->private_data, ubuf, len)) { 271 *pos, (char __user *) ubuf, len);
|
/linux-master/arch/loongarch/kernel/ |
H A D | ptrace.c | 93 const void *kbuf, const void __user *ubuf) 101 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 104 err |= user_regset_copyin(&pos, &count, &kbuf, &ubuf, 107 err |= user_regset_copyin(&pos, &count, &kbuf, &ubuf, 110 err |= user_regset_copyin(&pos, &count, &kbuf, &ubuf, 166 const void **kbuf, const void __user **ubuf) 168 return user_regset_copyin(pos, count, kbuf, ubuf, 175 const void **kbuf, const void __user **ubuf) 182 err = user_regset_copyin(pos, count, kbuf, ubuf, 200 const void *kbuf, const void __user *ubuf) 90 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 164 gfpr_set(struct task_struct *target, unsigned int *pos, unsigned int *count, const void **kbuf, const void __user **ubuf) argument 173 gfpr_set_simd(struct task_struct *target, unsigned int *pos, unsigned int *count, const void **kbuf, const void __user **ubuf) argument 197 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 248 cfg_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 308 simd_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 359 lbt_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 702 hw_break_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...] |
/linux-master/drivers/scsi/fnic/ |
H A D | fnic_debugfs.c | 84 * @ubuf: The buffer to copy the data to. 93 * copy up to @cnt of data to @ubuf from @buf. 99 char __user *ubuf, 116 return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); 124 * @ubuf: The buffer to copy the data from. 129 * This routine writes data from user buffer @ubuf to buffer @buf and 137 const char __user *ubuf, 149 if (copy_from_user(&buf, ubuf, cnt)) 257 * @ubuf: The buffer to copy the data to. 264 * data to @ubuf 98 fnic_trace_ctrl_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 136 fnic_trace_ctrl_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 270 fnic_trace_debugfs_read(struct file *file, char __user *ubuf, size_t nbytes, loff_t *pos) argument 462 fnic_reset_stats_read(struct file *file, char __user *ubuf, size_t cnt, loff_t *ppos) argument 490 fnic_reset_stats_write(struct file *file, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 618 fnic_stats_debugfs_read(struct file *file, char __user *ubuf, size_t nbytes, loff_t *pos) argument [all...] |
/linux-master/arch/arm64/kernel/ |
H A D | ptrace.c | 508 const void *kbuf, const void __user *ubuf) 517 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, offset); 524 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &addr, 535 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ctrl, 544 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 564 const void *kbuf, const void __user *ubuf) 569 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newregs, 0, -1); 618 const void *kbuf, const void __user *ubuf, 632 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newstate, 644 const void *kbuf, const void __user *ubuf) 505 hw_break_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 562 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 615 __fpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf, unsigned int start_pos) argument 642 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 678 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 712 fpmr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 740 system_call_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 873 sve_set_common(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf, enum vec_type type) argument 1010 sve_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1036 ssve_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1097 za_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1202 zt_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1272 pac_enabled_keys_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1341 pac_address_keys_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1390 pac_generic_keys_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1427 tagged_addr_ctrl_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1670 compat_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 1757 compat_vfp_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1795 compat_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...] |
/linux-master/drivers/acpi/apei/ |
H A D | erst-dbg.c | 82 static ssize_t erst_dbg_read(struct file *filp, char __user *ubuf, argument 144 if (copy_to_user(ubuf, erst_dbg_buf, len)) 152 static ssize_t erst_dbg_write(struct file *filp, const char __user *ubuf, argument 178 rc = copy_from_user(erst_dbg_buf, ubuf, usize);
|
/linux-master/arch/powerpc/kernel/ |
H A D | sys_ppc32.c | 72 char __user *, ubuf, compat_size_t, count, 75 return ksys_pread64(fd, ubuf, count, merge_64(pos1, pos2)); 80 const char __user *, ubuf, compat_size_t, count, 83 return ksys_pwrite64(fd, ubuf, count, merge_64(pos1, pos2));
|
/linux-master/arch/powerpc/include/asm/ |
H A D | syscalls.h | 94 char __user *ubuf, compat_size_t count, 97 const char __user *ubuf, compat_size_t count, 120 char __user *ubuf, compat_size_t count, 123 const char __user *ubuf, compat_size_t count,
|
/linux-master/arch/hexagon/kernel/ |
H A D | ptrace.c | 75 const void *kbuf, const void __user *ubuf) 84 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 89 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ 121 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 72 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
|
/linux-master/drivers/accessibility/speakup/ |
H A D | devsynth.c | 47 u16 ubuf[256]; local 75 ubuf[out++] = c; 106 ubuf[out++] = value; 121 synth_buffer_add(ubuf[in]);
|
/linux-master/drivers/crypto/ccp/ |
H A D | ccp-debugfs.c | 42 static ssize_t ccp5_debugfs_info_read(struct file *filp, char __user *ubuf, argument 88 ret = simple_read_from_buffer(ubuf, count, offp, obuf, oboff); 97 static ssize_t ccp5_debugfs_stats_read(struct file *filp, char __user *ubuf, argument 150 ret = simple_read_from_buffer(ubuf, count, offp, obuf, oboff); 175 const char __user *ubuf, 191 static ssize_t ccp5_debugfs_queue_read(struct file *filp, char __user *ubuf, argument 236 ret = simple_read_from_buffer(ubuf, count, offp, obuf, oboff); 246 const char __user *ubuf, 174 ccp5_debugfs_stats_write(struct file *filp, const char __user *ubuf, size_t count, loff_t *offp) argument 245 ccp5_debugfs_queue_write(struct file *filp, const char __user *ubuf, size_t count, loff_t *offp) argument
|
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_wm.c | 288 static ssize_t wm_latency_write(struct file *file, const char __user *ubuf, argument 301 if (copy_from_user(tmp, ubuf, len)) 322 static ssize_t pri_wm_latency_write(struct file *file, const char __user *ubuf, argument 334 return wm_latency_write(file, ubuf, len, offp, latencies); 337 static ssize_t spr_wm_latency_write(struct file *file, const char __user *ubuf, argument 349 return wm_latency_write(file, ubuf, len, offp, latencies); 352 static ssize_t cur_wm_latency_write(struct file *file, const char __user *ubuf, argument 364 return wm_latency_write(file, ubuf, len, offp, latencies);
|
/linux-master/drivers/bluetooth/ |
H A D | btmrvl_debugfs.c | 22 const char __user *ubuf, size_t count, loff_t *ppos) 27 ret = kstrtol_from_user(ubuf, count, 10, &result); 61 static ssize_t btmrvl_pscmd_write(struct file *file, const char __user *ubuf, argument 67 ret = kstrtol_from_user(ubuf, count, 10, &result); 101 static ssize_t btmrvl_hscmd_write(struct file *file, const char __user *ubuf, argument 107 ret = kstrtol_from_user(ubuf, count, 10, &result); 21 btmrvl_hscfgcmd_write(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
|
/linux-master/arch/sh/kernel/ |
H A D | ptrace_32.c | 146 const void *kbuf, const void __user *ubuf) 151 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 155 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 160 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 184 const void *kbuf, const void __user *ubuf) 195 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, 198 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, 223 const void *kbuf, const void __user *ubuf) 229 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, regs, 232 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 143 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 181 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 220 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...] |
/linux-master/kernel/bpf/ |
H A D | log.c | 18 /* ubuf and len_total should both be specified (or not) together */ 19 if (!!log->ubuf != !!log->len_total) 22 if (log->ubuf && log->level == 0) 35 log->ubuf = log_buf; 89 if (log->ubuf && new_n && 90 copy_to_user(log->ubuf + cur_pos, log->kbuf, new_n)) 105 if (!log->ubuf) 114 * ubuf and there is no wrap around 120 * if buf_start == buf_end, then we fill ubuf completely; we 126 /* message fits within contiguous chunk of ubuf */ [all...] |
/linux-master/arch/x86/kernel/fpu/ |
H A D | regset.c | 92 const void *kbuf, const void __user *ubuf) 105 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newstate, 0, -1); 144 const void *kbuf, const void __user *ubuf) 164 if (copy_from_user(tmpbuf, ubuf, count)) { 214 const void *kbuf, const void __user *ubuf) 229 r = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &user_ssp, 0, -1); 433 const void *kbuf, const void __user *ubuf) 444 return fpregs_soft_set(target, regset, pos, count, kbuf, ubuf); 446 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &env, 0, -1); 90 xfpregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 142 xstateregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 212 ssp_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 431 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
|
/linux-master/drivers/char/hw_random/ |
H A D | s390-trng.c | 56 static ssize_t trng_read(struct file *file, char __user *ubuf, argument 88 if (copy_to_user(ubuf, p, n)) { 93 ubuf += n;
|
/linux-master/arch/parisc/kernel/ |
H A D | ptrace.c | 414 const void *kbuf, const void __user *ubuf) 418 const __u64 __user *u = ubuf; 435 ubuf = u; 438 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 534 const void *kbuf, const void __user *ubuf) 538 const unsigned long __user *u = ubuf; 555 ubuf = u; 558 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 598 const void *kbuf, const void __user *ubuf) 602 const compat_ulong_t __user *u = ubuf; 411 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 531 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 595 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 [all...] |
/linux-master/arch/s390/kernel/ |
H A D | compat_linux.c | 80 COMPAT_SYSCALL_DEFINE5(s390_pread64, unsigned int, fd, char __user *, ubuf, 85 return ksys_pread64(fd, ubuf, count, (unsigned long)high << 32 | low); 88 COMPAT_SYSCALL_DEFINE5(s390_pwrite64, unsigned int, fd, const char __user *, ubuf, 93 return ksys_pwrite64(fd, ubuf, count, (unsigned long)high << 32 | low); 126 static int cp_stat64(struct stat64_emu31 __user *ubuf, struct kstat *stat) argument 147 return copy_to_user(ubuf,&tmp,sizeof(tmp)) ? -EFAULT : 0;
|
H A D | compat_linux.h | 83 long compat_sys_s390_pread64(unsigned int fd, char __user *ubuf, compat_size_t count, u32 high, u32 low); 84 long compat_sys_s390_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count, u32 high, u32 low);
|
/linux-master/drivers/scsi/megaraid/ |
H A D | megaraid_sas_debugfs.c | 48 megasas_debugfs_read(struct file *filp, char __user *ubuf, size_t cnt, argument 56 return simple_read_from_buffer(ubuf, cnt, ppos, debug->buf, debug->len);
|
/linux-master/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_debugfs.c | 34 * @ubuf: Buffer to fill data 40 _debugfs_iocdump_read(struct file *filp, char __user *ubuf, size_t cnt, argument 49 return simple_read_from_buffer(ubuf, cnt, ppos, debug->buf, debug->len);
|
/linux-master/drivers/ntb/hw/intel/ |
H A D | ntb_hw_gen4.h | 106 ssize_t ndev_ntb4_debugfs_read(struct file *filp, char __user *ubuf, 109 ssize_t ndev_ntb4_debugfs_read(struct file *filp, char __user *ubuf,
|