/linux-master/include/linux/ |
H A D | trace_seq.h | 94 extern int trace_seq_to_user(struct trace_seq *s, char __user *ubuf, 131 static inline int trace_seq_to_user(struct trace_seq *s, char __user *ubuf, argument
|
/linux-master/arch/mips/kernel/ |
H A D | ptrace.c | 231 const void *kbuf, const void __user *ubuf) 244 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, 296 const void *kbuf, const void __user *ubuf) 309 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, 461 const void **kbuf, const void __user **ubuf) 463 return user_regset_copyin(pos, count, kbuf, ubuf, 476 const void **kbuf, const void __user **ubuf) 484 err = user_regset_copyin(pos, count, kbuf, ubuf, 510 const void *kbuf, const void __user *ubuf) 525 err = fpr_set_fpa(target, &pos, &count, &kbuf, &ubuf); 228 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 293 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 459 fpr_set_fpa(struct task_struct *target, unsigned int *pos, unsigned int *count, const void **kbuf, const void __user **ubuf) argument 474 fpr_set_msa(struct task_struct *target, unsigned int *pos, unsigned int *count, const void **kbuf, const void __user **ubuf) argument 507 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 567 fp_mode_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 652 msa_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 721 dsp32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 787 dsp64_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/xfs/ |
H A D | xfs_ioctl.h | 35 int xfs_ioc_attr_list(struct xfs_inode *dp, void __user *ubuf,
|
/linux-master/drivers/media/platform/mediatek/vcodec/common/ |
H A D | mtk_vcodec_dbgfs.c | 73 static ssize_t mtk_vdec_dbgfs_write(struct file *filp, const char __user *ubuf, argument 81 ppos, ubuf, count); 89 static ssize_t mtk_vdec_dbgfs_read(struct file *filp, char __user *ubuf, argument 136 ret = simple_read_from_buffer(ubuf, count, ppos, buf, used_len);
|
/linux-master/drivers/usb/musb/ |
H A D | musb_debugfs.c | 164 const char __user *ubuf, size_t count, loff_t *ppos) 173 if (copy_from_user(buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) 264 const char __user *ubuf, size_t count, loff_t *ppos) 273 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) 163 musb_test_mode_write(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument 263 musb_softconnect_write(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
|
/linux-master/lib/ |
H A D | bitmap-str.c | 18 * @ubuf: pointer to user buffer containing string. 24 int bitmap_parse_user(const char __user *ubuf, argument 31 buf = memdup_user_nul(ubuf, ulen); 407 * @ubuf: pointer to user buffer containing string. 415 int bitmap_parselist_user(const char __user *ubuf, argument 422 buf = memdup_user_nul(ubuf, ulen);
|
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | opal-xscom.c | 87 static ssize_t scom_debug_read(struct file *filp, char __user *ubuf, argument 91 u64 __user *ubuf64 = (u64 __user *)ubuf; 118 static ssize_t scom_debug_write(struct file *filp, const char __user *ubuf, argument 122 u64 __user *ubuf64 = (u64 __user *)ubuf;
|
/linux-master/fs/xfs/scrub/ |
H A D | stats.c | 239 char __user *ubuf, 268 ret = simple_read_from_buffer(ubuf, count, ppos, buf, avail); 282 const char __user *ubuf, 290 ret = kstrtouint_from_user(ubuf, count, 0, &val); 237 xchk_scrub_stats_read( struct file *file, char __user *ubuf, size_t count, loff_t *ppos) argument 280 xchk_clear_scrub_stats_write( struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
|
/linux-master/fs/ |
H A D | statfs.c | 248 SYSCALL_DEFINE2(ustat, unsigned, dev, struct ustat __user *, ubuf) 263 return copy_to_user(ubuf, &tmp, sizeof(struct ustat)) ? -EFAULT : 0; 267 static int put_compat_statfs(struct compat_statfs __user *ubuf, struct kstatfs *kbuf) argument 270 if (sizeof ubuf->f_blocks == 4) { 296 if (copy_to_user(ubuf, &buf, sizeof(struct compat_statfs))) 323 static int put_compat_statfs64(struct compat_statfs64 __user *ubuf, struct kstatfs *kbuf) argument 343 if (copy_to_user(ubuf, &buf, sizeof(struct compat_statfs64)))
|
/linux-master/drivers/macintosh/ |
H A D | rack-meter.c | 61 u8 *ubuf; member in struct:rackmeter 138 rm->ubuf[i] = (i & 1) * 255; 140 rm->ubuf[i] = ((~i) & 1) * 255; 240 rm->ubuf[i + offset] = ub; 318 sample |= ((rm->ubuf[led] >= 0x80) << 15); 444 rm->ubuf = (u8 *)__get_free_page(GFP_KERNEL); 445 if (rm->ubuf == NULL) { 512 free_page((unsigned long)rm->ubuf); 552 free_page((unsigned long)rm->ubuf);
|
/linux-master/arch/arc/kernel/ |
H A D | ptrace.c | 164 const void *kbuf, const void __user *ubuf) 172 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ 179 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ 186 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ 262 const void *kbuf, const void __user *ubuf) 272 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, (void *)®s->r30, 161 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 259 arcv2regs_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/s390/kernel/ |
H A D | ptrace.c | 829 const void *kbuf, const void __user *ubuf) 844 const unsigned long __user *u = ubuf; 880 const void __user *ubuf) 890 rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ufpc, 900 rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 918 const void *kbuf, const void __user *ubuf) 939 const void *kbuf, const void __user *ubuf) 963 const void *kbuf, const void __user *ubuf) 976 rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, vxrs, 0, -1); 999 const void *kbuf, const void __user *ubuf) 826 s390_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 877 s390_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 915 s390_last_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 936 s390_tdb_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 960 s390_vxrs_low_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 996 s390_vxrs_high_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1020 s390_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 1045 s390_gs_cb_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 s390_gs_bc_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1156 s390_runtime_instr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1312 s390_compat_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 1361 s390_compat_regs_high_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1403 s390_compat_last_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/arch/sparc/kernel/ |
H A D | systbls.h | 69 char __user *ubuf, 74 char __user *ubuf,
|
H A D | sys_sparc32.c | 190 COMPAT_SYSCALL_DEFINE5(pread64, unsigned int, fd, char __user *, ubuf, 193 return ksys_pread64(fd, ubuf, count, ((u64)poshi << 32) | poslo); 196 COMPAT_SYSCALL_DEFINE5(pwrite64, unsigned int, fd, char __user *, ubuf, 199 return ksys_pwrite64(fd, ubuf, count, ((u64)poshi << 32) | poslo);
|
/linux-master/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_guc_log_debugfs.c | 122 const char __user *ubuf, 130 ret = kstrtoint_from_user(ubuf, cnt, 0, &val); 121 guc_log_relay_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
|
/linux-master/arch/arm/kernel/ |
H A D | ptrace.c | 554 const void *kbuf, const void __user *ubuf) 559 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 583 const void *kbuf, const void __user *ubuf) 587 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, 634 const void *kbuf, const void __user *ubuf) 645 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 652 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 656 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 551 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 580 fpa_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 631 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
|
/linux-master/arch/s390/pci/ |
H A D | pci_debug.c | 137 static ssize_t pci_perf_seq_write(struct file *file, const char __user *ubuf, argument 147 rc = kstrtoul_from_user(ubuf, count, 10, &val);
|
/linux-master/drivers/net/wireless/ath/ath11k/ |
H A D | debugfs.c | 561 const char __user *ubuf, 568 if (kstrtouint_from_user(ubuf, count, 0, &filter)) 592 char __user *ubuf, 605 return simple_read_from_buffer(ubuf, count, ppos, buf, len); 615 const char __user *ubuf, 625 if (kstrtouint_from_user(ubuf, count, 0, &enable)) 691 char __user *ubuf, 703 return simple_read_from_buffer(ubuf, count, ppos, buf, len); 1068 const char __user *ubuf, 1085 rc = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, ubuf, coun 560 ath11k_write_enable_extd_tx_stats(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument 591 ath11k_read_enable_extd_tx_stats(struct file *file, char __user *ubuf, size_t count, loff_t *ppos) argument 614 ath11k_write_extd_rx_stats(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument 690 ath11k_read_extd_rx_stats(struct file *file, char __user *ubuf, size_t count, loff_t *ppos) argument 1067 ath11k_write_pktlog_filter(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument 1199 ath11k_read_pktlog_filter(struct file *file, char __user *ubuf, size_t count, loff_t *ppos) argument 1353 ath11k_debugfs_write_enable_dbr_dbg(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument 1674 ath11k_write_twt_add_dialog(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument 1750 ath11k_write_twt_del_dialog(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument 1797 ath11k_write_twt_pause_dialog(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument 1836 ath11k_write_twt_resume_dialog(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument [all...] |
/linux-master/drivers/ntb/hw/intel/ |
H A D | ntb_hw_gen3.h | 104 ssize_t ndev_ntb3_debugfs_read(struct file *filp, char __user *ubuf,
|
/linux-master/kernel/trace/ |
H A D | trace_stack.c | 324 stack_max_size_read(struct file *filp, char __user *ubuf, argument 334 return simple_read_from_buffer(ubuf, count, ppos, buf, r); 338 stack_max_size_write(struct file *filp, const char __user *ubuf, argument 345 ret = kstrtoul_from_user(ubuf, count, 10, &val);
|
H A D | trace.c | 739 const char __user *ubuf, size_t cnt) 780 ret = trace_get_user(&parser, ubuf, cnt, &pos); 785 ubuf += ret; 1723 int trace_get_user(struct trace_parser *parser, const char __user *ubuf, argument 1733 ret = get_user(ch, ubuf++); 1747 ret = get_user(ch, ubuf++); 1772 ret = get_user(ch, ubuf++); 5019 tracing_write_stub(struct file *filp, const char __user *ubuf, argument 5055 tracing_cpumask_read(struct file *filp, char __user *ubuf, argument 5074 count = simple_read_from_buffer(ubuf, coun 737 trace_pid_write(struct trace_pid_list *filtered_pids, struct trace_pid_list **new_pid_list, const char __user *ubuf, size_t cnt) argument 5123 tracing_cpumask_write(struct file *filp, const char __user *ubuf, size_t count, loff_t *ppos) argument 5347 tracing_trace_options_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 5689 tracing_readme_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 5880 tracing_set_trace_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 6211 tracing_set_trace_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 6242 tracing_nsecs_read(unsigned long *ptr, char __user *ubuf, size_t cnt, loff_t *ppos) argument 6256 tracing_nsecs_write(unsigned long *ptr, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 6272 tracing_thresh_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 6279 tracing_thresh_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 6306 tracing_max_lat_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 6315 tracing_max_lat_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 6508 tracing_read_pipe(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 6753 tracing_entries_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 6801 tracing_entries_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 6829 tracing_total_entries_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 6853 tracing_free_buffer_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 6885 tracing_mark_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *fpos) argument 6979 tracing_mark_raw_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *fpos) argument 7081 tracing_clock_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *fpos) argument 7247 tracing_snapshot_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 7500 trace_min_max_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 7546 trace_min_max_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 7897 tracing_buffers_read(struct file *filp, char __user *ubuf, size_t count, loff_t *ppos) argument 8229 tracing_stats_read(struct file *filp, char __user *ubuf, size_t count, loff_t *ppos) argument 8302 tracing_read_dyn_info(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 8587 trace_options_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 8602 trace_options_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 8693 trace_options_core_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 8712 trace_options_core_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 8902 rb_simple_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 8916 rb_simple_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 8960 buffer_percent_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 8974 buffer_percent_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument 9004 buffer_subbuf_size_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 9021 buffer_subbuf_size_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument [all...] |
/linux-master/drivers/scsi/snic/ |
H A D | snic_debugfs.c | 59 * @ubuf: The buffer tocopy the data to. 66 * copy up to @cnt of data to @ubuf from @buf. 73 char __user *ubuf, 83 return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); 89 * @ubuf: The buffer to copy the data from. 94 * This routine writes data from user buffer @ubuf to buffer @buf and 102 const char __user *ubuf, 117 if (copy_from_user(&buf, ubuf, cnt)) 72 snic_reset_stats_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument 101 snic_reset_stats_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
|
/linux-master/fs/bcachefs/ |
H A D | debug.c | 314 char __user *ubuf; /* destination user buffer */ member in struct:dump_iter 323 int copied = bytes - copy_to_user(i->ubuf, i->buf.buf, bytes); 326 i->ubuf += copied; 371 i->ubuf = buf; 405 i->ubuf = buf; 455 i->ubuf = buf; 552 i->ubuf = buf; 605 i->ubuf = buf; 668 i->ubuf = buf; 707 i->ubuf [all...] |
/linux-master/arch/csky/kernel/ |
H A D | ptrace.c | 92 const void *kbuf, const void __user *ubuf) 97 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®s, 0, -1); 140 const void *kbuf, const void __user *ubuf) 149 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tmp, 0, -1); 161 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, regs, 0, -1); 89 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 137 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
|
/linux-master/drivers/vhost/ |
H A D | net.c | 386 struct ubuf_info_msgzc *ubuf = uarg_to_msgzc(ubuf_base); local 387 struct vhost_net_ubuf_ref *ubufs = ubuf->ctx; 394 vq->heads[ubuf->desc].len = success ? 844 struct ubuf_info_msgzc *ubuf; local 875 /* use msg_control to pass vhost zerocopy ubuf info to skb */ 877 ubuf = nvq->ubuf_info + nvq->upend_idx; 880 ubuf->ctx = nvq->ubufs; 881 ubuf->desc = nvq->upend_idx; 882 ubuf->ubuf [all...] |