/linux-6.6.21/kernel/ |
D | capability.c | 147 struct __user_cap_data_struct kdata[2]; in SYSCALL_DEFINE2() local 168 kdata[0].effective = pE.val; kdata[1].effective = pE.val >> 32; in SYSCALL_DEFINE2() 169 kdata[0].permitted = pP.val; kdata[1].permitted = pP.val >> 32; in SYSCALL_DEFINE2() 170 kdata[0].inheritable = pI.val; kdata[1].inheritable = pI.val >> 32; in SYSCALL_DEFINE2() 191 if (copy_to_user(dataptr, kdata, tocopy * sizeof(kdata[0]))) in SYSCALL_DEFINE2() 222 struct __user_cap_data_struct kdata[2] = { { 0, }, }; in SYSCALL_DEFINE2() local 241 if (copybytes > sizeof(kdata)) in SYSCALL_DEFINE2() 244 if (copy_from_user(&kdata, data, copybytes)) in SYSCALL_DEFINE2() 247 effective = mk_kernel_cap(kdata[0].effective, kdata[1].effective); in SYSCALL_DEFINE2() 248 permitted = mk_kernel_cap(kdata[0].permitted, kdata[1].permitted); in SYSCALL_DEFINE2() [all …]
|
/linux-6.6.21/drivers/xen/ |
D | privcmd.c | 626 struct privcmd_dm_op kdata; in privcmd_ioctl_dm_op() local 635 if (copy_from_user(&kdata, udata, sizeof(kdata))) in privcmd_ioctl_dm_op() 639 if (data->domid != DOMID_INVALID && data->domid != kdata.dom) in privcmd_ioctl_dm_op() 642 if (kdata.num == 0) in privcmd_ioctl_dm_op() 645 if (kdata.num > privcmd_dm_op_max_num) in privcmd_ioctl_dm_op() 648 kbufs = kcalloc(kdata.num, sizeof(*kbufs), GFP_KERNEL); in privcmd_ioctl_dm_op() 652 if (copy_from_user(kbufs, kdata.ubufs, in privcmd_ioctl_dm_op() 653 sizeof(*kbufs) * kdata.num)) { in privcmd_ioctl_dm_op() 658 for (i = 0; i < kdata.num; i++) { in privcmd_ioctl_dm_op() 681 xbufs = kcalloc(kdata.num, sizeof(*xbufs), GFP_KERNEL); in privcmd_ioctl_dm_op() [all …]
|
/linux-6.6.21/net/ipv4/ |
D | bpf_tcp_ca.c | 219 void *kdata, const void *udata) in bpf_tcp_ca_init_member() argument 226 tcp_ca = (struct tcp_congestion_ops *)kdata; in bpf_tcp_ca_init_member() 254 static int bpf_tcp_ca_reg(void *kdata) in bpf_tcp_ca_reg() argument 256 return tcp_register_congestion_control(kdata); in bpf_tcp_ca_reg() 259 static void bpf_tcp_ca_unreg(void *kdata) in bpf_tcp_ca_unreg() argument 261 tcp_unregister_congestion_control(kdata); in bpf_tcp_ca_unreg() 264 static int bpf_tcp_ca_update(void *kdata, void *old_kdata) in bpf_tcp_ca_update() argument 266 return tcp_update_congestion_control(kdata, old_kdata); in bpf_tcp_ca_update() 269 static int bpf_tcp_ca_validate(void *kdata) in bpf_tcp_ca_validate() argument 271 return tcp_validate_congestion_control(kdata); in bpf_tcp_ca_validate()
|
/linux-6.6.21/kernel/trace/ |
D | trace_hwlat.c | 165 struct hwlat_kthread_data *kdata = get_cpu_data(); in trace_hwlat_callback() local 167 if (!kdata->kthread) in trace_hwlat_callback() 176 kdata->nmi_ts_start = time_get(); in trace_hwlat_callback() 178 kdata->nmi_total_ts += time_get() - kdata->nmi_ts_start; in trace_hwlat_callback() 182 kdata->nmi_count++; in trace_hwlat_callback() 203 struct hwlat_kthread_data *kdata = get_cpu_data(); in get_sample() local 216 kdata->nmi_total_ts = 0; in get_sample() 217 kdata->nmi_count = 0; in get_sample() 287 if (kdata->nmi_total_ts) in get_sample() 288 do_div(kdata->nmi_total_ts, NSEC_PER_USEC); in get_sample() [all …]
|
/linux-6.6.21/drivers/dma-buf/ |
D | dma-heap.c | 130 char *kdata = stack_kdata; in dma_heap_ioctl() local 155 kdata = kmalloc(ksize, GFP_KERNEL); in dma_heap_ioctl() 156 if (!kdata) in dma_heap_ioctl() 160 if (copy_from_user(kdata, (void __user *)arg, in_size) != 0) { in dma_heap_ioctl() 167 memset(kdata + in_size, 0, ksize - in_size); in dma_heap_ioctl() 171 ret = dma_heap_ioctl_allocate(file, kdata); in dma_heap_ioctl() 178 if (copy_to_user((void __user *)arg, kdata, out_size) != 0) in dma_heap_ioctl() 181 if (kdata != stack_kdata) in dma_heap_ioctl() 182 kfree(kdata); in dma_heap_ioctl()
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_ioctl.c | 772 long drm_ioctl_kernel(struct file *file, drm_ioctl_t *func, void *kdata, in drm_ioctl_kernel() argument 792 retcode = func(dev, kdata, file_priv); in drm_ioctl_kernel() 795 retcode = func(dev, kdata, file_priv); in drm_ioctl_kernel() 825 char *kdata = NULL; in drm_ioctl() local 878 kdata = stack_kdata; in drm_ioctl() 880 kdata = kmalloc(ksize, GFP_KERNEL); in drm_ioctl() 881 if (!kdata) { in drm_ioctl() 887 if (copy_from_user(kdata, (void __user *)arg, in_size) != 0) { in drm_ioctl() 893 memset(kdata + in_size, 0, ksize - in_size); in drm_ioctl() 895 retcode = drm_ioctl_kernel(filp, func, kdata, ioctl->flags); in drm_ioctl() [all …]
|
/linux-6.6.21/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() 458 kvfree(parser->chunks[i].kdata); in radeon_cs_parser_fini() 662 if (ib_chunk->kdata) in radeon_cs_ib_fill() 663 memcpy(parser->ib.ptr, ib_chunk->kdata, ib_chunk->length_dw * 4); in radeon_cs_ib_fill() [all …]
|
D | radeon.h | 1014 uint32_t *kdata; member 1054 if (ibc->kdata) in radeon_get_ib_value() 1055 return ibc->kdata[idx]; in radeon_get_ib_value()
|
/linux-6.6.21/kernel/bpf/ |
D | bpf_struct_ops.c | 378 void *udata, *kdata; in bpf_struct_ops_map_update_elem() local 418 kdata = &kvalue->data; in bpf_struct_ops_map_update_elem() 433 *(void **)(kdata + moff) = BPF_MODULE_OWNER; in bpf_struct_ops_map_update_elem() 437 err = st_ops->init_member(t, member, kdata, udata); in bpf_struct_ops_map_update_elem() 504 *(void **)(kdata + moff) = image; in bpf_struct_ops_map_update_elem() 514 err = st_ops->validate(kdata); in bpf_struct_ops_map_update_elem() 528 err = st_ops->reg(kdata); in bpf_struct_ops_map_update_elem() 733 bool bpf_struct_ops_get(const void *kdata) in bpf_struct_ops_get() argument 739 kvalue = container_of(kdata, struct bpf_struct_ops_value, data); in bpf_struct_ops_get() 746 void bpf_struct_ops_put(const void *kdata) in bpf_struct_ops_put() argument [all …]
|
/linux-6.6.21/net/bpf/ |
D | bpf_dummy_struct_ops.c | 209 void *kdata, const void *udata) in bpf_dummy_init_member() argument 214 static int bpf_dummy_reg(void *kdata) in bpf_dummy_reg() argument 219 static void bpf_dummy_unreg(void *kdata) in bpf_dummy_unreg() argument
|
/linux-6.6.21/arch/arm64/kernel/ |
D | ptrace.c | 1926 static int compat_ptrace_hbp_get_resource_info(u32 *kdata) in compat_ptrace_hbp_get_resource_info() argument 1944 *kdata = reg; in compat_ptrace_hbp_get_resource_info() 1951 u32 *kdata) in compat_ptrace_hbp_get() argument 1960 *kdata = (u32)addr; in compat_ptrace_hbp_get() 1963 *kdata = ctrl; in compat_ptrace_hbp_get() 1972 u32 *kdata) in compat_ptrace_hbp_set() argument 1980 addr = *kdata; in compat_ptrace_hbp_set() 1983 ctrl = *kdata; in compat_ptrace_hbp_set() 1994 u32 kdata; in compat_ptrace_gethbpregs() local 1998 ret = compat_ptrace_hbp_get(NT_ARM_HW_WATCH, tsk, num, &kdata); in compat_ptrace_gethbpregs() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_cs.c | 227 p->chunks[i].kdata = kvmalloc_array(size, sizeof(uint32_t), in amdgpu_cs_pass1() 229 if (p->chunks[i].kdata == NULL) { in amdgpu_cs_pass1() 235 if (copy_from_user(p->chunks[i].kdata, cdata, size)) { in amdgpu_cs_pass1() 247 ret = amdgpu_cs_p1_ib(p, p->chunks[i].kdata, num_ibs); in amdgpu_cs_pass1() 256 ret = amdgpu_cs_p1_user_fence(p, p->chunks[i].kdata, in amdgpu_cs_pass1() 266 ret = amdgpu_cs_p1_bo_handles(p, p->chunks[i].kdata); in amdgpu_cs_pass1() 316 kvfree(p->chunks[i].kdata); in amdgpu_cs_pass1() 331 struct drm_amdgpu_cs_chunk_ib *chunk_ib = chunk->kdata; in amdgpu_cs_p2_ib() 384 struct drm_amdgpu_cs_chunk_dep *deps = chunk->kdata; in amdgpu_cs_p2_dependencies() 456 struct drm_amdgpu_cs_chunk_sem *deps = chunk->kdata; in amdgpu_cs_p2_syncobj_in() [all …]
|
D | amdgpu_cs.h | 40 void *kdata; member
|
/linux-6.6.21/drivers/accel/habanalabs/common/ |
D | habanalabs_ioctl.c | 1150 char *kdata = NULL; in _hl_ioctl() local 1174 kdata = stack_kdata; in _hl_ioctl() 1176 kdata = kzalloc(asize, GFP_KERNEL); in _hl_ioctl() 1177 if (!kdata) { in _hl_ioctl() 1185 if (copy_from_user(kdata, (void __user *)arg, usize)) { in _hl_ioctl() 1191 retcode = func(hpriv, kdata); in _hl_ioctl() 1193 if ((cmd & IOC_OUT) && copy_to_user((void __user *)arg, kdata, usize)) in _hl_ioctl() 1201 if (kdata != stack_kdata) in _hl_ioctl() 1202 kfree(kdata); in _hl_ioctl()
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/flower/ |
D | conntrack.c | 821 u8 *key, *msk, *kdata, *mdata; in nfp_fl_ct_add_offload() local 868 kdata = flow_pay->unmasked_data; in nfp_fl_ct_add_offload() 872 key = kdata + offset; in nfp_fl_ct_add_offload() 880 key = kdata + offset; in nfp_fl_ct_add_offload() 893 key = kdata + offset; in nfp_fl_ct_add_offload() 916 key = kdata + offset; in nfp_fl_ct_add_offload() 926 key = kdata + offset; in nfp_fl_ct_add_offload() 942 key = kdata + offset; in nfp_fl_ct_add_offload() 953 key = kdata + offset; in nfp_fl_ct_add_offload() 964 key = kdata + offset; in nfp_fl_ct_add_offload() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_chardev.c | 3234 char *kdata = NULL; in kfd_ioctl() local 3301 kdata = stack_kdata; in kfd_ioctl() 3303 kdata = kmalloc(asize, GFP_KERNEL); in kfd_ioctl() 3304 if (!kdata) { in kfd_ioctl() 3310 memset(kdata + usize, 0, asize - usize); in kfd_ioctl() 3314 if (copy_from_user(kdata, (void __user *)arg, usize) != 0) { in kfd_ioctl() 3319 memset(kdata, 0, usize); in kfd_ioctl() 3322 retcode = func(filep, process, kdata); in kfd_ioctl() 3325 if (copy_to_user((void __user *)arg, kdata, usize) != 0) in kfd_ioctl() 3333 if (kdata != stack_kdata) in kfd_ioctl() [all …]
|
/linux-6.6.21/include/linux/ |
D | bpf.h | 1627 void *kdata, const void *udata); 1628 int (*reg)(void *kdata); 1629 void (*unreg)(void *kdata); 1630 int (*update)(void *kdata, void *old_kdata); 1631 int (*validate)(void *kdata); 1644 bool bpf_struct_ops_get(const void *kdata); 1645 void bpf_struct_ops_put(const void *kdata);
|
/linux-6.6.21/tools/power/pm-graph/ |
D | sleepgraph.py | 606 def defaultKprobe(self, name, kdata): argument 607 k = kdata
|