/linux-master/tools/testing/selftests/bpf/bpf_test_no_cfi/ |
H A D | bpf_test_no_cfi.c | 20 void *kdata, const void *udata) 25 static int dummy_reg(void *kdata) argument 30 static void dummy_unreg(void *kdata) argument 18 dummy_init_member(const struct btf_type *t, const struct btf_member *member, void *kdata, const void *udata) argument
|
/linux-master/kernel/ |
H A D | capability.c | 147 struct __user_cap_data_struct kdata[2]; local 168 kdata[0].effective = pE.val; kdata[1].effective = pE.val >> 32; 169 kdata[0].permitted = pP.val; kdata[1].permitted = pP.val >> 32; 170 kdata[0].inheritable = pI.val; kdata[1].inheritable = pI.val >> 32; 191 if (copy_to_user(dataptr, kdata, tocopy * sizeof(kdata[0]))) 222 struct __user_cap_data_struct kdata[ local [all...] |
/linux-master/drivers/dma-buf/ |
H A D | dma-heap.c | 130 char *kdata = stack_kdata; local 155 kdata = kmalloc(ksize, GFP_KERNEL); 156 if (!kdata) 160 if (copy_from_user(kdata, (void __user *)arg, in_size) != 0) { 167 memset(kdata + in_size, 0, ksize - in_size); 171 ret = dma_heap_ioctl_allocate(file, kdata); 178 if (copy_to_user((void __user *)arg, kdata, out_size) != 0) 181 if (kdata != stack_kdata) 182 kfree(kdata);
|
/linux-master/net/ipv4/ |
H A D | bpf_tcp_ca.c | 228 void *kdata, const void *udata) 235 tcp_ca = (struct tcp_congestion_ops *)kdata; 263 static int bpf_tcp_ca_reg(void *kdata) argument 265 return tcp_register_congestion_control(kdata); 268 static void bpf_tcp_ca_unreg(void *kdata) argument 270 tcp_unregister_congestion_control(kdata); 273 static int bpf_tcp_ca_update(void *kdata, void *old_kdata) argument 275 return tcp_update_congestion_control(kdata, old_kdata); 278 static int bpf_tcp_ca_validate(void *kdata) argument 280 return tcp_validate_congestion_control(kdata); 226 bpf_tcp_ca_init_member(const struct btf_type *t, const struct btf_member *member, void *kdata, const void *udata) argument [all...] |
/linux-master/kernel/trace/ |
H A D | trace_hwlat.c | 165 struct hwlat_kthread_data *kdata = get_cpu_data(); local 167 if (!kdata->kthread) 176 kdata->nmi_ts_start = time_get(); 178 kdata->nmi_total_ts += time_get() - kdata->nmi_ts_start; 182 kdata->nmi_count++; 203 struct hwlat_kthread_data *kdata = get_cpu_data(); local 216 kdata->nmi_total_ts = 0; 217 kdata->nmi_count = 0; 287 if (kdata 398 struct hwlat_kthread_data *kdata = get_cpu_data(); local 423 struct hwlat_kthread_data *kdata = get_cpu_data(); local [all...] |
/linux-master/drivers/xen/ |
H A D | privcmd.c | 629 struct privcmd_dm_op kdata; local 638 if (copy_from_user(&kdata, udata, sizeof(kdata))) 642 if (data->domid != DOMID_INVALID && data->domid != kdata.dom) 645 if (kdata.num == 0) 648 if (kdata.num > privcmd_dm_op_max_num) 651 kbufs = kcalloc(kdata.num, sizeof(*kbufs), GFP_KERNEL); 655 if (copy_from_user(kbufs, kdata.ubufs, 656 sizeof(*kbufs) * kdata.num)) { 661 for (i = 0; i < kdata 735 struct privcmd_mmap_resource kdata; local [all...] |
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_cs.h | 40 void *kdata; member in struct:amdgpu_cs_chunk
|
H A D | amdgpu_cs.c | 227 p->chunks[i].kdata = kvmalloc_array(size, sizeof(uint32_t), 229 if (p->chunks[i].kdata == NULL) { 235 if (copy_from_user(p->chunks[i].kdata, cdata, size)) { 247 ret = amdgpu_cs_p1_ib(p, p->chunks[i].kdata, num_ibs); 256 ret = amdgpu_cs_p1_user_fence(p, p->chunks[i].kdata, 266 ret = amdgpu_cs_p1_bo_handles(p, p->chunks[i].kdata); 316 kvfree(p->chunks[i].kdata); 331 struct drm_amdgpu_cs_chunk_ib *chunk_ib = chunk->kdata; 384 struct drm_amdgpu_cs_chunk_dep *deps = chunk->kdata; 456 struct drm_amdgpu_cs_chunk_sem *deps = chunk->kdata; [all...] |
/linux-master/drivers/gpu/drm/ |
H A D | drm_ioctl.c | 727 long drm_ioctl_kernel(struct file *file, drm_ioctl_t *func, void *kdata, argument 744 return func(dev, kdata, file_priv); 771 char *kdata = NULL; local 824 kdata = stack_kdata; 826 kdata = kmalloc(ksize, GFP_KERNEL); 827 if (!kdata) { 833 if (copy_from_user(kdata, (void __user *)arg, in_size) != 0) { 839 memset(kdata + in_size, 0, ksize - in_size); 841 retcode = drm_ioctl_kernel(filp, func, kdata, ioctl->flags); 842 if (copy_to_user((void __user *)arg, kdata, out_siz [all...] |
/linux-master/drivers/gpu/drm/radeon/ |
H A D | radeon_cs.c | 109 r = (struct drm_radeon_cs_reloc *)&chunk->kdata[i*4]; 351 p->chunks[i].kdata = kvmalloc_array(size, sizeof(uint32_t), GFP_KERNEL); 353 if (p->chunks[i].kdata == NULL) { 356 if (copy_from_user(p->chunks[i].kdata, cdata, size)) { 360 p->cs_flags = p->chunks[i].kdata[0]; 362 ring = p->chunks[i].kdata[1]; 364 priority = (s32)p->chunks[i].kdata[2]; 458 kvfree(parser->chunks[i].kdata); 662 if (ib_chunk->kdata) 663 memcpy(parser->ib.ptr, ib_chunk->kdata, ib_chun [all...] |
H A D | radeon.h | 1013 uint32_t *kdata; member in struct:radeon_cs_chunk 1053 if (ibc->kdata) 1054 return ibc->kdata[idx];
|
/linux-master/net/bpf/ |
H A D | bpf_dummy_struct_ops.c | 270 void *kdata, const void *udata) 275 static int bpf_dummy_reg(void *kdata) argument 280 static void bpf_dummy_unreg(void *kdata) argument 268 bpf_dummy_init_member(const struct btf_type *t, const struct btf_member *member, void *kdata, const void *udata) argument
|
/linux-master/kernel/bpf/ |
H A D | bpf_struct_ops.c | 598 void *udata, *kdata; local 638 kdata = &kvalue->data; 652 *(void **)(kdata + moff) = BPF_MODULE_OWNER; 656 err = st_ops->init_member(t, member, kdata, udata); 732 *(void **)(kdata + moff) = image + trampoline_start + cfi_get_offset(); 739 err = st_ops->validate(kdata); 760 err = st_ops->reg(kdata); 1017 bool bpf_struct_ops_get(const void *kdata) argument 1023 kvalue = container_of(kdata, struct bpf_struct_ops_value, data); 1030 void bpf_struct_ops_put(const void *kdata) argument [all...] |
/linux-master/arch/arm64/kernel/ |
H A D | ptrace.c | 1966 static int compat_ptrace_hbp_get_resource_info(u32 *kdata) argument 1984 *kdata = reg; 1991 u32 *kdata) 2000 *kdata = (u32)addr; 2003 *kdata = ctrl; 2012 u32 *kdata) 2020 addr = *kdata; 2023 ctrl = *kdata; 2034 u32 kdata; local 2038 ret = compat_ptrace_hbp_get(NT_ARM_HW_WATCH, tsk, num, &kdata); 1988 compat_ptrace_hbp_get(unsigned int note_type, struct task_struct *tsk, compat_long_t num, u32 *kdata) argument 2009 compat_ptrace_hbp_set(unsigned int note_type, struct task_struct *tsk, compat_long_t num, u32 *kdata) argument 2057 u32 kdata = 0; local [all...] |
/linux-master/tools/testing/selftests/bpf/bpf_testmod/ |
H A D | bpf_testmod.c | 800 void *kdata, const void *udata) 808 ((struct bpf_testmod_ops *)kdata)->data = ((struct bpf_testmod_ops *)udata)->data; 823 static int bpf_dummy_reg(void *kdata) argument 825 struct bpf_testmod_ops *ops = kdata; 838 static void bpf_dummy_unreg(void *kdata) argument 874 static int bpf_dummy_reg2(void *kdata) argument 876 struct bpf_testmod_ops2 *ops = kdata; 798 bpf_testmod_ops_init_member(const struct btf_type *t, const struct btf_member *member, void *kdata, const void *udata) argument
|
/linux-master/drivers/accel/habanalabs/common/ |
H A D | habanalabs_ioctl.c | 1235 char *kdata = NULL; local 1259 kdata = stack_kdata; 1261 kdata = kzalloc(asize, GFP_KERNEL); 1262 if (!kdata) { 1270 if (copy_from_user(kdata, (void __user *)arg, usize)) { 1276 retcode = func(hpriv, kdata); 1278 if ((cmd & IOC_OUT) && copy_to_user((void __user *)arg, kdata, usize)) 1290 if (kdata != stack_kdata) 1291 kfree(kdata);
|
/linux-master/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | conntrack.c | 821 u8 *key, *msk, *kdata, *mdata; local 868 kdata = flow_pay->unmasked_data; 872 key = kdata + offset; 880 key = kdata + offset; 893 key = kdata + offset; 916 key = kdata + offset; 926 key = kdata + offset; 942 key = kdata + offset; 953 key = kdata + offset; 964 key = kdata [all...] |
/linux-master/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_chardev.c | 3240 char *kdata = NULL; local 3307 kdata = stack_kdata; 3309 kdata = kmalloc(asize, GFP_KERNEL); 3310 if (!kdata) { 3316 memset(kdata + usize, 0, asize - usize); 3320 if (copy_from_user(kdata, (void __user *)arg, usize) != 0) { 3325 memset(kdata, 0, usize); 3328 retcode = func(filep, process, kdata); 3331 if (copy_to_user((void __user *)arg, kdata, usize) != 0) 3339 if (kdata ! [all...] |
/linux-master/include/linux/ |
H A D | bpf.h | 1732 void *kdata, const void *udata); 1733 int (*reg)(void *kdata); 1734 void (*unreg)(void *kdata); 1735 int (*update)(void *kdata, void *old_kdata); 1736 int (*validate)(void *kdata); 1795 bool bpf_struct_ops_get(const void *kdata); 1796 void bpf_struct_ops_put(const void *kdata);
|
/linux-master/tools/power/pm-graph/ |
H A D | sleepgraph.py | 606 def defaultKprobe(self, name, kdata): 607 k = kdata
|