/kernel/linux/linux-5.10/drivers/xen/ |
D | privcmd.c | 621 struct privcmd_dm_op kdata; in privcmd_ioctl_dm_op() local 630 if (copy_from_user(&kdata, udata, sizeof(kdata))) in privcmd_ioctl_dm_op() 634 if (data->domid != DOMID_INVALID && data->domid != kdata.dom) in privcmd_ioctl_dm_op() 637 if (kdata.num == 0) in privcmd_ioctl_dm_op() 640 if (kdata.num > privcmd_dm_op_max_num) in privcmd_ioctl_dm_op() 643 kbufs = kcalloc(kdata.num, sizeof(*kbufs), GFP_KERNEL); in privcmd_ioctl_dm_op() 647 if (copy_from_user(kbufs, kdata.ubufs, in privcmd_ioctl_dm_op() 648 sizeof(*kbufs) * kdata.num)) { in privcmd_ioctl_dm_op() 653 for (i = 0; i < kdata.num; i++) { in privcmd_ioctl_dm_op() 676 xbufs = kcalloc(kdata.num, sizeof(*xbufs), GFP_KERNEL); in privcmd_ioctl_dm_op() [all …]
|
/kernel/linux/linux-5.10/kernel/ |
D | capability.c | 167 struct __user_cap_data_struct kdata[_KERNEL_CAPABILITY_U32S]; in SYSCALL_DEFINE2() local 171 kdata[i].effective = pE.cap[i]; in SYSCALL_DEFINE2() 172 kdata[i].permitted = pP.cap[i]; in SYSCALL_DEFINE2() 173 kdata[i].inheritable = pI.cap[i]; in SYSCALL_DEFINE2() 195 if (copy_to_user(dataptr, kdata, tocopy in SYSCALL_DEFINE2() 224 struct __user_cap_data_struct kdata[_KERNEL_CAPABILITY_U32S]; in SYSCALL_DEFINE2() local 243 if (copybytes > sizeof(kdata)) in SYSCALL_DEFINE2() 246 if (copy_from_user(&kdata, data, copybytes)) in SYSCALL_DEFINE2() 250 effective.cap[i] = kdata[i].effective; in SYSCALL_DEFINE2() 251 permitted.cap[i] = kdata[i].permitted; in SYSCALL_DEFINE2() [all …]
|
/kernel/linux/linux-5.10/drivers/dma-buf/ |
D | dma-heap.c | 115 char *kdata = stack_kdata; in dma_heap_ioctl() local 140 kdata = kmalloc(ksize, GFP_KERNEL); in dma_heap_ioctl() 141 if (!kdata) in dma_heap_ioctl() 145 if (copy_from_user(kdata, (void __user *)arg, in_size) != 0) { in dma_heap_ioctl() 152 memset(kdata + in_size, 0, ksize - in_size); in dma_heap_ioctl() 156 ret = dma_heap_ioctl_allocate(file, kdata); in dma_heap_ioctl() 163 if (copy_to_user((void __user *)arg, kdata, out_size) != 0) in dma_heap_ioctl() 166 if (kdata != stack_kdata) in dma_heap_ioctl() 167 kfree(kdata); in dma_heap_ioctl()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | bpf_tcp_ca.c | 188 void *kdata, const void *udata) in bpf_tcp_ca_init_member() argument 196 tcp_ca = (struct tcp_congestion_ops *)kdata; in bpf_tcp_ca_init_member() 233 static int bpf_tcp_ca_reg(void *kdata) in bpf_tcp_ca_reg() argument 235 return tcp_register_congestion_control(kdata); in bpf_tcp_ca_reg() 238 static void bpf_tcp_ca_unreg(void *kdata) in bpf_tcp_ca_unreg() argument 240 tcp_unregister_congestion_control(kdata); in bpf_tcp_ca_unreg()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_ioctl.c | 777 long drm_ioctl_kernel(struct file *file, drm_ioctl_t *func, void *kdata, in drm_ioctl_kernel() argument 794 retcode = func(dev, kdata, file_priv); in drm_ioctl_kernel() 797 retcode = func(dev, kdata, file_priv); in drm_ioctl_kernel() 827 char *kdata = NULL; in drm_ioctl() local 880 kdata = stack_kdata; in drm_ioctl() 882 kdata = kmalloc(ksize, GFP_KERNEL); in drm_ioctl() 883 if (!kdata) { in drm_ioctl() 889 if (copy_from_user(kdata, (void __user *)arg, in_size) != 0) { in drm_ioctl() 895 memset(kdata + in_size, 0, ksize - in_size); in drm_ioctl() 897 retcode = drm_ioctl_kernel(filp, func, kdata, ioctl->flags); in drm_ioctl() [all …]
|
/kernel/linux/linux-5.10/kernel/bpf/ |
D | bpf_struct_ops.c | 323 void *udata, *kdata; in bpf_struct_ops_map_update_elem() local 363 kdata = &kvalue->data; in bpf_struct_ops_map_update_elem() 377 *(void **)(kdata + moff) = BPF_MODULE_OWNER; in bpf_struct_ops_map_update_elem() 381 err = st_ops->init_member(t, member, kdata, udata); in bpf_struct_ops_map_update_elem() 443 *(void **)(kdata + moff) = image; in bpf_struct_ops_map_update_elem() 455 err = st_ops->reg(kdata); in bpf_struct_ops_map_update_elem() 632 bool bpf_struct_ops_get(const void *kdata) in bpf_struct_ops_get() argument 636 kvalue = container_of(kdata, struct bpf_struct_ops_value, data); in bpf_struct_ops_get() 641 void bpf_struct_ops_put(const void *kdata) in bpf_struct_ops_put() argument 645 kvalue = container_of(kdata, struct bpf_struct_ops_value, data); in bpf_struct_ops_put()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | radeon_cs.c | 109 r = (struct drm_radeon_cs_reloc *)&chunk->kdata[i*4]; in radeon_cs_parser_relocs() 351 p->chunks[i].kdata = kvmalloc_array(size, sizeof(uint32_t), GFP_KERNEL); in radeon_cs_parser_init() 353 if (p->chunks[i].kdata == NULL) { in radeon_cs_parser_init() 356 if (copy_from_user(p->chunks[i].kdata, cdata, size)) { in radeon_cs_parser_init() 360 p->cs_flags = p->chunks[i].kdata[0]; in radeon_cs_parser_init() 362 ring = p->chunks[i].kdata[1]; in radeon_cs_parser_init() 364 priority = (s32)p->chunks[i].kdata[2]; in radeon_cs_parser_init() 453 kvfree(parser->chunks[i].kdata); in radeon_cs_parser_fini() 653 if (ib_chunk->kdata) in radeon_cs_ib_fill() 654 memcpy(parser->ib.ptr, ib_chunk->kdata, ib_chunk->length_dw * 4); in radeon_cs_ib_fill() [all …]
|
D | radeon.h | 1058 uint32_t *kdata; member 1098 if (ibc->kdata) in radeon_get_ib_value() 1099 return ibc->kdata[idx]; in radeon_get_ib_value()
|
/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/ |
D | habanalabs_ioctl.c | 542 char *kdata = NULL; in _hl_ioctl() local 572 kdata = stack_kdata; in _hl_ioctl() 574 kdata = kzalloc(asize, GFP_KERNEL); in _hl_ioctl() 575 if (!kdata) { in _hl_ioctl() 583 if (copy_from_user(kdata, (void __user *)arg, usize)) { in _hl_ioctl() 588 memset(kdata, 0, usize); in _hl_ioctl() 591 retcode = func(hpriv, kdata); in _hl_ioctl() 593 if ((cmd & IOC_OUT) && copy_to_user((void __user *)arg, kdata, usize)) in _hl_ioctl() 601 if (kdata != stack_kdata) in _hl_ioctl() 602 kfree(kdata); in _hl_ioctl()
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | ptrace.c | 1529 static int compat_ptrace_hbp_get_resource_info(u32 *kdata) in compat_ptrace_hbp_get_resource_info() argument 1547 *kdata = reg; in compat_ptrace_hbp_get_resource_info() 1554 u32 *kdata) in compat_ptrace_hbp_get() argument 1563 *kdata = (u32)addr; in compat_ptrace_hbp_get() 1566 *kdata = ctrl; in compat_ptrace_hbp_get() 1575 u32 *kdata) in compat_ptrace_hbp_set() argument 1583 addr = *kdata; in compat_ptrace_hbp_set() 1586 ctrl = *kdata; in compat_ptrace_hbp_set() 1597 u32 kdata; in compat_ptrace_gethbpregs() local 1601 ret = compat_ptrace_hbp_get(NT_ARM_HW_WATCH, tsk, num, &kdata); in compat_ptrace_gethbpregs() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_cs.c | 173 p->chunks[i].kdata = kvmalloc_array(size, sizeof(uint32_t), GFP_KERNEL); in amdgpu_cs_parser_init() 174 if (p->chunks[i].kdata == NULL) { in amdgpu_cs_parser_init() 180 if (copy_from_user(p->chunks[i].kdata, cdata, size)) { in amdgpu_cs_parser_init() 197 ret = amdgpu_cs_user_fence_chunk(p, p->chunks[i].kdata, in amdgpu_cs_parser_init() 211 ret = amdgpu_cs_bo_handles_chunk(p, p->chunks[i].kdata); in amdgpu_cs_parser_init() 253 kvfree(p->chunks[i].kdata); in amdgpu_cs_parser_init() 709 kvfree(parser->chunks[i].kdata); in amdgpu_cs_parser_fini() 746 chunk_ib = chunk->kdata; in amdgpu_cs_vm_handling() 886 chunk_ib = (struct drm_amdgpu_cs_chunk_ib *)chunk->kdata; in amdgpu_cs_ib_fill() 957 deps = (struct drm_amdgpu_cs_chunk_dep *)chunk->kdata; in amdgpu_cs_process_fence_dep() [all …]
|
D | amdgpu.h | 487 void *kdata; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_chardev.c | 1876 char *kdata = NULL; in kfd_ioctl() local 1921 kdata = stack_kdata; in kfd_ioctl() 1923 kdata = kmalloc(asize, GFP_KERNEL); in kfd_ioctl() 1924 if (!kdata) { in kfd_ioctl() 1930 memset(kdata + usize, 0, asize - usize); in kfd_ioctl() 1934 if (copy_from_user(kdata, (void __user *)arg, usize) != 0) { in kfd_ioctl() 1939 memset(kdata, 0, usize); in kfd_ioctl() 1942 retcode = func(filep, process, kdata); in kfd_ioctl() 1945 if (copy_to_user((void __user *)arg, kdata, usize) != 0) in kfd_ioctl() 1953 if (kdata != stack_kdata) in kfd_ioctl() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | bpf.h | 976 void *kdata, const void *udata); 977 int (*reg)(void *kdata); 978 void (*unreg)(void *kdata); 991 bool bpf_struct_ops_get(const void *kdata); 992 void bpf_struct_ops_put(const void *kdata);
|
/kernel/linux/linux-5.10/tools/power/pm-graph/ |
D | sleepgraph.py | 564 def defaultKprobe(self, name, kdata): argument 565 k = kdata
|