/linux-master/drivers/mtd/ |
H A D | mtdcore.c | 2445 void *kbuf; local 2450 kbuf = kmalloc(*size, flags); 2451 if (kbuf) 2452 return kbuf;
|
/linux-master/mm/ |
H A D | page_owner.c | 504 static inline int print_page_owner_memcg(char *kbuf, size_t count, int ret, argument 519 ret += scnprintf(kbuf + ret, count - ret, 528 ret += scnprintf(kbuf + ret, count - ret, 546 char *kbuf; local 549 kbuf = kmalloc(count, GFP_KERNEL); 550 if (!kbuf) 553 ret = scnprintf(kbuf, count, 563 ret += scnprintf(kbuf + ret, count - ret, 571 ret += stack_depot_snprint(handle, kbuf + ret, count - ret, 0); 576 ret += scnprintf(kbuf [all...] |
/linux-master/include/linux/ |
H A D | io_uring_types.h | 637 struct io_buffer *kbuf; member in union:io_kiocb::__anon56
|
/linux-master/drivers/scsi/hisi_sas/ |
H A D | hisi_sas_v3_hw.c | 3940 char kbuf[16] = {}, *pkbuf; local 3947 if (count >= sizeof(kbuf)) 3950 if (copy_from_user(kbuf, buf, count)) 3953 pkbuf = strstrip(kbuf); 4015 char kbuf[16] = {}, *pkbuf; local 4022 if (count >= sizeof(kbuf)) 4025 if (copy_from_user(kbuf, buf, count)) 4028 pkbuf = strstrip(kbuf); 4147 char kbuf[16] = {}, *pkbuf; local 4154 if (count >= sizeof(kbuf)) [all...] |
/linux-master/arch/mips/kernel/ |
H A D | ptrace.c | 231 const void *kbuf, const void __user *ubuf) 244 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, 296 const void *kbuf, const void __user *ubuf) 309 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, 461 const void **kbuf, const void __user **ubuf) 463 return user_regset_copyin(pos, count, kbuf, ubuf, 476 const void **kbuf, const void __user **ubuf) 484 err = user_regset_copyin(pos, count, kbuf, ubuf, 510 const void *kbuf, const void __user *ubuf) 525 err = fpr_set_fpa(target, &pos, &count, &kbuf, 228 gpr32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 293 gpr64_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 459 fpr_set_fpa(struct task_struct *target, unsigned int *pos, unsigned int *count, const void **kbuf, const void __user **ubuf) argument 474 fpr_set_msa(struct task_struct *target, unsigned int *pos, unsigned int *count, const void **kbuf, const void __user **ubuf) argument 507 fpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 567 fp_mode_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 652 msa_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 721 dsp32_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 787 dsp64_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument [all...] |
/linux-master/io_uring/ |
H A D | kbuf.h | 118 req->buf_index = req->kbuf->bgid; 119 list_add(&req->kbuf->list, list);
|
H A D | kbuf.c | 16 #include "kbuf.h" 76 buf = req->kbuf; 117 struct io_buffer *kbuf; local 119 kbuf = list_first_entry(&bl->buf_list, struct io_buffer, list); 120 list_del(&kbuf->list); 121 if (*len == 0 || *len > kbuf->len) 122 *len = kbuf->len; 126 req->kbuf = kbuf; 127 req->buf_index = kbuf [all...] |
/linux-master/arch/arm64/kernel/ |
H A D | ptrace.c | 508 const void *kbuf, const void __user *ubuf) 517 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 0, offset); 524 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &addr, 535 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ctrl, 544 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, 564 const void *kbuf, const void __user *ubuf) 569 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newregs, 0, -1); 618 const void *kbuf, const void __user *ubuf, 632 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newstate, 644 const void *kbuf, cons 505 hw_break_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 562 gpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 615 __fpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf, unsigned int start_pos) argument 642 fpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 678 tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 712 fpmr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 740 system_call_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 873 sve_set_common(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf, enum vec_type type) argument 1010 sve_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1036 ssve_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1097 za_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1202 zt_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1272 pac_enabled_keys_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1341 pac_address_keys_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1390 pac_generic_keys_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1427 tagged_addr_ctrl_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1670 compat_gpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1757 compat_vfp_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 1795 compat_tls_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument [all...] |
/linux-master/drivers/scsi/cxlflash/ |
H A D | main.c | 3389 char *kbuf = NULL; local 3415 kbuf = PTR_ALIGN(buf, cache_line_size()); 3420 if (copy_from_user(kbuf, ubuf, ulen)) { 3437 rcb.data_ea = (uintptr_t)kbuf; 3452 if (copy_to_user(ubuf, kbuf, ulen))
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ring.c | 527 u32 *kbuf; local 534 kbuf = kmalloc(ring->mqd_size, GFP_KERNEL); 535 if (!kbuf) 551 kbuf[i] = mqd[i]; 561 value = kbuf[*pos/4]; 571 kfree(kbuf); 577 kfree(kbuf);
|
/linux-master/arch/x86/kernel/fpu/ |
H A D | xstate.h | 50 extern int copy_uabi_from_kernel_to_xstate(struct fpstate *fpstate, const void *kbuf, u32 *pkru);
|
H A D | xstate.c | 1196 const void *kbuf, const void __user *ubuf) 1198 if (kbuf) { 1199 memcpy(dst, kbuf + offset, size); 1211 * @kbuf: The UABI format buffer, if it comes from the kernel 1236 static int copy_uabi_to_xstate(struct fpstate *fpstate, const void *kbuf, argument 1246 if (copy_from_buffer(&hdr, offset, sizeof(hdr), kbuf, ubuf)) 1258 if (copy_from_buffer(mxcsr, offset, sizeof(mxcsr), kbuf, ubuf)) 1281 if (copy_from_buffer(dst, offset, size, kbuf, ubuf)) 1318 int copy_uabi_from_kernel_to_xstate(struct fpstate *fpstate, const void *kbuf, u32 *pkru) argument 1320 return copy_uabi_to_xstate(fpstate, kbuf, NUL 1195 copy_from_buffer(void *dst, unsigned int offset, unsigned int size, const void *kbuf, const void __user *ubuf) argument [all...] |
/linux-master/drivers/rpmsg/ |
H A D | rpmsg_char.c | 255 void *kbuf; local 258 kbuf = kzalloc(len, GFP_KERNEL); 259 if (!kbuf) 262 if (!copy_from_iter_full(kbuf, len, from)) { 278 ret = rpmsg_trysendto(eptdev->ept, kbuf, len, eptdev->chinfo.dst); 282 ret = rpmsg_sendto(eptdev->ept, kbuf, len, eptdev->chinfo.dst); 289 kfree(kbuf);
|
/linux-master/drivers/char/xilinx_hwicap/ |
H A D | xilinx_hwicap.c | 357 u32 *kbuf; local 385 kbuf = (u32 *) get_zeroed_page(GFP_KERNEL); 386 if (!kbuf) { 411 kbuf, words); 415 free_page((unsigned long)kbuf); 420 if (copy_to_user(buf, kbuf, bytes_to_read)) { 421 free_page((unsigned long)kbuf); 426 kbuf, 429 free_page((unsigned long)kbuf); 444 u32 *kbuf; local [all...] |
/linux-master/arch/riscv/kernel/ |
H A D | ptrace.c | 44 const void *kbuf, const void __user *ubuf) 49 return user_regset_copyin(&pos, &count, &kbuf, &ubuf, regs, 0, -1); 70 const void *kbuf, const void __user *ubuf) 75 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fstate, 0, 78 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, fstate, 0, 124 const void *kbuf, const void __user *ubuf) 134 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ptrace_vstate, 0, 149 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, vstate->datap, 327 const void *kbuf, const void __user *ubuf) 332 ret = user_regset_copyin(&pos, &count, &kbuf, 41 riscv_gpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 67 riscv_fpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 121 riscv_vr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument 324 compat_riscv_gpr_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf) argument [all...] |
/linux-master/arch/powerpc/kexec/ |
H A D | file_load_64.c | 130 * for the buffer. If found, sets kbuf->mem. 131 * @kbuf: Buffer contents and memory parameters. 137 static int __locate_mem_hole_top_down(struct kexec_buf *kbuf, argument 165 start = ALIGN(start, kbuf->buf_align); 166 if (start < end && (end - start + 1) >= kbuf->memsz) { 167 /* Suitable memory range found. Set kbuf->mem */ 168 kbuf->mem = ALIGN_DOWN(end - kbuf->memsz + 1, 169 kbuf->buf_align); 181 * @kbuf 188 locate_mem_hole_top_down_ppc64(struct kexec_buf *kbuf, u64 buf_min, u64 buf_max, const struct crash_mem *emem) argument 236 __locate_mem_hole_bottom_up(struct kexec_buf *kbuf, u64 buf_min, u64 buf_max) argument 286 locate_mem_hole_bottom_up_ppc64(struct kexec_buf *kbuf, u64 buf_min, u64 buf_max, const struct crash_mem *emem) argument 727 load_backup_segment(struct kimage *image, struct kexec_buf *kbuf) argument 795 load_elfcorehdr_segment(struct kimage *image, struct kexec_buf *kbuf) argument 843 load_crashdump_segments_ppc64(struct kimage *image, struct kexec_buf *kbuf) argument 1276 arch_kexec_locate_mem_hole(struct kexec_buf *kbuf) argument [all...] |
H A D | elf_64.c | 40 struct kexec_buf kbuf = { .image = image, .buf_min = 0, local 52 kbuf.buf_min = pbuf.buf_min = crashk_res.start; 53 kbuf.buf_max = pbuf.buf_max = 58 ret = kexec_elf_load(image, &ehdr, &elf_info, &kbuf, &kernel_load_addr); 74 ret = load_crashdump_segments_ppc64(image, &kbuf); 92 kbuf.buffer = initrd; 93 kbuf.bufsz = kbuf.memsz = initrd_len; 94 kbuf.buf_align = PAGE_SIZE; 95 kbuf [all...] |
/linux-master/arch/powerpc/include/asm/ |
H A D | kexec.h | 98 int arch_kexec_locate_mem_hole(struct kexec_buf *kbuf); 102 struct kexec_buf *kbuf);
|
/linux-master/drivers/s390/char/ |
H A D | vmur.c | 218 void *kbuf; local 237 kbuf = kmalloc(reclen, GFP_KERNEL | GFP_DMA); 238 if (!kbuf) { 242 cpa[i].cda = virt_to_dma32(kbuf); 243 if (copy_from_user(kbuf, ubuf, reclen)) {
|
/linux-master/kernel/trace/ |
H A D | trace.c | 10097 char *kbuf, *buf, *tmp; local 10102 kbuf = kmalloc(WRITE_BUFSIZE, GFP_KERNEL); 10103 if (!kbuf) 10112 if (copy_from_user(kbuf, buffer + done, size)) { 10116 kbuf[size] = '\0'; 10117 buf = kbuf; 10126 if (buf != kbuf) 10153 kfree(kbuf);
|
/linux-master/fs/dlm/ |
H A D | user.c | 531 struct dlm_write_request *kbuf; local 548 kbuf = memdup_user_nul(buf, count); 549 if (IS_ERR(kbuf)) 550 return PTR_ERR(kbuf); 552 if (check_version(kbuf)) { 558 if (!kbuf->is64bit) { 565 k32buf = (struct dlm_write_request32 *)kbuf; 568 kbuf = kzalloc(sizeof(struct dlm_write_request) + namelen + 1, 570 if (!kbuf) { 578 compat_input(kbuf, k32bu [all...] |
/linux-master/drivers/xen/ |
H A D | evtchn.c | 276 evtchn_port_t *kbuf = (evtchn_port_t *)__get_free_page(GFP_KERNEL); local 279 if (kbuf == NULL) 293 if (copy_from_user(kbuf, buf, count) != 0) 299 evtchn_port_t port = kbuf[i]; 314 free_page((unsigned long)kbuf);
|
/linux-master/drivers/crypto/xilinx/ |
H A D | zynqmp-aes-gcm.c | 89 char *kbuf; local 98 kbuf = dma_alloc_coherent(dev, dma_size, &dma_addr_data, GFP_KERNEL); 99 if (!kbuf) 105 dma_free_coherent(dev, dma_size, kbuf, dma_addr_data); 110 scatterwalk_map_and_copy(kbuf, req->src, 0, req->cryptlen, 0); 111 memcpy(kbuf + data_size, req->iv, GCM_AES_IV_SIZE); 125 memcpy(kbuf + data_size + GCM_AES_IV_SIZE, 161 kbuf, data_size); 165 if (kbuf) { 166 memzero_explicit(kbuf, dma_siz [all...] |
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | lparcfg.c | 671 char kbuf[64]; local 680 if (count > sizeof(kbuf)) 683 if (copy_from_user(kbuf, buf, count)) 686 kbuf[count - 1] = '\0'; 687 tmp = strchr(kbuf, '='); 693 if (!strcmp(kbuf, "partition_entitled_capacity")) { 710 } else if (!strcmp(kbuf, "capacity_weight")) { 717 } else if (!strcmp(kbuf, "entitled_memory")) { 724 } else if (!strcmp(kbuf, "entitled_memory_weight")) {
|
/linux-master/mm/damon/ |
H A D | dbgfs.c | 38 char *kbuf; local 45 kbuf = kmalloc(count + 1, GFP_KERNEL | __GFP_NOWARN); 46 if (!kbuf) 49 ret = simple_write_to_buffer(kbuf, count + 1, ppos, buf, count); 51 kfree(kbuf); 54 kbuf[ret] = '\0'; 56 return kbuf; 63 char kbuf[128]; local 67 ret = scnprintf(kbuf, ARRAY_SIZE(kbuf), " 81 char *kbuf; local 176 char *kbuf; local 301 char *kbuf; local 495 char *kbuf; local 578 char *kbuf; local 673 char *kbuf; local 701 char *kbuf; local 813 static const char kbuf[512] = DAMON_DBGFS_DEPRECATION_NOTICE; local 873 char *kbuf; local 979 char *kbuf; local 1026 char *kbuf; local [all...] |