ubuf 22 arch/arc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 31 arch/arc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ ubuf 37 arch/arc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ ubuf 43 arch/arc/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, \ ubuf 108 arch/arc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 116 arch/arc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ ubuf 123 arch/arc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ ubuf 130 arch/arc/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ ubuf 188 arch/arc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 202 arch/arc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ®s->r30, ubuf 211 arch/arc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 221 arch/arc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, (void *)®s->r30, ubuf 574 arch/arm/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 578 arch/arm/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 586 arch/arm/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 591 arch/arm/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 607 arch/arm/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 609 arch/arm/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 617 arch/arm/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 623 arch/arm/kernel/ptrace.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 654 arch/arm/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 664 arch/arm/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 671 arch/arm/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 677 arch/arm/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 691 arch/arm/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 702 arch/arm/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 709 arch/arm/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 715 arch/arm/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 479 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 491 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &info, 0, ubuf 498 arch/arm64/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, offset, ubuf 510 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &addr, ubuf 519 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &ctrl, ubuf 525 arch/arm64/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 540 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 549 arch/arm64/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, offset); ubuf 558 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &addr, ubuf 569 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ctrl, ubuf 578 arch/arm64/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 594 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 597 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, 0, -1); ubuf 602 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 607 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newregs, 0, -1); ubuf 631 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf, unsigned int start_pos) ubuf 639 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, ubuf 645 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 653 arch/arm64/kernel/ptrace.c return __fpr_get(target, regset, pos, count, kbuf, ubuf, 0); ubuf 659 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf, ubuf 673 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newstate, ubuf 685 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 692 arch/arm64/kernel/ptrace.c ret = __fpr_set(target, regset, pos, count, kbuf, ubuf, 0); ubuf 704 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 711 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, tls, 0, -1); ubuf 716 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 721 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); ubuf 732 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 736 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 743 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 748 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &syscallno, 0, -1); ubuf 799 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 813 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &header, ubuf 825 arch/arm64/kernel/ptrace.c return __fpr_get(target, regset, pos, count, kbuf, ubuf, ubuf 833 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 841 arch/arm64/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 852 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 860 arch/arm64/kernel/ptrace.c return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 867 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 880 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &header, ubuf 901 arch/arm64/kernel/ptrace.c ret = __fpr_set(target, regset, pos, count, kbuf, ubuf, ubuf 932 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 940 arch/arm64/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 951 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 966 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 982 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &uregs, 0, -1); ubuf 1022 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1032 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1039 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1049 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1073 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1083 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1090 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1100 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1244 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1281 arch/arm64/kernel/ptrace.c ret = copy_to_user(ubuf, ®, sizeof(reg)); ubuf 1287 arch/arm64/kernel/ptrace.c ubuf += sizeof(reg); ubuf 1297 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1322 arch/arm64/kernel/ptrace.c ret = copy_from_user(®, ubuf, sizeof(reg)); ubuf 1328 arch/arm64/kernel/ptrace.c ubuf += sizeof(reg); ubuf 1359 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1378 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, ubuf 1385 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &fpscr, ubuf 1395 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1407 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, ubuf 1411 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &fpscr, ubuf 1425 arch/arm64/kernel/ptrace.c unsigned int count, void *kbuf, void __user *ubuf) ubuf 1428 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); ubuf 1434 arch/arm64/kernel/ptrace.c const void __user *ubuf) ubuf 1439 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); ubuf 61 arch/c6x/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 65 arch/c6x/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 75 arch/csky/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 84 arch/csky/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, regs, 0, -1); ubuf 90 arch/csky/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 95 arch/csky/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®s, 0, -1); ubuf 113 arch/csky/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 129 arch/csky/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &tmp, 0, -1); ubuf 131 arch/csky/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, regs, 0, -1); ubuf 138 arch/csky/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 147 arch/csky/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tmp, 0, -1); ubuf 159 arch/csky/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, regs, 0, -1); ubuf 91 arch/h8300/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 102 arch/h8300/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 109 arch/h8300/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 121 arch/h8300/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 39 arch/hexagon/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 55 arch/hexagon/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 60 arch/hexagon/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, \ ubuf 87 arch/hexagon/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 95 arch/hexagon/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 104 arch/hexagon/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 109 arch/hexagon/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ ubuf 138 arch/hexagon/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 1595 arch/ia64/kernel/perfmon.c pfm_write(struct file *file, const char __user *ubuf, ubuf 1257 arch/ia64/kernel/ptrace.c void __user *ubuf; ubuf 1262 arch/ia64/kernel/ptrace.c const void __user *ubuf; ubuf 1528 arch/ia64/kernel/ptrace.c &dst->u.get.ubuf, ubuf 1547 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, &dst->u.get.ubuf, tmp, ubuf 1557 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, &dst->u.get.ubuf, &pt->r16, ubuf 1576 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, &dst->u.get.ubuf, tmp, ubuf 1597 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, &dst->u.get.ubuf, tmp, ubuf 1616 arch/ia64/kernel/ptrace.c &dst->u.set.ubuf, ubuf 1627 arch/ia64/kernel/ptrace.c &dst->u.set.kbuf, &dst->u.set.ubuf, tmp, ubuf 1645 arch/ia64/kernel/ptrace.c &dst->u.set.kbuf, &dst->u.set.ubuf, &pt->r16, ubuf 1656 arch/ia64/kernel/ptrace.c &dst->u.set.kbuf, &dst->u.set.ubuf, tmp, ubuf 1677 arch/ia64/kernel/ptrace.c &dst->u.set.kbuf, &dst->u.set.ubuf, tmp, ubuf 1706 arch/ia64/kernel/ptrace.c &dst->u.get.ubuf, ubuf 1726 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, &dst->u.get.ubuf, tmp, ubuf 1738 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, &dst->u.get.ubuf, ubuf 1745 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, &dst->u.get.ubuf, ubuf 1763 arch/ia64/kernel/ptrace.c &dst->u.set.ubuf, ubuf 1775 arch/ia64/kernel/ptrace.c &dst->u.set.kbuf, &dst->u.set.ubuf, tmp, ubuf 1817 arch/ia64/kernel/ptrace.c &dst->u.set.ubuf, ubuf 1828 arch/ia64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1832 arch/ia64/kernel/ptrace.c .u.set = { .kbuf = kbuf, .ubuf = ubuf }, ubuf 1851 arch/ia64/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1854 arch/ia64/kernel/ptrace.c kbuf, ubuf); ubuf 1860 arch/ia64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1863 arch/ia64/kernel/ptrace.c kbuf, ubuf); ubuf 1897 arch/ia64/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1900 arch/ia64/kernel/ptrace.c kbuf, ubuf); ubuf 1906 arch/ia64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1909 arch/ia64/kernel/ptrace.c kbuf, ubuf); ubuf 215 arch/mips/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 221 arch/mips/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, 0, ubuf 228 arch/mips/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 241 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, ubuf 282 arch/mips/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 288 arch/mips/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, 0, ubuf 295 arch/mips/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 308 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, ubuf 414 arch/mips/kernel/ptrace.c void **kbuf, void __user **ubuf) ubuf 416 arch/mips/kernel/ptrace.c return user_regset_copyout(pos, count, kbuf, ubuf, ubuf 429 arch/mips/kernel/ptrace.c void **kbuf, void __user **ubuf) ubuf 438 arch/mips/kernel/ptrace.c err = user_regset_copyout(pos, count, kbuf, ubuf, ubuf 456 arch/mips/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 463 arch/mips/kernel/ptrace.c err = fpr_get_fpa(target, &pos, &count, &kbuf, &ubuf); ubuf 465 arch/mips/kernel/ptrace.c err = fpr_get_msa(target, &pos, &count, &kbuf, &ubuf); ubuf 469 arch/mips/kernel/ptrace.c err = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 475 arch/mips/kernel/ptrace.c err = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 489 arch/mips/kernel/ptrace.c const void **kbuf, const void __user **ubuf) ubuf 491 arch/mips/kernel/ptrace.c return user_regset_copyin(pos, count, kbuf, ubuf, ubuf 504 arch/mips/kernel/ptrace.c const void **kbuf, const void __user **ubuf) ubuf 512 arch/mips/kernel/ptrace.c err = user_regset_copyin(pos, count, kbuf, ubuf, ubuf 538 arch/mips/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 553 arch/mips/kernel/ptrace.c err = fpr_set_fpa(target, &pos, &count, &kbuf, &ubuf); ubuf 555 arch/mips/kernel/ptrace.c err = fpr_set_msa(target, &pos, &count, &kbuf, &ubuf); ubuf 560 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 570 arch/mips/kernel/ptrace.c err = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 581 arch/mips/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 586 arch/mips/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &fp_mode, 0, ubuf 602 arch/mips/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 612 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &fp_mode, 0, ubuf 669 arch/mips/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 683 arch/mips/kernel/ptrace.c &kbuf, &ubuf, 0); ubuf 687 arch/mips/kernel/ptrace.c &kbuf, &ubuf, 8); ubuf 690 arch/mips/kernel/ptrace.c err = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 696 arch/mips/kernel/ptrace.c &kbuf, &ubuf, ubuf 700 arch/mips/kernel/ptrace.c err |= user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 709 arch/mips/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 720 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 730 arch/mips/kernel/ptrace.c err |= user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 737 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ctrl_regs, ubuf 757 arch/mips/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 782 arch/mips/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, dspregs, 0, ubuf 792 arch/mips/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 809 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, dspregs, 0, ubuf 837 arch/mips/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 862 arch/mips/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, dspregs, 0, ubuf 872 arch/mips/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 889 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, dspregs, 0, ubuf 17 arch/nds32/kernel/ptrace.c void *kbuf, void __user * ubuf) ubuf 20 arch/nds32/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, 0, -1); ubuf 25 arch/nds32/kernel/ptrace.c const void *kbuf, const void __user * ubuf) ubuf 30 arch/nds32/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newregs, 0, -1); ubuf 25 arch/nios2/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 33 arch/nios2/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, \ ubuf 38 arch/nios2/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ ubuf 43 arch/nios2/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ ubuf 59 arch/nios2/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 71 arch/nios2/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 79 arch/nios2/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ ubuf 84 arch/nios2/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ ubuf 89 arch/nios2/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ ubuf 105 arch/nios2/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 49 arch/openrisc/kernel/ptrace.c void *kbuf, void __user * ubuf) ubuf 55 arch/openrisc/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 0, 4); ubuf 58 arch/openrisc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 61 arch/openrisc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 64 arch/openrisc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 67 arch/openrisc/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 79 arch/openrisc/kernel/ptrace.c const void *kbuf, const void __user * ubuf) ubuf 85 arch/openrisc/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, 4); ubuf 88 arch/openrisc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 92 arch/openrisc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 99 arch/openrisc/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 396 arch/parisc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 400 arch/parisc/kernel/ptrace.c __u64 __user *u = ubuf; ubuf 415 arch/parisc/kernel/ptrace.c ubuf = u; ubuf 418 arch/parisc/kernel/ptrace.c return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 425 arch/parisc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 429 arch/parisc/kernel/ptrace.c const __u64 __user *u = ubuf; ubuf 446 arch/parisc/kernel/ptrace.c ubuf = u; ubuf 449 arch/parisc/kernel/ptrace.c return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 532 arch/parisc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 536 arch/parisc/kernel/ptrace.c unsigned long __user *u = ubuf; ubuf 550 arch/parisc/kernel/ptrace.c ubuf = u; ubuf 553 arch/parisc/kernel/ptrace.c return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 560 arch/parisc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 564 arch/parisc/kernel/ptrace.c const unsigned long __user *u = ubuf; ubuf 581 arch/parisc/kernel/ptrace.c ubuf = u; ubuf 584 arch/parisc/kernel/ptrace.c return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 612 arch/parisc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 616 arch/parisc/kernel/ptrace.c compat_ulong_t __user *u = ubuf; ubuf 631 arch/parisc/kernel/ptrace.c ubuf = u; ubuf 634 arch/parisc/kernel/ptrace.c return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 641 arch/parisc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 645 arch/parisc/kernel/ptrace.c const compat_ulong_t __user *u = ubuf; ubuf 662 arch/parisc/kernel/ptrace.c ubuf = u; ubuf 665 arch/parisc/kernel/ptrace.c return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 339 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 352 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 357 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &msr, ubuf 367 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 372 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 380 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 390 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 395 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, ubuf 406 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 413 arch/powerpc/kernel/ptrace.c &pos, &count, &kbuf, &ubuf, ubuf 418 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, ubuf 427 arch/powerpc/kernel/ptrace.c &pos, &count, &kbuf, &ubuf, ubuf 447 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 459 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, buf, 0, -1); ubuf 466 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 486 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 499 arch/powerpc/kernel/ptrace.c i = user_regset_copyin(&pos, &count, &kbuf, &ubuf, buf, 0, -1); ubuf 513 arch/powerpc/kernel/ptrace.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 555 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 564 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 582 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &vrsave, ubuf 605 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 614 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 632 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &vrsave, ubuf 670 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 683 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 703 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 716 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 747 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 753 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 761 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 770 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 776 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 784 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 836 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 850 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 856 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &msr, ubuf 866 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 871 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 900 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 915 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 920 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, ubuf 931 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 938 arch/powerpc/kernel/ptrace.c &pos, &count, &kbuf, &ubuf, ubuf 943 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, ubuf 952 arch/powerpc/kernel/ptrace.c &pos, &count, &kbuf, &ubuf, ubuf 1002 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1021 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, buf, 0, -1); ubuf 1048 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1068 arch/powerpc/kernel/ptrace.c i = user_regset_copyin(&pos, &count, &kbuf, &ubuf, buf, 0, -1); ubuf 1122 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1139 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1152 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &vrsave, ubuf 1184 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1200 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1213 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &vrsave, ubuf 1266 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1285 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1314 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1334 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1381 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1399 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1404 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1410 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1437 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1455 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1460 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1466 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1487 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1497 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1505 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1515 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1536 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1546 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1554 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1564 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1584 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1594 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1602 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1612 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1622 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1624 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1631 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1633 arch/powerpc/kernel/ptrace.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1640 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1642 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1648 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1650 arch/powerpc/kernel/ptrace.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1658 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1660 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1666 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1668 arch/powerpc/kernel/ptrace.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1687 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1699 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1706 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1720 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1724 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1729 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1747 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1758 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1766 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1779 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1784 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1789 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1794 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1799 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1819 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1827 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1835 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1847 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 2022 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf, ubuf 2026 arch/powerpc/kernel/ptrace.c compat_ulong_t __user *u = ubuf; ubuf 2059 arch/powerpc/kernel/ptrace.c ubuf = u; ubuf 2062 arch/powerpc/kernel/ptrace.c return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 2069 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf, ubuf 2073 arch/powerpc/kernel/ptrace.c const compat_ulong_t __user *u = ubuf; ubuf 2127 arch/powerpc/kernel/ptrace.c ubuf = u; ubuf 2130 arch/powerpc/kernel/ptrace.c return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 2138 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 2140 arch/powerpc/kernel/ptrace.c return gpr32_get_common(target, regset, pos, count, kbuf, ubuf, ubuf 2147 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 2149 arch/powerpc/kernel/ptrace.c return gpr32_set_common(target, regset, pos, count, kbuf, ubuf, ubuf 2157 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 2172 arch/powerpc/kernel/ptrace.c return gpr32_get_common(target, regset, pos, count, kbuf, ubuf, ubuf 2179 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 2185 arch/powerpc/kernel/ptrace.c return gpr32_set_common(target, regset, pos, count, kbuf, ubuf, ubuf 64 arch/powerpc/kernel/sys_ppc32.c compat_ssize_t compat_sys_pread64(unsigned int fd, char __user *ubuf, compat_size_t count, ubuf 67 arch/powerpc/kernel/sys_ppc32.c return ksys_pread64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo); ubuf 70 arch/powerpc/kernel/sys_ppc32.c compat_ssize_t compat_sys_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count, ubuf 73 arch/powerpc/kernel/sys_ppc32.c return ksys_pwrite64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo); ubuf 39 arch/powerpc/platforms/powernv/memtrace.c static ssize_t memtrace_read(struct file *filp, char __user *ubuf, ubuf 44 arch/powerpc/platforms/powernv/memtrace.c return simple_read_from_buffer(ubuf, count, ppos, ent->mem, ent->size); ubuf 184 arch/powerpc/platforms/powernv/opal-lpc.c static ssize_t lpc_debug_read(struct file *filp, char __user *ubuf, ubuf 191 arch/powerpc/platforms/powernv/opal-lpc.c if (!access_ok(ubuf, count)) ubuf 250 arch/powerpc/platforms/powernv/opal-lpc.c rc = __put_user((u32)data, (u32 __user *)ubuf); ubuf 256 arch/powerpc/platforms/powernv/opal-lpc.c rc = __put_user((u16)data, (u16 __user *)ubuf); ubuf 262 arch/powerpc/platforms/powernv/opal-lpc.c rc = __put_user((u8)data, (u8 __user *)ubuf); ubuf 268 arch/powerpc/platforms/powernv/opal-lpc.c ubuf += len; ubuf 275 arch/powerpc/platforms/powernv/opal-lpc.c static ssize_t lpc_debug_write(struct file *filp, const char __user *ubuf, ubuf 282 arch/powerpc/platforms/powernv/opal-lpc.c if (!access_ok(ubuf, count)) ubuf 320 arch/powerpc/platforms/powernv/opal-lpc.c rc = __get_user(data, (u32 __user *)ubuf); ubuf 324 arch/powerpc/platforms/powernv/opal-lpc.c rc = __get_user(data, (u16 __user *)ubuf); ubuf 328 arch/powerpc/platforms/powernv/opal-lpc.c rc = __get_user(data, (u8 __user *)ubuf); ubuf 339 arch/powerpc/platforms/powernv/opal-lpc.c ubuf += len; ubuf 87 arch/powerpc/platforms/powernv/opal-xscom.c static ssize_t scom_debug_read(struct file *filp, char __user *ubuf, ubuf 91 arch/powerpc/platforms/powernv/opal-xscom.c u64 __user *ubuf64 = (u64 __user *)ubuf; ubuf 118 arch/powerpc/platforms/powernv/opal-xscom.c static ssize_t scom_debug_write(struct file *filp, const char __user *ubuf, ubuf 122 arch/powerpc/platforms/powernv/opal-xscom.c u64 __user *ubuf64 = (u64 __user *)ubuf; ubuf 34 arch/riscv/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 39 arch/riscv/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, regs, 0, -1); ubuf 45 arch/riscv/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 51 arch/riscv/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, regs, 0, -1); ubuf 59 arch/riscv/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 64 arch/riscv/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, fstate, 0, ubuf 67 arch/riscv/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, fstate, 0, ubuf 78 arch/riscv/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 83 arch/riscv/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fstate, 0, ubuf 86 arch/riscv/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fstate, 0, ubuf 512 arch/s390/crypto/prng.c static ssize_t prng_tdes_read(struct file *file, char __user *ubuf, ubuf 573 arch/s390/crypto/prng.c if (copy_to_user(ubuf, prng_data->buf, chunk)) { ubuf 580 arch/s390/crypto/prng.c ubuf += chunk; ubuf 590 arch/s390/crypto/prng.c static ssize_t prng_sha512_read(struct file *file, char __user *ubuf, ubuf 643 arch/s390/crypto/prng.c if (copy_to_user(ubuf, p, n)) { ubuf 648 arch/s390/crypto/prng.c ubuf += n; ubuf 80 arch/s390/kernel/compat_linux.c COMPAT_SYSCALL_DEFINE5(s390_pread64, unsigned int, fd, char __user *, ubuf, ubuf 85 arch/s390/kernel/compat_linux.c return ksys_pread64(fd, ubuf, count, (unsigned long)high << 32 | low); ubuf 88 arch/s390/kernel/compat_linux.c COMPAT_SYSCALL_DEFINE5(s390_pwrite64, unsigned int, fd, const char __user *, ubuf, ubuf 93 arch/s390/kernel/compat_linux.c return ksys_pwrite64(fd, ubuf, count, (unsigned long)high << 32 | low); ubuf 126 arch/s390/kernel/compat_linux.c static int cp_stat64(struct stat64_emu31 __user *ubuf, struct kstat *stat) ubuf 147 arch/s390/kernel/compat_linux.c return copy_to_user(ubuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; ubuf 112 arch/s390/kernel/compat_linux.h long compat_sys_s390_pread64(unsigned int fd, char __user *ubuf, compat_size_t count, u32 high, u32 low); ubuf 113 arch/s390/kernel/compat_linux.h long compat_sys_s390_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count, u32 high, u32 low); ubuf 895 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 908 arch/s390/kernel/ptrace.c unsigned long __user *u = ubuf; ubuf 922 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 937 arch/s390/kernel/ptrace.c const unsigned long __user *u = ubuf; ubuf 957 arch/s390/kernel/ptrace.c unsigned int count, void *kbuf, void __user *ubuf) ubuf 967 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 974 arch/s390/kernel/ptrace.c const void __user *ubuf) ubuf 990 arch/s390/kernel/ptrace.c rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ufpc, ubuf 1000 arch/s390/kernel/ptrace.c rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1016 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1023 arch/s390/kernel/ptrace.c unsigned long __user *u = ubuf; ubuf 1034 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1042 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1050 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, data, 0, 256); ubuf 1056 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1064 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1075 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, vxrs, 0, -1); ubuf 1081 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1094 arch/s390/kernel/ptrace.c rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, vxrs, 0, -1); ubuf 1105 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1115 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, vxrs, 0, -1); ubuf 1121 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1130 arch/s390/kernel/ptrace.c rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1138 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1141 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1148 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1151 arch/s390/kernel/ptrace.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1158 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1168 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1175 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1193 arch/s390/kernel/ptrace.c rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1214 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1222 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1229 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1241 arch/s390/kernel/ptrace.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1275 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1284 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 1291 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1312 arch/s390/kernel/ptrace.c rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 1429 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1442 arch/s390/kernel/ptrace.c compat_ulong_t __user *u = ubuf; ubuf 1456 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1471 arch/s390/kernel/ptrace.c const compat_ulong_t __user *u = ubuf; ubuf 1492 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1506 arch/s390/kernel/ptrace.c compat_ulong_t __user *u = ubuf; ubuf 1520 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1535 arch/s390/kernel/ptrace.c const compat_ulong_t __user *u = ubuf; ubuf 1553 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1563 arch/s390/kernel/ptrace.c unsigned long __user *u = ubuf; ubuf 1574 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 131 arch/s390/pci/pci_debug.c static ssize_t pci_perf_seq_write(struct file *file, const char __user *ubuf, ubuf 141 arch/s390/pci/pci_debug.c rc = kstrtoul_from_user(ubuf, count, 10, &val); ubuf 43 arch/sh/include/asm/fpu.h void *kbuf, void __user *ubuf); ubuf 139 arch/sh/kernel/ptrace_32.c void *kbuf, void __user *ubuf) ubuf 144 arch/sh/kernel/ptrace_32.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 149 arch/sh/kernel/ptrace_32.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 154 arch/sh/kernel/ptrace_32.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 163 arch/sh/kernel/ptrace_32.c const void *kbuf, const void __user *ubuf) ubuf 168 arch/sh/kernel/ptrace_32.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 172 arch/sh/kernel/ptrace_32.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 177 arch/sh/kernel/ptrace_32.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 187 arch/sh/kernel/ptrace_32.c void *kbuf, void __user *ubuf) ubuf 196 arch/sh/kernel/ptrace_32.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 199 arch/sh/kernel/ptrace_32.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 206 arch/sh/kernel/ptrace_32.c const void *kbuf, const void __user *ubuf) ubuf 217 arch/sh/kernel/ptrace_32.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 220 arch/sh/kernel/ptrace_32.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 235 arch/sh/kernel/ptrace_32.c void *kbuf, void __user *ubuf) ubuf 241 arch/sh/kernel/ptrace_32.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, regs, ubuf 244 arch/sh/kernel/ptrace_32.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 253 arch/sh/kernel/ptrace_32.c const void *kbuf, const void __user *ubuf) ubuf 259 arch/sh/kernel/ptrace_32.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, regs, ubuf 262 arch/sh/kernel/ptrace_32.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 149 arch/sh/kernel/ptrace_64.c void *kbuf, void __user *ubuf) ubuf 155 arch/sh/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 161 arch/sh/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 167 arch/sh/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 173 arch/sh/kernel/ptrace_64.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 182 arch/sh/kernel/ptrace_64.c const void *kbuf, const void __user *ubuf) ubuf 188 arch/sh/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 194 arch/sh/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 201 arch/sh/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 207 arch/sh/kernel/ptrace_64.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 217 arch/sh/kernel/ptrace_64.c void *kbuf, void __user *ubuf) ubuf 225 arch/sh/kernel/ptrace_64.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 232 arch/sh/kernel/ptrace_64.c const void *kbuf, const void __user *ubuf) ubuf 242 arch/sh/kernel/ptrace_64.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 52 arch/sparc/kernel/ptrace_32.c void *kbuf, void __user *ubuf) ubuf 57 arch/sparc/kernel/ptrace_32.c unsigned long __user *u = ubuf; ubuf 123 arch/sparc/kernel/ptrace_32.c return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 130 arch/sparc/kernel/ptrace_32.c const void *kbuf, const void __user *ubuf) ubuf 135 arch/sparc/kernel/ptrace_32.c const unsigned long __user *u = ubuf; ubuf 207 arch/sparc/kernel/ptrace_32.c return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 214 arch/sparc/kernel/ptrace_32.c void *kbuf, void __user *ubuf) ubuf 224 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 229 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 233 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 242 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 249 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 258 arch/sparc/kernel/ptrace_32.c const void *kbuf, const void __user *ubuf) ubuf 267 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 271 arch/sparc/kernel/ptrace_32.c user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 275 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 282 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 251 arch/sparc/kernel/ptrace_64.c void *kbuf, void __user *ubuf) ubuf 259 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 267 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 275 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 284 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 291 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 301 arch/sparc/kernel/ptrace_64.c const void *kbuf, const void __user *ubuf) ubuf 309 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 318 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 332 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 348 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 357 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 366 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 375 arch/sparc/kernel/ptrace_64.c void *kbuf, void __user *ubuf) ubuf 387 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 391 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 398 arch/sparc/kernel/ptrace_64.c &kbuf, &ubuf, ubuf 404 arch/sparc/kernel/ptrace_64.c &kbuf, &ubuf, ubuf 417 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 422 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 427 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 433 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 442 arch/sparc/kernel/ptrace_64.c const void *kbuf, const void __user *ubuf) ubuf 451 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 455 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 460 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 467 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 477 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 519 arch/sparc/kernel/ptrace_64.c void *kbuf, void __user *ubuf) ubuf 524 arch/sparc/kernel/ptrace_64.c compat_ulong_t __user *u = ubuf; ubuf 624 arch/sparc/kernel/ptrace_64.c return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 631 arch/sparc/kernel/ptrace_64.c const void *kbuf, const void __user *ubuf) ubuf 636 arch/sparc/kernel/ptrace_64.c const compat_ulong_t __user *u = ubuf; ubuf 746 arch/sparc/kernel/ptrace_64.c return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 753 arch/sparc/kernel/ptrace_64.c void *kbuf, void __user *ubuf) ubuf 773 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 778 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 782 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 791 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 798 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, ubuf 807 arch/sparc/kernel/ptrace_64.c const void *kbuf, const void __user *ubuf) ubuf 818 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 822 arch/sparc/kernel/ptrace_64.c user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 829 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 845 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, ubuf 191 arch/sparc/kernel/sys_sparc32.c COMPAT_SYSCALL_DEFINE5(pread64, unsigned int, fd, char __user *, ubuf, ubuf 194 arch/sparc/kernel/sys_sparc32.c return ksys_pread64(fd, ubuf, count, ((u64)poshi << 32) | poslo); ubuf 197 arch/sparc/kernel/sys_sparc32.c COMPAT_SYSCALL_DEFINE5(pwrite64, unsigned int, fd, char __user *, ubuf, ubuf 200 arch/sparc/kernel/sys_sparc32.c return ksys_pwrite64(fd, ubuf, count, ((u64)poshi << 32) | poslo); ubuf 69 arch/sparc/kernel/systbls.h char __user *ubuf, ubuf 74 arch/sparc/kernel/systbls.h char __user *ubuf, ubuf 40 arch/um/os-Linux/file.c int os_stat_fd(const int fd, struct uml_stat *ubuf) ubuf 49 arch/um/os-Linux/file.c if (ubuf != NULL) ubuf 50 arch/um/os-Linux/file.c copy_stat(ubuf, &sbuf); ubuf 54 arch/um/os-Linux/file.c int os_stat_file(const char *file_name, struct uml_stat *ubuf) ubuf 63 arch/um/os-Linux/file.c if (ubuf != NULL) ubuf 64 arch/um/os-Linux/file.c copy_stat(ubuf, &sbuf); ubuf 72 arch/x86/ia32/sys_ia32.c static int cp_stat64(struct stat64 __user *ubuf, struct kstat *stat) ubuf 74 arch/x86/ia32/sys_ia32.c typeof(ubuf->st_uid) uid = 0; ubuf 75 arch/x86/ia32/sys_ia32.c typeof(ubuf->st_gid) gid = 0; ubuf 78 arch/x86/ia32/sys_ia32.c if (!access_ok(ubuf, sizeof(struct stat64)) || ubuf 79 arch/x86/ia32/sys_ia32.c __put_user(huge_encode_dev(stat->dev), &ubuf->st_dev) || ubuf 80 arch/x86/ia32/sys_ia32.c __put_user(stat->ino, &ubuf->__st_ino) || ubuf 81 arch/x86/ia32/sys_ia32.c __put_user(stat->ino, &ubuf->st_ino) || ubuf 82 arch/x86/ia32/sys_ia32.c __put_user(stat->mode, &ubuf->st_mode) || ubuf 83 arch/x86/ia32/sys_ia32.c __put_user(stat->nlink, &ubuf->st_nlink) || ubuf 84 arch/x86/ia32/sys_ia32.c __put_user(uid, &ubuf->st_uid) || ubuf 85 arch/x86/ia32/sys_ia32.c __put_user(gid, &ubuf->st_gid) || ubuf 86 arch/x86/ia32/sys_ia32.c __put_user(huge_encode_dev(stat->rdev), &ubuf->st_rdev) || ubuf 87 arch/x86/ia32/sys_ia32.c __put_user(stat->size, &ubuf->st_size) || ubuf 88 arch/x86/ia32/sys_ia32.c __put_user(stat->atime.tv_sec, &ubuf->st_atime) || ubuf 89 arch/x86/ia32/sys_ia32.c __put_user(stat->atime.tv_nsec, &ubuf->st_atime_nsec) || ubuf 90 arch/x86/ia32/sys_ia32.c __put_user(stat->mtime.tv_sec, &ubuf->st_mtime) || ubuf 91 arch/x86/ia32/sys_ia32.c __put_user(stat->mtime.tv_nsec, &ubuf->st_mtime_nsec) || ubuf 92 arch/x86/ia32/sys_ia32.c __put_user(stat->ctime.tv_sec, &ubuf->st_ctime) || ubuf 93 arch/x86/ia32/sys_ia32.c __put_user(stat->ctime.tv_nsec, &ubuf->st_ctime_nsec) || ubuf 94 arch/x86/ia32/sys_ia32.c __put_user(stat->blksize, &ubuf->st_blksize) || ubuf 95 arch/x86/ia32/sys_ia32.c __put_user(stat->blocks, &ubuf->st_blocks)) ubuf 174 arch/x86/ia32/sys_ia32.c COMPAT_SYSCALL_DEFINE5(x86_pread, unsigned int, fd, char __user *, ubuf, ubuf 177 arch/x86/ia32/sys_ia32.c return ksys_pread64(fd, ubuf, count, ubuf 181 arch/x86/ia32/sys_ia32.c COMPAT_SYSCALL_DEFINE5(x86_pwrite, unsigned int, fd, const char __user *, ubuf, ubuf 184 arch/x86/ia32/sys_ia32.c return ksys_pwrite64(fd, ubuf, count, ubuf 54 arch/x86/include/asm/fpu/xstate.h int copy_xstate_to_user(void __user *ubuf, struct xregs_state *xsave, unsigned int offset, unsigned int size); ubuf 56 arch/x86/include/asm/fpu/xstate.h int copy_user_to_xstate(struct xregs_state *xsave, const void __user *ubuf); ubuf 160 arch/x86/kernel/cpu/mce/dev-mcelog.c static int __mce_read_apei(char __user **ubuf, size_t usize) ubuf 182 arch/x86/kernel/cpu/mce/dev-mcelog.c if (copy_to_user(*ubuf, &m, sizeof(struct mce))) ubuf 195 arch/x86/kernel/cpu/mce/dev-mcelog.c *ubuf += sizeof(struct mce); ubuf 200 arch/x86/kernel/cpu/mce/dev-mcelog.c static ssize_t mce_chrdev_read(struct file *filp, char __user *ubuf, ubuf 203 arch/x86/kernel/cpu/mce/dev-mcelog.c char __user *buf = ubuf; ubuf 211 arch/x86/kernel/cpu/mce/dev-mcelog.c if (err || buf != ubuf) ubuf 239 arch/x86/kernel/cpu/mce/dev-mcelog.c return err ? err : buf - ubuf; ubuf 291 arch/x86/kernel/cpu/mce/dev-mcelog.c static ssize_t mce_chrdev_write(struct file *filp, const char __user *ubuf, ubuf 307 arch/x86/kernel/cpu/mce/dev-mcelog.c if (copy_from_user(&m, ubuf, usize)) ubuf 333 arch/x86/kernel/cpu/mce/inject.c static ssize_t flags_read(struct file *filp, char __user *ubuf, ubuf 341 arch/x86/kernel/cpu/mce/inject.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, n); ubuf 344 arch/x86/kernel/cpu/mce/inject.c static ssize_t flags_write(struct file *filp, const char __user *ubuf, ubuf 353 arch/x86/kernel/cpu/mce/inject.c if (copy_from_user(&buf, ubuf, cnt)) ubuf 635 arch/x86/kernel/cpu/mce/inject.c inj_readme_read(struct file *filp, char __user *ubuf, ubuf 638 arch/x86/kernel/cpu/mce/inject.c return simple_read_from_buffer(ubuf, cnt, ppos, ubuf 384 arch/x86/kernel/cpu/mce/severity.c const char __user *ubuf, ubuf 31 arch/x86/kernel/fpu/regset.c void *kbuf, void __user *ubuf) ubuf 41 arch/x86/kernel/fpu/regset.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 47 arch/x86/kernel/fpu/regset.c const void *kbuf, const void __user *ubuf) ubuf 58 arch/x86/kernel/fpu/regset.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 78 arch/x86/kernel/fpu/regset.c void *kbuf, void __user *ubuf) ubuf 95 arch/x86/kernel/fpu/regset.c ret = copy_xstate_to_user(ubuf, xsave, pos, count); ubuf 108 arch/x86/kernel/fpu/regset.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, xsave, 0, -1); ubuf 115 arch/x86/kernel/fpu/regset.c const void *kbuf, const void __user *ubuf) ubuf 138 arch/x86/kernel/fpu/regset.c ret = copy_user_to_xstate(xsave, ubuf); ubuf 140 arch/x86/kernel/fpu/regset.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, xsave, 0, -1); ubuf 297 arch/x86/kernel/fpu/regset.c void *kbuf, void __user *ubuf) ubuf 305 arch/x86/kernel/fpu/regset.c return fpregs_soft_get(target, regset, pos, count, kbuf, ubuf); ubuf 308 arch/x86/kernel/fpu/regset.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 321 arch/x86/kernel/fpu/regset.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &env, 0, -1); ubuf 326 arch/x86/kernel/fpu/regset.c const void *kbuf, const void __user *ubuf) ubuf 336 arch/x86/kernel/fpu/regset.c return fpregs_soft_set(target, regset, pos, count, kbuf, ubuf); ubuf 339 arch/x86/kernel/fpu/regset.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 346 arch/x86/kernel/fpu/regset.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &env, 0, -1); ubuf 1051 arch/x86/kernel/fpu/xstate.c __copy_xstate_to_user(void __user *ubuf, const void *data, unsigned int offset, unsigned int size, unsigned int size_total) ubuf 1059 arch/x86/kernel/fpu/xstate.c if (__copy_to_user(ubuf + offset, data, copy)) ubuf 1071 arch/x86/kernel/fpu/xstate.c int copy_xstate_to_user(void __user *ubuf, struct xregs_state *xsave, unsigned int offset_start, unsigned int size_total) ubuf 1096 arch/x86/kernel/fpu/xstate.c ret = __copy_xstate_to_user(ubuf, &header, offset, size, size_total); ubuf 1114 arch/x86/kernel/fpu/xstate.c ret = __copy_xstate_to_user(ubuf, src, offset, size, size_total); ubuf 1124 arch/x86/kernel/fpu/xstate.c __copy_xstate_to_user(ubuf, &xsave->i387.mxcsr, offset, size, size_total); ubuf 1133 arch/x86/kernel/fpu/xstate.c ret = __copy_xstate_to_user(ubuf, xstate_fx_sw_bytes, offset, size, size_total); ubuf 1197 arch/x86/kernel/fpu/xstate.c int copy_user_to_xstate(struct xregs_state *xsave, const void __user *ubuf) ubuf 1206 arch/x86/kernel/fpu/xstate.c if (__copy_from_user(&hdr, ubuf + offset, size)) ubuf 1221 arch/x86/kernel/fpu/xstate.c if (__copy_from_user(dst, ubuf + offset, size)) ubuf 1229 arch/x86/kernel/fpu/xstate.c if (__copy_from_user(&xsave->i387.mxcsr, ubuf + offset, size)) ubuf 425 arch/x86/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 435 arch/x86/kernel/ptrace.c unsigned long __user *u = ubuf; ubuf 450 arch/x86/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 461 arch/x86/kernel/ptrace.c const unsigned long __user *u = ubuf; ubuf 706 arch/x86/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 711 arch/x86/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 992 arch/x86/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 1002 arch/x86/kernel/ptrace.c compat_ulong_t __user *u = ubuf; ubuf 1019 arch/x86/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 1030 arch/x86/kernel/ptrace.c const compat_ulong_t __user *u = ubuf; ubuf 260 arch/x86/kernel/tls.c void *kbuf, void __user *ubuf) ubuf 280 arch/x86/kernel/tls.c struct user_desc __user *u_info = ubuf; ubuf 294 arch/x86/kernel/tls.c const void *kbuf, const void __user *ubuf) ubuf 307 arch/x86/kernel/tls.c else if (__copy_from_user(infobuf, ubuf, count)) ubuf 641 arch/x86/math-emu/fpu_entry.c const void *kbuf, const void __user *ubuf) ubuf 649 arch/x86/math-emu/fpu_entry.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, s387, 0, ubuf 663 arch/x86/math-emu/fpu_entry.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 666 arch/x86/math-emu/fpu_entry.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 693 arch/x86/math-emu/fpu_entry.c void *kbuf, void __user *ubuf) ubuf 712 arch/x86/math-emu/fpu_entry.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, s387, 0, ubuf 717 arch/x86/math-emu/fpu_entry.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 720 arch/x86/math-emu/fpu_entry.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 42 arch/xtensa/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 64 arch/xtensa/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 71 arch/xtensa/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 78 arch/xtensa/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newregs, 0, -1); ubuf 120 arch/xtensa/kernel/ptrace.c void *kbuf, void __user *ubuf) ubuf 145 arch/xtensa/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ubuf 154 arch/xtensa/kernel/ptrace.c const void *kbuf, const void __user *ubuf) ubuf 164 arch/xtensa/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ubuf 162 block/blk-map.c struct rq_map_data *map_data, void __user *ubuf, ubuf 167 block/blk-map.c int ret = import_single_range(rq_data_dir(rq), ubuf, len, &iov, &i); ubuf 31 crypto/ahash.c void *ubuf[] CRYPTO_MINALIGN_ATTR; ubuf 279 crypto/ahash.c req->result = PTR_ALIGN((u8 *)priv->ubuf, alignmask + 1); ubuf 92 crypto/shash.c u8 ubuf[MAX_ALGAPI_ALIGNMASK * 2]; ubuf 93 crypto/shash.c u8 *buf = PTR_ALIGN(&ubuf[0], alignmask + 1); ubuf 96 crypto/shash.c if (WARN_ON(buf + unaligned_len > ubuf + sizeof(ubuf))) ubuf 134 crypto/shash.c u8 ubuf[MAX_ALGAPI_ALIGNMASK + HASH_MAX_DIGESTSIZE]; ubuf 135 crypto/shash.c u8 *buf = PTR_ALIGN(&ubuf[0], alignmask + 1); ubuf 138 crypto/shash.c if (WARN_ON(buf + ds > ubuf + sizeof(ubuf))) ubuf 82 drivers/acpi/apei/erst-dbg.c static ssize_t erst_dbg_read(struct file *filp, char __user *ubuf, ubuf 144 drivers/acpi/apei/erst-dbg.c if (copy_to_user(ubuf, erst_dbg_buf, len)) ubuf 152 drivers/acpi/apei/erst-dbg.c static ssize_t erst_dbg_write(struct file *filp, const char __user *ubuf, ubuf 178 drivers/acpi/apei/erst-dbg.c rc = copy_from_user(erst_dbg_buf, ubuf, usize); ubuf 4831 drivers/android/binder.c void __user *ubuf = (void __user *)arg; ubuf 4838 drivers/android/binder.c if (copy_from_user(&bwr, ubuf, sizeof(bwr))) { ubuf 4856 drivers/android/binder.c if (copy_to_user(ubuf, &bwr, sizeof(bwr))) ubuf 4872 drivers/android/binder.c if (copy_to_user(ubuf, &bwr, sizeof(bwr))) ubuf 4882 drivers/android/binder.c if (copy_to_user(ubuf, &bwr, sizeof(bwr))) { ubuf 5005 drivers/android/binder.c void __user *ubuf = (void __user *)arg; ubuf 5033 drivers/android/binder.c if (copy_from_user(&max_threads, ubuf, ubuf 5046 drivers/android/binder.c if (copy_from_user(&fbo, ubuf, sizeof(fbo))) { ubuf 5067 drivers/android/binder.c struct binder_version __user *ver = ubuf; ubuf 5083 drivers/android/binder.c if (copy_from_user(&info, ubuf, sizeof(info))) { ubuf 5092 drivers/android/binder.c if (copy_to_user(ubuf, &info, sizeof(info))) { ubuf 5102 drivers/android/binder.c if (copy_from_user(&info, ubuf, sizeof(info))) { ubuf 5111 drivers/android/binder.c if (copy_to_user(ubuf, &info, sizeof(info))) { ubuf 2237 drivers/block/mtip32xx/mtip32xx.c static ssize_t mtip_hw_read_device_status(struct file *f, char __user *ubuf, ubuf 2258 drivers/block/mtip32xx/mtip32xx.c size = copy_to_user(ubuf, buf, *offset); ubuf 2266 drivers/block/mtip32xx/mtip32xx.c static ssize_t mtip_hw_read_registers(struct file *f, char __user *ubuf, ubuf 2325 drivers/block/mtip32xx/mtip32xx.c size = copy_to_user(ubuf, buf, *offset); ubuf 2333 drivers/block/mtip32xx/mtip32xx.c static ssize_t mtip_hw_read_flags(struct file *f, char __user *ubuf, ubuf 2357 drivers/block/mtip32xx/mtip32xx.c size = copy_to_user(ubuf, buf, *offset); ubuf 163 drivers/block/rsxx/core.c static ssize_t rsxx_cram_read(struct file *fp, char __user *ubuf, ubuf 176 drivers/block/rsxx/core.c st = copy_to_user(ubuf, buf, cnt); ubuf 184 drivers/block/rsxx/core.c static ssize_t rsxx_cram_write(struct file *fp, const char __user *ubuf, ubuf 191 drivers/block/rsxx/core.c buf = memdup_user(ubuf, cnt); ubuf 35 drivers/bluetooth/btmrvl_debugfs.c const char __user *ubuf, size_t count, loff_t *ppos) ubuf 40 drivers/bluetooth/btmrvl_debugfs.c ret = kstrtol_from_user(ubuf, count, 10, &result); ubuf 74 drivers/bluetooth/btmrvl_debugfs.c static ssize_t btmrvl_pscmd_write(struct file *file, const char __user *ubuf, ubuf 80 drivers/bluetooth/btmrvl_debugfs.c ret = kstrtol_from_user(ubuf, count, 10, &result); ubuf 114 drivers/bluetooth/btmrvl_debugfs.c static ssize_t btmrvl_hscmd_write(struct file *file, const char __user *ubuf, ubuf 120 drivers/bluetooth/btmrvl_debugfs.c ret = kstrtol_from_user(ubuf, count, 10, &result); ubuf 2127 drivers/cdrom/cdrom.c static int cdrom_read_cdda_old(struct cdrom_device_info *cdi, __u8 __user *ubuf, ubuf 2161 drivers/cdrom/cdrom.c if (copy_to_user(ubuf, cgc.buffer, CD_FRAMESIZE_RAW * nr)) { ubuf 2165 drivers/cdrom/cdrom.c ubuf += CD_FRAMESIZE_RAW * nr; ubuf 2173 drivers/cdrom/cdrom.c static int cdrom_read_cdda_bpc(struct cdrom_device_info *cdi, __u8 __user *ubuf, ubuf 2210 drivers/cdrom/cdrom.c ret = blk_rq_map_user(q, rq, NULL, ubuf, len, GFP_KERNEL); ubuf 2250 drivers/cdrom/cdrom.c ubuf += len; ubuf 2256 drivers/cdrom/cdrom.c static int cdrom_read_cdda(struct cdrom_device_info *cdi, __u8 __user *ubuf, ubuf 2262 drivers/cdrom/cdrom.c return cdrom_read_cdda_old(cdi, ubuf, lba, nframes); ubuf 2268 drivers/cdrom/cdrom.c ret = cdrom_read_cdda_bpc(cdi, ubuf, lba, nframes); ubuf 2292 drivers/cdrom/cdrom.c return cdrom_read_cdda_old(cdi, ubuf, lba, nframes); ubuf 55 drivers/char/hw_random/s390-trng.c static ssize_t trng_read(struct file *file, char __user *ubuf, ubuf 87 drivers/char/hw_random/s390-trng.c if (copy_to_user(ubuf, p, n)) { ubuf 92 drivers/char/hw_random/s390-trng.c ubuf += n; ubuf 737 drivers/char/virtio_console.c static ssize_t port_fops_read(struct file *filp, char __user *ubuf, ubuf 781 drivers/char/virtio_console.c return fill_readbuf(port, ubuf, count, true); ubuf 804 drivers/char/virtio_console.c static ssize_t port_fops_write(struct file *filp, const char __user *ubuf, ubuf 831 drivers/char/virtio_console.c ret = copy_from_user(buf->buf, ubuf, count); ubuf 348 drivers/crypto/bcm/util.c static ssize_t spu_debugfs_read(struct file *filp, char __user *ubuf, ubuf 467 drivers/crypto/bcm/util.c ret = simple_read_from_buffer(ubuf, count, offp, buf, out_offset); ubuf 42 drivers/crypto/ccp/ccp-debugfs.c static ssize_t ccp5_debugfs_info_read(struct file *filp, char __user *ubuf, ubuf 88 drivers/crypto/ccp/ccp-debugfs.c ret = simple_read_from_buffer(ubuf, count, offp, obuf, oboff); ubuf 97 drivers/crypto/ccp/ccp-debugfs.c static ssize_t ccp5_debugfs_stats_read(struct file *filp, char __user *ubuf, ubuf 150 drivers/crypto/ccp/ccp-debugfs.c ret = simple_read_from_buffer(ubuf, count, offp, obuf, oboff); ubuf 175 drivers/crypto/ccp/ccp-debugfs.c const char __user *ubuf, ubuf 191 drivers/crypto/ccp/ccp-debugfs.c static ssize_t ccp5_debugfs_queue_read(struct file *filp, char __user *ubuf, ubuf 236 drivers/crypto/ccp/ccp-debugfs.c ret = simple_read_from_buffer(ubuf, count, offp, obuf, oboff); ubuf 246 drivers/crypto/ccp/ccp-debugfs.c const char __user *ubuf, ubuf 26 drivers/dma-buf/udmabuf.c struct udmabuf *ubuf = vma->vm_private_data; ubuf 28 drivers/dma-buf/udmabuf.c vmf->page = ubuf->pages[vmf->pgoff]; ubuf 39 drivers/dma-buf/udmabuf.c struct udmabuf *ubuf = buf->priv; ubuf 45 drivers/dma-buf/udmabuf.c vma->vm_private_data = ubuf; ubuf 52 drivers/dma-buf/udmabuf.c struct udmabuf *ubuf = at->dmabuf->priv; ubuf 59 drivers/dma-buf/udmabuf.c ret = sg_alloc_table_from_pages(sg, ubuf->pages, ubuf->pagecount, ubuf 60 drivers/dma-buf/udmabuf.c 0, ubuf->pagecount << PAGE_SHIFT, ubuf 87 drivers/dma-buf/udmabuf.c struct udmabuf *ubuf = buf->priv; ubuf 90 drivers/dma-buf/udmabuf.c for (pg = 0; pg < ubuf->pagecount; pg++) ubuf 91 drivers/dma-buf/udmabuf.c put_page(ubuf->pages[pg]); ubuf 92 drivers/dma-buf/udmabuf.c kfree(ubuf->pages); ubuf 93 drivers/dma-buf/udmabuf.c kfree(ubuf); ubuf 98 drivers/dma-buf/udmabuf.c struct udmabuf *ubuf = buf->priv; ubuf 99 drivers/dma-buf/udmabuf.c struct page *page = ubuf->pages[page_num]; ubuf 127 drivers/dma-buf/udmabuf.c struct udmabuf *ubuf; ubuf 134 drivers/dma-buf/udmabuf.c ubuf = kzalloc(sizeof(*ubuf), GFP_KERNEL); ubuf 135 drivers/dma-buf/udmabuf.c if (!ubuf) ubuf 144 drivers/dma-buf/udmabuf.c ubuf->pagecount += list[i].size >> PAGE_SHIFT; ubuf 145 drivers/dma-buf/udmabuf.c if (ubuf->pagecount > pglimit) ubuf 148 drivers/dma-buf/udmabuf.c ubuf->pages = kmalloc_array(ubuf->pagecount, sizeof(*ubuf->pages), ubuf 150 drivers/dma-buf/udmabuf.c if (!ubuf->pages) { ubuf 179 drivers/dma-buf/udmabuf.c ubuf->pages[pgbuf++] = page; ubuf 186 drivers/dma-buf/udmabuf.c exp_info.size = ubuf->pagecount << PAGE_SHIFT; ubuf 187 drivers/dma-buf/udmabuf.c exp_info.priv = ubuf; ubuf 203 drivers/dma-buf/udmabuf.c put_page(ubuf->pages[--pgbuf]); ubuf 206 drivers/dma-buf/udmabuf.c kfree(ubuf->pages); ubuf 207 drivers/dma-buf/udmabuf.c kfree(ubuf); ubuf 527 drivers/gpu/drm/arm/malidp_drv.c static ssize_t malidp_debugfs_write(struct file *file, const char __user *ubuf, ubuf 325 drivers/gpu/drm/drm_debugfs.c static ssize_t connector_write(struct file *file, const char __user *ubuf, ubuf 335 drivers/gpu/drm/drm_debugfs.c if (copy_from_user(buf, ubuf, len)) ubuf 372 drivers/gpu/drm/drm_debugfs.c static ssize_t edid_write(struct file *file, const char __user *ubuf, ubuf 381 drivers/gpu/drm/drm_debugfs.c buf = memdup_user(ubuf, len); ubuf 120 drivers/gpu/drm/drm_debugfs_crc.c static ssize_t crc_control_write(struct file *file, const char __user *ubuf, ubuf 139 drivers/gpu/drm/drm_debugfs_crc.c source = memdup_user_nul(ubuf, len); ubuf 1183 drivers/gpu/drm/drm_mipi_dbi.c const char __user *ubuf, ubuf 1195 drivers/gpu/drm/drm_mipi_dbi.c buf = memdup_user_nul(ubuf, count); ubuf 672 drivers/gpu/drm/i915/i915_debugfs.c static ssize_t gpu_state_read(struct file *file, char __user *ubuf, ubuf 692 drivers/gpu/drm/i915/i915_debugfs.c if (!copy_to_user(ubuf, buf, ret)) ubuf 734 drivers/gpu/drm/i915/i915_debugfs.c const char __user *ubuf, ubuf 2046 drivers/gpu/drm/i915/i915_debugfs.c const char __user *ubuf, ubuf 2920 drivers/gpu/drm/i915/i915_debugfs.c static ssize_t i915_ipc_status_write(struct file *file, const char __user *ubuf, ubuf 2929 drivers/gpu/drm/i915/i915_debugfs.c ret = kstrtobool_from_user(ubuf, len, &enable); ubuf 3123 drivers/gpu/drm/i915/i915_debugfs.c const char __user *ubuf, ubuf 3139 drivers/gpu/drm/i915/i915_debugfs.c input_buffer = memdup_user_nul(ubuf, len); ubuf 3422 drivers/gpu/drm/i915/i915_debugfs.c static ssize_t wm_latency_write(struct file *file, const char __user *ubuf, ubuf 3446 drivers/gpu/drm/i915/i915_debugfs.c if (copy_from_user(tmp, ubuf, len)) ubuf 3468 drivers/gpu/drm/i915/i915_debugfs.c static ssize_t pri_wm_latency_write(struct file *file, const char __user *ubuf, ubuf 3480 drivers/gpu/drm/i915/i915_debugfs.c return wm_latency_write(file, ubuf, len, offp, latencies); ubuf 3483 drivers/gpu/drm/i915/i915_debugfs.c static ssize_t spr_wm_latency_write(struct file *file, const char __user *ubuf, ubuf 3495 drivers/gpu/drm/i915/i915_debugfs.c return wm_latency_write(file, ubuf, len, offp, latencies); ubuf 3498 drivers/gpu/drm/i915/i915_debugfs.c static ssize_t cur_wm_latency_write(struct file *file, const char __user *ubuf, ubuf 3510 drivers/gpu/drm/i915/i915_debugfs.c return wm_latency_write(file, ubuf, len, offp, latencies); ubuf 4027 drivers/gpu/drm/i915/i915_debugfs.c const char __user *ubuf, size_t len, ubuf 4041 drivers/gpu/drm/i915/i915_debugfs.c if (copy_from_user(tmp, ubuf, len)) ubuf 4107 drivers/gpu/drm/i915/i915_debugfs.c const char __user *ubuf, ubuf 4121 drivers/gpu/drm/i915/i915_debugfs.c if (copy_from_user(tmp, ubuf, len)) ubuf 4234 drivers/gpu/drm/i915/i915_debugfs.c const char __user *ubuf, ubuf 4243 drivers/gpu/drm/i915/i915_debugfs.c ret = kstrtobool_from_user(ubuf, cnt, &reset); ubuf 4548 drivers/gpu/drm/i915/i915_debugfs.c const char __user *ubuf, ubuf 4564 drivers/gpu/drm/i915/i915_debugfs.c ret = kstrtobool_from_user(ubuf, len, &dsc_enable); ubuf 139 drivers/gpu/drm/nouveau/nouveau_debugfs.c nouveau_debugfs_pstate_set(struct file *file, const char __user *ubuf, ubuf 156 drivers/gpu/drm/nouveau/nouveau_debugfs.c if (copy_from_user(buf, ubuf, len)) ubuf 775 drivers/gpu/vga/vga_switcheroo.c vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf, ubuf 788 drivers/gpu/vga/vga_switcheroo.c if (copy_from_user(usercmd, ubuf, cnt)) ubuf 507 drivers/hwtracing/coresight/coresight-cpu-debug.c char __user *ubuf, size_t count, loff_t *ppos) ubuf 516 drivers/hwtracing/coresight/coresight-cpu-debug.c ret = simple_read_from_buffer(ubuf, count, ppos, buf, sizeof(buf)); ubuf 62 drivers/macintosh/rack-meter.c u8 *ubuf; ubuf 138 drivers/macintosh/rack-meter.c rm->ubuf[i] = (i & 1) * 255; ubuf 140 drivers/macintosh/rack-meter.c rm->ubuf[i] = ((~i) & 1) * 255; ubuf 240 drivers/macintosh/rack-meter.c rm->ubuf[i + offset] = ub; ubuf 318 drivers/macintosh/rack-meter.c sample |= ((rm->ubuf[led] >= 0x80) << 15); ubuf 444 drivers/macintosh/rack-meter.c rm->ubuf = (u8 *)__get_free_page(GFP_KERNEL); ubuf 445 drivers/macintosh/rack-meter.c if (rm->ubuf == NULL) { ubuf 512 drivers/macintosh/rack-meter.c free_page((unsigned long)rm->ubuf); ubuf 552 drivers/macintosh/rack-meter.c free_page((unsigned long)rm->ubuf); ubuf 424 drivers/mailbox/bcm-pdc-mailbox.c static ssize_t pdc_debugfs_read(struct file *filp, char __user *ubuf, ubuf 473 drivers/mailbox/bcm-pdc-mailbox.c ret = simple_read_from_buffer(ubuf, count, offp, buf, out_offset); ubuf 206 drivers/media/cec/cec-core.c const char __user *ubuf, size_t count, loff_t *ppos) ubuf 214 drivers/media/cec/cec-core.c buf = memdup_user_nul(ubuf, min_t(size_t, PAGE_SIZE, count)); ubuf 260 drivers/media/pci/cx18/cx18-fileops.c struct cx18_buffer *buf, char __user *ubuf, size_t ucount, bool *stop) ubuf 351 drivers/media/pci/cx18/cx18-fileops.c if (copy_to_user(ubuf, (u8 *)buf->buf + buf->readpos, len)) { ubuf 364 drivers/media/pci/cx18/cx18-fileops.c struct cx18_mdl *mdl, char __user *ubuf, size_t ucount) ubuf 389 drivers/media/pci/cx18/cx18-fileops.c rc = cx18_copy_buf_to_user(s, mdl->curr_buf, ubuf + tot_written, ubuf 405 drivers/media/pci/cx18/cx18-fileops.c static ssize_t cx18_read(struct cx18_stream *s, char __user *ubuf, ubuf 445 drivers/media/pci/cx18/cx18-fileops.c rc = cx18_copy_mdl_to_user(s, mdl, ubuf + tot_written, ubuf 470 drivers/media/pci/cx18/cx18-fileops.c static ssize_t cx18_read_pos(struct cx18_stream *s, char __user *ubuf, ubuf 473 drivers/media/pci/cx18/cx18-fileops.c ssize_t rc = count ? cx18_read(s, ubuf, count, non_block) : 0; ubuf 287 drivers/media/pci/ivtv/ivtv-fileops.c char __user *ubuf, size_t ucount) ubuf 333 drivers/media/pci/ivtv/ivtv-fileops.c if (copy_to_user(ubuf, (u8 *)buf->buf + buf->readpos, len)) { ubuf 346 drivers/media/pci/ivtv/ivtv-fileops.c static ssize_t ivtv_read(struct ivtv_stream *s, char __user *ubuf, size_t tot_count, int non_block) ubuf 383 drivers/media/pci/ivtv/ivtv-fileops.c rc = ivtv_copy_buf_to_user(s, buf, ubuf + tot_written, tot_count - tot_written); ubuf 403 drivers/media/pci/ivtv/ivtv-fileops.c static ssize_t ivtv_read_pos(struct ivtv_stream *s, char __user *ubuf, size_t count, ubuf 406 drivers/media/pci/ivtv/ivtv-fileops.c ssize_t rc = count ? ivtv_read(s, ubuf, count, non_block) : 0; ubuf 251 drivers/media/pci/saa7164/saa7164-core.c struct saa7164_user_buffer *ubuf = NULL; ubuf 307 drivers/media/pci/saa7164/saa7164-core.c ubuf = list_first_entry(&port->list_buf_free.list, ubuf 310 drivers/media/pci/saa7164/saa7164-core.c if (buf->actual_size <= ubuf->actual_size) { ubuf 312 drivers/media/pci/saa7164/saa7164-core.c memcpy(ubuf->data, buf->cpu, ubuf->actual_size); ubuf 316 drivers/media/pci/saa7164/saa7164-core.c ubuf->crc = crc32(0, ubuf->data, ubuf->actual_size); ubuf 320 drivers/media/pci/saa7164/saa7164-core.c ubuf->pos = 0; ubuf 322 drivers/media/pci/saa7164/saa7164-core.c list_move_tail(&ubuf->list, ubuf 64 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_user_buffer *ubuf; ubuf 78 drivers/media/pci/saa7164/saa7164-encoder.c ubuf = list_entry(p, struct saa7164_user_buffer, list); ubuf 80 drivers/media/pci/saa7164/saa7164-encoder.c saa7164_buffer_dealloc_user(ubuf); ubuf 85 drivers/media/pci/saa7164/saa7164-encoder.c ubuf = list_entry(l, struct saa7164_user_buffer, list); ubuf 87 drivers/media/pci/saa7164/saa7164-encoder.c saa7164_buffer_dealloc_user(ubuf); ubuf 101 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_user_buffer *ubuf; ubuf 171 drivers/media/pci/saa7164/saa7164-encoder.c ubuf = saa7164_buffer_alloc_user(dev, len); ubuf 172 drivers/media/pci/saa7164/saa7164-encoder.c if (ubuf) { ubuf 174 drivers/media/pci/saa7164/saa7164-encoder.c list_add_tail(&ubuf->list, &port->list_buf_free.list); ubuf 591 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_user_buffer *ubuf; ubuf 615 drivers/media/pci/saa7164/saa7164-encoder.c ubuf = list_entry(c, struct saa7164_user_buffer, list); ubuf 616 drivers/media/pci/saa7164/saa7164-encoder.c ubuf->pos = 0; ubuf 617 drivers/media/pci/saa7164/saa7164-encoder.c list_move_tail(&ubuf->list, &port->list_buf_free.list); ubuf 761 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_user_buffer *ubuf = NULL; ubuf 767 drivers/media/pci/saa7164/saa7164-encoder.c ubuf = list_first_entry(&port->list_buf_used.list, ubuf 771 drivers/media/pci/saa7164/saa7164-encoder.c crc = crc32(0, ubuf->data, ubuf->actual_size); ubuf 772 drivers/media/pci/saa7164/saa7164-encoder.c if (crc != ubuf->crc) { ubuf 776 drivers/media/pci/saa7164/saa7164-encoder.c ubuf, ubuf->crc, crc); ubuf 783 drivers/media/pci/saa7164/saa7164-encoder.c dprintk(DBGLVL_ENC, "%s() returns %p\n", __func__, ubuf); ubuf 785 drivers/media/pci/saa7164/saa7164-encoder.c return ubuf; ubuf 793 drivers/media/pci/saa7164/saa7164-encoder.c struct saa7164_user_buffer *ubuf = NULL; ubuf 835 drivers/media/pci/saa7164/saa7164-encoder.c ubuf = saa7164_enc_next_buf(port); ubuf 837 drivers/media/pci/saa7164/saa7164-encoder.c while ((count > 0) && ubuf) { ubuf 840 drivers/media/pci/saa7164/saa7164-encoder.c rem = ubuf->actual_size - ubuf->pos; ubuf 843 drivers/media/pci/saa7164/saa7164-encoder.c p = ubuf->data + ubuf->pos; ubuf 847 drivers/media/pci/saa7164/saa7164-encoder.c __func__, (int)count, cnt, rem, ubuf, ubuf->pos); ubuf 858 drivers/media/pci/saa7164/saa7164-encoder.c ubuf->pos += cnt; ubuf 863 drivers/media/pci/saa7164/saa7164-encoder.c if (ubuf->pos > ubuf->actual_size) ubuf 866 drivers/media/pci/saa7164/saa7164-encoder.c if (ubuf->pos == ubuf->actual_size) { ubuf 871 drivers/media/pci/saa7164/saa7164-encoder.c ubuf->pos = 0; ubuf 874 drivers/media/pci/saa7164/saa7164-encoder.c list_move_tail(&ubuf->list, &port->list_buf_free.list); ubuf 884 drivers/media/pci/saa7164/saa7164-encoder.c ubuf = saa7164_enc_next_buf(port); ubuf 888 drivers/media/pci/saa7164/saa7164-encoder.c if (!ret && !ubuf) ubuf 33 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_user_buffer *ubuf; ubuf 47 drivers/media/pci/saa7164/saa7164-vbi.c ubuf = list_entry(p, struct saa7164_user_buffer, list); ubuf 49 drivers/media/pci/saa7164/saa7164-vbi.c saa7164_buffer_dealloc_user(ubuf); ubuf 54 drivers/media/pci/saa7164/saa7164-vbi.c ubuf = list_entry(l, struct saa7164_user_buffer, list); ubuf 56 drivers/media/pci/saa7164/saa7164-vbi.c saa7164_buffer_dealloc_user(ubuf); ubuf 70 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_user_buffer *ubuf; ubuf 124 drivers/media/pci/saa7164/saa7164-vbi.c ubuf = saa7164_buffer_alloc_user(dev, len); ubuf 125 drivers/media/pci/saa7164/saa7164-vbi.c if (ubuf) { ubuf 127 drivers/media/pci/saa7164/saa7164-vbi.c list_add_tail(&ubuf->list, &port->list_buf_free.list); ubuf 275 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_user_buffer *ubuf; ubuf 299 drivers/media/pci/saa7164/saa7164-vbi.c ubuf = list_entry(c, struct saa7164_user_buffer, list); ubuf 300 drivers/media/pci/saa7164/saa7164-vbi.c ubuf->pos = 0; ubuf 301 drivers/media/pci/saa7164/saa7164-vbi.c list_move_tail(&ubuf->list, &port->list_buf_free.list); ubuf 466 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_user_buffer *ubuf = NULL; ubuf 472 drivers/media/pci/saa7164/saa7164-vbi.c ubuf = list_first_entry(&port->list_buf_used.list, ubuf 476 drivers/media/pci/saa7164/saa7164-vbi.c crc = crc32(0, ubuf->data, ubuf->actual_size); ubuf 477 drivers/media/pci/saa7164/saa7164-vbi.c if (crc != ubuf->crc) { ubuf 480 drivers/media/pci/saa7164/saa7164-vbi.c ubuf, ubuf->crc, crc); ubuf 487 drivers/media/pci/saa7164/saa7164-vbi.c dprintk(DBGLVL_VBI, "%s() returns %p\n", __func__, ubuf); ubuf 489 drivers/media/pci/saa7164/saa7164-vbi.c return ubuf; ubuf 497 drivers/media/pci/saa7164/saa7164-vbi.c struct saa7164_user_buffer *ubuf = NULL; ubuf 539 drivers/media/pci/saa7164/saa7164-vbi.c ubuf = saa7164_vbi_next_buf(port); ubuf 541 drivers/media/pci/saa7164/saa7164-vbi.c while ((count > 0) && ubuf) { ubuf 544 drivers/media/pci/saa7164/saa7164-vbi.c rem = ubuf->actual_size - ubuf->pos; ubuf 547 drivers/media/pci/saa7164/saa7164-vbi.c p = ubuf->data + ubuf->pos; ubuf 551 drivers/media/pci/saa7164/saa7164-vbi.c __func__, (int)count, cnt, rem, ubuf, ubuf->pos); ubuf 562 drivers/media/pci/saa7164/saa7164-vbi.c ubuf->pos += cnt; ubuf 567 drivers/media/pci/saa7164/saa7164-vbi.c if (ubuf->pos > ubuf->actual_size) ubuf 570 drivers/media/pci/saa7164/saa7164-vbi.c if (ubuf->pos == ubuf->actual_size) { ubuf 575 drivers/media/pci/saa7164/saa7164-vbi.c ubuf->pos = 0; ubuf 578 drivers/media/pci/saa7164/saa7164-vbi.c list_move_tail(&ubuf->list, &port->list_buf_free.list); ubuf 588 drivers/media/pci/saa7164/saa7164-vbi.c ubuf = saa7164_vbi_next_buf(port); ubuf 592 drivers/media/pci/saa7164/saa7164-vbi.c if (!ret && !ubuf) { ubuf 934 drivers/misc/eeprom/idt_89hpesx.c static ssize_t idt_dbgfs_csr_write(struct file *filep, const char __user *ubuf, ubuf 948 drivers/misc/eeprom/idt_89hpesx.c ret = simple_write_to_buffer(buf, count, offp, ubuf, count); ubuf 1028 drivers/misc/eeprom/idt_89hpesx.c static ssize_t idt_dbgfs_csr_read(struct file *filep, char __user *ubuf, ubuf 1049 drivers/misc/eeprom/idt_89hpesx.c return simple_read_from_buffer(ubuf, count, offp, buf, size); ubuf 130 drivers/misc/mei/main.c static ssize_t mei_read(struct file *file, char __user *ubuf, ubuf 156 drivers/misc/mei/main.c if (ubuf == NULL) { ubuf 219 drivers/misc/mei/main.c if (copy_to_user(ubuf, cb->buf.data + *offset, length)) { ubuf 250 drivers/misc/mei/main.c static ssize_t mei_write(struct file *file, const char __user *ubuf, ubuf 318 drivers/misc/mei/main.c rets = copy_from_user(cb->buf.data, ubuf, length); ubuf 514 drivers/misc/mic/vop/vop_vringh.c static int vop_virtio_copy_to_user(struct vop_vdev *vdev, void __user *ubuf, ubuf 528 drivers/misc/mic/vop/vop_vringh.c if (copy_to_user(ubuf, (void __force *)dbuf, len)) { ubuf 562 drivers/misc/mic/vop/vop_vringh.c if (copy_to_user(ubuf, vvr->buf + dma_offset, ubuf 570 drivers/misc/mic/vop/vop_vringh.c ubuf += partlen; ubuf 582 drivers/misc/mic/vop/vop_vringh.c __func__, ubuf, dbuf, len, vr_idx); ubuf 592 drivers/misc/mic/vop/vop_vringh.c static int vop_virtio_copy_from_user(struct vop_vdev *vdev, void __user *ubuf, ubuf 633 drivers/misc/mic/vop/vop_vringh.c if (copy_from_user(vvr->buf, ubuf, partlen)) { ubuf 647 drivers/misc/mic/vop/vop_vringh.c ubuf += partlen; ubuf 658 drivers/misc/mic/vop/vop_vringh.c if (copy_from_user((void __force *)dbuf, ubuf, len)) { ubuf 670 drivers/misc/mic/vop/vop_vringh.c __func__, ubuf, dbuf, len, vr_idx); ubuf 695 drivers/misc/mic/vop/vop_vringh.c void __user *ubuf, size_t len, bool read, int vr_idx, ubuf 707 drivers/misc/mic/vop/vop_vringh.c ret = vop_virtio_copy_to_user(vdev, ubuf, partlen, ubuf 712 drivers/misc/mic/vop/vop_vringh.c ret = vop_virtio_copy_from_user(vdev, ubuf, partlen, ubuf 722 drivers/misc/mic/vop/vop_vringh.c ubuf += partlen; ubuf 750 drivers/misc/mic/vop/vop_vringh.c void __user *ubuf = NULL; ubuf 779 drivers/misc/mic/vop/vop_vringh.c ubuf = iov.iov_base; ubuf 782 drivers/misc/mic/vop/vop_vringh.c ret = vop_vringh_copy(vdev, riov, ubuf, len, ubuf 790 drivers/misc/mic/vop/vop_vringh.c ubuf += out_len; ubuf 793 drivers/misc/mic/vop/vop_vringh.c ret = vop_vringh_copy(vdev, wiov, ubuf, len, ubuf 801 drivers/misc/mic/vop/vop_vringh.c ubuf += out_len; ubuf 37 drivers/misc/sgi-gru/grukdump.c void __user *ubuf, int ctxnum, int dsrcnt, ubuf 51 drivers/misc/sgi-gru/grukdump.c if (gru_user_copy_handle(&ubuf, cb)) ubuf 53 drivers/misc/sgi-gru/grukdump.c if (gru_user_copy_handle(&ubuf, tfh + i * GRU_HANDLE_STRIDE)) ubuf 55 drivers/misc/sgi-gru/grukdump.c if (gru_user_copy_handle(&ubuf, cbe + i * GRU_HANDLE_STRIDE)) ubuf 60 drivers/misc/sgi-gru/grukdump.c memcpy(ubuf, gseg + GRU_DS_BASE, dsrcnt * GRU_HANDLE_STRIDE); ubuf 68 drivers/misc/sgi-gru/grukdump.c void __user *ubuf, void __user *ubufend) ubuf 73 drivers/misc/sgi-gru/grukdump.c if (GRU_NUM_TFM * GRU_CACHE_LINE_BYTES > ubufend - ubuf) ubuf 78 drivers/misc/sgi-gru/grukdump.c if (gru_user_copy_handle(&ubuf, tfm)) ubuf 88 drivers/misc/sgi-gru/grukdump.c void __user *ubuf, void __user *ubufend) ubuf 93 drivers/misc/sgi-gru/grukdump.c if (GRU_NUM_TGH * GRU_CACHE_LINE_BYTES > ubufend - ubuf) ubuf 98 drivers/misc/sgi-gru/grukdump.c if (gru_user_copy_handle(&ubuf, tgh)) ubuf 108 drivers/misc/sgi-gru/grukdump.c void __user *ubuf, void __user *ubufend, char data_opt, ubuf 112 drivers/misc/sgi-gru/grukdump.c struct gru_dump_context_header __user *uhdr = ubuf; ubuf 128 drivers/misc/sgi-gru/grukdump.c ubuf += sizeof(hdr); ubuf 129 drivers/misc/sgi-gru/grukdump.c ubufcch = ubuf; ubuf 130 drivers/misc/sgi-gru/grukdump.c if (gru_user_copy_handle(&ubuf, cch)) { ubuf 152 drivers/misc/sgi-gru/grukdump.c if (bytes > ubufend - ubuf) ubuf 155 drivers/misc/sgi-gru/grukdump.c ret = gru_dump_context_data(grubase, cch, ubuf, ctxnum, ubuf 179 drivers/misc/sgi-gru/grukdump.c void __user *ubuf; ubuf 192 drivers/misc/sgi-gru/grukdump.c ubuf = req.buf; ubuf 195 drivers/misc/sgi-gru/grukdump.c ret = gru_dump_tfm(gru, ubuf, ubufend); ubuf 198 drivers/misc/sgi-gru/grukdump.c ubuf += ret; ubuf 200 drivers/misc/sgi-gru/grukdump.c ret = gru_dump_tgh(gru, ubuf, ubufend); ubuf 203 drivers/misc/sgi-gru/grukdump.c ubuf += ret; ubuf 207 drivers/misc/sgi-gru/grukdump.c ret = gru_dump_context(gru, ctxnum, ubuf, ubufend, ubuf 212 drivers/misc/sgi-gru/grukdump.c ubuf += ret; ubuf 425 drivers/misc/vmw_vmci/vmci_host.c void __user *ubuf = (void __user *)(uintptr_t)recv_info.addr; ubuf 426 drivers/misc/vmw_vmci/vmci_host.c retval = copy_to_user(ubuf, dg, VMCI_DG_SIZE(dg)); ubuf 717 drivers/misc/vmw_vmci/vmci_host.c void __user *ubuf = (void __user *)(uintptr_t)get_info.cpt_buf; ubuf 718 drivers/misc/vmw_vmci/vmci_host.c retval = copy_to_user(ubuf, cpt_buf, get_info.buf_size); ubuf 853 drivers/misc/vmw_vmci/vmci_host.c void __user *ubuf; ubuf 882 drivers/misc/vmw_vmci/vmci_host.c ubuf = (void __user *)(uintptr_t)info.db_handle_buf_uva; ubuf 883 drivers/misc/vmw_vmci/vmci_host.c info.result = drv_cp_harray_to_user(ubuf, &info.db_handle_buf_size, ubuf 886 drivers/misc/vmw_vmci/vmci_host.c ubuf = (void __user *)(uintptr_t)info.qp_handle_buf_uva; ubuf 887 drivers/misc/vmw_vmci/vmci_host.c info.result = drv_cp_harray_to_user(ubuf, ubuf 2785 drivers/mmc/core/block.c static ssize_t mmc_ext_csd_read(struct file *filp, char __user *ubuf, ubuf 2790 drivers/mmc/core/block.c return simple_read_from_buffer(ubuf, cnt, ppos, ubuf 3077 drivers/net/ethernet/brocade/bna/bfa_ioc.c memcpy(flash->dbuf_kva, flash->ubuf + flash->offset, len); ubuf 3141 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr = (struct bfa_flash_attr *) flash->ubuf; ubuf 3178 drivers/net/ethernet/brocade/bna/bfa_ioc.c memcpy(flash->ubuf + flash->offset, ubuf 3269 drivers/net/ethernet/brocade/bna/bfa_ioc.c flash->ubuf = (u8 *) attr; ubuf 3321 drivers/net/ethernet/brocade/bna/bfa_ioc.c flash->ubuf = buf; ubuf 3367 drivers/net/ethernet/brocade/bna/bfa_ioc.c flash->ubuf = buf; ubuf 328 drivers/net/ethernet/brocade/bna/bfa_ioc.h u8 *ubuf; /* user supplied buffer */ ubuf 3209 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c static ssize_t blocked_fl_read(struct file *filp, char __user *ubuf, ubuf 3225 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c size = simple_read_from_buffer(ubuf, count, ppos, buf, len); ubuf 3230 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c static ssize_t blocked_fl_write(struct file *filp, const char __user *ubuf, ubuf 3241 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c err = bitmap_parse_user(ubuf, count, t, adap->sge.egr_sz); ubuf 1848 drivers/net/wireless/ath/ath10k/debug.c const char __user *ubuf, ubuf 1855 drivers/net/wireless/ath/ath10k/debug.c if (kstrtouint_from_user(ubuf, count, 0, &filter)) ubuf 1894 drivers/net/wireless/ath/ath10k/debug.c static ssize_t ath10k_read_pktlog_filter(struct file *file, char __user *ubuf, ubuf 1906 drivers/net/wireless/ath/ath10k/debug.c return simple_read_from_buffer(ubuf, count, ppos, buf, len); ubuf 1916 drivers/net/wireless/ath/ath10k/debug.c const char __user *ubuf, ubuf 1922 drivers/net/wireless/ath/ath10k/debug.c if (kstrtouint_from_user(ubuf, count, 0, &period)) ubuf 1938 drivers/net/wireless/ath/ath10k/debug.c static ssize_t ath10k_read_quiet_period(struct file *file, char __user *ubuf, ubuf 1950 drivers/net/wireless/ath/ath10k/debug.c return simple_read_from_buffer(ubuf, count, ppos, buf, len); ubuf 1960 drivers/net/wireless/ath/ath10k/debug.c const char __user *ubuf, ubuf 1971 drivers/net/wireless/ath/ath10k/debug.c if (copy_from_user(buf, ubuf, buf_size)) ubuf 2019 drivers/net/wireless/ath/ath10k/debug.c static ssize_t ath10k_read_btcoex(struct file *file, char __user *ubuf, ubuf 2031 drivers/net/wireless/ath/ath10k/debug.c return simple_read_from_buffer(ubuf, count, ppos, buf, len); ubuf 2041 drivers/net/wireless/ath/ath10k/debug.c const char __user *ubuf, ubuf 2048 drivers/net/wireless/ath/ath10k/debug.c if (kstrtouint_from_user(ubuf, count, 0, &filter)) ubuf 2073 drivers/net/wireless/ath/ath10k/debug.c char __user *ubuf, ubuf 2086 drivers/net/wireless/ath/ath10k/debug.c return simple_read_from_buffer(ubuf, count, ppos, buf, len); ubuf 2096 drivers/net/wireless/ath/ath10k/debug.c const char __user *ubuf, ubuf 2106 drivers/net/wireless/ath/ath10k/debug.c if (copy_from_user(buf, ubuf, buf_size)) ubuf 2142 drivers/net/wireless/ath/ath10k/debug.c static ssize_t ath10k_read_peer_stats(struct file *file, char __user *ubuf, ubuf 2155 drivers/net/wireless/ath/ath10k/debug.c return simple_read_from_buffer(ubuf, count, ppos, buf, len); ubuf 74 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_info_read(struct file *file, char __user *ubuf, ubuf 148 drivers/net/wireless/marvell/mwifiex/debugfs.c ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, ubuf 178 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_getlog_read(struct file *file, char __user *ubuf, ubuf 235 drivers/net/wireless/marvell/mwifiex/debugfs.c ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, ubuf 254 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_histogram_read(struct file *file, char __user *ubuf, ubuf 321 drivers/net/wireless/marvell/mwifiex/debugfs.c ret = simple_read_from_buffer(ubuf, count, ppos, (char *)page, ubuf 328 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_histogram_write(struct file *file, const char __user *ubuf, ubuf 388 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_debug_read(struct file *file, char __user *ubuf, ubuf 406 drivers/net/wireless/marvell/mwifiex/debugfs.c ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, ubuf 425 drivers/net/wireless/marvell/mwifiex/debugfs.c const char __user *ubuf, size_t count, loff_t *ppos) ubuf 431 drivers/net/wireless/marvell/mwifiex/debugfs.c buf = memdup_user_nul(ubuf, min(count, (size_t)(PAGE_SIZE - 1))); ubuf 459 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_regrdwr_read(struct file *file, char __user *ubuf, ubuf 486 drivers/net/wireless/marvell/mwifiex/debugfs.c ret = simple_read_from_buffer(ubuf, count, ppos, buf, pos); ubuf 501 drivers/net/wireless/marvell/mwifiex/debugfs.c ret = simple_read_from_buffer(ubuf, count, ppos, buf, pos); ubuf 513 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_debug_mask_read(struct file *file, char __user *ubuf, ubuf 528 drivers/net/wireless/marvell/mwifiex/debugfs.c ret = simple_read_from_buffer(ubuf, count, ppos, buf, pos); ubuf 539 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_debug_mask_write(struct file *file, const char __user *ubuf, ubuf 547 drivers/net/wireless/marvell/mwifiex/debugfs.c buf = memdup_user_nul(ubuf, min(count, (size_t)(PAGE_SIZE - 1))); ubuf 567 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_verext_write(struct file *file, const char __user *ubuf, ubuf 577 drivers/net/wireless/marvell/mwifiex/debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) ubuf 594 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_verext_read(struct file *file, char __user *ubuf, ubuf 606 drivers/net/wireless/marvell/mwifiex/debugfs.c return simple_read_from_buffer(ubuf, count, ppos, buf, ret); ubuf 614 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_memrw_write(struct file *file, const char __user *ubuf, size_t count, ubuf 624 drivers/net/wireless/marvell/mwifiex/debugfs.c buf = memdup_user_nul(ubuf, min(count, (size_t)(PAGE_SIZE - 1))); ubuf 661 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_memrw_read(struct file *file, char __user *ubuf, ubuf 674 drivers/net/wireless/marvell/mwifiex/debugfs.c ret = simple_read_from_buffer(ubuf, count, ppos, buf, pos); ubuf 691 drivers/net/wireless/marvell/mwifiex/debugfs.c const char __user *ubuf, size_t count, loff_t *ppos) ubuf 697 drivers/net/wireless/marvell/mwifiex/debugfs.c buf = memdup_user_nul(ubuf, min(count, (size_t)(PAGE_SIZE - 1))); ubuf 724 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_rdeeprom_read(struct file *file, char __user *ubuf, ubuf 757 drivers/net/wireless/marvell/mwifiex/debugfs.c ret = simple_read_from_buffer(ubuf, count, ppos, buf, pos); ubuf 767 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_hscfg_write(struct file *file, const char __user *ubuf, ubuf 777 drivers/net/wireless/marvell/mwifiex/debugfs.c buf = memdup_user_nul(ubuf, min(count, (size_t)(PAGE_SIZE - 1))); ubuf 826 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_hscfg_read(struct file *file, char __user *ubuf, ubuf 844 drivers/net/wireless/marvell/mwifiex/debugfs.c ret = simple_read_from_buffer(ubuf, count, ppos, buf, pos); ubuf 851 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_timeshare_coex_read(struct file *file, char __user *ubuf, ubuf 869 drivers/net/wireless/marvell/mwifiex/debugfs.c return simple_read_from_buffer(ubuf, count, ppos, buf, len); ubuf 873 drivers/net/wireless/marvell/mwifiex/debugfs.c mwifiex_timeshare_coex_write(struct file *file, const char __user *ubuf, ubuf 886 drivers/net/wireless/marvell/mwifiex/debugfs.c if (copy_from_user(&kbuf, ubuf, min_t(size_t, sizeof(kbuf) - 1, count))) ubuf 902 drivers/net/wireless/marvell/mwifiex/debugfs.c const char __user *ubuf, size_t count, loff_t *ppos) ubuf 909 drivers/net/wireless/marvell/mwifiex/debugfs.c rc = kstrtobool_from_user(ubuf, count, &result); ubuf 384 drivers/net/xen-netback/common.h void xenvif_zerocopy_callback(struct ubuf_info *ubuf, bool zerocopy_success); ubuf 127 drivers/net/xen-netback/netback.c static inline struct xenvif_queue *ubuf_to_queue(const struct ubuf_info *ubuf) ubuf 129 drivers/net/xen-netback/netback.c u16 pending_idx = ubuf->desc; ubuf 131 drivers/net/xen-netback/netback.c container_of(ubuf, struct pending_tx_info, callback_struct); ubuf 1220 drivers/net/xen-netback/netback.c void xenvif_zerocopy_callback(struct ubuf_info *ubuf, bool zerocopy_success) ubuf 1224 drivers/net/xen-netback/netback.c struct xenvif_queue *queue = ubuf_to_queue(ubuf); ubuf 1231 drivers/net/xen-netback/netback.c u16 pending_idx = ubuf->desc; ubuf 1232 drivers/net/xen-netback/netback.c ubuf = (struct ubuf_info *) ubuf->ctx; ubuf 1242 drivers/net/xen-netback/netback.c } while (ubuf); ubuf 711 drivers/ntb/hw/amd/ntb_hw_amd.c static ssize_t ndev_debugfs_read(struct file *filp, char __user *ubuf, ubuf 803 drivers/ntb/hw/amd/ntb_hw_amd.c ret = simple_read_from_buffer(ubuf, count, offp, buf, off); ubuf 2315 drivers/ntb/hw/idt/ntb_hw_idt.c static ssize_t idt_dbgfs_info_read(struct file *filp, char __user *ubuf, ubuf 2334 drivers/ntb/hw/idt/ntb_hw_idt.c static ssize_t idt_dbgfs_info_read(struct file *filp, char __user *ubuf, ubuf 2495 drivers/ntb/hw/idt/ntb_hw_idt.c ret = simple_read_from_buffer(ubuf, count, offp, strbuf, off); ubuf 490 drivers/ntb/hw/intel/ntb_hw_gen1.c static ssize_t ndev_ntb_debugfs_read(struct file *filp, char __user *ubuf, ubuf 751 drivers/ntb/hw/intel/ntb_hw_gen1.c ret = simple_read_from_buffer(ubuf, count, offp, buf, off); ubuf 756 drivers/ntb/hw/intel/ntb_hw_gen1.c static ssize_t ndev_debugfs_read(struct file *filp, char __user *ubuf, ubuf 762 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_ntb_debugfs_read(filp, ubuf, count, offp); ubuf 764 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_ntb3_debugfs_read(filp, ubuf, count, offp); ubuf 255 drivers/ntb/hw/intel/ntb_hw_gen3.c ssize_t ndev_ntb3_debugfs_read(struct file *filp, char __user *ubuf, ubuf 413 drivers/ntb/hw/intel/ntb_hw_gen3.c ret = simple_read_from_buffer(ubuf, count, offp, buf, off); ubuf 104 drivers/ntb/hw/intel/ntb_hw_gen3.h ssize_t ndev_ntb3_debugfs_read(struct file *filp, char __user *ubuf, ubuf 465 drivers/ntb/ntb_transport.c static ssize_t debugfs_read(struct file *filp, char __user *ubuf, size_t count, ubuf 553 drivers/ntb/ntb_transport.c ret = simple_read_from_buffer(ubuf, count, offp, buf, out_offset); ubuf 1150 drivers/ntb/test/ntb_perf.c static ssize_t perf_dbgfs_read_info(struct file *filep, char __user *ubuf, ubuf 1219 drivers/ntb/test/ntb_perf.c ret = simple_read_from_buffer(ubuf, size, offp, buf, pos); ubuf 1230 drivers/ntb/test/ntb_perf.c static ssize_t perf_dbgfs_read_run(struct file *filep, char __user *ubuf, ubuf 1245 drivers/ntb/test/ntb_perf.c ret = simple_read_from_buffer(ubuf, size, offp, buf, pos); ubuf 1252 drivers/ntb/test/ntb_perf.c static ssize_t perf_dbgfs_write_run(struct file *filep, const char __user *ubuf, ubuf 1259 drivers/ntb/test/ntb_perf.c ret = kstrtoint_from_user(ubuf, size, 0, &pidx); ubuf 1281 drivers/ntb/test/ntb_perf.c static ssize_t perf_dbgfs_read_tcnt(struct file *filep, char __user *ubuf, ubuf 1290 drivers/ntb/test/ntb_perf.c return simple_read_from_buffer(ubuf, size, offp, buf, pos); ubuf 1294 drivers/ntb/test/ntb_perf.c const char __user *ubuf, ubuf 1301 drivers/ntb/test/ntb_perf.c ret = kstrtou8_from_user(ubuf, size, 0, &val); ubuf 341 drivers/ntb/test/ntb_tool.c static ssize_t tool_fn_read(struct tool_ctx *tc, char __user *ubuf, ubuf 356 drivers/ntb/test/ntb_tool.c return simple_read_from_buffer(ubuf, size, offp, buf, pos); ubuf 360 drivers/ntb/test/ntb_tool.c const char __user *ubuf, ubuf 374 drivers/ntb/test/ntb_tool.c ret = simple_write_to_buffer(buf, size, offp, ubuf, size); ubuf 410 drivers/ntb/test/ntb_tool.c static ssize_t tool_port_read(struct file *filep, char __user *ubuf, ubuf 419 drivers/ntb/test/ntb_tool.c return simple_read_from_buffer(ubuf, size, offp, buf, pos); ubuf 426 drivers/ntb/test/ntb_tool.c static ssize_t tool_peer_port_read(struct file *filep, char __user *ubuf, ubuf 437 drivers/ntb/test/ntb_tool.c return simple_read_from_buffer(ubuf, size, offp, buf, pos); ubuf 467 drivers/ntb/test/ntb_tool.c static ssize_t tool_link_write(struct file *filep, const char __user *ubuf, ubuf 474 drivers/ntb/test/ntb_tool.c ret = kstrtobool_from_user(ubuf, size, &val); ubuf 493 drivers/ntb/test/ntb_tool.c static ssize_t tool_peer_link_read(struct file *filep, char __user *ubuf, ubuf 507 drivers/ntb/test/ntb_tool.c return simple_read_from_buffer(ubuf, size, offp, buf, 3); ubuf 515 drivers/ntb/test/ntb_tool.c const char __user *ubuf, ubuf 524 drivers/ntb/test/ntb_tool.c ret = kstrtobool_from_user(ubuf, size, &val); ubuf 546 drivers/ntb/test/ntb_tool.c static ssize_t tool_mw_read(struct file *filep, char __user *ubuf, ubuf 554 drivers/ntb/test/ntb_tool.c return simple_read_from_buffer(ubuf, size, offp, ubuf 558 drivers/ntb/test/ntb_tool.c static ssize_t tool_mw_write(struct file *filep, const char __user *ubuf, ubuf 567 drivers/ntb/test/ntb_tool.c ubuf, size); ubuf 642 drivers/ntb/test/ntb_tool.c static ssize_t tool_mw_trans_read(struct file *filep, char __user *ubuf, ubuf 696 drivers/ntb/test/ntb_tool.c ret = simple_read_from_buffer(ubuf, size, offp, buf, off); ubuf 704 drivers/ntb/test/ntb_tool.c static ssize_t tool_mw_trans_write(struct file *filep, const char __user *ubuf, ubuf 711 drivers/ntb/test/ntb_tool.c ret = kstrtouint_from_user(ubuf, size, 0, &val); ubuf 729 drivers/ntb/test/ntb_tool.c static ssize_t tool_peer_mw_read(struct file *filep, char __user *ubuf, ubuf 751 drivers/ntb/test/ntb_tool.c ret = copy_to_user(ubuf, buf, size); ubuf 767 drivers/ntb/test/ntb_tool.c static ssize_t tool_peer_mw_write(struct file *filep, const char __user *ubuf, ubuf 787 drivers/ntb/test/ntb_tool.c ret = copy_from_user(buf, ubuf, size); ubuf 870 drivers/ntb/test/ntb_tool.c static ssize_t tool_peer_mw_trans_read(struct file *filep, char __user *ubuf, ubuf 921 drivers/ntb/test/ntb_tool.c ret = simple_read_from_buffer(ubuf, size, offp, buf, off); ubuf 928 drivers/ntb/test/ntb_tool.c const char __user *ubuf, ubuf 939 drivers/ntb/test/ntb_tool.c if (copy_from_user(buf, ubuf, buf_size)) ubuf 1028 drivers/ntb/test/ntb_tool.c static ssize_t tool_db_read(struct file *filep, char __user *ubuf, ubuf 1033 drivers/ntb/test/ntb_tool.c return tool_fn_read(tc, ubuf, size, offp, tc->ntb->ops->db_read); ubuf 1036 drivers/ntb/test/ntb_tool.c static ssize_t tool_db_write(struct file *filep, const char __user *ubuf, ubuf 1041 drivers/ntb/test/ntb_tool.c return tool_fn_write(tc, ubuf, size, offp, tc->ntb->ops->db_set, ubuf 1049 drivers/ntb/test/ntb_tool.c static ssize_t tool_db_valid_mask_read(struct file *filep, char __user *ubuf, ubuf 1054 drivers/ntb/test/ntb_tool.c return tool_fn_read(tc, ubuf, size, offp, tc->ntb->ops->db_valid_mask); ubuf 1061 drivers/ntb/test/ntb_tool.c static ssize_t tool_db_mask_read(struct file *filep, char __user *ubuf, ubuf 1066 drivers/ntb/test/ntb_tool.c return tool_fn_read(tc, ubuf, size, offp, tc->ntb->ops->db_read_mask); ubuf 1069 drivers/ntb/test/ntb_tool.c static ssize_t tool_db_mask_write(struct file *filep, const char __user *ubuf, ubuf 1074 drivers/ntb/test/ntb_tool.c return tool_fn_write(tc, ubuf, size, offp, tc->ntb->ops->db_set_mask, ubuf 1082 drivers/ntb/test/ntb_tool.c static ssize_t tool_peer_db_read(struct file *filep, char __user *ubuf, ubuf 1087 drivers/ntb/test/ntb_tool.c return tool_fn_read(tc, ubuf, size, offp, tc->ntb->ops->peer_db_read); ubuf 1090 drivers/ntb/test/ntb_tool.c static ssize_t tool_peer_db_write(struct file *filep, const char __user *ubuf, ubuf 1095 drivers/ntb/test/ntb_tool.c return tool_fn_write(tc, ubuf, size, offp, tc->ntb->ops->peer_db_set, ubuf 1103 drivers/ntb/test/ntb_tool.c static ssize_t tool_peer_db_mask_read(struct file *filep, char __user *ubuf, ubuf 1108 drivers/ntb/test/ntb_tool.c return tool_fn_read(tc, ubuf, size, offp, ubuf 1113 drivers/ntb/test/ntb_tool.c const char __user *ubuf, ubuf 1118 drivers/ntb/test/ntb_tool.c return tool_fn_write(tc, ubuf, size, offp, ubuf 1128 drivers/ntb/test/ntb_tool.c const char __user *ubuf, ubuf 1135 drivers/ntb/test/ntb_tool.c ret = kstrtou64_from_user(ubuf, size, 0, &val); ubuf 1154 drivers/ntb/test/ntb_tool.c static ssize_t tool_spad_read(struct file *filep, char __user *ubuf, ubuf 1167 drivers/ntb/test/ntb_tool.c return simple_read_from_buffer(ubuf, size, offp, buf, pos); ubuf 1170 drivers/ntb/test/ntb_tool.c static ssize_t tool_spad_write(struct file *filep, const char __user *ubuf, ubuf 1182 drivers/ntb/test/ntb_tool.c ret = kstrtou32_from_user(ubuf, size, 0, &val); ubuf 1195 drivers/ntb/test/ntb_tool.c static ssize_t tool_peer_spad_read(struct file *filep, char __user *ubuf, ubuf 1208 drivers/ntb/test/ntb_tool.c return simple_read_from_buffer(ubuf, size, offp, buf, pos); ubuf 1211 drivers/ntb/test/ntb_tool.c static ssize_t tool_peer_spad_write(struct file *filep, const char __user *ubuf, ubuf 1223 drivers/ntb/test/ntb_tool.c ret = kstrtou32_from_user(ubuf, size, 0, &val); ubuf 1277 drivers/ntb/test/ntb_tool.c static ssize_t tool_inmsg_read(struct file *filep, char __user *ubuf, ubuf 1290 drivers/ntb/test/ntb_tool.c return simple_read_from_buffer(ubuf, size, offp, buf, pos); ubuf 1298 drivers/ntb/test/ntb_tool.c const char __user *ubuf, ubuf 1305 drivers/ntb/test/ntb_tool.c ret = kstrtou32_from_user(ubuf, size, 0, &val); ubuf 1318 drivers/ntb/test/ntb_tool.c static ssize_t tool_msg_sts_read(struct file *filep, char __user *ubuf, ubuf 1323 drivers/ntb/test/ntb_tool.c return tool_fn_read(tc, ubuf, size, offp, tc->ntb->ops->msg_read_sts); ubuf 1326 drivers/ntb/test/ntb_tool.c static ssize_t tool_msg_sts_write(struct file *filep, const char __user *ubuf, ubuf 1331 drivers/ntb/test/ntb_tool.c return tool_fn_write(tc, ubuf, size, offp, NULL, ubuf 1339 drivers/ntb/test/ntb_tool.c static ssize_t tool_msg_inbits_read(struct file *filep, char __user *ubuf, ubuf 1344 drivers/ntb/test/ntb_tool.c return tool_fn_read(tc, ubuf, size, offp, tc->ntb->ops->msg_inbits); ubuf 1351 drivers/ntb/test/ntb_tool.c static ssize_t tool_msg_outbits_read(struct file *filep, char __user *ubuf, ubuf 1356 drivers/ntb/test/ntb_tool.c return tool_fn_read(tc, ubuf, size, offp, tc->ntb->ops->msg_outbits); ubuf 1363 drivers/ntb/test/ntb_tool.c static ssize_t tool_msg_mask_write(struct file *filep, const char __user *ubuf, ubuf 1368 drivers/ntb/test/ntb_tool.c return tool_fn_write(tc, ubuf, size, offp, ubuf 1378 drivers/ntb/test/ntb_tool.c const char __user *ubuf, ubuf 1385 drivers/ntb/test/ntb_tool.c ret = kstrtou64_from_user(ubuf, size, 0, &val); ubuf 862 drivers/nvme/host/core.c static void *nvme_add_user_metadata(struct bio *bio, void __user *ubuf, ubuf 874 drivers/nvme/host/core.c if (write && copy_from_user(buf, ubuf, len)) ubuf 1065 drivers/nvme/host/fabrics.c static ssize_t nvmf_dev_write(struct file *file, const char __user *ubuf, ubuf 1076 drivers/nvme/host/fabrics.c buf = memdup_user_nul(ubuf, count); ubuf 753 drivers/nvme/host/lightnvm.c void __user *ubuf, unsigned int bufflen, ubuf 795 drivers/nvme/host/lightnvm.c if (ubuf && bufflen) { ubuf 796 drivers/nvme/host/lightnvm.c ret = blk_rq_map_user(q, rq, NULL, ubuf, bufflen, GFP_KERNEL); ubuf 485 drivers/pci/pcie/aer_inject.c static ssize_t aer_inject_write(struct file *filp, const char __user *ubuf, ubuf 498 drivers/pci/pcie/aer_inject.c if (copy_from_user(&einj, ubuf, usize)) ubuf 336 drivers/pnp/interface.c struct device_attribute *attr, const char *ubuf, ubuf 340 drivers/pnp/interface.c char *buf = (void *)ubuf; ubuf 59 drivers/s390/char/hmcdrv_dev.c static ssize_t hmcdrv_dev_read(struct file *fp, char __user *ubuf, ubuf 61 drivers/s390/char/hmcdrv_dev.c static ssize_t hmcdrv_dev_write(struct file *fp, const char __user *ubuf, ubuf 221 drivers/s390/char/hmcdrv_dev.c static ssize_t hmcdrv_dev_read(struct file *fp, char __user *ubuf, ubuf 232 drivers/s390/char/hmcdrv_dev.c *pos, ubuf, len); ubuf 246 drivers/s390/char/hmcdrv_dev.c static ssize_t hmcdrv_dev_write(struct file *fp, const char __user *ubuf, ubuf 260 drivers/s390/char/hmcdrv_dev.c if (!copy_from_user(fp->private_data, ubuf, len)) { ubuf 271 drivers/s390/char/hmcdrv_dev.c *pos, (char __user *) ubuf, len); ubuf 231 drivers/s390/char/vmur.c static struct ccw1 *alloc_chan_prog(const char __user *ubuf, int rec_count, ubuf 238 drivers/s390/char/vmur.c TRACE("alloc_chan_prog(%p, %i, %i)\n", ubuf, rec_count, reclen); ubuf 260 drivers/s390/char/vmur.c if (copy_from_user(kbuf, ubuf, reclen)) { ubuf 264 drivers/s390/char/vmur.c ubuf += reclen; ubuf 510 drivers/s390/char/vmur.c static ssize_t diag14_read(struct file *file, char __user *ubuf, size_t count, ubuf 545 drivers/s390/char/vmur.c if (copy_to_user(ubuf + copied, buf + res, len)) { ubuf 560 drivers/s390/char/vmur.c static ssize_t ur_read(struct file *file, char __user *ubuf, size_t count, ubuf 575 drivers/s390/char/vmur.c rc = diag14_read(file, ubuf, count, offs); ubuf 241 drivers/s390/cio/qdio_debug.c static ssize_t qperf_seq_write(struct file *file, const char __user *ubuf, ubuf 253 drivers/s390/cio/qdio_debug.c ret = kstrtoul_from_user(ubuf, count, 10, &val); ubuf 4285 drivers/scsi/bfa/bfa_ioc.c memcpy(flash->dbuf_kva, flash->ubuf + flash->offset, len); ubuf 4374 drivers/scsi/bfa/bfa_ioc.c attr = (struct bfa_flash_attr_s *) flash->ubuf; ubuf 4425 drivers/scsi/bfa/bfa_ioc.c memcpy(flash->ubuf + flash->offset, ubuf 4551 drivers/scsi/bfa/bfa_ioc.c flash->ubuf = (u8 *) attr; ubuf 4647 drivers/scsi/bfa/bfa_ioc.c flash->ubuf = buf; ubuf 4701 drivers/scsi/bfa/bfa_ioc.c flash->ubuf = buf; ubuf 5385 drivers/scsi/bfa/bfa_ioc.c buf = (u16 *) (phy->ubuf + phy->offset); ubuf 5549 drivers/scsi/bfa/bfa_ioc.c phy->ubuf = (uint8_t *) attr; ubuf 5589 drivers/scsi/bfa/bfa_ioc.c phy->ubuf = (u8 *) stats; ubuf 5640 drivers/scsi/bfa/bfa_ioc.c phy->ubuf = buf; ubuf 5691 drivers/scsi/bfa/bfa_ioc.c phy->ubuf = buf; ubuf 5733 drivers/scsi/bfa/bfa_ioc.c (struct bfa_phy_attr_s *) phy->ubuf; ubuf 5751 drivers/scsi/bfa/bfa_ioc.c (struct bfa_phy_stats_s *) phy->ubuf; ubuf 5787 drivers/scsi/bfa/bfa_ioc.c u16 *buf = (u16 *)(phy->ubuf + phy->offset); ubuf 6241 drivers/scsi/bfa/bfa_ioc.c memcpy(fru->dbuf_kva, fru->ubuf + fru->offset, len); ubuf 6380 drivers/scsi/bfa/bfa_ioc.c fru->ubuf = buf; ubuf 6430 drivers/scsi/bfa/bfa_ioc.c fru->ubuf = buf; ubuf 6499 drivers/scsi/bfa/bfa_ioc.c fru->ubuf = buf; ubuf 6544 drivers/scsi/bfa/bfa_ioc.c fru->ubuf = buf; ubuf 6610 drivers/scsi/bfa/bfa_ioc.c memcpy(fru->ubuf + fru->offset, fru->dbuf_kva, len); ubuf 486 drivers/scsi/bfa/bfa_ioc.h u8 *ubuf; /* user supplied buffer */ ubuf 678 drivers/scsi/bfa/bfa_ioc.h u8 *ubuf; /* user supplied buffer */ ubuf 727 drivers/scsi/bfa/bfa_ioc.h u8 *ubuf; /* user supplied buffer */ ubuf 3409 drivers/scsi/cxlflash/main.c void __user *ubuf = (__force void __user *)afu_dbg->data_ea; ubuf 3439 drivers/scsi/cxlflash/main.c if (copy_from_user(kbuf, ubuf, ulen)) { ubuf 3471 drivers/scsi/cxlflash/main.c if (copy_to_user(ubuf, kbuf, ulen)) ubuf 114 drivers/scsi/fnic/fnic_debugfs.c char __user *ubuf, ubuf 131 drivers/scsi/fnic/fnic_debugfs.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); ubuf 152 drivers/scsi/fnic/fnic_debugfs.c const char __user *ubuf, ubuf 164 drivers/scsi/fnic/fnic_debugfs.c if (copy_from_user(&buf, ubuf, cnt)) ubuf 290 drivers/scsi/fnic/fnic_debugfs.c char __user *ubuf, ubuf 296 drivers/scsi/fnic/fnic_debugfs.c rc = simple_read_from_buffer(ubuf, nbytes, pos, ubuf 482 drivers/scsi/fnic/fnic_debugfs.c char __user *ubuf, ubuf 492 drivers/scsi/fnic/fnic_debugfs.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); ubuf 510 drivers/scsi/fnic/fnic_debugfs.c const char __user *ubuf, ubuf 525 drivers/scsi/fnic/fnic_debugfs.c if (copy_from_user(&buf, ubuf, cnt)) ubuf 638 drivers/scsi/fnic/fnic_debugfs.c char __user *ubuf, ubuf 644 drivers/scsi/fnic/fnic_debugfs.c rc = simple_read_from_buffer(ubuf, nbytes, pos, ubuf 48 drivers/scsi/megaraid/megaraid_sas_debugfs.c megasas_debugfs_read(struct file *filp, char __user *ubuf, size_t cnt, ubuf 56 drivers/scsi/megaraid/megaraid_sas_debugfs.c return simple_read_from_buffer(ubuf, cnt, ppos, debug->buf, debug->len); ubuf 87 drivers/scsi/snic/snic_debugfs.c char __user *ubuf, ubuf 97 drivers/scsi/snic/snic_debugfs.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); ubuf 116 drivers/scsi/snic/snic_debugfs.c const char __user *ubuf, ubuf 131 drivers/scsi/snic/snic_debugfs.c if (copy_from_user(&buf, ubuf, cnt)) ubuf 298 drivers/tee/tee_core.c struct tee_ioctl_buf_data __user *ubuf) ubuf 312 drivers/tee/tee_core.c if (copy_from_user(&buf, ubuf, sizeof(buf))) ubuf 370 drivers/tee/tee_core.c struct tee_ioctl_buf_data __user *ubuf) ubuf 383 drivers/tee/tee_core.c if (copy_from_user(&buf, ubuf, sizeof(buf))) ubuf 505 drivers/tee/tee_core.c struct tee_ioctl_buf_data __user *ubuf) ubuf 517 drivers/tee/tee_core.c if (copy_from_user(&buf, ubuf, sizeof(buf))) ubuf 602 drivers/tee/tee_core.c struct tee_ioctl_buf_data __user *ubuf) ubuf 615 drivers/tee/tee_core.c if (copy_from_user(&buf, ubuf, sizeof(buf))) ubuf 228 drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c static int fill_art(char __user *ubuf) ubuf 256 drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c if (copy_to_user(ubuf, art_user, art_len)) ubuf 264 drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c static int fill_trt(char __user *ubuf) ubuf 291 drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c if (copy_to_user(ubuf, trt_user, trt_len)) ubuf 326 drivers/tty/vt/consolemap.c unsigned char ubuf[E_TABSZ]; ubuf 328 drivers/tty/vt/consolemap.c if (copy_from_user(ubuf, arg, E_TABSZ)) ubuf 332 drivers/tty/vt/consolemap.c inbuf[i] = UNI_DIRECT_BASE | ubuf[i]; ubuf 73 drivers/usb/chipidea/debug.c static ssize_t ci_port_test_write(struct file *file, const char __user *ubuf, ubuf 84 drivers/usb/chipidea/debug.c if (copy_from_user(buf, ubuf, count)) ubuf 260 drivers/usb/chipidea/debug.c static ssize_t ci_role_write(struct file *file, const char __user *ubuf, ubuf 269 drivers/usb/chipidea/debug.c if (copy_from_user(buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) ubuf 74 drivers/usb/class/cdc-wdm.c u8 *ubuf; /* buffer for copy to user space */ ubuf 207 drivers/usb/class/cdc-wdm.c memmove(desc->ubuf + desc->length, desc->inbuf, length); ubuf 342 drivers/usb/class/cdc-wdm.c kfree(desc->ubuf); ubuf 561 drivers/usb/class/cdc-wdm.c rv = copy_to_user(buffer, desc->ubuf, cntr); ubuf 570 drivers/usb/class/cdc-wdm.c desc->ubuf[i] = desc->ubuf[i + cntr]; ubuf 836 drivers/usb/class/cdc-wdm.c desc->ubuf = kmalloc(desc->wMaxCommand, GFP_KERNEL); ubuf 837 drivers/usb/class/cdc-wdm.c if (!desc->ubuf) ubuf 481 drivers/usb/core/hcd.c u8 *ubuf = urb->transfer_buffer; ubuf 622 drivers/usb/core/hcd.c hcd, ubuf, wLength); ubuf 714 drivers/usb/core/hcd.c memcpy (ubuf, bufp, len); ubuf 720 drivers/usb/core/hcd.c ((struct usb_config_descriptor *)ubuf)->bmAttributes ubuf 727 drivers/usb/core/hcd.c ((struct usb_device_descriptor *) ubuf)-> ubuf 27 drivers/usb/dwc2/debugfs.c static ssize_t testmode_write(struct file *file, const char __user *ubuf, size_t ubuf 36 drivers/usb/dwc2/debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) ubuf 356 drivers/usb/dwc3/debugfs.c static ssize_t dwc3_lsp_write(struct file *file, const char __user *ubuf, ubuf 366 drivers/usb/dwc3/debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) ubuf 421 drivers/usb/dwc3/debugfs.c const char __user *ubuf, size_t count, loff_t *ppos) ubuf 428 drivers/usb/dwc3/debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) ubuf 497 drivers/usb/dwc3/debugfs.c const char __user *ubuf, size_t count, loff_t *ppos) ubuf 505 drivers/usb/dwc3/debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) ubuf 570 drivers/usb/dwc3/debugfs.c const char __user *ubuf, size_t count, loff_t *ppos) ubuf 580 drivers/usb/dwc3/debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) ubuf 1316 drivers/usb/gadget/udc/dummy_hcd.c void *ubuf, *rbuf; ubuf 1328 drivers/usb/gadget/udc/dummy_hcd.c ubuf = urb->transfer_buffer + urb->actual_length; ubuf 1330 drivers/usb/gadget/udc/dummy_hcd.c memcpy(ubuf, rbuf, len); ubuf 1332 drivers/usb/gadget/udc/dummy_hcd.c memcpy(rbuf, ubuf, len); ubuf 1353 drivers/usb/gadget/udc/dummy_hcd.c ubuf = miter->addr; ubuf 1359 drivers/usb/gadget/udc/dummy_hcd.c memcpy(ubuf, rbuf, this_sg); ubuf 1361 drivers/usb/gadget/udc/dummy_hcd.c memcpy(rbuf, ubuf, this_sg); ubuf 2497 drivers/usb/gadget/udc/renesas_usb3.c const char __user *ubuf, ubuf 2507 drivers/usb/gadget/udc/renesas_usb3.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) ubuf 1188 drivers/usb/host/max3421-hcd.c char ubuf[512], *dp, *end; ubuf 1197 drivers/usb/host/max3421-hcd.c dp = ubuf; ubuf 1198 drivers/usb/host/max3421-hcd.c end = dp + sizeof(ubuf); ubuf 1215 drivers/usb/host/max3421-hcd.c max3421_ep->retransmit, ubuf); ubuf 355 drivers/usb/host/xhci-debugfs.c static ssize_t xhci_port_write(struct file *file, const char __user *ubuf, ubuf 365 drivers/usb/host/xhci-debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) ubuf 313 drivers/usb/mtu3/mtu3_debugfs.c static ssize_t mtu3_probe_write(struct file *file, const char __user *ubuf, ubuf 324 drivers/usb/mtu3/mtu3_debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) ubuf 445 drivers/usb/mtu3/mtu3_debugfs.c static ssize_t ssusb_mode_write(struct file *file, const char __user *ubuf, ubuf 452 drivers/usb/mtu3/mtu3_debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) ubuf 491 drivers/usb/mtu3/mtu3_debugfs.c static ssize_t ssusb_vbus_write(struct file *file, const char __user *ubuf, ubuf 500 drivers/usb/mtu3/mtu3_debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) ubuf 164 drivers/usb/musb/musb_debugfs.c const char __user *ubuf, size_t count, loff_t *ppos) ubuf 173 drivers/usb/musb/musb_debugfs.c if (copy_from_user(buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) ubuf 264 drivers/usb/musb/musb_debugfs.c const char __user *ubuf, size_t count, loff_t *ppos) ubuf 273 drivers/usb/musb/musb_debugfs.c if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) ubuf 384 drivers/vhost/net.c static void vhost_zerocopy_callback(struct ubuf_info *ubuf, bool success) ubuf 386 drivers/vhost/net.c struct vhost_net_ubuf_ref *ubufs = ubuf->ctx; ubuf 393 drivers/vhost/net.c vq->heads[ubuf->desc].len = success ? ubuf 895 drivers/vhost/net.c struct ubuf_info *ubuf; ubuf 896 drivers/vhost/net.c ubuf = nvq->ubuf_info + nvq->upend_idx; ubuf 900 drivers/vhost/net.c ubuf->callback = vhost_zerocopy_callback; ubuf 901 drivers/vhost/net.c ubuf->ctx = nvq->ubufs; ubuf 902 drivers/vhost/net.c ubuf->desc = nvq->upend_idx; ubuf 903 drivers/vhost/net.c refcount_set(&ubuf->refcnt, 1); ubuf 906 drivers/vhost/net.c ctl.ptr = ubuf; ubuf 493 drivers/watchdog/mei_wdt.c static ssize_t mei_dbgfs_read_activation(struct file *file, char __user *ubuf, ubuf 506 drivers/watchdog/mei_wdt.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); ubuf 515 drivers/watchdog/mei_wdt.c static ssize_t mei_dbgfs_read_state(struct file *file, char __user *ubuf, ubuf 525 drivers/watchdog/mei_wdt.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, pos); ubuf 106 drivers/xen/mcelog.c static ssize_t xen_mce_chrdev_read(struct file *filp, char __user *ubuf, ubuf 109 drivers/xen/mcelog.c char __user *buf = ubuf; ubuf 139 drivers/xen/mcelog.c return err ? err : buf - ubuf; ubuf 126 drivers/xen/xenbus/xenbus_dev_frontend.c char __user *ubuf, ubuf 153 drivers/xen/xenbus/xenbus_dev_frontend.c ret = copy_to_user(ubuf + i, &rb->msg[rb->cons], sz); ubuf 551 drivers/xen/xenbus/xenbus_dev_frontend.c const char __user *ubuf, ubuf 588 drivers/xen/xenbus/xenbus_dev_frontend.c ret = copy_from_user(u->u.buffer + u->len, ubuf, len); ubuf 2034 fs/btrfs/ioctl.c char __user *ubuf, ubuf 2095 fs/btrfs/ioctl.c if (copy_to_user(ubuf + *sk_offset, &sh, sizeof(sh))) { ubuf 2103 fs/btrfs/ioctl.c char __user *up = ubuf + *sk_offset; ubuf 2157 fs/btrfs/ioctl.c char __user *ubuf) ubuf 2201 fs/btrfs/ioctl.c ret = copy_to_sk(path, &key, sk, buf_size, ubuf, ubuf 160 fs/io_uring.c u64 ubuf; ubuf 1191 fs/io_uring.c if (buf_addr < imu->ubuf || buf_addr + len > imu->ubuf + imu->len) ubuf 1198 fs/io_uring.c offset = buf_addr - imu->ubuf; ubuf 3466 fs/io_uring.c unsigned long off, start, end, ubuf; ubuf 3488 fs/io_uring.c ubuf = (unsigned long) iov.iov_base; ubuf 3489 fs/io_uring.c end = (ubuf + iov.iov_len + PAGE_SIZE - 1) >> PAGE_SHIFT; ubuf 3490 fs/io_uring.c start = ubuf >> PAGE_SHIFT; ubuf 3528 fs/io_uring.c pret = get_user_pages(ubuf, nr_pages, ubuf 3559 fs/io_uring.c off = ubuf & ~PAGE_MASK; ubuf 3572 fs/io_uring.c imu->ubuf = ubuf; ubuf 360 fs/orangefs/orangefs-debugfs.c char __user *ubuf, ubuf 378 fs/orangefs/orangefs-debugfs.c read_ret = simple_read_from_buffer(ubuf, count, ppos, buf, sprintf_ret); ubuf 391 fs/orangefs/orangefs-debugfs.c const char __user *ubuf, ubuf 423 fs/orangefs/orangefs-debugfs.c if (copy_from_user(buf, ubuf, count - 1)) { ubuf 761 fs/proc/generic.c ssize_t proc_simple_write(struct file *f, const char __user *ubuf, size_t size, ubuf 772 fs/proc/generic.c buf = memdup_user_nul(ubuf, size); ubuf 592 fs/stat.c static int cp_compat_stat(struct kstat *stat, struct compat_stat __user *ubuf) ubuf 622 fs/stat.c return copy_to_user(ubuf, &tmp, sizeof(tmp)) ? -EFAULT : 0; ubuf 246 fs/statfs.c SYSCALL_DEFINE2(ustat, unsigned, dev, struct ustat __user *, ubuf) ubuf 258 fs/statfs.c return copy_to_user(ubuf, &tmp, sizeof(struct ustat)) ? -EFAULT : 0; ubuf 262 fs/statfs.c static int put_compat_statfs(struct compat_statfs __user *ubuf, struct kstatfs *kbuf) ubuf 265 fs/statfs.c if (sizeof ubuf->f_blocks == 4) { ubuf 291 fs/statfs.c if (copy_to_user(ubuf, &buf, sizeof(struct compat_statfs))) ubuf 318 fs/statfs.c static int put_compat_statfs64(struct compat_statfs64 __user *ubuf, struct kstatfs *kbuf) ubuf 338 fs/statfs.c if (copy_to_user(ubuf, &buf, sizeof(struct compat_statfs64))) ubuf 428 fs/xfs/xfs_ioctl.c unsigned char __user *ubuf, ubuf 445 fs/xfs/xfs_ioctl.c if (copy_to_user(ubuf, kbuf, *len)) ubuf 457 fs/xfs/xfs_ioctl.c const unsigned char __user *ubuf, ubuf 469 fs/xfs/xfs_ioctl.c kbuf = memdup_user(ubuf, len); ubuf 38 fs/xfs/xfs_ioctl.h unsigned char __user *ubuf, ubuf 46 fs/xfs/xfs_ioctl.h const unsigned char __user *ubuf, ubuf 181 include/linux/bitmap.h extern int bitmap_parse_user(const char __user *ubuf, unsigned int ulen, ubuf 185 include/linux/bitmap.h extern int bitmap_parselist_user(const char __user *ubuf, unsigned int ulen, ubuf 318 include/linux/bpf_verifier.h char __user *ubuf; ubuf 336 include/linux/bpf_verifier.h return log->level && log->ubuf && !bpf_verifier_log_full(log); ubuf 442 include/linux/ftrace.h ssize_t ftrace_filter_write(struct file *file, const char __user *ubuf, ubuf 444 include/linux/ftrace.h ssize_t ftrace_notrace_write(struct file *file, const char __user *ubuf, ubuf 618 include/linux/ftrace.h static inline ssize_t ftrace_filter_write(struct file *file, const char __user *ubuf, ubuf 620 include/linux/ftrace.h static inline ssize_t ftrace_notrace_write(struct file *file, const char __user *ubuf, ubuf 331 include/linux/nodemask.h #define nodemask_parse_user(ubuf, ulen, dst) \ ubuf 332 include/linux/nodemask.h __nodemask_parse_user((ubuf), (ulen), &(dst), MAX_NUMNODES) ubuf 58 include/linux/regset.h void *kbuf, void __user *ubuf); ubuf 79 include/linux/regset.h const void *kbuf, const void __user *ubuf); ubuf 256 include/linux/regset.h void __user **ubuf, const void *data, ubuf 269 include/linux/regset.h } else if (__copy_to_user(*ubuf, data, copy)) ubuf 272 include/linux/regset.h *ubuf += copy; ubuf 281 include/linux/regset.h const void __user **ubuf, void *data, ubuf 294 include/linux/regset.h } else if (__copy_from_user(data, *ubuf, copy)) ubuf 297 include/linux/regset.h *ubuf += copy; ubuf 310 include/linux/regset.h void **kbuf, void __user **ubuf, ubuf 323 include/linux/regset.h } else if (__clear_user(*ubuf, copy)) ubuf 326 include/linux/regset.h *ubuf += copy; ubuf 336 include/linux/regset.h const void __user **ubuf, ubuf 349 include/linux/regset.h *ubuf += copy; ubuf 120 include/linux/seq_buf.h extern int seq_buf_to_user(struct seq_buf *s, char __user *ubuf, ubuf 389 include/linux/socket.h extern int __sys_recvfrom(int fd, void __user *ubuf, size_t size, ubuf 1106 include/linux/syscalls.h asmlinkage long sys_ustat(unsigned dev, struct ustat __user *ubuf); ubuf 83 include/linux/trace_seq.h extern int trace_seq_to_user(struct trace_seq *s, char __user *ubuf, ubuf 114 include/linux/trace_seq.h static inline int trace_seq_to_user(struct trace_seq *s, char __user *ubuf, ubuf 3308 kernel/bpf/btf.c log->ubuf = log_ubuf; ubuf 3313 kernel/bpf/btf.c !log->level || !log->ubuf) { ubuf 2721 kernel/bpf/syscall.c char __user *ubuf = u64_to_user_ptr(attr->task_fd_query.buf); ubuf 2728 kernel/bpf/syscall.c if (input_len && ubuf) { ubuf 2733 kernel/bpf/syscall.c if (put_user(zero, ubuf)) ubuf 2737 kernel/bpf/syscall.c if (copy_to_user(ubuf, buf, len + 1)) ubuf 2746 kernel/bpf/syscall.c if (copy_to_user(ubuf, buf, input_len - 1)) ubuf 2748 kernel/bpf/syscall.c if (put_user(zero, ubuf + input_len - 1)) ubuf 245 kernel/bpf/verifier.c if (!copy_to_user(log->ubuf + log->len_used, log->kbuf, n + 1)) ubuf 248 kernel/bpf/verifier.c log->ubuf = NULL; ubuf 9335 kernel/bpf/verifier.c log->ubuf = (char __user *) (unsigned long) attr->log_buf; ubuf 9341 kernel/bpf/verifier.c !log->level || !log->ubuf || log->level & ~BPF_LOG_MASK) ubuf 9438 kernel/bpf/verifier.c if (log->level && !log->ubuf) { ubuf 127 kernel/sched/debug.c sched_feat_write(struct file *filp, const char __user *ubuf, ubuf 138 kernel/sched/debug.c if (copy_from_user(&buf, ubuf, cnt)) ubuf 889 kernel/trace/ftrace.c ftrace_profile_write(struct file *filp, const char __user *ubuf, ubuf 895 kernel/trace/ftrace.c ret = kstrtoul_from_user(ubuf, cnt, 10, &val); ubuf 934 kernel/trace/ftrace.c ftrace_profile_read(struct file *filp, char __user *ubuf, ubuf 941 kernel/trace/ftrace.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); ubuf 4676 kernel/trace/ftrace.c ftrace_regex_write(struct file *file, const char __user *ubuf, ubuf 4698 kernel/trace/ftrace.c read = trace_get_user(parser, ubuf, cnt, ppos); ubuf 4715 kernel/trace/ftrace.c ftrace_filter_write(struct file *file, const char __user *ubuf, ubuf 4718 kernel/trace/ftrace.c return ftrace_regex_write(file, ubuf, cnt, ppos, 1); ubuf 4722 kernel/trace/ftrace.c ftrace_notrace_write(struct file *file, const char __user *ubuf, ubuf 4725 kernel/trace/ftrace.c return ftrace_regex_write(file, ubuf, cnt, ppos, 0); ubuf 5457 kernel/trace/ftrace.c ftrace_graph_write(struct file *file, const char __user *ubuf, ubuf 5475 kernel/trace/ftrace.c read = trace_get_user(parser, ubuf, cnt, ppos); ubuf 6615 kernel/trace/ftrace.c ftrace_pid_write(struct file *filp, const char __user *ubuf, ubuf 6632 kernel/trace/ftrace.c ret = trace_pid_write(filtered_pids, &pid_list, ubuf, cnt); ubuf 498 kernel/trace/trace.c const char __user *ubuf, size_t cnt) ubuf 550 kernel/trace/trace.c ret = trace_get_user(&parser, ubuf, cnt, &pos); ubuf 555 kernel/trace/trace.c ubuf += ret; ubuf 1405 kernel/trace/trace.c int trace_get_user(struct trace_parser *parser, const char __user *ubuf, ubuf 1415 kernel/trace/trace.c ret = get_user(ch, ubuf++); ubuf 1429 kernel/trace/trace.c ret = get_user(ch, ubuf++); ubuf 1454 kernel/trace/trace.c ret = get_user(ch, ubuf++); ubuf 4409 kernel/trace/trace.c tracing_write_stub(struct file *filp, const char __user *ubuf, ubuf 4443 kernel/trace/trace.c tracing_cpumask_read(struct file *filp, char __user *ubuf, ubuf 4462 kernel/trace/trace.c count = simple_read_from_buffer(ubuf, count, ppos, mask_str, len); ubuf 4471 kernel/trace/trace.c tracing_cpumask_write(struct file *filp, const char __user *ubuf, ubuf 4481 kernel/trace/trace.c err = cpumask_parse_user(ubuf, count, tracing_cpumask_new); ubuf 4716 kernel/trace/trace.c tracing_trace_options_write(struct file *filp, const char __user *ubuf, ubuf 4727 kernel/trace/trace.c if (copy_from_user(buf, ubuf, cnt)) ubuf 5016 kernel/trace/trace.c tracing_readme_read(struct file *filp, char __user *ubuf, ubuf 5019 kernel/trace/trace.c return simple_read_from_buffer(ubuf, cnt, ppos, ubuf 5182 kernel/trace/trace.c tracing_saved_cmdlines_size_read(struct file *filp, char __user *ubuf, ubuf 5192 kernel/trace/trace.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); ubuf 5225 kernel/trace/trace.c tracing_saved_cmdlines_size_write(struct file *filp, const char __user *ubuf, ubuf 5231 kernel/trace/trace.c ret = kstrtoul_from_user(ubuf, cnt, 10, &val); ubuf 5434 kernel/trace/trace.c tracing_set_trace_read(struct file *filp, char __user *ubuf, ubuf 5445 kernel/trace/trace.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); ubuf 5744 kernel/trace/trace.c tracing_set_trace_write(struct file *filp, const char __user *ubuf, ubuf 5758 kernel/trace/trace.c if (copy_from_user(buf, ubuf, cnt)) ubuf 5777 kernel/trace/trace.c tracing_nsecs_read(unsigned long *ptr, char __user *ubuf, ubuf 5787 kernel/trace/trace.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); ubuf 5791 kernel/trace/trace.c tracing_nsecs_write(unsigned long *ptr, const char __user *ubuf, ubuf 5797 kernel/trace/trace.c ret = kstrtoul_from_user(ubuf, cnt, 10, &val); ubuf 5807 kernel/trace/trace.c tracing_thresh_read(struct file *filp, char __user *ubuf, ubuf 5810 kernel/trace/trace.c return tracing_nsecs_read(&tracing_thresh, ubuf, cnt, ppos); ubuf 5814 kernel/trace/trace.c tracing_thresh_write(struct file *filp, const char __user *ubuf, ubuf 5821 kernel/trace/trace.c ret = tracing_nsecs_write(&tracing_thresh, ubuf, cnt, ppos); ubuf 5841 kernel/trace/trace.c tracing_max_lat_read(struct file *filp, char __user *ubuf, ubuf 5844 kernel/trace/trace.c return tracing_nsecs_read(filp->private_data, ubuf, cnt, ppos); ubuf 5848 kernel/trace/trace.c tracing_max_lat_write(struct file *filp, const char __user *ubuf, ubuf 5851 kernel/trace/trace.c return tracing_nsecs_write(filp->private_data, ubuf, cnt, ppos); ubuf 6008 kernel/trace/trace.c tracing_read_pipe(struct file *filp, char __user *ubuf, ubuf 6022 kernel/trace/trace.c sret = trace_seq_to_user(&iter->seq, ubuf, cnt); ubuf 6029 kernel/trace/trace.c sret = iter->trace->read(iter, filp, ubuf, cnt, ppos); ubuf 6086 kernel/trace/trace.c sret = trace_seq_to_user(&iter->seq, ubuf, cnt); ubuf 6250 kernel/trace/trace.c tracing_entries_read(struct file *filp, char __user *ubuf, ubuf 6293 kernel/trace/trace.c ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, r); ubuf 6298 kernel/trace/trace.c tracing_entries_write(struct file *filp, const char __user *ubuf, ubuf 6306 kernel/trace/trace.c ret = kstrtoul_from_user(ubuf, cnt, 10, &val); ubuf 6326 kernel/trace/trace.c tracing_total_entries_read(struct file *filp, char __user *ubuf, ubuf 6346 kernel/trace/trace.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); ubuf 6350 kernel/trace/trace.c tracing_free_buffer_write(struct file *filp, const char __user *ubuf, ubuf 6380 kernel/trace/trace.c tracing_mark_write(struct file *filp, const char __user *ubuf, ubuf 6425 kernel/trace/trace.c len = __copy_from_user_inatomic(&entry->buf, ubuf, cnt); ubuf 6461 kernel/trace/trace.c tracing_mark_raw_write(struct file *filp, const char __user *ubuf, ubuf 6504 kernel/trace/trace.c len = __copy_from_user_inatomic(&entry->id, ubuf, cnt); ubuf 6569 kernel/trace/trace.c static ssize_t tracing_clock_write(struct file *filp, const char __user *ubuf, ubuf 6581 kernel/trace/trace.c if (copy_from_user(buf, ubuf, cnt)) ubuf 6726 kernel/trace/trace.c tracing_snapshot_write(struct file *filp, const char __user *ubuf, size_t cnt, ubuf 6739 kernel/trace/trace.c ret = kstrtoul_from_user(ubuf, cnt, 10, &val); ubuf 6827 kernel/trace/trace.c static ssize_t tracing_buffers_read(struct file *filp, char __user *ubuf, ubuf 7254 kernel/trace/trace.c tracing_buffers_read(struct file *filp, char __user *ubuf, ubuf 7315 kernel/trace/trace.c ret = copy_to_user(ubuf, info->spare + info->read, size); ubuf 7524 kernel/trace/trace.c tracing_stats_read(struct file *filp, char __user *ubuf, ubuf 7579 kernel/trace/trace.c count = simple_read_from_buffer(ubuf, count, ppos, ubuf 7597 kernel/trace/trace.c tracing_read_dyn_info(struct file *filp, char __user *ubuf, ubuf 7607 kernel/trace/trace.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); ubuf 7867 kernel/trace/trace.c trace_options_read(struct file *filp, char __user *ubuf, size_t cnt, ubuf 7878 kernel/trace/trace.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, 2); ubuf 7882 kernel/trace/trace.c trace_options_write(struct file *filp, const char __user *ubuf, size_t cnt, ubuf 7889 kernel/trace/trace.c ret = kstrtoul_from_user(ubuf, cnt, 10, &val); ubuf 7952 kernel/trace/trace.c trace_options_core_read(struct file *filp, char __user *ubuf, size_t cnt, ubuf 7967 kernel/trace/trace.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, 2); ubuf 7971 kernel/trace/trace.c trace_options_core_write(struct file *filp, const char __user *ubuf, size_t cnt, ubuf 7982 kernel/trace/trace.c ret = kstrtoul_from_user(ubuf, cnt, 10, &val); ubuf 8161 kernel/trace/trace.c rb_simple_read(struct file *filp, char __user *ubuf, ubuf 8171 kernel/trace/trace.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); ubuf 8175 kernel/trace/trace.c rb_simple_write(struct file *filp, const char __user *ubuf, ubuf 8183 kernel/trace/trace.c ret = kstrtoul_from_user(ubuf, cnt, 10, &val); ubuf 8217 kernel/trace/trace.c buffer_percent_read(struct file *filp, char __user *ubuf, ubuf 8227 kernel/trace/trace.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); ubuf 8231 kernel/trace/trace.c buffer_percent_write(struct file *filp, const char __user *ubuf, ubuf 8238 kernel/trace/trace.c ret = kstrtoul_from_user(ubuf, cnt, 10, &val); ubuf 478 kernel/trace/trace.h struct file *filp, char __user *ubuf, ubuf 780 kernel/trace/trace.h const char __user *ubuf, size_t cnt); ubuf 1206 kernel/trace/trace.h extern int trace_get_user(struct trace_parser *parser, const char __user *ubuf, ubuf 857 kernel/trace/trace_events.c ftrace_event_write(struct file *file, const char __user *ubuf, ubuf 875 kernel/trace/trace_events.c read = trace_get_user(&parser, ubuf, cnt, ppos); ubuf 1026 kernel/trace/trace_events.c event_enable_read(struct file *filp, char __user *ubuf, size_t cnt, ubuf 1052 kernel/trace/trace_events.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, strlen(buf)); ubuf 1056 kernel/trace/trace_events.c event_enable_write(struct file *filp, const char __user *ubuf, size_t cnt, ubuf 1063 kernel/trace/trace_events.c ret = kstrtoul_from_user(ubuf, cnt, 10, &val); ubuf 1092 kernel/trace/trace_events.c system_enable_read(struct file *filp, char __user *ubuf, size_t cnt, ubuf 1132 kernel/trace/trace_events.c ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, 2); ubuf 1138 kernel/trace/trace_events.c system_enable_write(struct file *filp, const char __user *ubuf, size_t cnt, ubuf 1147 kernel/trace/trace_events.c ret = kstrtoul_from_user(ubuf, cnt, 10, &val); ubuf 1311 kernel/trace/trace_events.c event_id_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) ubuf 1322 kernel/trace/trace_events.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); ubuf 1326 kernel/trace/trace_events.c event_filter_read(struct file *filp, char __user *ubuf, size_t cnt, ubuf 1350 kernel/trace/trace_events.c r = simple_read_from_buffer(ubuf, cnt, ppos, ubuf 1359 kernel/trace/trace_events.c event_filter_write(struct file *filp, const char __user *ubuf, size_t cnt, ubuf 1369 kernel/trace/trace_events.c buf = memdup_user_nul(ubuf, cnt); ubuf 1482 kernel/trace/trace_events.c subsystem_filter_read(struct file *filp, char __user *ubuf, size_t cnt, ubuf 1500 kernel/trace/trace_events.c r = simple_read_from_buffer(ubuf, cnt, ppos, ubuf 1509 kernel/trace/trace_events.c subsystem_filter_write(struct file *filp, const char __user *ubuf, size_t cnt, ubuf 1519 kernel/trace/trace_events.c buf = memdup_user_nul(ubuf, cnt); ubuf 1534 kernel/trace/trace_events.c show_header(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) ubuf 1550 kernel/trace/trace_events.c r = simple_read_from_buffer(ubuf, cnt, ppos, ubuf 1575 kernel/trace/trace_events.c ftrace_event_pid_write(struct file *filp, const char __user *ubuf, ubuf 1597 kernel/trace/trace_events.c ret = trace_pid_write(filtered_pids, &pid_list, ubuf, cnt); ubuf 240 kernel/trace/trace_events_trigger.c const char __user *ubuf, ubuf 253 kernel/trace/trace_events_trigger.c buf = memdup_user_nul(ubuf, cnt); ubuf 292 kernel/trace/trace_events_trigger.c event_trigger_write(struct file *filp, const char __user *ubuf, ubuf 295 kernel/trace/trace_events_trigger.c return event_trigger_regex_write(filp, ubuf, cnt, ppos); ubuf 1301 kernel/trace/trace_functions_graph.c graph_depth_write(struct file *filp, const char __user *ubuf, size_t cnt, ubuf 1307 kernel/trace/trace_functions_graph.c ret = kstrtoul_from_user(ubuf, cnt, 10, &val); ubuf 1319 kernel/trace/trace_functions_graph.c graph_depth_read(struct file *filp, char __user *ubuf, size_t cnt, ubuf 1327 kernel/trace/trace_functions_graph.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, n); ubuf 407 kernel/trace/trace_hwlat.c static ssize_t hwlat_read(struct file *filp, char __user *ubuf, ubuf 425 kernel/trace/trace_hwlat.c return simple_read_from_buffer(ubuf, cnt, ppos, buf, len); ubuf 444 kernel/trace/trace_hwlat.c hwlat_width_write(struct file *filp, const char __user *ubuf, ubuf 450 kernel/trace/trace_hwlat.c err = kstrtoull_from_user(ubuf, cnt, 10, &val); ubuf 483 kernel/trace/trace_hwlat.c hwlat_window_write(struct file *filp, const char __user *ubuf, ubuf 489 kernel/trace/trace_hwlat.c err = kstrtoull_from_user(ubuf, cnt, 10, &val); ubuf 134 kernel/trace/trace_mmiotrace.c char __user *ubuf, size_t cnt, loff_t *ppos) ubuf 163 kernel/trace/trace_mmiotrace.c ret = trace_seq_to_user(s, ubuf, cnt); ubuf 373 kernel/trace/trace_seq.c int trace_seq_to_user(struct trace_seq *s, char __user *ubuf, int cnt) ubuf 376 kernel/trace/trace_seq.c return seq_buf_to_user(&s->seq, ubuf, cnt); ubuf 325 kernel/trace/trace_stack.c stack_max_size_read(struct file *filp, char __user *ubuf, ubuf 335 kernel/trace/trace_stack.c return simple_read_from_buffer(ubuf, count, ppos, buf, r); ubuf 339 kernel/trace/trace_stack.c stack_max_size_write(struct file *filp, const char __user *ubuf, ubuf 346 kernel/trace/trace_stack.c ret = kstrtoul_from_user(ubuf, count, 10, &val); ubuf 382 lib/bitmap.c const char __user __force *ubuf = (const char __user __force *)buf; ubuf 395 lib/bitmap.c if (__get_user(c, ubuf++)) ubuf 462 lib/bitmap.c int bitmap_parse_user(const char __user *ubuf, ubuf 466 lib/bitmap.c if (!access_ok(ubuf, ulen)) ubuf 468 lib/bitmap.c return __bitmap_parse((const char __force *)ubuf, ubuf 683 lib/bitmap.c int bitmap_parselist_user(const char __user *ubuf, ubuf 690 lib/bitmap.c buf = memdup_user_nul(ubuf, ulen); ubuf 696 lib/dynamic_debug.c static ssize_t ddebug_proc_write(struct file *file, const char __user *ubuf, ubuf 708 lib/dynamic_debug.c tmpbuf = memdup_user_nul(ubuf, len); ubuf 306 lib/seq_buf.c int seq_buf_to_user(struct seq_buf *s, char __user *ubuf, int cnt) ubuf 322 lib/seq_buf.c ret = copy_to_user(ubuf, s->buffer + s->readpos, cnt); ubuf 8630 net/core/filter.c int sk_get_filter(struct sock *sk, struct sock_filter __user *ubuf, ubuf 8662 net/core/filter.c if (copy_to_user(ubuf, fprog->filter, bpf_classic_proglen(fprog))) ubuf 1982 net/socket.c int __sys_recvfrom(int fd, void __user *ubuf, size_t size, unsigned int flags, ubuf 1992 net/socket.c err = import_single_range(READ, ubuf, size, &iov, &msg.msg_iter); ubuf 2023 net/socket.c SYSCALL_DEFINE6(recvfrom, int, fd, void __user *, ubuf, size_t, size, ubuf 2027 net/socket.c return __sys_recvfrom(fd, ubuf, size, flags, addr, addr_len); ubuf 2034 net/socket.c SYSCALL_DEFINE4(recv, int, fd, void __user *, ubuf, size_t, size, ubuf 2037 net/socket.c return __sys_recvfrom(fd, ubuf, size, flags, NULL, NULL); ubuf 933 security/apparmor/apparmorfs.c static ssize_t aa_write_access(struct file *file, const char __user *ubuf, ubuf 942 security/apparmor/apparmorfs.c t = multi_transaction_new(file, ubuf, count); ubuf 111 security/safesetid/securityfs.c const char __user *ubuf, size_t len) ubuf 123 security/safesetid/securityfs.c p = buf = memdup_user_nul(ubuf, len);