Home
last modified time | relevance | path

Searched refs:argp (Results 1 – 19 of 19) sorted by relevance

/arch/s390/hypfs/
Dhypfs_sprp.c116 void __user *argp; in hypfs_sprp_ioctl() local
121 argp = compat_ptr(arg); in hypfs_sprp_ioctl()
123 argp = (void __user *) arg; in hypfs_sprp_ioctl()
126 return __hypfs_sprp_ioctl(argp); in hypfs_sprp_ioctl()
/arch/m68k/kernel/
Dtime.c111 struct rtc_pll_info __user *argp = (void __user *)arg; in rtc_ioctl() local
117 return copy_to_user(argp, &pll, sizeof pll) ? -EFAULT : 0; in rtc_ioctl()
124 if (copy_from_user(&pll, argp, sizeof(pll))) in rtc_ioctl()
/arch/um/drivers/
Dharddog_kern.c131 void __user *argp= (void __user *)arg; in harddog_ioctl_unlocked() local
141 if(copy_to_user(argp, &ident, sizeof(ident))) in harddog_ioctl_unlocked()
146 return put_user(0,(int __user *)argp); in harddog_ioctl_unlocked()
/arch/m68k/mvme16x/
Drtc.c43 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/
Drtc.c45 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/
Dmath_64.c165 } *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()
Dmath_32.c273 } *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/x86/kvm/
Dpmu.c387 int kvm_vm_ioctl_set_pmu_event_filter(struct kvm *kvm, void __user *argp) in kvm_vm_ioctl_set_pmu_event_filter() argument
393 if (copy_from_user(&tmp, argp, sizeof(tmp))) in kvm_vm_ioctl_set_pmu_event_filter()
412 if (copy_from_user(filter, argp, size)) in kvm_vm_ioctl_set_pmu_event_filter()
Dx86.c3333 void __user *argp = (void __user *)arg; in kvm_arch_dev_ioctl() local
3338 struct kvm_msr_list __user *user_msr_list = argp; in kvm_arch_dev_ioctl()
3365 struct kvm_cpuid2 __user *cpuid_arg = argp; in kvm_arch_dev_ioctl()
3385 if (copy_to_user(argp, &kvm_mce_cap_supported, in kvm_arch_dev_ioctl()
3391 struct kvm_msr_list __user *user_msr_list = argp; in kvm_arch_dev_ioctl()
3413 r = msr_io(NULL, argp, do_get_msr_feature, 1); in kvm_arch_dev_ioctl()
4111 void __user *argp = (void __user *)arg; in kvm_arch_vcpu_ioctl() local
4138 if (copy_to_user(argp, u.lapic, sizeof(struct kvm_lapic_state))) in kvm_arch_vcpu_ioctl()
4147 u.lapic = memdup_user(argp, sizeof(*u.lapic)); in kvm_arch_vcpu_ioctl()
4160 if (copy_from_user(&irq, argp, sizeof(irq))) in kvm_arch_vcpu_ioctl()
[all …]
Dpmu.h121 int kvm_vm_ioctl_set_pmu_event_filter(struct kvm *kvm, void __user *argp);
Dsvm.c6288 static int sev_guest_init(struct kvm *kvm, struct kvm_sev_cmd *argp) in sev_guest_init() argument
6301 ret = sev_platform_init(&argp->error); in sev_guest_init()
6363 static int sev_launch_start(struct kvm *kvm, struct kvm_sev_cmd *argp) in sev_launch_start() argument
6369 int *error = &argp->error; in sev_launch_start()
6375 if (copy_from_user(&params, (void __user *)(uintptr_t)argp->data, sizeof(params))) in sev_launch_start()
6410 ret = __sev_issue_cmd(argp->sev_fd, SEV_CMD_LAUNCH_START, start, error); in sev_launch_start()
6421 if (copy_to_user((void __user *)(uintptr_t)argp->data, &params, sizeof(params))) { in sev_launch_start()
6428 sev->fd = argp->sev_fd; in sev_launch_start()
6460 static int sev_launch_update_data(struct kvm *kvm, struct kvm_sev_cmd *argp) in sev_launch_update_data() argument
6472 if (copy_from_user(&params, (void __user *)(uintptr_t)argp->data, sizeof(params))) in sev_launch_update_data()
[all …]
/arch/powerpc/kvm/
Dpowerpc.c2015 void __user *argp = (void __user *)arg; in kvm_arch_vcpu_async_ioctl() local
2019 if (copy_from_user(&irq, argp, sizeof(irq))) in kvm_arch_vcpu_async_ioctl()
2030 void __user *argp = (void __user *)arg; in kvm_arch_vcpu_ioctl() local
2039 if (copy_from_user(&cap, argp, sizeof(cap))) in kvm_arch_vcpu_ioctl()
2051 if (copy_from_user(&reg, argp, sizeof(reg))) in kvm_arch_vcpu_ioctl()
2065 if (copy_from_user(&dirty, argp, sizeof(dirty))) in kvm_arch_vcpu_ioctl()
2317 void __user *argp = (void __user *)arg; in kvm_arch_vm_ioctl() local
2325 if (copy_to_user(argp, &pvinfo, sizeof(pvinfo))) { in kvm_arch_vm_ioctl()
2337 if (copy_from_user(&create_tce_64, argp, sizeof(create_tce_64))) in kvm_arch_vm_ioctl()
2351 if (copy_from_user(&create_tce, argp, sizeof(create_tce))) in kvm_arch_vm_ioctl()
[all …]
Dbook3s_rtas.c198 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()
Dbook3s_hv.c5183 void __user *argp = (void __user *)arg; in kvm_arch_vm_ioctl_hv() local
5192 if (get_user(htab_order, (u32 __user *)argp)) in kvm_arch_vm_ioctl_hv()
5205 if (copy_from_user(&ghf, argp, sizeof(ghf))) in kvm_arch_vm_ioctl_hv()
5215 if (copy_from_user(&rhpt, argp, sizeof(rhpt))) in kvm_arch_vm_ioctl_hv()
5226 if (copy_from_user(&rhpt, argp, sizeof(rhpt))) in kvm_arch_vm_ioctl_hv()
/arch/s390/pci/
Dpci_clp.c619 void __user *argp; in clp_misc_ioctl() local
624 argp = is_compat_task() ? compat_ptr(arg) : (void __user *) arg; in clp_misc_ioctl()
625 if (copy_from_user(&req, argp, sizeof(req))) in clp_misc_ioctl()
/arch/mips/kvm/
Dmips.c900 void __user *argp = (void __user *)arg; in kvm_arch_vcpu_async_ioctl() local
905 if (copy_from_user(&irq, argp, sizeof(irq))) in kvm_arch_vcpu_async_ioctl()
920 void __user *argp = (void __user *)arg; in kvm_arch_vcpu_ioctl() local
931 if (copy_from_user(&reg, argp, sizeof(reg))) in kvm_arch_vcpu_ioctl()
940 struct kvm_reg_list __user *user_list = argp; in kvm_arch_vcpu_ioctl()
961 if (copy_from_user(&cap, argp, sizeof(cap))) in kvm_arch_vcpu_ioctl()
/arch/s390/kvm/
Dkvm-s390.c2167 void __user *argp = (void __user *)arg; in kvm_arch_vm_ioctl() local
2176 if (copy_from_user(&s390int, argp, sizeof(s390int))) in kvm_arch_vm_ioctl()
2217 if (copy_from_user(&args, argp, in kvm_arch_vm_ioctl()
2227 if (copy_from_user(&args, argp, in kvm_arch_vm_ioctl()
2237 if (copy_from_user(&args, argp, sizeof(args))) in kvm_arch_vm_ioctl()
2243 r = copy_to_user(argp, &args, sizeof(args)); in kvm_arch_vm_ioctl()
2253 if (copy_from_user(&args, argp, sizeof(args))) in kvm_arch_vm_ioctl()
4320 void __user *argp = (void __user *)arg; in kvm_arch_vcpu_async_ioctl() local
4326 if (copy_from_user(&s390irq, argp, sizeof(s390irq))) in kvm_arch_vcpu_async_ioctl()
4334 if (copy_from_user(&s390int, argp, sizeof(s390int))) in kvm_arch_vcpu_async_ioctl()
[all …]
/arch/x86/include/asm/
Dkvm_host.h1205 int (*mem_enc_op)(struct kvm *kvm, void __user *argp);
1206 int (*mem_enc_reg_region)(struct kvm *kvm, struct kvm_enc_region *argp);
1207 int (*mem_enc_unreg_region)(struct kvm *kvm, struct kvm_enc_region *argp);
/arch/powerpc/include/asm/
Dkvm_ppc.h235 extern int kvm_vm_ioctl_rtas_define_token(struct kvm *kvm, void __user *argp);