kbuf 22 arch/arc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 31 arch/arc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ kbuf 37 arch/arc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ kbuf 43 arch/arc/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, \ kbuf 108 arch/arc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 116 arch/arc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ kbuf 123 arch/arc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ kbuf 130 arch/arc/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ kbuf 188 arch/arc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 202 arch/arc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, ®s->r30, kbuf 211 arch/arc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 221 arch/arc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, (void *)®s->r30, kbuf 574 arch/arm/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 578 arch/arm/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 586 arch/arm/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 591 arch/arm/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 607 arch/arm/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 609 arch/arm/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 617 arch/arm/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 623 arch/arm/kernel/ptrace.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 654 arch/arm/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 664 arch/arm/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 671 arch/arm/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 677 arch/arm/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 691 arch/arm/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 702 arch/arm/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 709 arch/arm/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 715 arch/arm/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 31 arch/arm/kernel/signal.c char kbuf[sizeof(*frame) + 8]; kbuf 35 arch/arm/kernel/signal.c kframe = (struct crunch_sigframe *)((unsigned long)(kbuf + 8) & ~7); kbuf 46 arch/arm/kernel/signal.c char kbuf[sizeof(*frame) + 8]; kbuf 50 arch/arm/kernel/signal.c kframe = (struct crunch_sigframe *)((unsigned long)(kbuf + 8) & ~7); kbuf 66 arch/arm/kernel/signal.c char kbuf[sizeof(*frame) + 8]; kbuf 71 arch/arm/kernel/signal.c kframe = (struct iwmmxt_sigframe *)((unsigned long)(kbuf + 8) & ~7); kbuf 99 arch/arm/kernel/signal.c char kbuf[sizeof(*frame) + 8]; kbuf 103 arch/arm/kernel/signal.c kframe = (struct iwmmxt_sigframe *)((unsigned long)(kbuf + 8) & ~7); kbuf 276 arch/arm/kernel/sys_oabi-compat.c struct epoll_event *kbuf; kbuf 282 arch/arm/kernel/sys_oabi-compat.c maxevents > (INT_MAX/sizeof(*kbuf)) || kbuf 287 arch/arm/kernel/sys_oabi-compat.c kbuf = kmalloc_array(maxevents, sizeof(*kbuf), GFP_KERNEL); kbuf 288 arch/arm/kernel/sys_oabi-compat.c if (!kbuf) kbuf 292 arch/arm/kernel/sys_oabi-compat.c ret = sys_epoll_wait(epfd, kbuf, maxevents, timeout); kbuf 296 arch/arm/kernel/sys_oabi-compat.c e.events = kbuf[i].events; kbuf 297 arch/arm/kernel/sys_oabi-compat.c e.data = kbuf[i].data; kbuf 303 arch/arm/kernel/sys_oabi-compat.c kfree(kbuf); kbuf 45 arch/arm64/kernel/kexec_image.c struct kexec_buf kbuf; kbuf 80 arch/arm64/kernel/kexec_image.c kbuf.image = image; kbuf 81 arch/arm64/kernel/kexec_image.c kbuf.buf_min = 0; kbuf 82 arch/arm64/kernel/kexec_image.c kbuf.buf_max = ULONG_MAX; kbuf 83 arch/arm64/kernel/kexec_image.c kbuf.top_down = false; kbuf 85 arch/arm64/kernel/kexec_image.c kbuf.buffer = kernel; kbuf 86 arch/arm64/kernel/kexec_image.c kbuf.bufsz = kernel_len; kbuf 87 arch/arm64/kernel/kexec_image.c kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; kbuf 88 arch/arm64/kernel/kexec_image.c kbuf.memsz = le64_to_cpu(h->image_size); kbuf 90 arch/arm64/kernel/kexec_image.c kbuf.buf_align = MIN_KIMG_ALIGN; kbuf 93 arch/arm64/kernel/kexec_image.c kbuf.memsz += text_offset; kbuf 95 arch/arm64/kernel/kexec_image.c ret = kexec_add_buffer(&kbuf); kbuf 105 arch/arm64/kernel/kexec_image.c kernel_segment->mem, kbuf.bufsz, kbuf 183 arch/arm64/kernel/machine_kexec_file.c struct kexec_buf kbuf; kbuf 188 arch/arm64/kernel/machine_kexec_file.c kbuf.image = image; kbuf 190 arch/arm64/kernel/machine_kexec_file.c kbuf.buf_min = kernel_load_addr + kernel_size; kbuf 194 arch/arm64/kernel/machine_kexec_file.c kbuf.buffer = initrd; kbuf 195 arch/arm64/kernel/machine_kexec_file.c kbuf.bufsz = initrd_len; kbuf 196 arch/arm64/kernel/machine_kexec_file.c kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; kbuf 197 arch/arm64/kernel/machine_kexec_file.c kbuf.memsz = initrd_len; kbuf 198 arch/arm64/kernel/machine_kexec_file.c kbuf.buf_align = 0; kbuf 200 arch/arm64/kernel/machine_kexec_file.c kbuf.buf_max = round_down(kernel_load_addr, SZ_1G) kbuf 202 arch/arm64/kernel/machine_kexec_file.c kbuf.top_down = false; kbuf 204 arch/arm64/kernel/machine_kexec_file.c ret = kexec_add_buffer(&kbuf); kbuf 207 arch/arm64/kernel/machine_kexec_file.c initrd_load_addr = kbuf.mem; kbuf 221 arch/arm64/kernel/machine_kexec_file.c kbuf.buffer = dtb; kbuf 222 arch/arm64/kernel/machine_kexec_file.c kbuf.bufsz = dtb_len; kbuf 223 arch/arm64/kernel/machine_kexec_file.c kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; kbuf 224 arch/arm64/kernel/machine_kexec_file.c kbuf.memsz = dtb_len; kbuf 226 arch/arm64/kernel/machine_kexec_file.c kbuf.buf_align = SZ_2M; kbuf 227 arch/arm64/kernel/machine_kexec_file.c kbuf.buf_max = ULONG_MAX; kbuf 228 arch/arm64/kernel/machine_kexec_file.c kbuf.top_down = true; kbuf 230 arch/arm64/kernel/machine_kexec_file.c ret = kexec_add_buffer(&kbuf); kbuf 234 arch/arm64/kernel/machine_kexec_file.c image->arch.dtb_mem = kbuf.mem; kbuf 237 arch/arm64/kernel/machine_kexec_file.c kbuf.mem, dtb_len, dtb_len); kbuf 479 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 491 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &info, 0, kbuf 498 arch/arm64/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, offset, kbuf 510 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &addr, kbuf 519 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &ctrl, kbuf 525 arch/arm64/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 540 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 549 arch/arm64/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, offset); kbuf 558 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &addr, kbuf 569 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ctrl, kbuf 578 arch/arm64/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 594 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 597 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, 0, -1); kbuf 602 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 607 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newregs, 0, -1); kbuf 631 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf, unsigned int start_pos) kbuf 639 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, kbuf 645 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 653 arch/arm64/kernel/ptrace.c return __fpr_get(target, regset, pos, count, kbuf, ubuf, 0); kbuf 659 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf, kbuf 673 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newstate, kbuf 685 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 692 arch/arm64/kernel/ptrace.c ret = __fpr_set(target, regset, pos, count, kbuf, ubuf, 0); kbuf 704 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 711 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, tls, 0, -1); kbuf 716 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 721 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); kbuf 732 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 736 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 743 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 748 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &syscallno, 0, -1); kbuf 799 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 813 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &header, kbuf 825 arch/arm64/kernel/ptrace.c return __fpr_get(target, regset, pos, count, kbuf, ubuf, kbuf 833 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 841 arch/arm64/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 852 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 860 arch/arm64/kernel/ptrace.c return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 867 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 880 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &header, kbuf 901 arch/arm64/kernel/ptrace.c ret = __fpr_set(target, regset, pos, count, kbuf, ubuf, kbuf 932 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 940 arch/arm64/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 951 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 966 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 982 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &uregs, 0, -1); kbuf 1022 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1032 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1039 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1049 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1073 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1083 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1090 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1100 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1244 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1277 arch/arm64/kernel/ptrace.c if (kbuf) { kbuf 1278 arch/arm64/kernel/ptrace.c memcpy(kbuf, ®, sizeof(reg)); kbuf 1279 arch/arm64/kernel/ptrace.c kbuf += sizeof(reg); kbuf 1297 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1318 arch/arm64/kernel/ptrace.c if (kbuf) { kbuf 1319 arch/arm64/kernel/ptrace.c memcpy(®, kbuf, sizeof(reg)); kbuf 1320 arch/arm64/kernel/ptrace.c kbuf += sizeof(reg); kbuf 1359 arch/arm64/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1378 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, kbuf 1385 arch/arm64/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &fpscr, kbuf 1395 arch/arm64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1407 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, kbuf 1411 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &fpscr, kbuf 1425 arch/arm64/kernel/ptrace.c unsigned int count, void *kbuf, void __user *ubuf) kbuf 1428 arch/arm64/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); kbuf 1433 arch/arm64/kernel/ptrace.c unsigned int count, const void *kbuf, kbuf 1439 arch/arm64/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); kbuf 61 arch/c6x/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 65 arch/c6x/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 75 arch/csky/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 84 arch/csky/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, regs, 0, -1); kbuf 90 arch/csky/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 95 arch/csky/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®s, 0, -1); kbuf 113 arch/csky/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 129 arch/csky/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &tmp, 0, -1); kbuf 131 arch/csky/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, regs, 0, -1); kbuf 138 arch/csky/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 147 arch/csky/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tmp, 0, -1); kbuf 159 arch/csky/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, regs, 0, -1); kbuf 91 arch/h8300/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 102 arch/h8300/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 109 arch/h8300/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 121 arch/h8300/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 39 arch/hexagon/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 55 arch/hexagon/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 60 arch/hexagon/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, \ kbuf 87 arch/hexagon/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 95 arch/hexagon/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 104 arch/hexagon/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 109 arch/hexagon/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ kbuf 138 arch/hexagon/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 1256 arch/ia64/kernel/ptrace.c void *kbuf; kbuf 1261 arch/ia64/kernel/ptrace.c const void *kbuf; kbuf 1527 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, kbuf 1547 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, &dst->u.get.ubuf, tmp, kbuf 1557 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, &dst->u.get.ubuf, &pt->r16, kbuf 1576 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, &dst->u.get.ubuf, tmp, kbuf 1597 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, &dst->u.get.ubuf, tmp, kbuf 1615 arch/ia64/kernel/ptrace.c &dst->u.set.kbuf, kbuf 1627 arch/ia64/kernel/ptrace.c &dst->u.set.kbuf, &dst->u.set.ubuf, tmp, kbuf 1645 arch/ia64/kernel/ptrace.c &dst->u.set.kbuf, &dst->u.set.ubuf, &pt->r16, kbuf 1656 arch/ia64/kernel/ptrace.c &dst->u.set.kbuf, &dst->u.set.ubuf, tmp, kbuf 1677 arch/ia64/kernel/ptrace.c &dst->u.set.kbuf, &dst->u.set.ubuf, tmp, kbuf 1705 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, kbuf 1726 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, &dst->u.get.ubuf, tmp, kbuf 1738 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, &dst->u.get.ubuf, kbuf 1745 arch/ia64/kernel/ptrace.c &dst->u.get.kbuf, &dst->u.get.ubuf, kbuf 1762 arch/ia64/kernel/ptrace.c &dst->u.set.kbuf, kbuf 1775 arch/ia64/kernel/ptrace.c &dst->u.set.kbuf, &dst->u.set.ubuf, tmp, kbuf 1816 arch/ia64/kernel/ptrace.c &dst->u.set.kbuf, kbuf 1828 arch/ia64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1832 arch/ia64/kernel/ptrace.c .u.set = { .kbuf = kbuf, .ubuf = ubuf }, kbuf 1851 arch/ia64/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1854 arch/ia64/kernel/ptrace.c kbuf, ubuf); kbuf 1860 arch/ia64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1863 arch/ia64/kernel/ptrace.c kbuf, ubuf); kbuf 1897 arch/ia64/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1900 arch/ia64/kernel/ptrace.c kbuf, ubuf); kbuf 1906 arch/ia64/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1909 arch/ia64/kernel/ptrace.c kbuf, ubuf); kbuf 215 arch/mips/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 221 arch/mips/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, 0, kbuf 228 arch/mips/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 241 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, kbuf 282 arch/mips/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 288 arch/mips/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, 0, kbuf 295 arch/mips/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 308 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, kbuf 414 arch/mips/kernel/ptrace.c void **kbuf, void __user **ubuf) kbuf 416 arch/mips/kernel/ptrace.c return user_regset_copyout(pos, count, kbuf, ubuf, kbuf 429 arch/mips/kernel/ptrace.c void **kbuf, void __user **ubuf) kbuf 438 arch/mips/kernel/ptrace.c err = user_regset_copyout(pos, count, kbuf, ubuf, kbuf 456 arch/mips/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 463 arch/mips/kernel/ptrace.c err = fpr_get_fpa(target, &pos, &count, &kbuf, &ubuf); kbuf 465 arch/mips/kernel/ptrace.c err = fpr_get_msa(target, &pos, &count, &kbuf, &ubuf); kbuf 469 arch/mips/kernel/ptrace.c err = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 475 arch/mips/kernel/ptrace.c err = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 489 arch/mips/kernel/ptrace.c const void **kbuf, const void __user **ubuf) kbuf 491 arch/mips/kernel/ptrace.c return user_regset_copyin(pos, count, kbuf, ubuf, kbuf 504 arch/mips/kernel/ptrace.c const void **kbuf, const void __user **ubuf) kbuf 512 arch/mips/kernel/ptrace.c err = user_regset_copyin(pos, count, kbuf, ubuf, kbuf 538 arch/mips/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 553 arch/mips/kernel/ptrace.c err = fpr_set_fpa(target, &pos, &count, &kbuf, &ubuf); kbuf 555 arch/mips/kernel/ptrace.c err = fpr_set_msa(target, &pos, &count, &kbuf, &ubuf); kbuf 560 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 570 arch/mips/kernel/ptrace.c err = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 581 arch/mips/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 586 arch/mips/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &fp_mode, 0, kbuf 602 arch/mips/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 612 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &fp_mode, 0, kbuf 669 arch/mips/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 683 arch/mips/kernel/ptrace.c &kbuf, &ubuf, 0); kbuf 687 arch/mips/kernel/ptrace.c &kbuf, &ubuf, 8); kbuf 690 arch/mips/kernel/ptrace.c err = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 696 arch/mips/kernel/ptrace.c &kbuf, &ubuf, kbuf 700 arch/mips/kernel/ptrace.c err |= user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 709 arch/mips/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 720 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 730 arch/mips/kernel/ptrace.c err |= user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 737 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ctrl_regs, kbuf 757 arch/mips/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 782 arch/mips/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, dspregs, 0, kbuf 792 arch/mips/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 809 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, dspregs, 0, kbuf 837 arch/mips/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 862 arch/mips/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, dspregs, 0, kbuf 872 arch/mips/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 889 arch/mips/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, dspregs, 0, kbuf 69 arch/mips/lasat/picvue_proc.c char kbuf[PVC_LINELEN]; kbuf 74 arch/mips/lasat/picvue_proc.c len = min(count, sizeof(kbuf) - 1); kbuf 75 arch/mips/lasat/picvue_proc.c if (copy_from_user(kbuf, buf, len)) kbuf 77 arch/mips/lasat/picvue_proc.c kbuf[len] = '\0'; kbuf 79 arch/mips/lasat/picvue_proc.c if (len > 0 && kbuf[len - 1] == '\n') kbuf 83 arch/mips/lasat/picvue_proc.c strncpy(pvc_lines[lineno], kbuf, len); kbuf 104 arch/mips/lasat/picvue_proc.c char kbuf[42]; kbuf 108 arch/mips/lasat/picvue_proc.c len = min(count, sizeof(kbuf) - 1); kbuf 109 arch/mips/lasat/picvue_proc.c if (copy_from_user(kbuf, buf, len)) kbuf 111 arch/mips/lasat/picvue_proc.c kbuf[len] = '\0'; kbuf 113 arch/mips/lasat/picvue_proc.c cmd = simple_strtol(kbuf, NULL, 10); kbuf 17 arch/nds32/kernel/ptrace.c void *kbuf, void __user * ubuf) kbuf 20 arch/nds32/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, 0, -1); kbuf 25 arch/nds32/kernel/ptrace.c const void *kbuf, const void __user * ubuf) kbuf 30 arch/nds32/kernel/ptrace.c err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newregs, 0, -1); kbuf 25 arch/nios2/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 33 arch/nios2/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, \ kbuf 38 arch/nios2/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ kbuf 43 arch/nios2/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, PTR, \ kbuf 59 arch/nios2/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 71 arch/nios2/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 79 arch/nios2/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ kbuf 84 arch/nios2/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ kbuf 89 arch/nios2/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, \ kbuf 105 arch/nios2/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 49 arch/openrisc/kernel/ptrace.c void *kbuf, void __user * ubuf) kbuf 55 arch/openrisc/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, 0, 4); kbuf 58 arch/openrisc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 61 arch/openrisc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 64 arch/openrisc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 67 arch/openrisc/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 79 arch/openrisc/kernel/ptrace.c const void *kbuf, const void __user * ubuf) kbuf 85 arch/openrisc/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, 4); kbuf 88 arch/openrisc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 92 arch/openrisc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 99 arch/openrisc/kernel/ptrace.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 25 arch/parisc/kernel/kexec_file.c struct kexec_buf kbuf = { .image = image, .buf_min = 0, kbuf 32 arch/parisc/kernel/kexec_file.c ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr); kbuf 45 arch/parisc/kernel/kexec_file.c kbuf.buffer = initrd; kbuf 46 arch/parisc/kernel/kexec_file.c kbuf.bufsz = kbuf.memsz = initrd_len; kbuf 47 arch/parisc/kernel/kexec_file.c kbuf.buf_align = PAGE_SIZE; kbuf 48 arch/parisc/kernel/kexec_file.c kbuf.top_down = false; kbuf 49 arch/parisc/kernel/kexec_file.c kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; kbuf 50 arch/parisc/kernel/kexec_file.c ret = kexec_add_buffer(&kbuf); kbuf 54 arch/parisc/kernel/kexec_file.c pr_debug("Loaded initrd at 0x%lx\n", kbuf.mem); kbuf 55 arch/parisc/kernel/kexec_file.c image->arch.initrd_start = kbuf.mem; kbuf 56 arch/parisc/kernel/kexec_file.c image->arch.initrd_end = kbuf.mem + initrd_len; kbuf 60 arch/parisc/kernel/kexec_file.c kbuf.buffer = cmdline; kbuf 61 arch/parisc/kernel/kexec_file.c kbuf.bufsz = kbuf.memsz = ALIGN(cmdline_len, 8); kbuf 62 arch/parisc/kernel/kexec_file.c kbuf.buf_align = PAGE_SIZE; kbuf 63 arch/parisc/kernel/kexec_file.c kbuf.top_down = false; kbuf 64 arch/parisc/kernel/kexec_file.c kbuf.buf_min = PAGE0->mem_free + PAGE_SIZE; kbuf 65 arch/parisc/kernel/kexec_file.c kbuf.buf_max = kernel_load_addr; kbuf 66 arch/parisc/kernel/kexec_file.c kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; kbuf 67 arch/parisc/kernel/kexec_file.c ret = kexec_add_buffer(&kbuf); kbuf 71 arch/parisc/kernel/kexec_file.c pr_debug("Loaded cmdline at 0x%lx\n", kbuf.mem); kbuf 72 arch/parisc/kernel/kexec_file.c image->arch.cmdline = kbuf.mem; kbuf 396 arch/parisc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 399 arch/parisc/kernel/ptrace.c __u64 *k = kbuf; kbuf 406 arch/parisc/kernel/ptrace.c if (kbuf) kbuf 414 arch/parisc/kernel/ptrace.c kbuf = k; kbuf 418 arch/parisc/kernel/ptrace.c return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 425 arch/parisc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 428 arch/parisc/kernel/ptrace.c const __u64 *k = kbuf; kbuf 435 arch/parisc/kernel/ptrace.c if (kbuf) kbuf 445 arch/parisc/kernel/ptrace.c kbuf = k; kbuf 449 arch/parisc/kernel/ptrace.c return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 532 arch/parisc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 535 arch/parisc/kernel/ptrace.c unsigned long *k = kbuf; kbuf 542 arch/parisc/kernel/ptrace.c if (kbuf) kbuf 549 arch/parisc/kernel/ptrace.c kbuf = k; kbuf 553 arch/parisc/kernel/ptrace.c return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 560 arch/parisc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 563 arch/parisc/kernel/ptrace.c const unsigned long *k = kbuf; kbuf 570 arch/parisc/kernel/ptrace.c if (kbuf) kbuf 580 arch/parisc/kernel/ptrace.c kbuf = k; kbuf 584 arch/parisc/kernel/ptrace.c return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 612 arch/parisc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 615 arch/parisc/kernel/ptrace.c compat_ulong_t *k = kbuf; kbuf 622 arch/parisc/kernel/ptrace.c if (kbuf) kbuf 630 arch/parisc/kernel/ptrace.c kbuf = k; kbuf 634 arch/parisc/kernel/ptrace.c return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 641 arch/parisc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 644 arch/parisc/kernel/ptrace.c const compat_ulong_t *k = kbuf; kbuf 651 arch/parisc/kernel/ptrace.c if (kbuf) kbuf 661 arch/parisc/kernel/ptrace.c kbuf = k; kbuf 665 arch/parisc/kernel/ptrace.c return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 39 arch/powerpc/kernel/kexec_elf_64.c struct kexec_buf kbuf = { .image = image, .buf_min = 0, kbuf 49 arch/powerpc/kernel/kexec_elf_64.c ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr); kbuf 64 arch/powerpc/kernel/kexec_elf_64.c kbuf.buffer = initrd; kbuf 65 arch/powerpc/kernel/kexec_elf_64.c kbuf.bufsz = kbuf.memsz = initrd_len; kbuf 66 arch/powerpc/kernel/kexec_elf_64.c kbuf.buf_align = PAGE_SIZE; kbuf 67 arch/powerpc/kernel/kexec_elf_64.c kbuf.top_down = false; kbuf 68 arch/powerpc/kernel/kexec_elf_64.c kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; kbuf 69 arch/powerpc/kernel/kexec_elf_64.c ret = kexec_add_buffer(&kbuf); kbuf 72 arch/powerpc/kernel/kexec_elf_64.c initrd_load_addr = kbuf.mem; kbuf 97 arch/powerpc/kernel/kexec_elf_64.c kbuf.buffer = fdt; kbuf 98 arch/powerpc/kernel/kexec_elf_64.c kbuf.bufsz = kbuf.memsz = fdt_size; kbuf 99 arch/powerpc/kernel/kexec_elf_64.c kbuf.buf_align = PAGE_SIZE; kbuf 100 arch/powerpc/kernel/kexec_elf_64.c kbuf.top_down = true; kbuf 101 arch/powerpc/kernel/kexec_elf_64.c kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; kbuf 102 arch/powerpc/kernel/kexec_elf_64.c ret = kexec_add_buffer(&kbuf); kbuf 105 arch/powerpc/kernel/kexec_elf_64.c fdt_load_addr = kbuf.mem; kbuf 339 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 352 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 357 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &msr, kbuf 367 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 372 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 380 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 390 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 395 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, kbuf 406 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 413 arch/powerpc/kernel/ptrace.c &pos, &count, &kbuf, &ubuf, kbuf 418 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, kbuf 427 arch/powerpc/kernel/ptrace.c &pos, &count, &kbuf, &ubuf, kbuf 447 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 459 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, buf, 0, -1); kbuf 466 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 486 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 499 arch/powerpc/kernel/ptrace.c i = user_regset_copyin(&pos, &count, &kbuf, &ubuf, buf, 0, -1); kbuf 513 arch/powerpc/kernel/ptrace.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 555 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 564 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 582 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &vrsave, kbuf 605 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 614 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 632 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &vrsave, kbuf 670 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 683 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 703 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 716 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 747 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 753 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 761 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 770 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 776 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 784 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 836 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 850 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 856 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &msr, kbuf 866 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 871 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 900 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 915 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 920 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, kbuf 931 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 938 arch/powerpc/kernel/ptrace.c &pos, &count, &kbuf, &ubuf, kbuf 943 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, ®, kbuf 952 arch/powerpc/kernel/ptrace.c &pos, &count, &kbuf, &ubuf, kbuf 1002 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1021 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, buf, 0, -1); kbuf 1048 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1068 arch/powerpc/kernel/ptrace.c i = user_regset_copyin(&pos, &count, &kbuf, &ubuf, buf, 0, -1); kbuf 1122 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1139 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1152 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &vrsave, kbuf 1184 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1200 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1213 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &vrsave, kbuf 1266 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1285 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1314 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1334 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1381 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1399 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1404 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1410 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1437 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1455 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1460 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1466 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1487 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1497 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1505 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1515 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1536 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1546 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1554 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1564 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1584 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1594 arch/powerpc/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1602 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1612 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1622 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1624 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1631 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1633 arch/powerpc/kernel/ptrace.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1640 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1642 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1648 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1650 arch/powerpc/kernel/ptrace.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1658 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1660 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1666 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1668 arch/powerpc/kernel/ptrace.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1687 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1699 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1706 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1720 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1724 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1729 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1747 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1758 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1766 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1779 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1784 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1789 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1794 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1799 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1819 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1827 arch/powerpc/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1835 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1847 arch/powerpc/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 2022 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf, kbuf 2025 arch/powerpc/kernel/ptrace.c compat_ulong_t *k = kbuf; kbuf 2032 arch/powerpc/kernel/ptrace.c if (kbuf) kbuf 2042 arch/powerpc/kernel/ptrace.c if (kbuf) kbuf 2050 arch/powerpc/kernel/ptrace.c if (kbuf) kbuf 2058 arch/powerpc/kernel/ptrace.c kbuf = k; kbuf 2062 arch/powerpc/kernel/ptrace.c return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 2069 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf, kbuf 2072 arch/powerpc/kernel/ptrace.c const compat_ulong_t *k = kbuf; kbuf 2079 arch/powerpc/kernel/ptrace.c if (kbuf) kbuf 2091 arch/powerpc/kernel/ptrace.c if (kbuf) kbuf 2100 arch/powerpc/kernel/ptrace.c if (kbuf) { kbuf 2117 arch/powerpc/kernel/ptrace.c if (kbuf) kbuf 2126 arch/powerpc/kernel/ptrace.c kbuf = k; kbuf 2130 arch/powerpc/kernel/ptrace.c return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 2138 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 2140 arch/powerpc/kernel/ptrace.c return gpr32_get_common(target, regset, pos, count, kbuf, ubuf, kbuf 2147 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 2149 arch/powerpc/kernel/ptrace.c return gpr32_set_common(target, regset, pos, count, kbuf, ubuf, kbuf 2157 arch/powerpc/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 2172 arch/powerpc/kernel/ptrace.c return gpr32_get_common(target, regset, pos, count, kbuf, ubuf, kbuf 2179 arch/powerpc/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 2185 arch/powerpc/kernel/ptrace.c return gpr32_set_common(target, regset, pos, count, kbuf, ubuf, kbuf 1598 arch/powerpc/mm/numa.c char kbuf[4]; /* "on" or "off" plus null. */ kbuf 1602 arch/powerpc/mm/numa.c if (copy_from_user(kbuf, buf, read_len)) kbuf 1605 arch/powerpc/mm/numa.c kbuf[read_len] = '\0'; kbuf 1607 arch/powerpc/mm/numa.c if (!strncmp(kbuf, "on", 2)) { kbuf 1610 arch/powerpc/mm/numa.c } else if (!strncmp(kbuf, "off", 3)) { kbuf 598 arch/powerpc/platforms/pseries/lparcfg.c char kbuf[64]; kbuf 607 arch/powerpc/platforms/pseries/lparcfg.c if (count > sizeof(kbuf)) kbuf 610 arch/powerpc/platforms/pseries/lparcfg.c if (copy_from_user(kbuf, buf, count)) kbuf 613 arch/powerpc/platforms/pseries/lparcfg.c kbuf[count - 1] = '\0'; kbuf 614 arch/powerpc/platforms/pseries/lparcfg.c tmp = strchr(kbuf, '='); kbuf 620 arch/powerpc/platforms/pseries/lparcfg.c if (!strcmp(kbuf, "partition_entitled_capacity")) { kbuf 627 arch/powerpc/platforms/pseries/lparcfg.c } else if (!strcmp(kbuf, "capacity_weight")) { kbuf 634 arch/powerpc/platforms/pseries/lparcfg.c } else if (!strcmp(kbuf, "entitled_memory")) { kbuf 641 arch/powerpc/platforms/pseries/lparcfg.c } else if (!strcmp(kbuf, "entitled_memory_weight")) { kbuf 362 arch/powerpc/platforms/pseries/reconfig.c char *kbuf; kbuf 365 arch/powerpc/platforms/pseries/reconfig.c kbuf = memdup_user_nul(buf, count); kbuf 366 arch/powerpc/platforms/pseries/reconfig.c if (IS_ERR(kbuf)) kbuf 367 arch/powerpc/platforms/pseries/reconfig.c return PTR_ERR(kbuf); kbuf 369 arch/powerpc/platforms/pseries/reconfig.c tmp = strchr(kbuf, ' '); kbuf 377 arch/powerpc/platforms/pseries/reconfig.c if (!strcmp(kbuf, "add_node")) kbuf 378 arch/powerpc/platforms/pseries/reconfig.c rv = do_add_node(tmp, count - (tmp - kbuf)); kbuf 379 arch/powerpc/platforms/pseries/reconfig.c else if (!strcmp(kbuf, "remove_node")) kbuf 381 arch/powerpc/platforms/pseries/reconfig.c else if (!strcmp(kbuf, "add_property")) kbuf 382 arch/powerpc/platforms/pseries/reconfig.c rv = do_add_property(tmp, count - (tmp - kbuf)); kbuf 383 arch/powerpc/platforms/pseries/reconfig.c else if (!strcmp(kbuf, "remove_property")) kbuf 384 arch/powerpc/platforms/pseries/reconfig.c rv = do_remove_property(tmp, count - (tmp - kbuf)); kbuf 385 arch/powerpc/platforms/pseries/reconfig.c else if (!strcmp(kbuf, "update_property")) kbuf 386 arch/powerpc/platforms/pseries/reconfig.c rv = do_update_property(tmp, count - (tmp - kbuf)); kbuf 390 arch/powerpc/platforms/pseries/reconfig.c kfree(kbuf); kbuf 34 arch/riscv/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 39 arch/riscv/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, regs, 0, -1); kbuf 45 arch/riscv/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 51 arch/riscv/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, regs, 0, -1); kbuf 59 arch/riscv/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 64 arch/riscv/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, fstate, 0, kbuf 67 arch/riscv/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, fstate, 0, kbuf 78 arch/riscv/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 83 arch/riscv/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fstate, 0, kbuf 86 arch/riscv/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fstate, 0, kbuf 108 arch/s390/include/asm/ipl.h int ipl_report_add_component(struct ipl_report *report, struct kexec_buf *kbuf, kbuf 1714 arch/s390/kernel/ipl.c int ipl_report_add_component(struct ipl_report *report, struct kexec_buf *kbuf, kbuf 1724 arch/s390/kernel/ipl.c comp->entry.addr = kbuf->mem; kbuf 1725 arch/s390/kernel/ipl.c comp->entry.len = kbuf->memsz; kbuf 895 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 900 arch/s390/kernel/ptrace.c if (kbuf) { kbuf 901 arch/s390/kernel/ptrace.c unsigned long *k = kbuf; kbuf 922 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 929 arch/s390/kernel/ptrace.c if (kbuf) { kbuf 930 arch/s390/kernel/ptrace.c const unsigned long *k = kbuf; kbuf 957 arch/s390/kernel/ptrace.c unsigned int count, void *kbuf, void __user *ubuf) kbuf 967 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 973 arch/s390/kernel/ptrace.c unsigned int count, const void *kbuf, kbuf 990 arch/s390/kernel/ptrace.c rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ufpc, kbuf 1000 arch/s390/kernel/ptrace.c rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1016 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1019 arch/s390/kernel/ptrace.c if (kbuf) { kbuf 1020 arch/s390/kernel/ptrace.c unsigned long *k = kbuf; kbuf 1034 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1042 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1050 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, data, 0, 256); kbuf 1056 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1064 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1075 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, vxrs, 0, -1); kbuf 1081 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1094 arch/s390/kernel/ptrace.c rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, vxrs, 0, -1); kbuf 1105 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1115 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, vxrs, 0, -1); kbuf 1121 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1130 arch/s390/kernel/ptrace.c rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1138 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1141 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1148 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1151 arch/s390/kernel/ptrace.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1158 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1168 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1175 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1193 arch/s390/kernel/ptrace.c rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1214 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1222 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1229 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1241 arch/s390/kernel/ptrace.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1275 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1284 arch/s390/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 1291 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1312 arch/s390/kernel/ptrace.c rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 1429 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1434 arch/s390/kernel/ptrace.c if (kbuf) { kbuf 1435 arch/s390/kernel/ptrace.c compat_ulong_t *k = kbuf; kbuf 1456 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1463 arch/s390/kernel/ptrace.c if (kbuf) { kbuf 1464 arch/s390/kernel/ptrace.c const compat_ulong_t *k = kbuf; kbuf 1492 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1498 arch/s390/kernel/ptrace.c if (kbuf) { kbuf 1499 arch/s390/kernel/ptrace.c compat_ulong_t *k = kbuf; kbuf 1520 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1527 arch/s390/kernel/ptrace.c if (kbuf) { kbuf 1528 arch/s390/kernel/ptrace.c const compat_ulong_t *k = kbuf; kbuf 1553 arch/s390/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 1559 arch/s390/kernel/ptrace.c if (kbuf) { kbuf 1560 arch/s390/kernel/ptrace.c unsigned long *k = kbuf; kbuf 1574 arch/s390/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 43 arch/sh/include/asm/fpu.h void *kbuf, void __user *ubuf); kbuf 139 arch/sh/kernel/ptrace_32.c void *kbuf, void __user *ubuf) kbuf 144 arch/sh/kernel/ptrace_32.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 149 arch/sh/kernel/ptrace_32.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 154 arch/sh/kernel/ptrace_32.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 163 arch/sh/kernel/ptrace_32.c const void *kbuf, const void __user *ubuf) kbuf 168 arch/sh/kernel/ptrace_32.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 172 arch/sh/kernel/ptrace_32.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 177 arch/sh/kernel/ptrace_32.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 187 arch/sh/kernel/ptrace_32.c void *kbuf, void __user *ubuf) kbuf 196 arch/sh/kernel/ptrace_32.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 199 arch/sh/kernel/ptrace_32.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 206 arch/sh/kernel/ptrace_32.c const void *kbuf, const void __user *ubuf) kbuf 217 arch/sh/kernel/ptrace_32.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 220 arch/sh/kernel/ptrace_32.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 235 arch/sh/kernel/ptrace_32.c void *kbuf, void __user *ubuf) kbuf 241 arch/sh/kernel/ptrace_32.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, regs, kbuf 244 arch/sh/kernel/ptrace_32.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 253 arch/sh/kernel/ptrace_32.c const void *kbuf, const void __user *ubuf) kbuf 259 arch/sh/kernel/ptrace_32.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, regs, kbuf 262 arch/sh/kernel/ptrace_32.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 149 arch/sh/kernel/ptrace_64.c void *kbuf, void __user *ubuf) kbuf 155 arch/sh/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 161 arch/sh/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 167 arch/sh/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 173 arch/sh/kernel/ptrace_64.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 182 arch/sh/kernel/ptrace_64.c const void *kbuf, const void __user *ubuf) kbuf 188 arch/sh/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 194 arch/sh/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 201 arch/sh/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 207 arch/sh/kernel/ptrace_64.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 217 arch/sh/kernel/ptrace_64.c void *kbuf, void __user *ubuf) kbuf 225 arch/sh/kernel/ptrace_64.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 232 arch/sh/kernel/ptrace_64.c const void *kbuf, const void __user *ubuf) kbuf 242 arch/sh/kernel/ptrace_64.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 52 arch/sparc/kernel/ptrace_32.c void *kbuf, void __user *ubuf) kbuf 56 arch/sparc/kernel/ptrace_32.c unsigned long *k = kbuf; kbuf 66 arch/sparc/kernel/ptrace_32.c if (kbuf) { kbuf 112 arch/sparc/kernel/ptrace_32.c if (kbuf) kbuf 123 arch/sparc/kernel/ptrace_32.c return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 130 arch/sparc/kernel/ptrace_32.c const void *kbuf, const void __user *ubuf) kbuf 134 arch/sparc/kernel/ptrace_32.c const unsigned long *k = kbuf; kbuf 144 arch/sparc/kernel/ptrace_32.c if (kbuf) { kbuf 172 arch/sparc/kernel/ptrace_32.c if (kbuf) kbuf 207 arch/sparc/kernel/ptrace_32.c return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 214 arch/sparc/kernel/ptrace_32.c void *kbuf, void __user *ubuf) kbuf 224 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 229 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 233 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 242 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 249 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 258 arch/sparc/kernel/ptrace_32.c const void *kbuf, const void __user *ubuf) kbuf 267 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 271 arch/sparc/kernel/ptrace_32.c user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 275 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 282 arch/sparc/kernel/ptrace_32.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 163 arch/sparc/kernel/ptrace_64.c void *kbuf, int len) kbuf 166 arch/sparc/kernel/ptrace_64.c if (copy_from_user(kbuf, (void __user *) uaddr, len)) kbuf 169 arch/sparc/kernel/ptrace_64.c int len2 = access_process_vm(target, uaddr, kbuf, len, kbuf 178 arch/sparc/kernel/ptrace_64.c void *kbuf, int len) kbuf 181 arch/sparc/kernel/ptrace_64.c if (copy_to_user((void __user *) uaddr, kbuf, len)) kbuf 184 arch/sparc/kernel/ptrace_64.c int len2 = access_process_vm(target, uaddr, kbuf, len, kbuf 251 arch/sparc/kernel/ptrace_64.c void *kbuf, void __user *ubuf) kbuf 259 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 267 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 275 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 284 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 291 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 301 arch/sparc/kernel/ptrace_64.c const void *kbuf, const void __user *ubuf) kbuf 309 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 318 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 332 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 348 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 357 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 366 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 375 arch/sparc/kernel/ptrace_64.c void *kbuf, void __user *ubuf) kbuf 387 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 391 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 398 arch/sparc/kernel/ptrace_64.c &kbuf, &ubuf, kbuf 404 arch/sparc/kernel/ptrace_64.c &kbuf, &ubuf, kbuf 417 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 422 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 427 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 433 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 442 arch/sparc/kernel/ptrace_64.c const void *kbuf, const void __user *ubuf) kbuf 451 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 455 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 460 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 467 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 477 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 519 arch/sparc/kernel/ptrace_64.c void *kbuf, void __user *ubuf) kbuf 523 arch/sparc/kernel/ptrace_64.c compat_ulong_t *k = kbuf; kbuf 533 arch/sparc/kernel/ptrace_64.c if (kbuf) { kbuf 613 arch/sparc/kernel/ptrace_64.c if (kbuf) kbuf 624 arch/sparc/kernel/ptrace_64.c return user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 631 arch/sparc/kernel/ptrace_64.c const void *kbuf, const void __user *ubuf) kbuf 635 arch/sparc/kernel/ptrace_64.c const compat_ulong_t *k = kbuf; kbuf 645 arch/sparc/kernel/ptrace_64.c if (kbuf) { kbuf 709 arch/sparc/kernel/ptrace_64.c if (kbuf) kbuf 746 arch/sparc/kernel/ptrace_64.c return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 753 arch/sparc/kernel/ptrace_64.c void *kbuf, void __user *ubuf) kbuf 773 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 778 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 782 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 791 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 798 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyout_zero(&pos, &count, &kbuf, &ubuf, kbuf 807 arch/sparc/kernel/ptrace_64.c const void *kbuf, const void __user *ubuf) kbuf 818 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 822 arch/sparc/kernel/ptrace_64.c user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 829 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 845 arch/sparc/kernel/ptrace_64.c ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, kbuf 74 arch/um/drivers/hostaudio_kern.c void *kbuf; kbuf 81 arch/um/drivers/hostaudio_kern.c kbuf = kmalloc(count, GFP_KERNEL); kbuf 82 arch/um/drivers/hostaudio_kern.c if (kbuf == NULL) kbuf 85 arch/um/drivers/hostaudio_kern.c err = os_read_file(state->fd, kbuf, count); kbuf 89 arch/um/drivers/hostaudio_kern.c if (copy_to_user(buffer, kbuf, err)) kbuf 93 arch/um/drivers/hostaudio_kern.c kfree(kbuf); kbuf 101 arch/um/drivers/hostaudio_kern.c void *kbuf; kbuf 108 arch/um/drivers/hostaudio_kern.c kbuf = memdup_user(buffer, count); kbuf 109 arch/um/drivers/hostaudio_kern.c if (IS_ERR(kbuf)) kbuf 110 arch/um/drivers/hostaudio_kern.c return PTR_ERR(kbuf); kbuf 112 arch/um/drivers/hostaudio_kern.c err = os_write_file(state->fd, kbuf, count); kbuf 118 arch/um/drivers/hostaudio_kern.c kfree(kbuf); kbuf 53 arch/x86/include/asm/fpu/xstate.h int copy_xstate_to_kernel(void *kbuf, struct xregs_state *xsave, unsigned int offset, unsigned int size); kbuf 55 arch/x86/include/asm/fpu/xstate.h int copy_kernel_to_xstate(struct xregs_state *xsave, const void *kbuf); kbuf 426 arch/x86/kernel/crash.c struct kexec_buf kbuf = { .image = image, .buf_min = 0, kbuf 443 arch/x86/kernel/crash.c kbuf.buffer = &crash_zero_bytes; kbuf 444 arch/x86/kernel/crash.c kbuf.bufsz = sizeof(crash_zero_bytes); kbuf 445 arch/x86/kernel/crash.c kbuf.memsz = image->arch.backup_src_sz; kbuf 446 arch/x86/kernel/crash.c kbuf.buf_align = PAGE_SIZE; kbuf 452 arch/x86/kernel/crash.c ret = kexec_add_buffer(&kbuf); kbuf 455 arch/x86/kernel/crash.c image->arch.backup_load_addr = kbuf.mem; kbuf 458 arch/x86/kernel/crash.c image->arch.backup_src_start, kbuf.memsz); kbuf 462 arch/x86/kernel/crash.c ret = prepare_elf_headers(image, &kbuf.buffer, &kbuf.bufsz); kbuf 466 arch/x86/kernel/crash.c image->arch.elf_headers = kbuf.buffer; kbuf 467 arch/x86/kernel/crash.c image->arch.elf_headers_sz = kbuf.bufsz; kbuf 469 arch/x86/kernel/crash.c kbuf.memsz = kbuf.bufsz; kbuf 470 arch/x86/kernel/crash.c kbuf.buf_align = ELF_CORE_HEADER_ALIGN; kbuf 471 arch/x86/kernel/crash.c kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; kbuf 472 arch/x86/kernel/crash.c ret = kexec_add_buffer(&kbuf); kbuf 477 arch/x86/kernel/crash.c image->arch.elf_load_addr = kbuf.mem; kbuf 479 arch/x86/kernel/crash.c image->arch.elf_load_addr, kbuf.bufsz, kbuf.bufsz); kbuf 31 arch/x86/kernel/fpu/regset.c void *kbuf, void __user *ubuf) kbuf 41 arch/x86/kernel/fpu/regset.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 47 arch/x86/kernel/fpu/regset.c const void *kbuf, const void __user *ubuf) kbuf 58 arch/x86/kernel/fpu/regset.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 78 arch/x86/kernel/fpu/regset.c void *kbuf, void __user *ubuf) kbuf 92 arch/x86/kernel/fpu/regset.c if (kbuf) kbuf 93 arch/x86/kernel/fpu/regset.c ret = copy_xstate_to_kernel(kbuf, xsave, pos, count); kbuf 108 arch/x86/kernel/fpu/regset.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, xsave, 0, -1); kbuf 115 arch/x86/kernel/fpu/regset.c const void *kbuf, const void __user *ubuf) kbuf 135 arch/x86/kernel/fpu/regset.c if (kbuf) kbuf 136 arch/x86/kernel/fpu/regset.c ret = copy_kernel_to_xstate(xsave, kbuf); kbuf 140 arch/x86/kernel/fpu/regset.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, xsave, 0, -1); kbuf 297 arch/x86/kernel/fpu/regset.c void *kbuf, void __user *ubuf) kbuf 305 arch/x86/kernel/fpu/regset.c return fpregs_soft_get(target, regset, pos, count, kbuf, ubuf); kbuf 308 arch/x86/kernel/fpu/regset.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 314 arch/x86/kernel/fpu/regset.c if (kbuf && pos == 0 && count == sizeof(env)) { kbuf 315 arch/x86/kernel/fpu/regset.c convert_from_fxsr(kbuf, target); kbuf 321 arch/x86/kernel/fpu/regset.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &env, 0, -1); kbuf 326 arch/x86/kernel/fpu/regset.c const void *kbuf, const void __user *ubuf) kbuf 336 arch/x86/kernel/fpu/regset.c return fpregs_soft_set(target, regset, pos, count, kbuf, ubuf); kbuf 339 arch/x86/kernel/fpu/regset.c return user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 346 arch/x86/kernel/fpu/regset.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &env, 0, -1); kbuf 955 arch/x86/kernel/fpu/xstate.c static void fill_gap(unsigned to, void **kbuf, unsigned *pos, unsigned *count) kbuf 962 arch/x86/kernel/fpu/xstate.c memcpy(*kbuf, (void *)&init_fpstate.xsave + *pos, size); kbuf 963 arch/x86/kernel/fpu/xstate.c *kbuf += size; kbuf 970 arch/x86/kernel/fpu/xstate.c void **kbuf, unsigned *pos, unsigned *count) kbuf 972 arch/x86/kernel/fpu/xstate.c fill_gap(offset, kbuf, pos, count); kbuf 976 arch/x86/kernel/fpu/xstate.c memcpy(*kbuf, from, size); kbuf 977 arch/x86/kernel/fpu/xstate.c *kbuf += size; kbuf 990 arch/x86/kernel/fpu/xstate.c int copy_xstate_to_kernel(void *kbuf, struct xregs_state *xsave, unsigned int offset_start, unsigned int size_total) kbuf 1012 arch/x86/kernel/fpu/xstate.c &xsave->i387, &kbuf, &offset_start, &count); kbuf 1015 arch/x86/kernel/fpu/xstate.c &xsave->i387.mxcsr, &kbuf, &offset_start, &count); kbuf 1018 arch/x86/kernel/fpu/xstate.c &xsave->i387.st_space, &kbuf, &offset_start, &count); kbuf 1021 arch/x86/kernel/fpu/xstate.c &xsave->i387.xmm_space, &kbuf, &offset_start, &count); kbuf 1026 arch/x86/kernel/fpu/xstate.c xstate_fx_sw_bytes, &kbuf, &offset_start, &count); kbuf 1031 arch/x86/kernel/fpu/xstate.c &header, &kbuf, &offset_start, &count); kbuf 1041 arch/x86/kernel/fpu/xstate.c src, &kbuf, &offset_start, &count); kbuf 1045 arch/x86/kernel/fpu/xstate.c fill_gap(size_total, &kbuf, &offset_start, &count); kbuf 1144 arch/x86/kernel/fpu/xstate.c int copy_kernel_to_xstate(struct xregs_state *xsave, const void *kbuf) kbuf 1153 arch/x86/kernel/fpu/xstate.c memcpy(&hdr, kbuf + offset, size); kbuf 1167 arch/x86/kernel/fpu/xstate.c memcpy(dst, kbuf + offset, size); kbuf 1174 arch/x86/kernel/fpu/xstate.c memcpy(&xsave->i387.mxcsr, kbuf + offset, size); kbuf 351 arch/x86/kernel/kexec-bzimage64.c struct kexec_buf kbuf = { .image = image, .buf_max = ULONG_MAX, kbuf 413 arch/x86/kernel/kexec-bzimage64.c kbuf.bufsz = params_cmdline_sz + ALIGN(efi_map_sz, 16) + kbuf 417 arch/x86/kernel/kexec-bzimage64.c params = kzalloc(kbuf.bufsz, GFP_KERNEL); kbuf 429 arch/x86/kernel/kexec-bzimage64.c kbuf.buffer = params; kbuf 430 arch/x86/kernel/kexec-bzimage64.c kbuf.memsz = kbuf.bufsz; kbuf 431 arch/x86/kernel/kexec-bzimage64.c kbuf.buf_align = 16; kbuf 432 arch/x86/kernel/kexec-bzimage64.c kbuf.buf_min = MIN_BOOTPARAM_ADDR; kbuf 433 arch/x86/kernel/kexec-bzimage64.c ret = kexec_add_buffer(&kbuf); kbuf 436 arch/x86/kernel/kexec-bzimage64.c bootparam_load_addr = kbuf.mem; kbuf 438 arch/x86/kernel/kexec-bzimage64.c bootparam_load_addr, kbuf.bufsz, kbuf.bufsz); kbuf 441 arch/x86/kernel/kexec-bzimage64.c kbuf.buffer = kernel + kern16_size; kbuf 442 arch/x86/kernel/kexec-bzimage64.c kbuf.bufsz = kernel_len - kern16_size; kbuf 443 arch/x86/kernel/kexec-bzimage64.c kbuf.memsz = PAGE_ALIGN(header->init_size); kbuf 444 arch/x86/kernel/kexec-bzimage64.c kbuf.buf_align = header->kernel_alignment; kbuf 445 arch/x86/kernel/kexec-bzimage64.c kbuf.buf_min = MIN_KERNEL_LOAD_ADDR; kbuf 446 arch/x86/kernel/kexec-bzimage64.c kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; kbuf 447 arch/x86/kernel/kexec-bzimage64.c ret = kexec_add_buffer(&kbuf); kbuf 450 arch/x86/kernel/kexec-bzimage64.c kernel_load_addr = kbuf.mem; kbuf 453 arch/x86/kernel/kexec-bzimage64.c kernel_load_addr, kbuf.bufsz, kbuf.memsz); kbuf 457 arch/x86/kernel/kexec-bzimage64.c kbuf.buffer = initrd; kbuf 458 arch/x86/kernel/kexec-bzimage64.c kbuf.bufsz = kbuf.memsz = initrd_len; kbuf 459 arch/x86/kernel/kexec-bzimage64.c kbuf.buf_align = PAGE_SIZE; kbuf 460 arch/x86/kernel/kexec-bzimage64.c kbuf.buf_min = MIN_INITRD_LOAD_ADDR; kbuf 461 arch/x86/kernel/kexec-bzimage64.c kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; kbuf 462 arch/x86/kernel/kexec-bzimage64.c ret = kexec_add_buffer(&kbuf); kbuf 465 arch/x86/kernel/kexec-bzimage64.c initrd_load_addr = kbuf.mem; kbuf 425 arch/x86/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 427 arch/x86/kernel/ptrace.c if (kbuf) { kbuf 428 arch/x86/kernel/ptrace.c unsigned long *k = kbuf; kbuf 450 arch/x86/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 453 arch/x86/kernel/ptrace.c if (kbuf) { kbuf 454 arch/x86/kernel/ptrace.c const unsigned long *k = kbuf; kbuf 706 arch/x86/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 711 arch/x86/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 992 arch/x86/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 994 arch/x86/kernel/ptrace.c if (kbuf) { kbuf 995 arch/x86/kernel/ptrace.c compat_ulong_t *k = kbuf; kbuf 1019 arch/x86/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 1022 arch/x86/kernel/ptrace.c if (kbuf) { kbuf 1023 arch/x86/kernel/ptrace.c const compat_ulong_t *k = kbuf; kbuf 355 arch/x86/kernel/tboot.c void *kbuf; kbuf 375 arch/x86/kernel/tboot.c kbuf = kmalloc(count, GFP_KERNEL); kbuf 376 arch/x86/kernel/tboot.c if (!kbuf) { kbuf 381 arch/x86/kernel/tboot.c memcpy_fromio(kbuf, log_base + LOG_BUF_OFF + *ppos, count); kbuf 382 arch/x86/kernel/tboot.c if (copy_to_user(user_buf, kbuf, count)) kbuf 390 arch/x86/kernel/tboot.c kfree(kbuf); kbuf 260 arch/x86/kernel/tls.c void *kbuf, void __user *ubuf) kbuf 274 arch/x86/kernel/tls.c if (kbuf) { kbuf 275 arch/x86/kernel/tls.c struct user_desc *info = kbuf; kbuf 294 arch/x86/kernel/tls.c const void *kbuf, const void __user *ubuf) kbuf 305 arch/x86/kernel/tls.c if (kbuf) kbuf 306 arch/x86/kernel/tls.c info = kbuf; kbuf 641 arch/x86/math-emu/fpu_entry.c const void *kbuf, const void __user *ubuf) kbuf 649 arch/x86/math-emu/fpu_entry.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, s387, 0, kbuf 663 arch/x86/math-emu/fpu_entry.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 666 arch/x86/math-emu/fpu_entry.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 693 arch/x86/math-emu/fpu_entry.c void *kbuf, void __user *ubuf) kbuf 712 arch/x86/math-emu/fpu_entry.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, s387, 0, kbuf 717 arch/x86/math-emu/fpu_entry.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 720 arch/x86/math-emu/fpu_entry.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 42 arch/xtensa/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 64 arch/xtensa/kernel/ptrace.c return user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 71 arch/xtensa/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 78 arch/xtensa/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newregs, 0, -1); kbuf 120 arch/xtensa/kernel/ptrace.c void *kbuf, void __user *ubuf) kbuf 145 arch/xtensa/kernel/ptrace.c ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, kbuf 154 arch/xtensa/kernel/ptrace.c const void *kbuf, const void __user *ubuf) kbuf 164 arch/xtensa/kernel/ptrace.c ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, kbuf 221 block/blk-map.c int blk_rq_map_kern(struct request_queue *q, struct request *rq, void *kbuf, kbuf 225 block/blk-map.c unsigned long addr = (unsigned long) kbuf; kbuf 232 block/blk-map.c if (!len || !kbuf) kbuf 235 block/blk-map.c do_copy = !blk_rq_aligned(q, addr, len) || object_is_on_stack(kbuf); kbuf 237 block/blk-map.c bio = bio_copy_kern(q, kbuf, len, gfp_mask, reading); kbuf 239 block/blk-map.c bio = bio_map_kern(q, kbuf, len, gfp_mask); kbuf 865 drivers/block/zram/zram_drv.c char *kbuf; kbuf 871 drivers/block/zram/zram_drv.c kbuf = kvmalloc(count, GFP_KERNEL); kbuf 872 drivers/block/zram/zram_drv.c if (!kbuf) kbuf 878 drivers/block/zram/zram_drv.c kvfree(kbuf); kbuf 890 drivers/block/zram/zram_drv.c copied = snprintf(kbuf + written, count, kbuf 911 drivers/block/zram/zram_drv.c if (copy_to_user(buf, kbuf, written)) kbuf 913 drivers/block/zram/zram_drv.c kvfree(kbuf); kbuf 304 drivers/char/lp.c char *kbuf = lp_table[minor].lp_buffer; kbuf 325 drivers/char/lp.c if (copy_from_user(kbuf, buf, copy_size)) { kbuf 344 drivers/char/lp.c written = parport_write(port, kbuf, copy_size); kbuf 392 drivers/char/lp.c if (copy_from_user(kbuf, buf, copy_size)) { kbuf 424 drivers/char/lp.c char *kbuf = lp_table[minor].lp_buffer; kbuf 448 drivers/char/lp.c retval = parport_read(port, kbuf, count); kbuf 486 drivers/char/lp.c if (retval > 0 && copy_to_user(buf, kbuf, retval)) kbuf 441 drivers/char/mem.c char *kbuf; /* k-addr because vread() takes vmlist_lock rwlock */ kbuf 471 drivers/char/mem.c kbuf = xlate_dev_kmem_ptr((void *)p); kbuf 472 drivers/char/mem.c if (!virt_addr_valid(kbuf)) kbuf 475 drivers/char/mem.c if (copy_to_user(buf, kbuf, sz)) kbuf 490 drivers/char/mem.c kbuf = (char *)__get_free_page(GFP_KERNEL); kbuf 491 drivers/char/mem.c if (!kbuf) kbuf 499 drivers/char/mem.c sz = vread(kbuf, (char *)p, sz); kbuf 502 drivers/char/mem.c if (copy_to_user(buf, kbuf, sz)) { kbuf 513 drivers/char/mem.c free_page((unsigned long)kbuf); kbuf 581 drivers/char/mem.c char *kbuf; /* k-addr because vwrite() takes vmlist_lock rwlock */ kbuf 596 drivers/char/mem.c kbuf = (char *)__get_free_page(GFP_KERNEL); kbuf 597 drivers/char/mem.c if (!kbuf) kbuf 607 drivers/char/mem.c n = copy_from_user(kbuf, buf, sz); kbuf 612 drivers/char/mem.c vwrite(kbuf, (char *)p, sz); kbuf 620 drivers/char/mem.c free_page((unsigned long)kbuf); kbuf 360 drivers/char/xilinx_hwicap/xilinx_hwicap.c u32 *kbuf; kbuf 388 drivers/char/xilinx_hwicap/xilinx_hwicap.c kbuf = (u32 *) get_zeroed_page(GFP_KERNEL); kbuf 389 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (!kbuf) { kbuf 414 drivers/char/xilinx_hwicap/xilinx_hwicap.c kbuf, words); kbuf 418 drivers/char/xilinx_hwicap/xilinx_hwicap.c free_page((unsigned long)kbuf); kbuf 423 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (copy_to_user(buf, kbuf, bytes_to_read)) { kbuf 424 drivers/char/xilinx_hwicap/xilinx_hwicap.c free_page((unsigned long)kbuf); kbuf 429 drivers/char/xilinx_hwicap/xilinx_hwicap.c kbuf, kbuf 432 drivers/char/xilinx_hwicap/xilinx_hwicap.c free_page((unsigned long)kbuf); kbuf 447 drivers/char/xilinx_hwicap/xilinx_hwicap.c u32 *kbuf; kbuf 463 drivers/char/xilinx_hwicap/xilinx_hwicap.c kbuf = (u32 *) __get_free_page(GFP_KERNEL); kbuf 464 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (!kbuf) { kbuf 479 drivers/char/xilinx_hwicap/xilinx_hwicap.c memcpy(kbuf, drvdata->write_buffer, kbuf 482 drivers/char/xilinx_hwicap/xilinx_hwicap.c (((char *)kbuf) + drvdata->write_buffer_in_use), kbuf 485 drivers/char/xilinx_hwicap/xilinx_hwicap.c free_page((unsigned long)kbuf); kbuf 490 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (copy_from_user(kbuf, buf + written, len)) { kbuf 491 drivers/char/xilinx_hwicap/xilinx_hwicap.c free_page((unsigned long)kbuf); kbuf 498 drivers/char/xilinx_hwicap/xilinx_hwicap.c kbuf, len >> 2); kbuf 501 drivers/char/xilinx_hwicap/xilinx_hwicap.c free_page((unsigned long)kbuf); kbuf 522 drivers/char/xilinx_hwicap/xilinx_hwicap.c free_page((unsigned long)kbuf); kbuf 181 drivers/fpga/stratix10-soc.c char *kbuf; kbuf 220 drivers/fpga/stratix10-soc.c kbuf = stratix10_svc_allocate_memory(priv->chan, SVC_BUF_SIZE); kbuf 221 drivers/fpga/stratix10-soc.c if (!kbuf) { kbuf 227 drivers/fpga/stratix10-soc.c priv->svc_bufs[i].buf = kbuf; kbuf 47 drivers/fpga/zynqmp-fpga.c char *kbuf; kbuf 55 drivers/fpga/zynqmp-fpga.c kbuf = dma_alloc_coherent(priv->dev, size, &dma_addr, GFP_KERNEL); kbuf 56 drivers/fpga/zynqmp-fpga.c if (!kbuf) kbuf 59 drivers/fpga/zynqmp-fpga.c memcpy(kbuf, buf, size); kbuf 68 drivers/fpga/zynqmp-fpga.c dma_free_coherent(priv->dev, size, kbuf, dma_addr); kbuf 1079 drivers/gpu/vga/vgaarb.c char kbuf[64], *curr_pos; kbuf 1085 drivers/gpu/vga/vgaarb.c if (count >= sizeof(kbuf)) kbuf 1087 drivers/gpu/vga/vgaarb.c if (copy_from_user(kbuf, buf, count)) kbuf 1089 drivers/gpu/vga/vgaarb.c curr_pos = kbuf; kbuf 1090 drivers/gpu/vga/vgaarb.c kbuf[count] = '\0'; /* Just to make sure... */ kbuf 623 drivers/hwtracing/stm/core.c char *kbuf; kbuf 648 drivers/hwtracing/stm/core.c kbuf = kmalloc(count + 1, GFP_KERNEL); kbuf 649 drivers/hwtracing/stm/core.c if (!kbuf) kbuf 652 drivers/hwtracing/stm/core.c err = copy_from_user(kbuf, buf, count); kbuf 654 drivers/hwtracing/stm/core.c kfree(kbuf); kbuf 660 drivers/hwtracing/stm/core.c count = stm_write(stm, &stmf->output, 0, kbuf, count); kbuf 664 drivers/hwtracing/stm/core.c kfree(kbuf); kbuf 660 drivers/infiniband/sw/siw/siw_verbs.c void *kbuf = &sqe->sge[1]; kbuf 663 drivers/infiniband/sw/siw/siw_verbs.c sqe->sge[0].laddr = (uintptr_t)kbuf; kbuf 676 drivers/infiniband/sw/siw/siw_verbs.c memcpy(kbuf, (void *)(uintptr_t)core_sge->addr, kbuf 679 drivers/infiniband/sw/siw/siw_verbs.c kbuf += core_sge->length; kbuf 176 drivers/md/bcache/debug.c char kbuf[80]; kbuf 198 drivers/md/bcache/debug.c bch_extent_to_text(kbuf, sizeof(kbuf), &w->key); kbuf 199 drivers/md/bcache/debug.c i->bytes = snprintf(i->buf, PAGE_SIZE, "%s\n", kbuf); kbuf 208 drivers/media/pci/ttpci/av7110.h u8 *kbuf[2]; kbuf 440 drivers/media/pci/ttpci/av7110_av.c kb = av7110->kbuf[type]; kbuf 475 drivers/media/pci/ttpci/av7110_av.c if (!av7110->kbuf[type]) kbuf 492 drivers/media/pci/ttpci/av7110_av.c if (copy_from_user(av7110->kbuf[type], buf, n)) kbuf 494 drivers/media/pci/ttpci/av7110_av.c av7110_ipack_instant_repack(av7110->kbuf[type], n, kbuf 508 drivers/media/pci/ttpci/av7110_av.c if (!av7110->kbuf[type]) kbuf 538 drivers/media/pci/ttpci/av7110_av.c if (!av7110->kbuf[type]) kbuf 554 drivers/media/pci/ttpci/av7110_av.c if (copy_from_user(av7110->kbuf[type], buf, n)) kbuf 556 drivers/media/pci/ttpci/av7110_av.c av7110_ipack_instant_repack(av7110->kbuf[type], n, kbuf 1670 drivers/media/pci/ttpci/av7110_av.c av7110->kbuf[0] = (u8 *)(av7110->iobuf + AVOUTLEN + AOUTLEN + BMPLEN); kbuf 1671 drivers/media/pci/ttpci/av7110_av.c av7110->kbuf[1] = av7110->kbuf[0] + 2 * IPACKS; kbuf 427 drivers/media/usb/stkwebcam/stk-webcam.c void *kbuf; kbuf 447 drivers/media/usb/stkwebcam/stk-webcam.c kbuf = kzalloc(ISO_BUFFER_SIZE, GFP_KERNEL); kbuf 448 drivers/media/usb/stkwebcam/stk-webcam.c if (kbuf == NULL) { kbuf 452 drivers/media/usb/stkwebcam/stk-webcam.c dev->isobufs[i].data = kbuf; kbuf 467 drivers/misc/habanalabs/debugfs.c char kbuf[MMU_KBUF_SIZE]; kbuf 474 drivers/misc/habanalabs/debugfs.c if (count > sizeof(kbuf) - 1) kbuf 476 drivers/misc/habanalabs/debugfs.c if (copy_from_user(kbuf, buf, count)) kbuf 478 drivers/misc/habanalabs/debugfs.c kbuf[count] = 0; kbuf 480 drivers/misc/habanalabs/debugfs.c c = strchr(kbuf, ' '); kbuf 485 drivers/misc/habanalabs/debugfs.c rc = kstrtouint(kbuf, 10, &dev_entry->mmu_asid); kbuf 605 drivers/misc/pti.c void *kbuf; kbuf 613 drivers/misc/pti.c kbuf = kmalloc(size, GFP_KERNEL); kbuf 614 drivers/misc/pti.c if (kbuf == NULL) { kbuf 626 drivers/misc/pti.c if (copy_from_user(kbuf, tmp, size)) { kbuf 627 drivers/misc/pti.c kfree(kbuf); kbuf 631 drivers/misc/pti.c pti_write_to_aperture(mc, kbuf, size); kbuf 637 drivers/misc/pti.c kfree(kbuf); kbuf 145 drivers/mtd/mtdchar.c char *kbuf; kbuf 159 drivers/mtd/mtdchar.c kbuf = mtd_kmalloc_up_to(mtd, &size); kbuf 160 drivers/mtd/mtdchar.c if (!kbuf) kbuf 169 drivers/mtd/mtdchar.c &retlen, kbuf); kbuf 173 drivers/mtd/mtdchar.c &retlen, kbuf); kbuf 180 drivers/mtd/mtdchar.c ops.datbuf = kbuf; kbuf 189 drivers/mtd/mtdchar.c ret = mtd_read(mtd, *ppos, len, &retlen, kbuf); kbuf 202 drivers/mtd/mtdchar.c if (copy_to_user(buf, kbuf, retlen)) { kbuf 203 drivers/mtd/mtdchar.c kfree(kbuf); kbuf 215 drivers/mtd/mtdchar.c kfree(kbuf); kbuf 221 drivers/mtd/mtdchar.c kfree(kbuf); kbuf 231 drivers/mtd/mtdchar.c char *kbuf; kbuf 248 drivers/mtd/mtdchar.c kbuf = mtd_kmalloc_up_to(mtd, &size); kbuf 249 drivers/mtd/mtdchar.c if (!kbuf) kbuf 255 drivers/mtd/mtdchar.c if (copy_from_user(kbuf, buf, len)) { kbuf 256 drivers/mtd/mtdchar.c kfree(kbuf); kbuf 266 drivers/mtd/mtdchar.c &retlen, kbuf); kbuf 274 drivers/mtd/mtdchar.c ops.datbuf = kbuf; kbuf 285 drivers/mtd/mtdchar.c ret = mtd_write(mtd, *ppos, len, &retlen, kbuf); kbuf 303 drivers/mtd/mtdchar.c kfree(kbuf); kbuf 308 drivers/mtd/mtdchar.c kfree(kbuf); kbuf 1893 drivers/mtd/mtdcore.c void *kbuf; kbuf 1898 drivers/mtd/mtdcore.c kbuf = kmalloc(*size, flags); kbuf 1899 drivers/mtd/mtdcore.c if (kbuf) kbuf 1900 drivers/mtd/mtdcore.c return kbuf; kbuf 776 drivers/net/wan/cosa.c char *kbuf; kbuf 812 drivers/net/wan/cosa.c kbuf = chan->rxdata; kbuf 817 drivers/net/wan/cosa.c if (copy_to_user(buf, kbuf, count)) { kbuf 818 drivers/net/wan/cosa.c kfree(kbuf); kbuf 821 drivers/net/wan/cosa.c kfree(kbuf); kbuf 851 drivers/net/wan/cosa.c char *kbuf; kbuf 865 drivers/net/wan/cosa.c kbuf = kmalloc(count, GFP_KERNEL|GFP_DMA); kbuf 866 drivers/net/wan/cosa.c if (kbuf == NULL) { kbuf 870 drivers/net/wan/cosa.c if (copy_from_user(kbuf, buf, count)) { kbuf 872 drivers/net/wan/cosa.c kfree(kbuf); kbuf 876 drivers/net/wan/cosa.c cosa_start_tx(chan, kbuf, count); kbuf 899 drivers/net/wan/cosa.c kfree(kbuf); kbuf 712 drivers/net/wireless/ath/wil6210/debugfs.c char *kbuf = memdup_user_nul(buf, len); kbuf 714 drivers/net/wireless/ath/wil6210/debugfs.c if (IS_ERR(kbuf)) kbuf 715 drivers/net/wireless/ath/wil6210/debugfs.c return PTR_ERR(kbuf); kbuf 716 drivers/net/wireless/ath/wil6210/debugfs.c rc = kstrtol(kbuf, 0, &channel); kbuf 717 drivers/net/wireless/ath/wil6210/debugfs.c kfree(kbuf); kbuf 793 drivers/net/wireless/ath/wil6210/debugfs.c char *kbuf = kmalloc(len + 1, GFP_KERNEL); kbuf 797 drivers/net/wireless/ath/wil6210/debugfs.c if (!kbuf) kbuf 800 drivers/net/wireless/ath/wil6210/debugfs.c rc = simple_write_to_buffer(kbuf, len, ppos, buf, len); kbuf 802 drivers/net/wireless/ath/wil6210/debugfs.c kfree(kbuf); kbuf 806 drivers/net/wireless/ath/wil6210/debugfs.c kbuf[len] = '\0'; kbuf 807 drivers/net/wireless/ath/wil6210/debugfs.c rc = sscanf(kbuf, "%8s %d %d %d", cmd, &p1, &p2, &p3); kbuf 808 drivers/net/wireless/ath/wil6210/debugfs.c kfree(kbuf); kbuf 890 drivers/net/wireless/ath/wil6210/debugfs.c char *kbuf = kmalloc(len + 1, GFP_KERNEL); kbuf 894 drivers/net/wireless/ath/wil6210/debugfs.c if (!kbuf) kbuf 897 drivers/net/wireless/ath/wil6210/debugfs.c rc = simple_write_to_buffer(kbuf, len, ppos, buf, len); kbuf 899 drivers/net/wireless/ath/wil6210/debugfs.c kfree(kbuf); kbuf 903 drivers/net/wireless/ath/wil6210/debugfs.c kbuf[len] = '\0'; kbuf 904 drivers/net/wireless/ath/wil6210/debugfs.c rc = sscanf(kbuf, "%8s %d %d", cmd, &num_descs, &desc_size); kbuf 905 drivers/net/wireless/ath/wil6210/debugfs.c kfree(kbuf); kbuf 1965 drivers/net/wireless/ath/wil6210/debugfs.c char *kbuf = kmalloc(len + 1, GFP_KERNEL); kbuf 1967 drivers/net/wireless/ath/wil6210/debugfs.c if (!kbuf) kbuf 1970 drivers/net/wireless/ath/wil6210/debugfs.c rc = simple_write_to_buffer(kbuf, len, ppos, buf, len); kbuf 1972 drivers/net/wireless/ath/wil6210/debugfs.c kfree(kbuf); kbuf 1976 drivers/net/wireless/ath/wil6210/debugfs.c kbuf[len] = '\0'; kbuf 1978 drivers/net/wireless/ath/wil6210/debugfs.c rc = sscanf(kbuf, "%d %d", &cid, &interval); kbuf 1979 drivers/net/wireless/ath/wil6210/debugfs.c kfree(kbuf); kbuf 2124 drivers/net/wireless/ath/wil6210/debugfs.c char *kbuf = kmalloc(len + 1, GFP_KERNEL); kbuf 2126 drivers/net/wireless/ath/wil6210/debugfs.c if (!kbuf) kbuf 2129 drivers/net/wireless/ath/wil6210/debugfs.c rc = simple_write_to_buffer(kbuf, len, ppos, buf, len); kbuf 2131 drivers/net/wireless/ath/wil6210/debugfs.c kfree(kbuf); kbuf 2135 drivers/net/wireless/ath/wil6210/debugfs.c kbuf[len] = '\0'; kbuf 2136 drivers/net/wireless/ath/wil6210/debugfs.c rc = sscanf(kbuf, "%d %d %d %d %d %d", kbuf 2143 drivers/net/wireless/ath/wil6210/debugfs.c kfree(kbuf); kbuf 878 drivers/net/wireless/marvell/mwifiex/debugfs.c char kbuf[16]; kbuf 884 drivers/net/wireless/marvell/mwifiex/debugfs.c memset(kbuf, 0, sizeof(kbuf)); kbuf 886 drivers/net/wireless/marvell/mwifiex/debugfs.c if (copy_from_user(&kbuf, ubuf, min_t(size_t, sizeof(kbuf) - 1, count))) kbuf 889 drivers/net/wireless/marvell/mwifiex/debugfs.c if (strtobool(kbuf, ×hare_coex)) kbuf 223 drivers/rpmsg/rpmsg_char.c void *kbuf; kbuf 226 drivers/rpmsg/rpmsg_char.c kbuf = kzalloc(len, GFP_KERNEL); kbuf 227 drivers/rpmsg/rpmsg_char.c if (!kbuf) kbuf 230 drivers/rpmsg/rpmsg_char.c if (!copy_from_iter_full(kbuf, len, from)) { kbuf 246 drivers/rpmsg/rpmsg_char.c ret = rpmsg_trysend(eptdev->ept, kbuf, len); kbuf 248 drivers/rpmsg/rpmsg_char.c ret = rpmsg_send(eptdev->ept, kbuf, len); kbuf 254 drivers/rpmsg/rpmsg_char.c kfree(kbuf); kbuf 235 drivers/s390/char/vmur.c void *kbuf; kbuf 254 drivers/s390/char/vmur.c kbuf = kmalloc(reclen, GFP_KERNEL | GFP_DMA); kbuf 255 drivers/s390/char/vmur.c if (!kbuf) { kbuf 259 drivers/s390/char/vmur.c cpa[i].cda = (u32)(addr_t) kbuf; kbuf 260 drivers/s390/char/vmur.c if (copy_from_user(kbuf, ubuf, reclen)) { kbuf 3408 drivers/scsi/cxlflash/main.c char *kbuf = NULL; kbuf 3434 drivers/scsi/cxlflash/main.c kbuf = PTR_ALIGN(buf, cache_line_size()); kbuf 3439 drivers/scsi/cxlflash/main.c if (copy_from_user(kbuf, ubuf, ulen)) { kbuf 3456 drivers/scsi/cxlflash/main.c rcb.data_ea = (uintptr_t)kbuf; kbuf 3471 drivers/scsi/cxlflash/main.c if (copy_to_user(ubuf, kbuf, ulen)) kbuf 3360 drivers/scsi/hisi_sas/hisi_sas_main.c char kbuf[16] = {}, *pkbuf; kbuf 3367 drivers/scsi/hisi_sas/hisi_sas_main.c if (count >= sizeof(kbuf)) kbuf 3370 drivers/scsi/hisi_sas/hisi_sas_main.c if (copy_from_user(kbuf, buf, count)) kbuf 3373 drivers/scsi/hisi_sas/hisi_sas_main.c pkbuf = strstrip(kbuf); kbuf 3450 drivers/scsi/hisi_sas/hisi_sas_main.c char kbuf[16] = {}, *pkbuf; kbuf 3457 drivers/scsi/hisi_sas/hisi_sas_main.c if (count >= sizeof(kbuf)) kbuf 3460 drivers/scsi/hisi_sas/hisi_sas_main.c if (copy_from_user(kbuf, buf, count)) kbuf 3463 drivers/scsi/hisi_sas/hisi_sas_main.c pkbuf = strstrip(kbuf); kbuf 3579 drivers/scsi/hisi_sas/hisi_sas_main.c char kbuf[16] = {}, *pkbuf; kbuf 3586 drivers/scsi/hisi_sas/hisi_sas_main.c if (count >= sizeof(kbuf)) kbuf 3589 drivers/scsi/hisi_sas/hisi_sas_main.c if (copy_from_user(kbuf, buf, count)) kbuf 3592 drivers/scsi/hisi_sas/hisi_sas_main.c pkbuf = strstrip(kbuf); kbuf 198 drivers/soc/fsl/dpaa2-console.c void *kbuf; kbuf 210 drivers/soc/fsl/dpaa2-console.c kbuf = kmalloc(bytes, GFP_KERNEL); kbuf 211 drivers/soc/fsl/dpaa2-console.c if (!kbuf) kbuf 215 drivers/soc/fsl/dpaa2-console.c memcpy_fromio(kbuf, cd->cur_ptr, bytes_end); kbuf 216 drivers/soc/fsl/dpaa2-console.c if (copy_to_user(buf, kbuf, bytes_end)) { kbuf 226 drivers/soc/fsl/dpaa2-console.c memcpy_fromio(kbuf, cd->cur_ptr, bytes); kbuf 227 drivers/soc/fsl/dpaa2-console.c if (copy_to_user(buf, kbuf, bytes)) { kbuf 237 drivers/soc/fsl/dpaa2-console.c kfree(kbuf); kbuf 163 drivers/staging/goldfish/goldfish_audio.c char *kbuf; kbuf 175 drivers/staging/goldfish/goldfish_audio.c kbuf = data->write_buffer1; kbuf 177 drivers/staging/goldfish/goldfish_audio.c kbuf = data->write_buffer2; kbuf 180 drivers/staging/goldfish/goldfish_audio.c if (copy_from_user(kbuf, buf, copy)) { kbuf 190 drivers/staging/goldfish/goldfish_audio.c if (kbuf == data->write_buffer1) { kbuf 1118 drivers/staging/greybus/camera.c char *kbuf; kbuf 1123 drivers/staging/greybus/camera.c kbuf = kmalloc(len + 1, GFP_KERNEL); kbuf 1124 drivers/staging/greybus/camera.c if (!kbuf) kbuf 1127 drivers/staging/greybus/camera.c if (copy_from_user(kbuf, buf, len)) { kbuf 1132 drivers/staging/greybus/camera.c kbuf[len] = '\0'; kbuf 1134 drivers/staging/greybus/camera.c ret = op->execute(gcam, kbuf, len); kbuf 1137 drivers/staging/greybus/camera.c kfree(kbuf); kbuf 83 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c char kbuf[DEBUGFS_WRITE_BUF_SIZE + 1]; kbuf 85 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c memset(kbuf, 0, DEBUGFS_WRITE_BUF_SIZE + 1); kbuf 89 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c if (copy_from_user(kbuf, buffer, count)) kbuf 91 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c kbuf[count - 1] = 0; kbuf 93 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c if (strncmp("error", kbuf, strlen("error")) == 0) kbuf 95 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c else if (strncmp("warning", kbuf, strlen("warning")) == 0) kbuf 97 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c else if (strncmp("info", kbuf, strlen("info")) == 0) kbuf 99 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c else if (strncmp("trace", kbuf, strlen("trace")) == 0) kbuf 1789 drivers/usb/gadget/legacy/inode.c char *kbuf; kbuf 1811 drivers/usb/gadget/legacy/inode.c kbuf = memdup_user(buf, length); kbuf 1812 drivers/usb/gadget/legacy/inode.c if (IS_ERR(kbuf)) kbuf 1813 drivers/usb/gadget/legacy/inode.c return PTR_ERR(kbuf); kbuf 1818 drivers/usb/gadget/legacy/inode.c kfree(kbuf); kbuf 1821 drivers/usb/gadget/legacy/inode.c dev->buf = kbuf; kbuf 1824 drivers/usb/gadget/legacy/inode.c dev->config = (void *) kbuf; kbuf 1829 drivers/usb/gadget/legacy/inode.c kbuf += total; kbuf 1833 drivers/usb/gadget/legacy/inode.c if (kbuf [1] == USB_DT_CONFIG) { kbuf 1834 drivers/usb/gadget/legacy/inode.c dev->hs_config = (void *) kbuf; kbuf 1839 drivers/usb/gadget/legacy/inode.c kbuf += total; kbuf 1850 drivers/usb/gadget/legacy/inode.c dev->dev = (void *)kbuf; kbuf 266 drivers/xen/evtchn.c evtchn_port_t *kbuf = (evtchn_port_t *)__get_free_page(GFP_KERNEL); kbuf 269 drivers/xen/evtchn.c if (kbuf == NULL) kbuf 283 drivers/xen/evtchn.c if (copy_from_user(kbuf, buf, count) != 0) kbuf 289 drivers/xen/evtchn.c unsigned port = kbuf[i]; kbuf 304 drivers/xen/evtchn.c free_page((unsigned long)kbuf); kbuf 154 fs/dcookies.c char * kbuf; kbuf 176 fs/dcookies.c kbuf = kmalloc(PAGE_SIZE, GFP_KERNEL); kbuf 177 fs/dcookies.c if (!kbuf) kbuf 181 fs/dcookies.c path = d_path(&dcs->path, kbuf, PAGE_SIZE); kbuf 192 fs/dcookies.c pathlen = kbuf + PAGE_SIZE - path; kbuf 200 fs/dcookies.c kfree(kbuf); kbuf 505 fs/dlm/user.c struct dlm_write_request *kbuf; kbuf 522 fs/dlm/user.c kbuf = memdup_user_nul(buf, count); kbuf 523 fs/dlm/user.c if (IS_ERR(kbuf)) kbuf 524 fs/dlm/user.c return PTR_ERR(kbuf); kbuf 526 fs/dlm/user.c if (check_version(kbuf)) { kbuf 532 fs/dlm/user.c if (!kbuf->is64bit) { kbuf 539 fs/dlm/user.c k32buf = (struct dlm_write_request32 *)kbuf; kbuf 542 fs/dlm/user.c kbuf = kzalloc(sizeof(struct dlm_write_request) + namelen + 1, kbuf 544 fs/dlm/user.c if (!kbuf) { kbuf 552 fs/dlm/user.c compat_input(kbuf, k32buf, namelen); kbuf 558 fs/dlm/user.c if ((kbuf->cmd == DLM_USER_LOCK || kbuf->cmd == DLM_USER_UNLOCK) && kbuf 566 fs/dlm/user.c switch (kbuf->cmd) kbuf 573 fs/dlm/user.c error = device_user_lock(proc, &kbuf->i.lock); kbuf 581 fs/dlm/user.c error = device_user_unlock(proc, &kbuf->i.lock); kbuf 589 fs/dlm/user.c error = device_user_deadlock(proc, &kbuf->i.lock); kbuf 597 fs/dlm/user.c error = device_create_lockspace(&kbuf->i.lspace); kbuf 605 fs/dlm/user.c error = device_remove_lockspace(&kbuf->i.lspace); kbuf 613 fs/dlm/user.c error = device_user_purge(proc, &kbuf->i.purge); kbuf 618 fs/dlm/user.c kbuf->cmd); kbuf 622 fs/dlm/user.c kfree(kbuf); kbuf 1223 fs/nilfs2/ioctl.c void *kbuf; kbuf 1254 fs/nilfs2/ioctl.c kbuf = vmalloc(len); kbuf 1255 fs/nilfs2/ioctl.c if (!kbuf) { kbuf 1260 fs/nilfs2/ioctl.c if (copy_from_user(kbuf, base, len)) { kbuf 1266 fs/nilfs2/ioctl.c ret = nilfs_sufile_set_suinfo(nilfs->ns_sufile, kbuf, argv.v_size, kbuf 1274 fs/nilfs2/ioctl.c vfree(kbuf); kbuf 260 fs/ocfs2/stack_user.c char kbuf[OCFS2_CONTROL_PROTO_LEN]; kbuf 262 fs/ocfs2/stack_user.c ret = ocfs2_control_cfu(kbuf, OCFS2_CONTROL_PROTO_LEN, kbuf 267 fs/ocfs2/stack_user.c if (strncmp(kbuf, OCFS2_CONTROL_PROTO, OCFS2_CONTROL_PROTO_LEN)) kbuf 262 fs/statfs.c static int put_compat_statfs(struct compat_statfs __user *ubuf, struct kstatfs *kbuf) kbuf 266 fs/statfs.c if ((kbuf->f_blocks | kbuf->f_bfree | kbuf->f_bavail | kbuf 267 fs/statfs.c kbuf->f_bsize | kbuf->f_frsize) & 0xffffffff00000000ULL) kbuf 271 fs/statfs.c if (kbuf->f_files != 0xffffffffffffffffULL kbuf 272 fs/statfs.c && (kbuf->f_files & 0xffffffff00000000ULL)) kbuf 274 fs/statfs.c if (kbuf->f_ffree != 0xffffffffffffffffULL kbuf 275 fs/statfs.c && (kbuf->f_ffree & 0xffffffff00000000ULL)) kbuf 279 fs/statfs.c buf.f_type = kbuf->f_type; kbuf 280 fs/statfs.c buf.f_bsize = kbuf->f_bsize; kbuf 281 fs/statfs.c buf.f_blocks = kbuf->f_blocks; kbuf 282 fs/statfs.c buf.f_bfree = kbuf->f_bfree; kbuf 283 fs/statfs.c buf.f_bavail = kbuf->f_bavail; kbuf 284 fs/statfs.c buf.f_files = kbuf->f_files; kbuf 285 fs/statfs.c buf.f_ffree = kbuf->f_ffree; kbuf 286 fs/statfs.c buf.f_namelen = kbuf->f_namelen; kbuf 287 fs/statfs.c buf.f_fsid.val[0] = kbuf->f_fsid.val[0]; kbuf 288 fs/statfs.c buf.f_fsid.val[1] = kbuf->f_fsid.val[1]; kbuf 289 fs/statfs.c buf.f_frsize = kbuf->f_frsize; kbuf 290 fs/statfs.c buf.f_flags = kbuf->f_flags; kbuf 318 fs/statfs.c static int put_compat_statfs64(struct compat_statfs64 __user *ubuf, struct kstatfs *kbuf) kbuf 322 fs/statfs.c if ((kbuf->f_bsize | kbuf->f_frsize) & 0xffffffff00000000ULL) kbuf 326 fs/statfs.c buf.f_type = kbuf->f_type; kbuf 327 fs/statfs.c buf.f_bsize = kbuf->f_bsize; kbuf 328 fs/statfs.c buf.f_blocks = kbuf->f_blocks; kbuf 329 fs/statfs.c buf.f_bfree = kbuf->f_bfree; kbuf 330 fs/statfs.c buf.f_bavail = kbuf->f_bavail; kbuf 331 fs/statfs.c buf.f_files = kbuf->f_files; kbuf 332 fs/statfs.c buf.f_ffree = kbuf->f_ffree; kbuf 333 fs/statfs.c buf.f_namelen = kbuf->f_namelen; kbuf 334 fs/statfs.c buf.f_fsid.val[0] = kbuf->f_fsid.val[0]; kbuf 335 fs/statfs.c buf.f_fsid.val[1] = kbuf->f_fsid.val[1]; kbuf 336 fs/statfs.c buf.f_frsize = kbuf->f_frsize; kbuf 337 fs/statfs.c buf.f_flags = kbuf->f_flags; kbuf 379 fs/xfs/xfs_ioctl.c char *kbuf; kbuf 399 fs/xfs/xfs_ioctl.c kbuf = kmem_zalloc_large(al_hreq.buflen, 0); kbuf 400 fs/xfs/xfs_ioctl.c if (!kbuf) kbuf 404 fs/xfs/xfs_ioctl.c error = xfs_attr_list(XFS_I(d_inode(dentry)), kbuf, al_hreq.buflen, kbuf 414 fs/xfs/xfs_ioctl.c if (copy_to_user(al_hreq.buffer, kbuf, al_hreq.buflen)) kbuf 418 fs/xfs/xfs_ioctl.c kmem_free(kbuf); kbuf 432 fs/xfs/xfs_ioctl.c unsigned char *kbuf; kbuf 437 fs/xfs/xfs_ioctl.c kbuf = kmem_zalloc_large(*len, 0); kbuf 438 fs/xfs/xfs_ioctl.c if (!kbuf) kbuf 441 fs/xfs/xfs_ioctl.c error = xfs_attr_get(XFS_I(inode), name, &kbuf, (int *)len, flags); kbuf 445 fs/xfs/xfs_ioctl.c if (copy_to_user(ubuf, kbuf, *len)) kbuf 449 fs/xfs/xfs_ioctl.c kmem_free(kbuf); kbuf 461 fs/xfs/xfs_ioctl.c unsigned char *kbuf; kbuf 469 fs/xfs/xfs_ioctl.c kbuf = memdup_user(ubuf, len); kbuf 470 fs/xfs/xfs_ioctl.c if (IS_ERR(kbuf)) kbuf 471 fs/xfs/xfs_ioctl.c return PTR_ERR(kbuf); kbuf 473 fs/xfs/xfs_ioctl.c error = xfs_attr_set(XFS_I(inode), name, kbuf, len, flags); kbuf 476 fs/xfs/xfs_ioctl.c kfree(kbuf); kbuf 362 fs/xfs/xfs_ioctl32.c char *kbuf; kbuf 384 fs/xfs/xfs_ioctl32.c kbuf = kmem_zalloc_large(al_hreq.buflen, 0); kbuf 385 fs/xfs/xfs_ioctl32.c if (!kbuf) kbuf 389 fs/xfs/xfs_ioctl32.c error = xfs_attr_list(XFS_I(d_inode(dentry)), kbuf, al_hreq.buflen, kbuf 399 fs/xfs/xfs_ioctl32.c if (copy_to_user(compat_ptr(al_hreq.buffer), kbuf, al_hreq.buflen)) kbuf 403 fs/xfs/xfs_ioctl32.c kmem_free(kbuf); kbuf 317 include/linux/bpf_verifier.h char kbuf[BPF_VERIFIER_TMP_LOG_SIZE]; kbuf 84 include/linux/kexec.h void *kbuf; kbuf 180 include/linux/kexec.h int kexec_load_purgatory(struct kimage *image, struct kexec_buf *kbuf); kbuf 198 include/linux/kexec.h extern int kexec_add_buffer(struct kexec_buf *kbuf); kbuf 199 include/linux/kexec.h int kexec_locate_mem_hole(struct kexec_buf *kbuf); kbuf 238 include/linux/kexec.h struct kexec_buf *kbuf, kbuf 58 include/linux/regset.h void *kbuf, void __user *ubuf); kbuf 79 include/linux/regset.h const void *kbuf, const void __user *ubuf); kbuf 255 include/linux/regset.h void **kbuf, kbuf 266 include/linux/regset.h if (*kbuf) { kbuf 267 include/linux/regset.h memcpy(*kbuf, data, copy); kbuf 268 include/linux/regset.h *kbuf += copy; kbuf 280 include/linux/regset.h const void **kbuf, kbuf 291 include/linux/regset.h if (*kbuf) { kbuf 292 include/linux/regset.h memcpy(data, *kbuf, copy); kbuf 293 include/linux/regset.h *kbuf += copy; kbuf 310 include/linux/regset.h void **kbuf, void __user **ubuf, kbuf 320 include/linux/regset.h if (*kbuf) { kbuf 321 include/linux/regset.h memset(*kbuf, 0, copy); kbuf 322 include/linux/regset.h *kbuf += copy; kbuf 335 include/linux/regset.h const void **kbuf, kbuf 346 include/linux/regset.h if (*kbuf) kbuf 347 include/linux/regset.h *kbuf += copy; kbuf 237 kernel/bpf/verifier.c n = vscnprintf(log->kbuf, BPF_VERIFIER_TMP_LOG_SIZE, fmt, args); kbuf 243 kernel/bpf/verifier.c log->kbuf[n] = '\0'; kbuf 245 kernel/bpf/verifier.c if (!copy_to_user(log->ubuf + log->len_used, log->kbuf, n + 1)) kbuf 782 kernel/kexec_core.c unsigned char *kbuf = NULL; kbuf 786 kernel/kexec_core.c kbuf = segment->kbuf; kbuf 822 kernel/kexec_core.c memcpy(ptr, kbuf, uchunk); kbuf 833 kernel/kexec_core.c kbuf += mchunk; kbuf 855 kernel/kexec_core.c unsigned char *kbuf = NULL; kbuf 859 kernel/kexec_core.c kbuf = segment->kbuf; kbuf 888 kernel/kexec_core.c memcpy(ptr, kbuf, uchunk); kbuf 901 kernel/kexec_core.c kbuf += mchunk; kbuf 390 kernel/kexec_elf.c struct kexec_buf *kbuf, kbuf 411 kernel/kexec_elf.c kbuf->buffer = (void *) elf_info->buffer + phdr->p_offset; kbuf 412 kernel/kexec_elf.c kbuf->bufsz = size; kbuf 413 kernel/kexec_elf.c kbuf->memsz = phdr->p_memsz; kbuf 414 kernel/kexec_elf.c kbuf->buf_align = phdr->p_align; kbuf 415 kernel/kexec_elf.c kbuf->buf_min = phdr->p_paddr; kbuf 416 kernel/kexec_elf.c kbuf->mem = KEXEC_BUF_MEM_UNKNOWN; kbuf 417 kernel/kexec_elf.c ret = kexec_add_buffer(kbuf); kbuf 420 kernel/kexec_elf.c load_addr = kbuf->mem; kbuf 461 kernel/kexec_file.c struct kexec_buf *kbuf) kbuf 463 kernel/kexec_file.c struct kimage *image = kbuf->image; kbuf 466 kernel/kexec_file.c temp_end = min(end, kbuf->buf_max); kbuf 467 kernel/kexec_file.c temp_start = temp_end - kbuf->memsz; kbuf 471 kernel/kexec_file.c temp_start = temp_start & (~(kbuf->buf_align - 1)); kbuf 473 kernel/kexec_file.c if (temp_start < start || temp_start < kbuf->buf_min) kbuf 476 kernel/kexec_file.c temp_end = temp_start + kbuf->memsz - 1; kbuf 492 kernel/kexec_file.c kbuf->mem = temp_start; kbuf 499 kernel/kexec_file.c struct kexec_buf *kbuf) kbuf 501 kernel/kexec_file.c struct kimage *image = kbuf->image; kbuf 504 kernel/kexec_file.c temp_start = max(start, kbuf->buf_min); kbuf 507 kernel/kexec_file.c temp_start = ALIGN(temp_start, kbuf->buf_align); kbuf 508 kernel/kexec_file.c temp_end = temp_start + kbuf->memsz - 1; kbuf 510 kernel/kexec_file.c if (temp_end > end || temp_end > kbuf->buf_max) kbuf 526 kernel/kexec_file.c kbuf->mem = temp_start; kbuf 534 kernel/kexec_file.c struct kexec_buf *kbuf = (struct kexec_buf *)arg; kbuf 539 kernel/kexec_file.c if (sz < kbuf->memsz) kbuf 542 kernel/kexec_file.c if (end < kbuf->buf_min || start > kbuf->buf_max) kbuf 549 kernel/kexec_file.c if (kbuf->top_down) kbuf 550 kernel/kexec_file.c return locate_mem_hole_top_down(start, end, kbuf); kbuf 551 kernel/kexec_file.c return locate_mem_hole_bottom_up(start, end, kbuf); kbuf 555 kernel/kexec_file.c static int kexec_walk_memblock(struct kexec_buf *kbuf, kbuf 563 kernel/kexec_file.c if (kbuf->image->type == KEXEC_TYPE_CRASH) kbuf 564 kernel/kexec_file.c return func(&crashk_res, kbuf); kbuf 566 kernel/kexec_file.c if (kbuf->top_down) { kbuf 576 kernel/kexec_file.c ret = func(&res, kbuf); kbuf 590 kernel/kexec_file.c ret = func(&res, kbuf); kbuf 599 kernel/kexec_file.c static int kexec_walk_memblock(struct kexec_buf *kbuf, kbuf 615 kernel/kexec_file.c static int kexec_walk_resources(struct kexec_buf *kbuf, kbuf 618 kernel/kexec_file.c if (kbuf->image->type == KEXEC_TYPE_CRASH) kbuf 622 kernel/kexec_file.c kbuf, func); kbuf 624 kernel/kexec_file.c return walk_system_ram_res(0, ULONG_MAX, kbuf, func); kbuf 635 kernel/kexec_file.c int kexec_locate_mem_hole(struct kexec_buf *kbuf) kbuf 640 kernel/kexec_file.c if (kbuf->mem != KEXEC_BUF_MEM_UNKNOWN) kbuf 644 kernel/kexec_file.c ret = kexec_walk_resources(kbuf, locate_mem_hole_callback); kbuf 646 kernel/kexec_file.c ret = kexec_walk_memblock(kbuf, locate_mem_hole_callback); kbuf 661 kernel/kexec_file.c int kexec_add_buffer(struct kexec_buf *kbuf) kbuf 668 kernel/kexec_file.c if (!kbuf->image->file_mode) kbuf 671 kernel/kexec_file.c if (kbuf->image->nr_segments >= KEXEC_SEGMENT_MAX) kbuf 681 kernel/kexec_file.c if (!list_empty(&kbuf->image->control_pages)) { kbuf 687 kernel/kexec_file.c kbuf->memsz = ALIGN(kbuf->memsz, PAGE_SIZE); kbuf 688 kernel/kexec_file.c kbuf->buf_align = max(kbuf->buf_align, PAGE_SIZE); kbuf 691 kernel/kexec_file.c ret = kexec_locate_mem_hole(kbuf); kbuf 696 kernel/kexec_file.c ksegment = &kbuf->image->segment[kbuf->image->nr_segments]; kbuf 697 kernel/kexec_file.c ksegment->kbuf = kbuf->buffer; kbuf 698 kernel/kexec_file.c ksegment->bufsz = kbuf->bufsz; kbuf 699 kernel/kexec_file.c ksegment->mem = kbuf->mem; kbuf 700 kernel/kexec_file.c ksegment->memsz = kbuf->memsz; kbuf 701 kernel/kexec_file.c kbuf->image->nr_segments++; kbuf 761 kernel/kexec_file.c if (ksegment->kbuf == pi->purgatory_buf) kbuf 764 kernel/kexec_file.c ret = crypto_shash_update(desc, ksegment->kbuf, kbuf 832 kernel/kexec_file.c struct kexec_buf *kbuf) kbuf 841 kernel/kexec_file.c kbuf->buf_align = bss_align = 1; kbuf 842 kernel/kexec_file.c kbuf->bufsz = bss_sz = 0; kbuf 850 kernel/kexec_file.c if (kbuf->buf_align < align) kbuf 851 kernel/kexec_file.c kbuf->buf_align = align; kbuf 852 kernel/kexec_file.c kbuf->bufsz = ALIGN(kbuf->bufsz, align); kbuf 853 kernel/kexec_file.c kbuf->bufsz += sechdrs[i].sh_size; kbuf 861 kernel/kexec_file.c kbuf->bufsz = ALIGN(kbuf->bufsz, bss_align); kbuf 862 kernel/kexec_file.c kbuf->memsz = kbuf->bufsz + bss_sz; kbuf 863 kernel/kexec_file.c if (kbuf->buf_align < bss_align) kbuf 864 kernel/kexec_file.c kbuf->buf_align = bss_align; kbuf 866 kernel/kexec_file.c kbuf->buffer = vzalloc(kbuf->bufsz); kbuf 867 kernel/kexec_file.c if (!kbuf->buffer) kbuf 869 kernel/kexec_file.c pi->purgatory_buf = kbuf->buffer; kbuf 871 kernel/kexec_file.c ret = kexec_add_buffer(kbuf); kbuf 893 kernel/kexec_file.c struct kexec_buf *kbuf) kbuf 912 kernel/kexec_file.c bss_addr = kbuf->mem + kbuf->bufsz; kbuf 913 kernel/kexec_file.c kbuf->image->start = pi->ehdr->e_entry; kbuf 935 kernel/kexec_file.c kbuf->image->start -= sechdrs[i].sh_addr; kbuf 936 kernel/kexec_file.c kbuf->image->start += kbuf->mem + offset; kbuf 943 kernel/kexec_file.c sechdrs[i].sh_addr = kbuf->mem + offset; kbuf 1022 kernel/kexec_file.c int kexec_load_purgatory(struct kimage *image, struct kexec_buf *kbuf) kbuf 1032 kernel/kexec_file.c ret = kexec_purgatory_setup_kbuf(pi, kbuf); kbuf 1036 kernel/kexec_file.c ret = kexec_purgatory_setup_sechdrs(pi, kbuf); kbuf 2342 kernel/sysctl.c char *kbuf = NULL, *p; kbuf 2362 kernel/sysctl.c p = kbuf = memdup_user_nul(buffer, left); kbuf 2363 kernel/sysctl.c if (IS_ERR(kbuf)) kbuf 2364 kernel/sysctl.c return PTR_ERR(kbuf); kbuf 2405 kernel/sysctl.c kfree(kbuf); kbuf 2438 kernel/sysctl.c char *kbuf = NULL, *p; kbuf 2448 kernel/sysctl.c p = kbuf = memdup_user_nul(buffer, left); kbuf 2449 kernel/sysctl.c if (IS_ERR(kbuf)) kbuf 2475 kernel/sysctl.c kfree(kbuf); kbuf 2856 kernel/sysctl.c char *kbuf = NULL, *p; kbuf 2875 kernel/sysctl.c p = kbuf = memdup_user_nul(buffer, left); kbuf 2876 kernel/sysctl.c if (IS_ERR(kbuf)) kbuf 2877 kernel/sysctl.c return PTR_ERR(kbuf); kbuf 2921 kernel/sysctl.c kfree(kbuf); kbuf 3183 kernel/sysctl.c char *kbuf, *p; kbuf 3192 kernel/sysctl.c p = kbuf = memdup_user_nul(buffer, left); kbuf 3193 kernel/sysctl.c if (IS_ERR(kbuf)) kbuf 3194 kernel/sysctl.c return PTR_ERR(kbuf); kbuf 3198 kernel/sysctl.c kfree(kbuf); kbuf 3264 kernel/sysctl.c kfree(kbuf); kbuf 9052 kernel/trace/trace.c char *kbuf, *buf, *tmp; kbuf 9057 kernel/trace/trace.c kbuf = kmalloc(WRITE_BUFSIZE, GFP_KERNEL); kbuf 9058 kernel/trace/trace.c if (!kbuf) kbuf 9067 kernel/trace/trace.c if (copy_from_user(kbuf, buffer + done, size)) { kbuf 9071 kernel/trace/trace.c kbuf[size] = '\0'; kbuf 9072 kernel/trace/trace.c buf = kbuf; kbuf 9081 kernel/trace/trace.c if (buf != kbuf) kbuf 9108 kernel/trace/trace.c kfree(kbuf); kbuf 855 kernel/user_namespace.c char *kbuf = NULL, *pos, *next_line; kbuf 863 kernel/user_namespace.c kbuf = memdup_user_nul(buf, count); kbuf 864 kernel/user_namespace.c if (IS_ERR(kbuf)) kbuf 865 kernel/user_namespace.c return PTR_ERR(kbuf); kbuf 903 kernel/user_namespace.c pos = kbuf; kbuf 1028 kernel/user_namespace.c kfree(kbuf); kbuf 1138 kernel/user_namespace.c char kbuf[8], *pos; kbuf 1144 kernel/user_namespace.c if ((*ppos != 0) || (count >= sizeof(kbuf))) kbuf 1149 kernel/user_namespace.c if (copy_from_user(kbuf, buf, count)) kbuf 1151 kernel/user_namespace.c kbuf[count] = '\0'; kbuf 1152 kernel/user_namespace.c pos = kbuf; kbuf 345 mm/page_owner.c char *kbuf; kbuf 348 mm/page_owner.c kbuf = kmalloc(count, GFP_KERNEL); kbuf 349 mm/page_owner.c if (!kbuf) kbuf 352 mm/page_owner.c ret = snprintf(kbuf, count, kbuf 363 mm/page_owner.c ret += snprintf(kbuf + ret, count - ret, kbuf 375 mm/page_owner.c ret += stack_trace_snprint(kbuf + ret, count - ret, entries, nr_entries, 0); kbuf 380 mm/page_owner.c ret += snprintf(kbuf + ret, count - ret, kbuf 387 mm/page_owner.c ret += snprintf(kbuf + ret, count - ret, "\n"); kbuf 391 mm/page_owner.c if (copy_to_user(buf, kbuf, ret)) kbuf 394 mm/page_owner.c kfree(kbuf); kbuf 398 mm/page_owner.c kfree(kbuf); kbuf 4118 mm/slab.c char kbuf[MAX_SLABINFO_WRITE + 1], *tmp; kbuf 4124 mm/slab.c if (copy_from_user(&kbuf, buffer, count)) kbuf 4126 mm/slab.c kbuf[MAX_SLABINFO_WRITE] = '\0'; kbuf 4128 mm/slab.c tmp = strchr(kbuf, ' '); kbuf 4140 mm/slab.c if (!strcmp(cachep->name, kbuf)) { kbuf 159 net/core/sysctl_net_core.c char kbuf[128]; kbuf 175 net/core/sysctl_net_core.c len = min(sizeof(kbuf) - 1, *lenp); kbuf 176 net/core/sysctl_net_core.c len = scnprintf(kbuf, len, "%*pb", cpumask_pr_args(mask)); kbuf 182 net/core/sysctl_net_core.c kbuf[len++] = '\n'; kbuf 183 net/core/sysctl_net_core.c if (copy_to_user(buffer, kbuf, len)) { kbuf 81 net/qrtr/tun.c void *kbuf; kbuf 83 net/qrtr/tun.c kbuf = kzalloc(len, GFP_KERNEL); kbuf 84 net/qrtr/tun.c if (!kbuf) kbuf 87 net/qrtr/tun.c if (!copy_from_iter_full(kbuf, len, from)) { kbuf 88 net/qrtr/tun.c kfree(kbuf); kbuf 92 net/qrtr/tun.c ret = qrtr_endpoint_post(&tun->ep, kbuf, len); kbuf 94 net/qrtr/tun.c kfree(kbuf); kbuf 83 security/integrity/ima/ima_kexec.c struct kexec_buf kbuf = { .image = image, .buf_align = PAGE_SIZE, kbuf 117 security/integrity/ima/ima_kexec.c kbuf.buffer = kexec_buffer; kbuf 118 security/integrity/ima/ima_kexec.c kbuf.bufsz = kexec_buffer_size; kbuf 119 security/integrity/ima/ima_kexec.c kbuf.memsz = kexec_segment_size; kbuf 120 security/integrity/ima/ima_kexec.c ret = kexec_add_buffer(&kbuf); kbuf 126 security/integrity/ima/ima_kexec.c ret = arch_ima_add_kexec_buffer(image, kbuf.mem, kexec_segment_size); kbuf 133 security/integrity/ima/ima_kexec.c kbuf.mem); kbuf 201 security/keys/dh.c uint8_t *kbuf, size_t kbuflen, size_t lzero) kbuf 214 security/keys/dh.c ret = kdf_ctr(sdesc, kbuf, kbuflen, outbuf, outbuf_len, lzero); kbuf 214 security/safesetid/securityfs.c const char *kbuf; kbuf 220 security/safesetid/securityfs.c kbuf = pol->policy_str; kbuf 222 security/safesetid/securityfs.c kbuf, strlen(kbuf)); kbuf 676 sound/isa/sb/sb16_csp.c unsigned char *kbuf; kbuf 678 sound/isa/sb/sb16_csp.c kbuf = memdup_user(buf, size); kbuf 679 sound/isa/sb/sb16_csp.c if (IS_ERR(kbuf)) kbuf 680 sound/isa/sb/sb16_csp.c return PTR_ERR(kbuf); kbuf 682 sound/isa/sb/sb16_csp.c err = snd_sb_csp_load(p, kbuf, size, load_flags); kbuf 684 sound/isa/sb/sb16_csp.c kfree(kbuf); kbuf 57 tools/lib/traceevent/kbuffer-parse.c unsigned long long (*read_long)(struct kbuffer *kbuf, void *ptr); kbuf 58 tools/lib/traceevent/kbuffer-parse.c int (*next_event)(struct kbuffer *kbuf); kbuf 75 tools/lib/traceevent/kbuffer-parse.c static int do_swap(struct kbuffer *kbuf) kbuf 77 tools/lib/traceevent/kbuffer-parse.c return ((kbuf->flags & KBUFFER_FL_HOST_BIG_ENDIAN) + kbuf->flags) & kbuf 125 tools/lib/traceevent/kbuffer-parse.c static unsigned long long read_8(struct kbuffer *kbuf, void *ptr) kbuf 127 tools/lib/traceevent/kbuffer-parse.c return kbuf->read_8(ptr); kbuf 130 tools/lib/traceevent/kbuffer-parse.c static unsigned int read_4(struct kbuffer *kbuf, void *ptr) kbuf 132 tools/lib/traceevent/kbuffer-parse.c return kbuf->read_4(ptr); kbuf 135 tools/lib/traceevent/kbuffer-parse.c static unsigned long long __read_long_8(struct kbuffer *kbuf, void *ptr) kbuf 137 tools/lib/traceevent/kbuffer-parse.c return kbuf->read_8(ptr); kbuf 140 tools/lib/traceevent/kbuffer-parse.c static unsigned long long __read_long_4(struct kbuffer *kbuf, void *ptr) kbuf 142 tools/lib/traceevent/kbuffer-parse.c return kbuf->read_4(ptr); kbuf 145 tools/lib/traceevent/kbuffer-parse.c static unsigned long long read_long(struct kbuffer *kbuf, void *ptr) kbuf 147 tools/lib/traceevent/kbuffer-parse.c return kbuf->read_long(kbuf, ptr); kbuf 150 tools/lib/traceevent/kbuffer-parse.c static int calc_index(struct kbuffer *kbuf, void *ptr) kbuf 152 tools/lib/traceevent/kbuffer-parse.c return (unsigned long)ptr - (unsigned long)kbuf->data; kbuf 155 tools/lib/traceevent/kbuffer-parse.c static int __next_event(struct kbuffer *kbuf); kbuf 167 tools/lib/traceevent/kbuffer-parse.c struct kbuffer *kbuf; kbuf 190 tools/lib/traceevent/kbuffer-parse.c kbuf = zmalloc(sizeof(*kbuf)); kbuf 191 tools/lib/traceevent/kbuffer-parse.c if (!kbuf) kbuf 194 tools/lib/traceevent/kbuffer-parse.c kbuf->flags = flags; kbuf 197 tools/lib/traceevent/kbuffer-parse.c kbuf->flags |= KBUFFER_FL_HOST_BIG_ENDIAN; kbuf 199 tools/lib/traceevent/kbuffer-parse.c if (do_swap(kbuf)) { kbuf 200 tools/lib/traceevent/kbuffer-parse.c kbuf->read_8 = __read_8_sw; kbuf 201 tools/lib/traceevent/kbuffer-parse.c kbuf->read_4 = __read_4_sw; kbuf 203 tools/lib/traceevent/kbuffer-parse.c kbuf->read_8 = __read_8; kbuf 204 tools/lib/traceevent/kbuffer-parse.c kbuf->read_4 = __read_4; kbuf 207 tools/lib/traceevent/kbuffer-parse.c if (kbuf->flags & KBUFFER_FL_LONG_8) kbuf 208 tools/lib/traceevent/kbuffer-parse.c kbuf->read_long = __read_long_8; kbuf 210 tools/lib/traceevent/kbuffer-parse.c kbuf->read_long = __read_long_4; kbuf 213 tools/lib/traceevent/kbuffer-parse.c kbuf->next_event = __next_event; kbuf 215 tools/lib/traceevent/kbuffer-parse.c return kbuf; kbuf 223 tools/lib/traceevent/kbuffer-parse.c void kbuffer_free(struct kbuffer *kbuf) kbuf 225 tools/lib/traceevent/kbuffer-parse.c free(kbuf); kbuf 228 tools/lib/traceevent/kbuffer-parse.c static unsigned int type4host(struct kbuffer *kbuf, kbuf 231 tools/lib/traceevent/kbuffer-parse.c if (kbuf->flags & KBUFFER_FL_BIG_ENDIAN) kbuf 237 tools/lib/traceevent/kbuffer-parse.c static unsigned int len4host(struct kbuffer *kbuf, kbuf 240 tools/lib/traceevent/kbuffer-parse.c if (kbuf->flags & KBUFFER_FL_BIG_ENDIAN) kbuf 246 tools/lib/traceevent/kbuffer-parse.c static unsigned int type_len4host(struct kbuffer *kbuf, kbuf 249 tools/lib/traceevent/kbuffer-parse.c if (kbuf->flags & KBUFFER_FL_BIG_ENDIAN) kbuf 255 tools/lib/traceevent/kbuffer-parse.c static unsigned int ts4host(struct kbuffer *kbuf, kbuf 258 tools/lib/traceevent/kbuffer-parse.c if (kbuf->flags & KBUFFER_FL_BIG_ENDIAN) kbuf 275 tools/lib/traceevent/kbuffer-parse.c static unsigned int old_update_pointers(struct kbuffer *kbuf) kbuf 283 tools/lib/traceevent/kbuffer-parse.c void *ptr = kbuf->data + kbuf->curr; kbuf 285 tools/lib/traceevent/kbuffer-parse.c type_len_ts = read_4(kbuf, ptr); kbuf 288 tools/lib/traceevent/kbuffer-parse.c type = type4host(kbuf, type_len_ts); kbuf 289 tools/lib/traceevent/kbuffer-parse.c len = len4host(kbuf, type_len_ts); kbuf 290 tools/lib/traceevent/kbuffer-parse.c delta = ts4host(kbuf, type_len_ts); kbuf 294 tools/lib/traceevent/kbuffer-parse.c kbuf->next = kbuf->size; kbuf 298 tools/lib/traceevent/kbuffer-parse.c extend = read_4(kbuf, ptr); kbuf 308 tools/lib/traceevent/kbuffer-parse.c kbuf->curr = kbuf->size; kbuf 309 tools/lib/traceevent/kbuffer-parse.c kbuf->next = kbuf->size; kbuf 310 tools/lib/traceevent/kbuffer-parse.c kbuf->index = kbuf->size; kbuf 316 tools/lib/traceevent/kbuffer-parse.c length = read_4(kbuf, ptr); kbuf 323 tools/lib/traceevent/kbuffer-parse.c kbuf->timestamp += delta; kbuf 324 tools/lib/traceevent/kbuffer-parse.c kbuf->index = calc_index(kbuf, ptr); kbuf 325 tools/lib/traceevent/kbuffer-parse.c kbuf->next = kbuf->index + length; kbuf 330 tools/lib/traceevent/kbuffer-parse.c static int __old_next_event(struct kbuffer *kbuf) kbuf 335 tools/lib/traceevent/kbuffer-parse.c kbuf->curr = kbuf->next; kbuf 336 tools/lib/traceevent/kbuffer-parse.c if (kbuf->next >= kbuf->size) kbuf 338 tools/lib/traceevent/kbuffer-parse.c type = old_update_pointers(kbuf); kbuf 345 tools/lib/traceevent/kbuffer-parse.c translate_data(struct kbuffer *kbuf, void *data, void **rptr, kbuf 352 tools/lib/traceevent/kbuffer-parse.c type_len_ts = read_4(kbuf, data); kbuf 355 tools/lib/traceevent/kbuffer-parse.c type_len = type_len4host(kbuf, type_len_ts); kbuf 356 tools/lib/traceevent/kbuffer-parse.c *delta = ts4host(kbuf, type_len_ts); kbuf 360 tools/lib/traceevent/kbuffer-parse.c *length = read_4(kbuf, data); kbuf 364 tools/lib/traceevent/kbuffer-parse.c extend = read_4(kbuf, data); kbuf 377 tools/lib/traceevent/kbuffer-parse.c *length = read_4(kbuf, data) - 4; kbuf 391 tools/lib/traceevent/kbuffer-parse.c static unsigned int update_pointers(struct kbuffer *kbuf) kbuf 396 tools/lib/traceevent/kbuffer-parse.c void *ptr = kbuf->data + kbuf->curr; kbuf 398 tools/lib/traceevent/kbuffer-parse.c type_len = translate_data(kbuf, ptr, &ptr, &delta, &length); kbuf 400 tools/lib/traceevent/kbuffer-parse.c kbuf->timestamp += delta; kbuf 401 tools/lib/traceevent/kbuffer-parse.c kbuf->index = calc_index(kbuf, ptr); kbuf 402 tools/lib/traceevent/kbuffer-parse.c kbuf->next = kbuf->index + length; kbuf 420 tools/lib/traceevent/kbuffer-parse.c struct kbuffer kbuf; kbuf 426 tools/lib/traceevent/kbuffer-parse.c kbuf.read_8 = __read_8_sw; kbuf 427 tools/lib/traceevent/kbuffer-parse.c kbuf.read_4 = __read_4_sw; kbuf 428 tools/lib/traceevent/kbuffer-parse.c kbuf.flags = host_is_bigendian() ? 0 : KBUFFER_FL_BIG_ENDIAN; kbuf 430 tools/lib/traceevent/kbuffer-parse.c kbuf.read_8 = __read_8; kbuf 431 tools/lib/traceevent/kbuffer-parse.c kbuf.read_4 = __read_4; kbuf 432 tools/lib/traceevent/kbuffer-parse.c kbuf.flags = host_is_bigendian() ? KBUFFER_FL_BIG_ENDIAN: 0; kbuf 435 tools/lib/traceevent/kbuffer-parse.c type_len = translate_data(&kbuf, data, &ptr, &delta, &length); kbuf 448 tools/lib/traceevent/kbuffer-parse.c static int __next_event(struct kbuffer *kbuf) kbuf 453 tools/lib/traceevent/kbuffer-parse.c kbuf->curr = kbuf->next; kbuf 454 tools/lib/traceevent/kbuffer-parse.c if (kbuf->next >= kbuf->size) kbuf 456 tools/lib/traceevent/kbuffer-parse.c type = update_pointers(kbuf); kbuf 462 tools/lib/traceevent/kbuffer-parse.c static int next_event(struct kbuffer *kbuf) kbuf 464 tools/lib/traceevent/kbuffer-parse.c return kbuf->next_event(kbuf); kbuf 479 tools/lib/traceevent/kbuffer-parse.c void *kbuffer_next_event(struct kbuffer *kbuf, unsigned long long *ts) kbuf 483 tools/lib/traceevent/kbuffer-parse.c if (!kbuf || !kbuf->subbuffer) kbuf 486 tools/lib/traceevent/kbuffer-parse.c ret = next_event(kbuf); kbuf 491 tools/lib/traceevent/kbuffer-parse.c *ts = kbuf->timestamp; kbuf 493 tools/lib/traceevent/kbuffer-parse.c return kbuf->data + kbuf->index; kbuf 507 tools/lib/traceevent/kbuffer-parse.c int kbuffer_load_subbuffer(struct kbuffer *kbuf, void *subbuffer) kbuf 512 tools/lib/traceevent/kbuffer-parse.c if (!kbuf || !subbuffer) kbuf 515 tools/lib/traceevent/kbuffer-parse.c kbuf->subbuffer = subbuffer; kbuf 517 tools/lib/traceevent/kbuffer-parse.c kbuf->timestamp = read_8(kbuf, ptr); kbuf 520 tools/lib/traceevent/kbuffer-parse.c kbuf->curr = 0; kbuf 522 tools/lib/traceevent/kbuffer-parse.c if (kbuf->flags & KBUFFER_FL_LONG_8) kbuf 523 tools/lib/traceevent/kbuffer-parse.c kbuf->start = 16; kbuf 525 tools/lib/traceevent/kbuffer-parse.c kbuf->start = 12; kbuf 527 tools/lib/traceevent/kbuffer-parse.c kbuf->data = subbuffer + kbuf->start; kbuf 529 tools/lib/traceevent/kbuffer-parse.c flags = read_long(kbuf, ptr); kbuf 530 tools/lib/traceevent/kbuffer-parse.c kbuf->size = (unsigned int)flags & COMMIT_MASK; kbuf 534 tools/lib/traceevent/kbuffer-parse.c ptr = kbuf->data + kbuf->size; kbuf 535 tools/lib/traceevent/kbuffer-parse.c kbuf->lost_events = read_long(kbuf, ptr); kbuf 537 tools/lib/traceevent/kbuffer-parse.c kbuf->lost_events = -1; kbuf 539 tools/lib/traceevent/kbuffer-parse.c kbuf->lost_events = 0; kbuf 541 tools/lib/traceevent/kbuffer-parse.c kbuf->index = 0; kbuf 542 tools/lib/traceevent/kbuffer-parse.c kbuf->next = 0; kbuf 544 tools/lib/traceevent/kbuffer-parse.c next_event(kbuf); kbuf 557 tools/lib/traceevent/kbuffer-parse.c void *kbuffer_read_event(struct kbuffer *kbuf, unsigned long long *ts) kbuf 559 tools/lib/traceevent/kbuffer-parse.c if (!kbuf || !kbuf->subbuffer) kbuf 562 tools/lib/traceevent/kbuffer-parse.c if (kbuf->curr >= kbuf->size) kbuf 566 tools/lib/traceevent/kbuffer-parse.c *ts = kbuf->timestamp; kbuf 567 tools/lib/traceevent/kbuffer-parse.c return kbuf->data + kbuf->index; kbuf 576 tools/lib/traceevent/kbuffer-parse.c unsigned long long kbuffer_timestamp(struct kbuffer *kbuf) kbuf 578 tools/lib/traceevent/kbuffer-parse.c return kbuf->timestamp; kbuf 599 tools/lib/traceevent/kbuffer-parse.c void *kbuffer_read_at_offset(struct kbuffer *kbuf, int offset, kbuf 604 tools/lib/traceevent/kbuffer-parse.c if (offset < kbuf->start) kbuf 607 tools/lib/traceevent/kbuffer-parse.c offset -= kbuf->start; kbuf 610 tools/lib/traceevent/kbuffer-parse.c kbuffer_load_subbuffer(kbuf, kbuf->subbuffer); kbuf 611 tools/lib/traceevent/kbuffer-parse.c data = kbuffer_read_event(kbuf, ts); kbuf 613 tools/lib/traceevent/kbuffer-parse.c while (kbuf->curr < offset) { kbuf 614 tools/lib/traceevent/kbuffer-parse.c data = kbuffer_next_event(kbuf, ts); kbuf 630 tools/lib/traceevent/kbuffer-parse.c int kbuffer_subbuffer_size(struct kbuffer *kbuf) kbuf 632 tools/lib/traceevent/kbuffer-parse.c return kbuf->size; kbuf 645 tools/lib/traceevent/kbuffer-parse.c int kbuffer_curr_index(struct kbuffer *kbuf) kbuf 647 tools/lib/traceevent/kbuffer-parse.c return kbuf->curr; kbuf 657 tools/lib/traceevent/kbuffer-parse.c int kbuffer_curr_offset(struct kbuffer *kbuf) kbuf 659 tools/lib/traceevent/kbuffer-parse.c return kbuf->curr + kbuf->start; kbuf 669 tools/lib/traceevent/kbuffer-parse.c int kbuffer_event_size(struct kbuffer *kbuf) kbuf 671 tools/lib/traceevent/kbuffer-parse.c return kbuf->next - kbuf->index; kbuf 681 tools/lib/traceevent/kbuffer-parse.c int kbuffer_curr_size(struct kbuffer *kbuf) kbuf 683 tools/lib/traceevent/kbuffer-parse.c return kbuf->next - kbuf->curr; kbuf 695 tools/lib/traceevent/kbuffer-parse.c int kbuffer_missed_events(struct kbuffer *kbuf) kbuf 698 tools/lib/traceevent/kbuffer-parse.c if (kbuf->curr) kbuf 701 tools/lib/traceevent/kbuffer-parse.c return kbuf->lost_events; kbuf 713 tools/lib/traceevent/kbuffer-parse.c void kbuffer_set_old_format(struct kbuffer *kbuf) kbuf 715 tools/lib/traceevent/kbuffer-parse.c kbuf->flags |= KBUFFER_FL_OLD_FORMAT; kbuf 717 tools/lib/traceevent/kbuffer-parse.c kbuf->next_event = __old_next_event; kbuf 726 tools/lib/traceevent/kbuffer-parse.c int kbuffer_start_of_data(struct kbuffer *kbuf) kbuf 728 tools/lib/traceevent/kbuffer-parse.c return kbuf->start; kbuf 745 tools/lib/traceevent/kbuffer-parse.c kbuffer_raw_get(struct kbuffer *kbuf, void *subbuf, struct kbuffer_raw_info *info) kbuf 755 tools/lib/traceevent/kbuffer-parse.c if (!kbuf || !subbuf) kbuf 758 tools/lib/traceevent/kbuffer-parse.c if (kbuf->flags & KBUFFER_FL_LONG_8) kbuf 763 tools/lib/traceevent/kbuffer-parse.c flags = read_long(kbuf, subbuf + 8); kbuf 769 tools/lib/traceevent/kbuffer-parse.c type_len = translate_data(kbuf, ptr, &ptr, &delta, &length); kbuf 47 tools/lib/traceevent/kbuffer.h void kbuffer_free(struct kbuffer *kbuf); kbuf 48 tools/lib/traceevent/kbuffer.h int kbuffer_load_subbuffer(struct kbuffer *kbuf, void *subbuffer); kbuf 49 tools/lib/traceevent/kbuffer.h void *kbuffer_read_event(struct kbuffer *kbuf, unsigned long long *ts); kbuf 50 tools/lib/traceevent/kbuffer.h void *kbuffer_next_event(struct kbuffer *kbuf, unsigned long long *ts); kbuf 51 tools/lib/traceevent/kbuffer.h unsigned long long kbuffer_timestamp(struct kbuffer *kbuf); kbuf 55 tools/lib/traceevent/kbuffer.h void *kbuffer_read_at_offset(struct kbuffer *kbuf, int offset, unsigned long long *ts); kbuf 57 tools/lib/traceevent/kbuffer.h int kbuffer_curr_index(struct kbuffer *kbuf); kbuf 59 tools/lib/traceevent/kbuffer.h int kbuffer_curr_offset(struct kbuffer *kbuf); kbuf 60 tools/lib/traceevent/kbuffer.h int kbuffer_curr_size(struct kbuffer *kbuf); kbuf 61 tools/lib/traceevent/kbuffer.h int kbuffer_event_size(struct kbuffer *kbuf); kbuf 62 tools/lib/traceevent/kbuffer.h int kbuffer_missed_events(struct kbuffer *kbuf); kbuf 63 tools/lib/traceevent/kbuffer.h int kbuffer_subbuffer_size(struct kbuffer *kbuf); kbuf 65 tools/lib/traceevent/kbuffer.h void kbuffer_set_old_format(struct kbuffer *kbuf); kbuf 66 tools/lib/traceevent/kbuffer.h int kbuffer_start_of_data(struct kbuffer *kbuf); kbuf 78 tools/lib/traceevent/kbuffer.h struct kbuffer_raw_info *kbuffer_raw_get(struct kbuffer *kbuf, void *subbuf,