/arch/x86/kvm/svm/ |
D | sev.c | 229 static int sev_guest_init(struct kvm *kvm, struct kvm_sev_cmd *argp) in sev_guest_init() argument 232 bool es_active = argp->id == KVM_SEV_ES_INIT; in sev_guest_init() 248 ret = sev_platform_init(&argp->error); in sev_guest_init() 302 static int sev_launch_start(struct kvm *kvm, struct kvm_sev_cmd *argp) in sev_launch_start() argument 308 int *error = &argp->error; in sev_launch_start() 314 if (copy_from_user(¶ms, (void __user *)(uintptr_t)argp->data, sizeof(params))) in sev_launch_start() 345 ret = __sev_issue_cmd(argp->sev_fd, SEV_CMD_LAUNCH_START, &start, error); in sev_launch_start() 358 if (copy_to_user((void __user *)(uintptr_t)argp->data, ¶ms, sizeof(params))) { in sev_launch_start() 365 sev->fd = argp->sev_fd; in sev_launch_start() 484 static int sev_launch_update_data(struct kvm *kvm, struct kvm_sev_cmd *argp) in sev_launch_update_data() argument [all …]
|
D | svm.h | 553 int svm_mem_enc_op(struct kvm *kvm, void __user *argp);
|
/arch/s390/hypfs/ |
D | hypfs_sprp.c | 115 void __user *argp; in hypfs_sprp_ioctl() local 120 argp = compat_ptr(arg); in hypfs_sprp_ioctl() 122 argp = (void __user *) arg; in hypfs_sprp_ioctl() 125 return __hypfs_sprp_ioctl(argp); in hypfs_sprp_ioctl()
|
/arch/um/drivers/ |
D | harddog_kern.c | 126 void __user *argp= (void __user *)arg; in harddog_ioctl_unlocked() local 136 if(copy_to_user(argp, &ident, sizeof(ident))) in harddog_ioctl_unlocked() 141 return put_user(0,(int __user *)argp); in harddog_ioctl_unlocked()
|
/arch/m68k/kernel/ |
D | time.c | 110 struct rtc_pll_info __user *argp = (void __user *)arg; in rtc_ioctl() local 116 return copy_to_user(argp, &pll, sizeof pll) ? -EFAULT : 0; in rtc_ioctl() 123 if (copy_from_user(&pll, argp, sizeof(pll))) in rtc_ioctl()
|
/arch/m68k/mvme16x/ |
D | rtc.c | 43 void __user *argp = (void __user *)arg; in rtc_ioctl() local 63 return copy_to_user(argp, &wtime, sizeof wtime) ? in rtc_ioctl() 75 if (copy_from_user(&rtc_tm, argp, sizeof(struct rtc_time))) in rtc_ioctl()
|
/arch/m68k/bvme6000/ |
D | rtc.c | 45 void __user *argp = (void __user *)arg; in rtc_ioctl() local 68 return copy_to_user(argp, &wtime, sizeof wtime) ? in rtc_ioctl() 80 if (copy_from_user(&rtc_tm, argp, sizeof(struct rtc_time))) in rtc_ioctl()
|
/arch/sparc/math-emu/ |
D | math_64.c | 165 } *argp; typedef 359 argp rs1 = NULL, rs2 = NULL, rd = NULL; in do_mathemu() 380 case 1: rs1 = (argp)&f->regs[freg]; in do_mathemu() 383 rs1 = (argp)&zero; in do_mathemu() 398 case 1: rs2 = (argp)&f->regs[freg]; in do_mathemu() 401 rs2 = (argp)&zero; in do_mathemu() 416 case 1: rd = (argp)&f->regs[freg]; in do_mathemu()
|
D | math_32.c | 273 } *argp; typedef 284 argp rs1 = NULL, rs2 = NULL, rd = NULL; in do_one_mathemu() 369 rs1 = (argp)&fregs[freg]; in do_one_mathemu() 390 rs2 = (argp)&fregs[freg]; in do_one_mathemu()
|
/arch/arm64/kvm/ |
D | arm.c | 1444 void __user *argp = (void __user *)arg; in kvm_arch_vcpu_ioctl() local 1453 if (copy_from_user(&init, argp, sizeof(init))) in kvm_arch_vcpu_ioctl() 1468 if (copy_from_user(®, argp, sizeof(reg))) in kvm_arch_vcpu_ioctl() 1486 struct kvm_reg_list __user *user_list = argp; in kvm_arch_vcpu_ioctl() 1513 if (copy_from_user(&attr, argp, sizeof(attr))) in kvm_arch_vcpu_ioctl() 1520 if (copy_from_user(&attr, argp, sizeof(attr))) in kvm_arch_vcpu_ioctl() 1527 if (copy_from_user(&attr, argp, sizeof(attr))) in kvm_arch_vcpu_ioctl() 1538 if (copy_to_user(argp, &events, sizeof(events))) in kvm_arch_vcpu_ioctl() 1546 if (copy_from_user(&events, argp, sizeof(events))) in kvm_arch_vcpu_ioctl() 1557 if (get_user(what, (const int __user *)argp)) in kvm_arch_vcpu_ioctl() [all …]
|
/arch/arm/kernel/ |
D | sys_oabi-compat.c | 234 void __user *argp = (void __user *)arg; in sys_oabi_fcntl64() local 248 err = get_oabi_flock(&flock, argp); in sys_oabi_fcntl64() 253 err = put_oabi_flock(&flock, argp); in sys_oabi_fcntl64() 262 err = get_oabi_flock(&flock, argp); in sys_oabi_fcntl64()
|
/arch/powerpc/kvm/ |
D | powerpc.c | 2020 void __user *argp = (void __user *)arg; in kvm_arch_vcpu_async_ioctl() local 2024 if (copy_from_user(&irq, argp, sizeof(irq))) in kvm_arch_vcpu_async_ioctl() 2035 void __user *argp = (void __user *)arg; in kvm_arch_vcpu_ioctl() local 2043 if (copy_from_user(&cap, argp, sizeof(cap))) in kvm_arch_vcpu_ioctl() 2056 if (copy_from_user(®, argp, sizeof(reg))) in kvm_arch_vcpu_ioctl() 2069 if (copy_from_user(&dirty, argp, sizeof(dirty))) in kvm_arch_vcpu_ioctl() 2336 void __user *argp = (void __user *)arg; in kvm_arch_vm_ioctl() local 2344 if (copy_to_user(argp, &pvinfo, sizeof(pvinfo))) { in kvm_arch_vm_ioctl() 2356 if (copy_from_user(&create_tce_64, argp, sizeof(create_tce_64))) in kvm_arch_vm_ioctl() 2370 if (copy_from_user(&create_tce, argp, sizeof(create_tce))) in kvm_arch_vm_ioctl() [all …]
|
D | book3s_rtas.c | 198 int kvm_vm_ioctl_rtas_define_token(struct kvm *kvm, void __user *argp) in kvm_vm_ioctl_rtas_define_token() argument 203 if (copy_from_user(&args, argp, sizeof(args))) in kvm_vm_ioctl_rtas_define_token()
|
D | book3s_hv.c | 5609 void __user *argp = (void __user *)arg; in kvm_arch_vm_ioctl_hv() local 5624 if (get_user(htab_order, (u32 __user *)argp)) in kvm_arch_vm_ioctl_hv() 5637 if (copy_from_user(&ghf, argp, sizeof(ghf))) in kvm_arch_vm_ioctl_hv() 5647 if (copy_from_user(&rhpt, argp, sizeof(rhpt))) in kvm_arch_vm_ioctl_hv() 5658 if (copy_from_user(&rhpt, argp, sizeof(rhpt))) in kvm_arch_vm_ioctl_hv()
|
/arch/x86/kvm/ |
D | x86.c | 4265 void __user *argp = (void __user *)arg; in kvm_arch_dev_ioctl() local 4270 struct kvm_msr_list __user *user_msr_list = argp; in kvm_arch_dev_ioctl() 4297 struct kvm_cpuid2 __user *cpuid_arg = argp; in kvm_arch_dev_ioctl() 4317 if (copy_to_user(argp, &kvm_mce_cap_supported, in kvm_arch_dev_ioctl() 4323 struct kvm_msr_list __user *user_msr_list = argp; in kvm_arch_dev_ioctl() 4345 r = msr_io(NULL, argp, do_get_msr_feature, 1); in kvm_arch_dev_ioctl() 4348 r = kvm_ioctl_get_supported_hv_cpuid(NULL, argp); in kvm_arch_dev_ioctl() 5112 void __user *argp = (void __user *)arg; in kvm_arch_vcpu_ioctl() local 5140 if (copy_to_user(argp, u.lapic, sizeof(struct kvm_lapic_state))) in kvm_arch_vcpu_ioctl() 5149 u.lapic = memdup_user(argp, sizeof(*u.lapic)); in kvm_arch_vcpu_ioctl() [all …]
|
D | pmu.c | 484 int kvm_vm_ioctl_set_pmu_event_filter(struct kvm *kvm, void __user *argp) in kvm_vm_ioctl_set_pmu_event_filter() argument 490 if (copy_from_user(&tmp, argp, sizeof(tmp))) in kvm_vm_ioctl_set_pmu_event_filter() 509 if (copy_from_user(filter, argp, size)) in kvm_vm_ioctl_set_pmu_event_filter()
|
D | pmu.h | 169 int kvm_vm_ioctl_set_pmu_event_filter(struct kvm *kvm, void __user *argp);
|
/arch/mips/kvm/ |
D | mips.c | 889 void __user *argp = (void __user *)arg; in kvm_arch_vcpu_async_ioctl() local 894 if (copy_from_user(&irq, argp, sizeof(irq))) in kvm_arch_vcpu_async_ioctl() 909 void __user *argp = (void __user *)arg; in kvm_arch_vcpu_ioctl() local 920 if (copy_from_user(®, argp, sizeof(reg))) in kvm_arch_vcpu_ioctl() 929 struct kvm_reg_list __user *user_list = argp; in kvm_arch_vcpu_ioctl() 950 if (copy_from_user(&cap, argp, sizeof(cap))) in kvm_arch_vcpu_ioctl()
|
/arch/s390/kvm/ |
D | kvm-s390.c | 2272 void __user *argp = (void __user *)cmd->data; in kvm_s390_handle_pv() local 2334 if (copy_from_user(&parms, argp, sizeof(parms))) in kvm_s390_handle_pv() 2364 if (copy_from_user(&unp, argp, sizeof(unp))) in kvm_s390_handle_pv() 2414 void __user *argp = (void __user *)arg; in kvm_arch_vm_ioctl() local 2423 if (copy_from_user(&s390int, argp, sizeof(s390int))) in kvm_arch_vm_ioctl() 2464 if (copy_from_user(&args, argp, in kvm_arch_vm_ioctl() 2474 if (copy_from_user(&args, argp, in kvm_arch_vm_ioctl() 2484 if (copy_from_user(&args, argp, sizeof(args))) in kvm_arch_vm_ioctl() 2490 r = copy_to_user(argp, &args, sizeof(args)); in kvm_arch_vm_ioctl() 2500 if (copy_from_user(&args, argp, sizeof(args))) in kvm_arch_vm_ioctl() [all …]
|
/arch/s390/pci/ |
D | pci_clp.c | 628 void __user *argp; in clp_misc_ioctl() local 633 argp = is_compat_task() ? compat_ptr(arg) : (void __user *) arg; in clp_misc_ioctl() 634 if (copy_from_user(&req, argp, sizeof(req))) in clp_misc_ioctl()
|
/arch/x86/include/asm/ |
D | kvm_host.h | 1477 int (*mem_enc_op)(struct kvm *kvm, void __user *argp); 1478 int (*mem_enc_reg_region)(struct kvm *kvm, struct kvm_enc_region *argp); 1479 int (*mem_enc_unreg_region)(struct kvm *kvm, struct kvm_enc_region *argp);
|
/arch/powerpc/include/asm/ |
D | kvm_ppc.h | 229 extern int kvm_vm_ioctl_rtas_define_token(struct kvm *kvm, void __user *argp);
|