argp 45 arch/m68k/bvme6000/rtc.c void __user *argp = (void __user *)arg; argp 68 arch/m68k/bvme6000/rtc.c return copy_to_user(argp, &wtime, sizeof wtime) ? argp 80 arch/m68k/bvme6000/rtc.c if (copy_from_user(&rtc_tm, argp, sizeof(struct rtc_time))) argp 111 arch/m68k/kernel/time.c struct rtc_pll_info __user *argp = (void __user *)arg; argp 117 arch/m68k/kernel/time.c return copy_to_user(argp, &pll, sizeof pll) ? -EFAULT : 0; argp 124 arch/m68k/kernel/time.c if (copy_from_user(&pll, argp, sizeof(pll))) argp 43 arch/m68k/mvme16x/rtc.c void __user *argp = (void __user *)arg; argp 63 arch/m68k/mvme16x/rtc.c return copy_to_user(argp, &wtime, sizeof wtime) ? argp 75 arch/m68k/mvme16x/rtc.c if (copy_from_user(&rtc_tm, argp, sizeof(struct rtc_time))) argp 900 arch/mips/kvm/mips.c void __user *argp = (void __user *)arg; argp 905 arch/mips/kvm/mips.c if (copy_from_user(&irq, argp, sizeof(irq))) argp 920 arch/mips/kvm/mips.c void __user *argp = (void __user *)arg; argp 931 arch/mips/kvm/mips.c if (copy_from_user(®, argp, sizeof(reg))) argp 940 arch/mips/kvm/mips.c struct kvm_reg_list __user *user_list = argp; argp 961 arch/mips/kvm/mips.c if (copy_from_user(&cap, argp, sizeof(cap))) argp 235 arch/powerpc/include/asm/kvm_ppc.h extern int kvm_vm_ioctl_rtas_define_token(struct kvm *kvm, void __user *argp); argp 5186 arch/powerpc/kvm/book3s_hv.c void __user *argp = (void __user *)arg; argp 5195 arch/powerpc/kvm/book3s_hv.c if (get_user(htab_order, (u32 __user *)argp)) argp 5208 arch/powerpc/kvm/book3s_hv.c if (copy_from_user(&ghf, argp, sizeof(ghf))) argp 5218 arch/powerpc/kvm/book3s_hv.c if (copy_from_user(&rhpt, argp, sizeof(rhpt))) argp 5229 arch/powerpc/kvm/book3s_hv.c if (copy_from_user(&rhpt, argp, sizeof(rhpt))) argp 198 arch/powerpc/kvm/book3s_rtas.c int kvm_vm_ioctl_rtas_define_token(struct kvm *kvm, void __user *argp) argp 203 arch/powerpc/kvm/book3s_rtas.c if (copy_from_user(&args, argp, sizeof(args))) argp 2015 arch/powerpc/kvm/powerpc.c void __user *argp = (void __user *)arg; argp 2019 arch/powerpc/kvm/powerpc.c if (copy_from_user(&irq, argp, sizeof(irq))) argp 2030 arch/powerpc/kvm/powerpc.c void __user *argp = (void __user *)arg; argp 2039 arch/powerpc/kvm/powerpc.c if (copy_from_user(&cap, argp, sizeof(cap))) argp 2051 arch/powerpc/kvm/powerpc.c if (copy_from_user(®, argp, sizeof(reg))) argp 2065 arch/powerpc/kvm/powerpc.c if (copy_from_user(&dirty, argp, sizeof(dirty))) argp 2317 arch/powerpc/kvm/powerpc.c void __user *argp = (void __user *)arg; argp 2325 arch/powerpc/kvm/powerpc.c if (copy_to_user(argp, &pvinfo, sizeof(pvinfo))) { argp 2337 arch/powerpc/kvm/powerpc.c if (copy_from_user(&create_tce_64, argp, sizeof(create_tce_64))) argp 2351 arch/powerpc/kvm/powerpc.c if (copy_from_user(&create_tce, argp, sizeof(create_tce))) argp 2371 arch/powerpc/kvm/powerpc.c if (r >= 0 && copy_to_user(argp, &info, sizeof(info))) argp 2378 arch/powerpc/kvm/powerpc.c r = kvm_vm_ioctl_rtas_define_token(kvm, argp); argp 2389 arch/powerpc/kvm/powerpc.c if (copy_from_user(&cfg, argp, sizeof(cfg))) argp 2402 arch/powerpc/kvm/powerpc.c if (r >= 0 && copy_to_user(argp, &info, sizeof(info))) argp 2410 arch/powerpc/kvm/powerpc.c if (r >= 0 && copy_to_user(argp, &cpuchar, sizeof(cpuchar))) argp 116 arch/s390/hypfs/hypfs_sprp.c void __user *argp; argp 121 arch/s390/hypfs/hypfs_sprp.c argp = compat_ptr(arg); argp 123 arch/s390/hypfs/hypfs_sprp.c argp = (void __user *) arg; argp 126 arch/s390/hypfs/hypfs_sprp.c return __hypfs_sprp_ioctl(argp); argp 2170 arch/s390/kvm/kvm-s390.c void __user *argp = (void __user *)arg; argp 2179 arch/s390/kvm/kvm-s390.c if (copy_from_user(&s390int, argp, sizeof(s390int))) argp 2220 arch/s390/kvm/kvm-s390.c if (copy_from_user(&args, argp, argp 2230 arch/s390/kvm/kvm-s390.c if (copy_from_user(&args, argp, argp 2240 arch/s390/kvm/kvm-s390.c if (copy_from_user(&args, argp, sizeof(args))) argp 2246 arch/s390/kvm/kvm-s390.c r = copy_to_user(argp, &args, sizeof(args)); argp 2256 arch/s390/kvm/kvm-s390.c if (copy_from_user(&args, argp, sizeof(args))) argp 4321 arch/s390/kvm/kvm-s390.c void __user *argp = (void __user *)arg; argp 4327 arch/s390/kvm/kvm-s390.c if (copy_from_user(&s390irq, argp, sizeof(s390irq))) argp 4335 arch/s390/kvm/kvm-s390.c if (copy_from_user(&s390int, argp, sizeof(s390int))) argp 4349 arch/s390/kvm/kvm-s390.c void __user *argp = (void __user *)arg; argp 4365 arch/s390/kvm/kvm-s390.c if (copy_from_user(&psw, argp, sizeof(psw))) argp 4377 arch/s390/kvm/kvm-s390.c if (copy_from_user(®, argp, sizeof(reg))) argp 4389 arch/s390/kvm/kvm-s390.c if (copy_from_user(&ucasmap, argp, sizeof(ucasmap))) { argp 4406 arch/s390/kvm/kvm-s390.c if (copy_from_user(&ucasmap, argp, sizeof(ucasmap))) { argp 4429 arch/s390/kvm/kvm-s390.c if (copy_from_user(&cap, argp, sizeof(cap))) argp 4437 arch/s390/kvm/kvm-s390.c if (copy_from_user(&mem_op, argp, sizeof(mem_op)) == 0) argp 4447 arch/s390/kvm/kvm-s390.c if (copy_from_user(&irq_state, argp, sizeof(irq_state))) argp 4465 arch/s390/kvm/kvm-s390.c if (copy_from_user(&irq_state, argp, sizeof(irq_state))) argp 628 arch/s390/pci/pci_clp.c void __user *argp; argp 633 arch/s390/pci/pci_clp.c argp = is_compat_task() ? compat_ptr(arg) : (void __user *) arg; argp 634 arch/s390/pci/pci_clp.c if (copy_from_user(&req, argp, sizeof(req))) argp 284 arch/sparc/math-emu/math_32.c argp rs1 = NULL, rs2 = NULL, rd = NULL; argp 369 arch/sparc/math-emu/math_32.c rs1 = (argp)&fregs[freg]; argp 390 arch/sparc/math-emu/math_32.c rs2 = (argp)&fregs[freg]; argp 359 arch/sparc/math-emu/math_64.c argp rs1 = NULL, rs2 = NULL, rd = NULL; argp 380 arch/sparc/math-emu/math_64.c case 1: rs1 = (argp)&f->regs[freg]; argp 383 arch/sparc/math-emu/math_64.c rs1 = (argp)&zero; argp 398 arch/sparc/math-emu/math_64.c case 1: rs2 = (argp)&f->regs[freg]; argp 401 arch/sparc/math-emu/math_64.c rs2 = (argp)&zero; argp 416 arch/sparc/math-emu/math_64.c case 1: rd = (argp)&f->regs[freg]; argp 131 arch/um/drivers/harddog_kern.c void __user *argp= (void __user *)arg; argp 141 arch/um/drivers/harddog_kern.c if(copy_to_user(argp, &ident, sizeof(ident))) argp 146 arch/um/drivers/harddog_kern.c return put_user(0,(int __user *)argp); argp 1207 arch/x86/include/asm/kvm_host.h int (*mem_enc_op)(struct kvm *kvm, void __user *argp); argp 1208 arch/x86/include/asm/kvm_host.h int (*mem_enc_reg_region)(struct kvm *kvm, struct kvm_enc_region *argp); argp 1209 arch/x86/include/asm/kvm_host.h int (*mem_enc_unreg_region)(struct kvm *kvm, struct kvm_enc_region *argp); argp 387 arch/x86/kvm/pmu.c int kvm_vm_ioctl_set_pmu_event_filter(struct kvm *kvm, void __user *argp) argp 393 arch/x86/kvm/pmu.c if (copy_from_user(&tmp, argp, sizeof(tmp))) argp 412 arch/x86/kvm/pmu.c if (copy_from_user(filter, argp, size)) argp 131 arch/x86/kvm/pmu.h int kvm_vm_ioctl_set_pmu_event_filter(struct kvm *kvm, void __user *argp); argp 6344 arch/x86/kvm/svm.c static int sev_guest_init(struct kvm *kvm, struct kvm_sev_cmd *argp) argp 6357 arch/x86/kvm/svm.c ret = sev_platform_init(&argp->error); argp 6419 arch/x86/kvm/svm.c static int sev_launch_start(struct kvm *kvm, struct kvm_sev_cmd *argp) argp 6425 arch/x86/kvm/svm.c int *error = &argp->error; argp 6431 arch/x86/kvm/svm.c if (copy_from_user(¶ms, (void __user *)(uintptr_t)argp->data, sizeof(params))) argp 6466 arch/x86/kvm/svm.c ret = __sev_issue_cmd(argp->sev_fd, SEV_CMD_LAUNCH_START, start, error); argp 6477 arch/x86/kvm/svm.c if (copy_to_user((void __user *)(uintptr_t)argp->data, ¶ms, sizeof(params))) { argp 6484 arch/x86/kvm/svm.c sev->fd = argp->sev_fd; argp 6516 arch/x86/kvm/svm.c static int sev_launch_update_data(struct kvm *kvm, struct kvm_sev_cmd *argp) argp 6528 arch/x86/kvm/svm.c if (copy_from_user(¶ms, (void __user *)(uintptr_t)argp->data, sizeof(params))) argp 6571 arch/x86/kvm/svm.c ret = sev_issue_cmd(kvm, SEV_CMD_LAUNCH_UPDATE_DATA, data, &argp->error); argp 6592 arch/x86/kvm/svm.c static int sev_launch_measure(struct kvm *kvm, struct kvm_sev_cmd *argp) argp 6594 arch/x86/kvm/svm.c void __user *measure = (void __user *)(uintptr_t)argp->data; argp 6634 arch/x86/kvm/svm.c ret = sev_issue_cmd(kvm, SEV_CMD_LAUNCH_MEASURE, data, &argp->error); argp 6661 arch/x86/kvm/svm.c static int sev_launch_finish(struct kvm *kvm, struct kvm_sev_cmd *argp) argp 6675 arch/x86/kvm/svm.c ret = sev_issue_cmd(kvm, SEV_CMD_LAUNCH_FINISH, data, &argp->error); argp 6681 arch/x86/kvm/svm.c static int sev_guest_status(struct kvm *kvm, struct kvm_sev_cmd *argp) argp 6696 arch/x86/kvm/svm.c ret = sev_issue_cmd(kvm, SEV_CMD_GUEST_STATUS, data, &argp->error); argp 6704 arch/x86/kvm/svm.c if (copy_to_user((void __user *)(uintptr_t)argp->data, ¶ms, sizeof(params))) argp 6865 arch/x86/kvm/svm.c static int sev_dbg_crypt(struct kvm *kvm, struct kvm_sev_cmd *argp, bool dec) argp 6878 arch/x86/kvm/svm.c if (copy_from_user(&debug, (void __user *)(uintptr_t)argp->data, sizeof(debug))) argp 6927 arch/x86/kvm/svm.c len, &argp->error); argp 6934 arch/x86/kvm/svm.c len, &argp->error); argp 6950 arch/x86/kvm/svm.c static int sev_launch_secret(struct kvm *kvm, struct kvm_sev_cmd *argp) argp 6963 arch/x86/kvm/svm.c if (copy_from_user(¶ms, (void __user *)(uintptr_t)argp->data, sizeof(params))) argp 7006 arch/x86/kvm/svm.c ret = sev_issue_cmd(kvm, SEV_CMD_LAUNCH_UPDATE_SECRET, data, &argp->error); argp 7019 arch/x86/kvm/svm.c static int svm_mem_enc_op(struct kvm *kvm, void __user *argp) argp 7027 arch/x86/kvm/svm.c if (copy_from_user(&sev_cmd, argp, sizeof(struct kvm_sev_cmd))) argp 7065 arch/x86/kvm/svm.c if (copy_to_user(argp, &sev_cmd, sizeof(struct kvm_sev_cmd))) argp 3393 arch/x86/kvm/x86.c void __user *argp = (void __user *)arg; argp 3398 arch/x86/kvm/x86.c struct kvm_msr_list __user *user_msr_list = argp; argp 3425 arch/x86/kvm/x86.c struct kvm_cpuid2 __user *cpuid_arg = argp; argp 3445 arch/x86/kvm/x86.c if (copy_to_user(argp, &kvm_mce_cap_supported, argp 3451 arch/x86/kvm/x86.c struct kvm_msr_list __user *user_msr_list = argp; argp 3473 arch/x86/kvm/x86.c r = msr_io(NULL, argp, do_get_msr_feature, 1); argp 4177 arch/x86/kvm/x86.c void __user *argp = (void __user *)arg; argp 4204 arch/x86/kvm/x86.c if (copy_to_user(argp, u.lapic, sizeof(struct kvm_lapic_state))) argp 4213 arch/x86/kvm/x86.c u.lapic = memdup_user(argp, sizeof(*u.lapic)); argp 4226 arch/x86/kvm/x86.c if (copy_from_user(&irq, argp, sizeof(irq))) argp 4240 arch/x86/kvm/x86.c struct kvm_cpuid __user *cpuid_arg = argp; argp 4250 arch/x86/kvm/x86.c struct kvm_cpuid2 __user *cpuid_arg = argp; argp 4261 arch/x86/kvm/x86.c struct kvm_cpuid2 __user *cpuid_arg = argp; argp 4279 arch/x86/kvm/x86.c r = msr_io(vcpu, argp, do_get_msr, 1); argp 4285 arch/x86/kvm/x86.c r = msr_io(vcpu, argp, do_set_msr, 0); argp 4293 arch/x86/kvm/x86.c if (copy_from_user(&tac, argp, sizeof(tac))) argp 4299 arch/x86/kvm/x86.c if (copy_to_user(argp, &tac, sizeof(tac))) argp 4312 arch/x86/kvm/x86.c if (copy_from_user(&va, argp, sizeof(va))) argp 4323 arch/x86/kvm/x86.c if (copy_from_user(&mcg_cap, argp, sizeof(mcg_cap))) argp 4332 arch/x86/kvm/x86.c if (copy_from_user(&mce, argp, sizeof(mce))) argp 4343 arch/x86/kvm/x86.c if (copy_to_user(argp, &events, sizeof(struct kvm_vcpu_events))) argp 4352 arch/x86/kvm/x86.c if (copy_from_user(&events, argp, sizeof(struct kvm_vcpu_events))) argp 4364 arch/x86/kvm/x86.c if (copy_to_user(argp, &dbgregs, argp 4374 arch/x86/kvm/x86.c if (copy_from_user(&dbgregs, argp, argp 4390 arch/x86/kvm/x86.c if (copy_to_user(argp, u.xsave, sizeof(struct kvm_xsave))) argp 4396 arch/x86/kvm/x86.c u.xsave = memdup_user(argp, sizeof(*u.xsave)); argp 4414 arch/x86/kvm/x86.c if (copy_to_user(argp, u.xcrs, argp 4421 arch/x86/kvm/x86.c u.xcrs = memdup_user(argp, sizeof(*u.xcrs)); argp 4459 arch/x86/kvm/x86.c if (copy_from_user(&cap, argp, sizeof(cap))) argp 4465 arch/x86/kvm/x86.c struct kvm_nested_state __user *user_kvm_nested_state = argp; argp 4494 arch/x86/kvm/x86.c struct kvm_nested_state __user *user_kvm_nested_state = argp; argp 4526 arch/x86/kvm/x86.c struct kvm_cpuid2 __user *cpuid_arg = argp; argp 4894 arch/x86/kvm/x86.c void __user *argp = (void __user *)arg; argp 4919 arch/x86/kvm/x86.c if (copy_from_user(&ident_addr, argp, sizeof(ident_addr))) argp 4971 arch/x86/kvm/x86.c if (copy_from_user(&u.pit_config, argp, argp 4990 arch/x86/kvm/x86.c chip = memdup_user(argp, sizeof(*chip)); argp 5003 arch/x86/kvm/x86.c if (copy_to_user(argp, chip, sizeof(*chip))) argp 5014 arch/x86/kvm/x86.c chip = memdup_user(argp, sizeof(*chip)); argp 5033 arch/x86/kvm/x86.c if (copy_from_user(&u.ps, argp, sizeof(struct kvm_pit_state))) argp 5042 arch/x86/kvm/x86.c if (copy_to_user(argp, &u.ps, sizeof(struct kvm_pit_state))) argp 5049 arch/x86/kvm/x86.c if (copy_from_user(&u.ps, argp, sizeof(u.ps))) argp 5065 arch/x86/kvm/x86.c if (copy_to_user(argp, &u.ps2, sizeof(u.ps2))) argp 5072 arch/x86/kvm/x86.c if (copy_from_user(&u.ps2, argp, sizeof(u.ps2))) argp 5083 arch/x86/kvm/x86.c if (copy_from_user(&control, argp, sizeof(control))) argp 5100 arch/x86/kvm/x86.c if (copy_from_user(&xhc, argp, sizeof(xhc))) argp 5114 arch/x86/kvm/x86.c if (copy_from_user(&user_ns, argp, sizeof(user_ns))) argp 5143 arch/x86/kvm/x86.c if (copy_to_user(argp, &user_ns, sizeof(user_ns))) argp 5151 arch/x86/kvm/x86.c r = kvm_x86_ops->mem_enc_op(kvm, argp); argp 5158 arch/x86/kvm/x86.c if (copy_from_user(®ion, argp, sizeof(region))) argp 5170 arch/x86/kvm/x86.c if (copy_from_user(®ion, argp, sizeof(region))) argp 5182 arch/x86/kvm/x86.c if (copy_from_user(&hvevfd, argp, sizeof(hvevfd))) argp 5188 arch/x86/kvm/x86.c r = kvm_vm_ioctl_set_pmu_event_filter(kvm, argp); argp 317 block/blk-zoned.c void __user *argp = (void __user *)arg; argp 323 block/blk-zoned.c if (!argp) argp 336 block/blk-zoned.c if (copy_from_user(&rep, argp, sizeof(struct blk_zone_report))) argp 353 block/blk-zoned.c if (copy_to_user(argp, &rep, sizeof(struct blk_zone_report))) { argp 359 block/blk-zoned.c if (copy_to_user(argp + sizeof(struct blk_zone_report), zones, argp 377 block/blk-zoned.c void __user *argp = (void __user *)arg; argp 381 block/blk-zoned.c if (!argp) argp 397 block/blk-zoned.c if (copy_from_user(&zrange, argp, sizeof(struct blk_zone_range))) argp 460 block/ioctl.c struct hd_geometry __user *argp) argp 466 block/ioctl.c if (!argp) argp 480 block/ioctl.c if (copy_to_user(argp, &geo, sizeof(geo))) argp 487 block/ioctl.c int __user *argp) argp 493 block/ioctl.c if (!argp) argp 495 block/ioctl.c if (get_user(n, argp)) argp 516 block/ioctl.c void __user *argp = (void __user *)arg; argp 541 block/ioctl.c return blkdev_getgeo(bdev, argp); argp 576 block/ioctl.c return blkdev_bszset(bdev, mode, argp); argp 578 block/ioctl.c return blkpg_ioctl(bdev, argp); argp 592 block/ioctl.c return blk_trace_ioctl(bdev, cmd, argp); argp 594 block/ioctl.c return blkdev_pr_register(bdev, argp); argp 596 block/ioctl.c return blkdev_pr_reserve(bdev, argp); argp 598 block/ioctl.c return blkdev_pr_release(bdev, argp); argp 600 block/ioctl.c return blkdev_pr_preempt(bdev, argp, false); argp 602 block/ioctl.c return blkdev_pr_preempt(bdev, argp, true); argp 604 block/ioctl.c return blkdev_pr_clear(bdev, argp); argp 1541 drivers/block/amiflop.c void __user *argp = (void __user *)param; argp 1587 drivers/block/amiflop.c if (copy_to_user(argp, &getprm, sizeof(struct floppy_struct))) argp 1599 drivers/block/amiflop.c if (copy_to_user(argp, raw_buf, p->type->read_size)) argp 1571 drivers/block/ataflop.c void __user *argp = (void __user *)param; argp 1598 drivers/block/ataflop.c if (copy_to_user(argp, &getprm, sizeof(getprm))) argp 1617 drivers/block/ataflop.c if (copy_from_user(&setprm, argp, sizeof(setprm))) argp 1721 drivers/block/ataflop.c if (copy_from_user(&fmt_desc, argp, sizeof(fmt_desc))) argp 2862 drivers/block/pktcdvd.c void __user *argp = (void __user *)arg; argp 2870 drivers/block/pktcdvd.c if (copy_from_user(&ctrl_cmd, argp, sizeof(struct pkt_ctrl_command))) argp 2892 drivers/block/pktcdvd.c if (copy_to_user(argp, &ctrl_cmd, sizeof(struct pkt_ctrl_command))) argp 2296 drivers/cdrom/cdrom.c void __user *argp) argp 2307 drivers/cdrom/cdrom.c if (copy_from_user(&ms_info, argp, sizeof(ms_info))) argp 2321 drivers/cdrom/cdrom.c if (copy_to_user(argp, &ms_info, sizeof(ms_info))) argp 2527 drivers/cdrom/cdrom.c void __user *argp) argp 2540 drivers/cdrom/cdrom.c if (copy_to_user(argp, &mcn, sizeof(mcn))) argp 2615 drivers/cdrom/cdrom.c void __user *argp) argp 2623 drivers/cdrom/cdrom.c if (copy_from_user(&q, argp, sizeof(q))) argp 2639 drivers/cdrom/cdrom.c if (copy_to_user(argp, &q, sizeof(q))) argp 2646 drivers/cdrom/cdrom.c void __user *argp) argp 2653 drivers/cdrom/cdrom.c if (copy_from_user(&header, argp, sizeof(header))) argp 2660 drivers/cdrom/cdrom.c if (copy_to_user(argp, &header, sizeof(header))) argp 2667 drivers/cdrom/cdrom.c void __user *argp) argp 2675 drivers/cdrom/cdrom.c if (copy_from_user(&entry, argp, sizeof(entry))) argp 2688 drivers/cdrom/cdrom.c if (copy_to_user(argp, &entry, sizeof(entry))) argp 2695 drivers/cdrom/cdrom.c void __user *argp) argp 2703 drivers/cdrom/cdrom.c if (copy_from_user(&msf, argp, sizeof(msf))) argp 2709 drivers/cdrom/cdrom.c void __user *argp) argp 2718 drivers/cdrom/cdrom.c if (copy_from_user(&ti, argp, sizeof(ti))) argp 2727 drivers/cdrom/cdrom.c void __user *argp) argp 2735 drivers/cdrom/cdrom.c if (copy_from_user(&volume, argp, sizeof(volume))) argp 2741 drivers/cdrom/cdrom.c void __user *argp) argp 2755 drivers/cdrom/cdrom.c if (copy_to_user(argp, &volume, sizeof(volume))) argp 3332 drivers/cdrom/cdrom.c void __user *argp = (void __user *)arg; argp 3338 drivers/cdrom/cdrom.c ret = scsi_cmd_blk_ioctl(bdev, mode, cmd, argp); argp 3344 drivers/cdrom/cdrom.c return cdrom_ioctl_multisession(cdi, argp); argp 3370 drivers/cdrom/cdrom.c return cdrom_ioctl_get_mcn(cdi, argp); argp 3398 drivers/cdrom/cdrom.c return cdrom_ioctl_get_subchnl(cdi, argp); argp 3400 drivers/cdrom/cdrom.c return cdrom_ioctl_read_tochdr(cdi, argp); argp 3402 drivers/cdrom/cdrom.c return cdrom_ioctl_read_tocentry(cdi, argp); argp 3404 drivers/cdrom/cdrom.c return cdrom_ioctl_play_msf(cdi, argp); argp 3406 drivers/cdrom/cdrom.c return cdrom_ioctl_play_trkind(cdi, argp); argp 3408 drivers/cdrom/cdrom.c return cdrom_ioctl_volctrl(cdi, argp); argp 3410 drivers/cdrom/cdrom.c return cdrom_ioctl_volread(cdi, argp); argp 709 drivers/char/applicom.c void __user *argp = (void __user *)arg; argp 714 drivers/char/applicom.c adgl = memdup_user(argp, sizeof(struct st_ram_io)); argp 734 drivers/char/applicom.c if (copy_to_user(argp, adgl, sizeof(struct st_ram_io))) argp 755 drivers/char/applicom.c if (copy_to_user(argp, adgl, sizeof(struct st_ram_io))) argp 781 drivers/char/applicom.c if (copy_to_user(argp, adgl,sizeof(struct st_ram_io))) argp 310 drivers/char/dsp56k.c void __user *argp = (void __user *)arg; argp 321 drivers/char/dsp56k.c struct dsp56k_upload __user *binary = argp; argp 360 drivers/char/dsp56k.c struct dsp56k_host_flags __user *hf = argp; argp 273 drivers/char/dtlk.c char __user *argp = (char __user *)arg; argp 284 drivers/char/dtlk.c if (copy_to_user(argp, sp, sizeof(struct dtlk_settings))) argp 290 drivers/char/dtlk.c return put_user(portval, argp); argp 666 drivers/char/ipmi/ipmi_watchdog.c void __user *argp = (void __user *)arg; argp 672 drivers/char/ipmi/ipmi_watchdog.c i = copy_to_user(argp, &ident, sizeof(ident)); argp 676 drivers/char/ipmi/ipmi_watchdog.c i = copy_from_user(&val, argp, sizeof(int)); argp 683 drivers/char/ipmi/ipmi_watchdog.c i = copy_to_user(argp, &timeout, sizeof(timeout)); argp 689 drivers/char/ipmi/ipmi_watchdog.c i = copy_from_user(&val, argp, sizeof(int)); argp 696 drivers/char/ipmi/ipmi_watchdog.c i = copy_to_user(argp, &pretimeout, sizeof(pretimeout)); argp 705 drivers/char/ipmi/ipmi_watchdog.c i = copy_from_user(&val, argp, sizeof(int)); argp 722 drivers/char/ipmi/ipmi_watchdog.c i = copy_to_user(argp, &val, sizeof(val)); argp 581 drivers/char/lp.c unsigned long arg, void __user *argp) argp 627 drivers/char/lp.c if (copy_to_user(argp, &LP_IRQ(minor), argp 639 drivers/char/lp.c if (copy_to_user(argp, &status, sizeof(int))) argp 647 drivers/char/lp.c if (copy_to_user(argp, &LP_STAT(minor), argp 657 drivers/char/lp.c if (copy_to_user(argp, &status, sizeof(int))) argp 1407 drivers/char/pcmcia/cm4000_cs.c void __user *argp = (void __user *)arg; argp 1448 drivers/char/pcmcia/cm4000_cs.c if (!access_ok(argp, size)) argp 1452 drivers/char/pcmcia/cm4000_cs.c if (!access_ok(argp, size)) argp 1474 drivers/char/pcmcia/cm4000_cs.c if (copy_to_user(argp, &status, sizeof(int))) argp 1481 drivers/char/pcmcia/cm4000_cs.c struct atreq __user *atreq = argp; argp 1574 drivers/char/pcmcia/cm4000_cs.c if (copy_from_user(&krnptsreq, argp, argp 2231 drivers/char/pcmcia/synclink_cs.c void __user *argp = (void __user *)arg; argp 2247 drivers/char/pcmcia/synclink_cs.c return get_params(info, argp); argp 2249 drivers/char/pcmcia/synclink_cs.c return set_params(info, argp, tty); argp 2251 drivers/char/pcmcia/synclink_cs.c return get_txidle(info, argp); argp 2255 drivers/char/pcmcia/synclink_cs.c return get_interface(info, argp); argp 2265 drivers/char/pcmcia/synclink_cs.c return get_stats(info, argp); argp 2267 drivers/char/pcmcia/synclink_cs.c return wait_events(info, argp); argp 357 drivers/char/ppdev.c void __user *argp = (void __user *)arg; argp 419 drivers/char/ppdev.c if (copy_from_user(&mode, argp, sizeof(mode))) argp 441 drivers/char/ppdev.c if (copy_to_user(argp, &mode, sizeof(mode))) argp 449 drivers/char/ppdev.c if (copy_from_user(&phase, argp, sizeof(phase))) argp 468 drivers/char/ppdev.c if (copy_to_user(argp, &phase, sizeof(phase))) argp 482 drivers/char/ppdev.c if (copy_to_user(argp, &modes, sizeof(modes))) argp 490 drivers/char/ppdev.c if (copy_from_user(&uflags, argp, sizeof(uflags))) argp 501 drivers/char/ppdev.c if (copy_to_user(argp, &uflags, sizeof(uflags))) argp 527 drivers/char/ppdev.c if (copy_to_user(argp, ®, sizeof(reg))) argp 532 drivers/char/ppdev.c if (copy_to_user(argp, ®, sizeof(reg))) argp 537 drivers/char/ppdev.c if (copy_to_user(argp, ®, sizeof(reg))) argp 556 drivers/char/ppdev.c if (copy_from_user(®, argp, sizeof(reg))) argp 562 drivers/char/ppdev.c if (copy_from_user(®, argp, sizeof(reg))) argp 568 drivers/char/ppdev.c if (copy_from_user(&mask, argp, argp 578 drivers/char/ppdev.c if (copy_from_user(&mode, argp, sizeof(mode))) argp 587 drivers/char/ppdev.c if (copy_from_user(&mode, argp, sizeof(mode))) argp 602 drivers/char/ppdev.c if (copy_from_user(®, argp, sizeof(reg))) argp 613 drivers/char/ppdev.c if (copy_to_user(argp, &ret, sizeof(ret))) argp 619 drivers/char/ppdev.c if (copy_from_user(time32, argp, sizeof(time32))) argp 628 drivers/char/ppdev.c if (copy_from_user(time64, argp, sizeof(time64))) argp 644 drivers/char/ppdev.c if (copy_to_user(argp, time32, sizeof(time32))) argp 657 drivers/char/ppdev.c if (copy_to_user(argp, time64, sizeof(time64))) argp 941 drivers/char/sonypi.c void __user *argp = (void __user *)arg; argp 952 drivers/char/sonypi.c if (copy_to_user(argp, &val8, sizeof(val8))) argp 956 drivers/char/sonypi.c if (copy_from_user(&val8, argp, sizeof(val8))) { argp 968 drivers/char/sonypi.c if (copy_to_user(argp, &val16, sizeof(val16))) argp 976 drivers/char/sonypi.c if (copy_to_user(argp, &val16, sizeof(val16))) argp 984 drivers/char/sonypi.c if (copy_to_user(argp, &val16, sizeof(val16))) argp 992 drivers/char/sonypi.c if (copy_to_user(argp, &val16, sizeof(val16))) argp 1001 drivers/char/sonypi.c if (copy_to_user(argp, &val8, sizeof(val8))) argp 1006 drivers/char/sonypi.c if (copy_to_user(argp, &val8, sizeof(val8))) argp 1010 drivers/char/sonypi.c if (copy_from_user(&val8, argp, sizeof(val8))) { argp 1022 drivers/char/sonypi.c if (copy_to_user(argp, &val8, sizeof(val8))) argp 1026 drivers/char/sonypi.c if (copy_from_user(&val8, argp, sizeof(val8))) { argp 1039 drivers/char/sonypi.c if (copy_to_user(argp, &val8, sizeof(val8))) argp 250 drivers/char/toshiba.c SMMRegisters __user *argp = (SMMRegisters __user *)arg; argp 254 drivers/char/toshiba.c if (!argp) argp 257 drivers/char/toshiba.c if (copy_from_user(®s, argp, sizeof(SMMRegisters))) argp 284 drivers/char/toshiba.c if (copy_to_user(argp, ®s, sizeof(SMMRegisters))) argp 627 drivers/char/tpm/tpm_vtpm_proxy.c void __user *argp = (void __user *)arg; argp 635 drivers/char/tpm/tpm_vtpm_proxy.c vtpm_new_dev_p = argp; argp 293 drivers/crypto/ccp/psp-dev.c static int sev_ioctl_do_reset(struct sev_issue_cmd *argp) argp 306 drivers/crypto/ccp/psp-dev.c rc = sev_get_platform_state(&state, &argp->error); argp 314 drivers/crypto/ccp/psp-dev.c rc = __sev_platform_shutdown_locked(&argp->error); argp 319 drivers/crypto/ccp/psp-dev.c return __sev_do_cmd_locked(SEV_CMD_FACTORY_RESET, NULL, &argp->error); argp 322 drivers/crypto/ccp/psp-dev.c static int sev_ioctl_do_platform_status(struct sev_issue_cmd *argp) argp 327 drivers/crypto/ccp/psp-dev.c ret = __sev_do_cmd_locked(SEV_CMD_PLATFORM_STATUS, data, &argp->error); argp 331 drivers/crypto/ccp/psp-dev.c if (copy_to_user((void __user *)argp->data, data, sizeof(*data))) argp 337 drivers/crypto/ccp/psp-dev.c static int sev_ioctl_do_pek_pdh_gen(int cmd, struct sev_issue_cmd *argp) argp 342 drivers/crypto/ccp/psp-dev.c rc = __sev_platform_init_locked(&argp->error); argp 347 drivers/crypto/ccp/psp-dev.c return __sev_do_cmd_locked(cmd, NULL, &argp->error); argp 350 drivers/crypto/ccp/psp-dev.c static int sev_ioctl_do_pek_csr(struct sev_issue_cmd *argp) argp 357 drivers/crypto/ccp/psp-dev.c if (copy_from_user(&input, (void __user *)argp->data, sizeof(input))) argp 386 drivers/crypto/ccp/psp-dev.c ret = __sev_platform_init_locked(&argp->error); argp 391 drivers/crypto/ccp/psp-dev.c ret = __sev_do_cmd_locked(SEV_CMD_PEK_CSR, data, &argp->error); argp 396 drivers/crypto/ccp/psp-dev.c if (copy_to_user((void __user *)argp->data, &input, sizeof(input))) { argp 536 drivers/crypto/ccp/psp-dev.c static int sev_ioctl_do_pek_import(struct sev_issue_cmd *argp) argp 543 drivers/crypto/ccp/psp-dev.c if (copy_from_user(&input, (void __user *)argp->data, sizeof(input))) argp 572 drivers/crypto/ccp/psp-dev.c ret = __sev_platform_init_locked(&argp->error); argp 577 drivers/crypto/ccp/psp-dev.c ret = __sev_do_cmd_locked(SEV_CMD_PEK_CERT_IMPORT, data, &argp->error); argp 588 drivers/crypto/ccp/psp-dev.c static int sev_ioctl_do_get_id2(struct sev_issue_cmd *argp) argp 599 drivers/crypto/ccp/psp-dev.c if (copy_from_user(&input, (void __user *)argp->data, sizeof(input))) argp 623 drivers/crypto/ccp/psp-dev.c ret = __sev_do_cmd_locked(SEV_CMD_GET_ID, data, &argp->error); argp 631 drivers/crypto/ccp/psp-dev.c if (copy_to_user((void __user *)argp->data, &input, sizeof(input))) { argp 651 drivers/crypto/ccp/psp-dev.c static int sev_ioctl_do_get_id(struct sev_issue_cmd *argp) argp 680 drivers/crypto/ccp/psp-dev.c ret = __sev_do_cmd_locked(SEV_CMD_GET_ID, data, &argp->error); argp 682 drivers/crypto/ccp/psp-dev.c if (copy_to_user((void __user *)argp->data, id_blob, data->len)) argp 691 drivers/crypto/ccp/psp-dev.c static int sev_ioctl_do_pdh_export(struct sev_issue_cmd *argp) argp 698 drivers/crypto/ccp/psp-dev.c if (copy_from_user(&input, (void __user *)argp->data, sizeof(input))) argp 746 drivers/crypto/ccp/psp-dev.c ret = __sev_platform_init_locked(&argp->error); argp 751 drivers/crypto/ccp/psp-dev.c ret = __sev_do_cmd_locked(SEV_CMD_PDH_CERT_EXPORT, data, &argp->error); argp 757 drivers/crypto/ccp/psp-dev.c if (copy_to_user((void __user *)argp->data, &input, sizeof(input))) { argp 787 drivers/crypto/ccp/psp-dev.c void __user *argp = (void __user *)arg; argp 797 drivers/crypto/ccp/psp-dev.c if (copy_from_user(&input, argp, sizeof(struct sev_issue_cmd))) argp 840 drivers/crypto/ccp/psp-dev.c if (copy_to_user(argp, &input, sizeof(struct sev_issue_cmd))) argp 69 drivers/fpga/dfl-fme-pr.c void __user *argp = (void __user *)arg; argp 83 drivers/fpga/dfl-fme-pr.c if (copy_from_user(&port_pr, argp, minsz)) argp 443 drivers/fsi/fsi-scom.c static int scom_raw_read(struct scom_device *scom, void __user *argp) argp 449 drivers/fsi/fsi-scom.c if (copy_from_user(&acc, argp, sizeof(struct scom_access))) argp 456 drivers/fsi/fsi-scom.c if (copy_to_user(argp, &acc, sizeof(struct scom_access))) argp 461 drivers/fsi/fsi-scom.c static int scom_raw_write(struct scom_device *scom, void __user *argp) argp 468 drivers/fsi/fsi-scom.c if (copy_from_user(&acc, argp, sizeof(struct scom_access))) argp 487 drivers/fsi/fsi-scom.c if (copy_to_user(argp, &acc, sizeof(struct scom_access))) argp 492 drivers/fsi/fsi-scom.c static int scom_reset(struct scom_device *scom, void __user *argp) argp 497 drivers/fsi/fsi-scom.c if (get_user(flags, (__u32 __user *)argp)) argp 508 drivers/fsi/fsi-scom.c static int scom_check(struct scom_device *scom, void __user *argp) argp 511 drivers/fsi/fsi-scom.c return put_user(SCOM_CHECK_SUPPORTED, (__u32 __user *)argp); argp 517 drivers/fsi/fsi-scom.c void __user *argp = (void __user *)arg; argp 527 drivers/fsi/fsi-scom.c rc = scom_check(scom, argp); argp 530 drivers/fsi/fsi-scom.c rc = scom_raw_read(scom, argp); argp 533 drivers/fsi/fsi-scom.c rc = scom_raw_write(scom, argp); argp 536 drivers/fsi/fsi-scom.c rc = scom_reset(scom, argp); argp 175 drivers/gpu/drm/drm_ioc32.c drm_map32_t __user *argp = (void __user *)arg; argp 180 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&m32, argp, sizeof(m32))) argp 194 drivers/gpu/drm/drm_ioc32.c if (copy_to_user(argp, &m32, sizeof(m32))) argp 203 drivers/gpu/drm/drm_ioc32.c drm_map32_t __user *argp = (void __user *)arg; argp 208 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&m32, argp, sizeof(m32))) argp 228 drivers/gpu/drm/drm_ioc32.c if (copy_to_user(argp, &m32, sizeof(m32))) argp 237 drivers/gpu/drm/drm_ioc32.c drm_map32_t __user *argp = (void __user *)arg; argp 241 drivers/gpu/drm/drm_ioc32.c if (get_user(handle, &argp->handle)) argp 261 drivers/gpu/drm/drm_ioc32.c drm_client32_t __user *argp = (void __user *)arg; argp 265 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&c32, argp, sizeof(c32))) argp 281 drivers/gpu/drm/drm_ioc32.c if (copy_to_user(argp, &c32, sizeof(c32))) argp 297 drivers/gpu/drm/drm_ioc32.c drm_stats32_t __user *argp = (void __user *)arg; argp 304 drivers/gpu/drm/drm_ioc32.c if (clear_user(argp, sizeof(drm_stats32_t))) argp 322 drivers/gpu/drm/drm_ioc32.c drm_buf_desc32_t __user *argp = (void __user *)arg; argp 327 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&desc32, argp, sizeof(drm_buf_desc32_t))) argp 344 drivers/gpu/drm/drm_ioc32.c if (copy_to_user(argp, &desc32, sizeof(drm_buf_desc32_t))) argp 354 drivers/gpu/drm/drm_ioc32.c drm_buf_desc32_t __user *argp = (void __user *)arg; argp 357 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&b32, argp, sizeof(b32))) argp 398 drivers/gpu/drm/drm_ioc32.c drm_buf_info32_t __user *argp = (void __user *)arg; argp 401 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&req32, argp, sizeof(req32))) argp 411 drivers/gpu/drm/drm_ioc32.c if (put_user(req32.count, &argp->count)) argp 461 drivers/gpu/drm/drm_ioc32.c drm_buf_map32_t __user *argp = (void __user *)arg; argp 465 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&req32, argp, sizeof(req32))) argp 474 drivers/gpu/drm/drm_ioc32.c if (put_user(req32.count, &argp->count) argp 475 drivers/gpu/drm/drm_ioc32.c || put_user(req32.virtual, &argp->virtual)) argp 491 drivers/gpu/drm/drm_ioc32.c drm_buf_free32_t __user *argp = (void __user *)arg; argp 493 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&req32, argp, sizeof(req32))) argp 511 drivers/gpu/drm/drm_ioc32.c drm_ctx_priv_map32_t __user *argp = (void __user *)arg; argp 513 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&req32, argp, sizeof(req32))) argp 527 drivers/gpu/drm/drm_ioc32.c drm_ctx_priv_map32_t __user *argp = (void __user *)arg; argp 530 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&req32, argp, sizeof(req32))) argp 539 drivers/gpu/drm/drm_ioc32.c if (copy_to_user(argp, &req32, sizeof(req32))) argp 553 drivers/gpu/drm/drm_ioc32.c drm_ctx_res32_t __user *argp = (void __user *)arg; argp 558 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&res32, argp, sizeof(res32))) argp 568 drivers/gpu/drm/drm_ioc32.c if (copy_to_user(argp, &res32, sizeof(res32))) argp 591 drivers/gpu/drm/drm_ioc32.c drm_dma32_t __user *argp = (void __user *)arg; argp 595 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&d32, argp, sizeof(d32))) argp 610 drivers/gpu/drm/drm_ioc32.c if (put_user(d.request_size, &argp->request_size) argp 611 drivers/gpu/drm/drm_ioc32.c || put_user(d.granted_count, &argp->granted_count)) argp 626 drivers/gpu/drm/drm_ioc32.c drm_agp_mode32_t __user *argp = (void __user *)arg; argp 629 drivers/gpu/drm/drm_ioc32.c if (get_user(mode.mode, &argp->mode)) argp 653 drivers/gpu/drm/drm_ioc32.c drm_agp_info32_t __user *argp = (void __user *)arg; argp 671 drivers/gpu/drm/drm_ioc32.c if (copy_to_user(argp, &i32, sizeof(i32))) argp 687 drivers/gpu/drm/drm_ioc32.c drm_agp_buffer32_t __user *argp = (void __user *)arg; argp 692 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&req32, argp, sizeof(req32))) argp 704 drivers/gpu/drm/drm_ioc32.c if (copy_to_user(argp, &req32, sizeof(req32))) { argp 716 drivers/gpu/drm/drm_ioc32.c drm_agp_buffer32_t __user *argp = (void __user *)arg; argp 719 drivers/gpu/drm/drm_ioc32.c if (get_user(request.handle, &argp->handle)) argp 734 drivers/gpu/drm/drm_ioc32.c drm_agp_binding32_t __user *argp = (void __user *)arg; argp 738 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&req32, argp, sizeof(req32))) argp 750 drivers/gpu/drm/drm_ioc32.c drm_agp_binding32_t __user *argp = (void __user *)arg; argp 753 drivers/gpu/drm/drm_ioc32.c if (get_user(request.handle, &argp->handle)) argp 770 drivers/gpu/drm/drm_ioc32.c drm_scatter_gather32_t __user *argp = (void __user *)arg; argp 774 drivers/gpu/drm/drm_ioc32.c if (get_user(request.size, &argp->size)) argp 783 drivers/gpu/drm/drm_ioc32.c if (put_user(request.handle >> PAGE_SHIFT, &argp->handle)) argp 792 drivers/gpu/drm/drm_ioc32.c drm_scatter_gather32_t __user *argp = (void __user *)arg; argp 796 drivers/gpu/drm/drm_ioc32.c if (get_user(x, &argp->handle)) argp 845 drivers/gpu/drm/drm_ioc32.c drm_wait_vblank32_t __user *argp = (void __user *)arg; argp 850 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&req32, argp, sizeof(req32))) argp 864 drivers/gpu/drm/drm_ioc32.c if (copy_to_user(argp, &req32, sizeof(req32))) argp 886 drivers/gpu/drm/drm_ioc32.c struct drm_mode_fb_cmd232 __user *argp = (void __user *)arg; argp 890 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&req64, argp, argp 894 drivers/gpu/drm/drm_ioc32.c if (copy_from_user(&req64.modifier, &argp->modifier, argp 902 drivers/gpu/drm/drm_ioc32.c if (put_user(req64.fb_id, &argp->fb_id)) argp 64 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c pmu_args(struct nv50_devinit *init, u32 argp, u32 argi) argp 67 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gm200.c nvkm_wr32(device, 0x10a1c0, argp); argp 432 drivers/hwmon/dell-smm-hwmon.c int __user *argp = (int __user *)arg; argp 434 drivers/hwmon/dell-smm-hwmon.c if (!argp) argp 468 drivers/hwmon/dell-smm-hwmon.c if (copy_from_user(&val, argp, sizeof(int))) argp 475 drivers/hwmon/dell-smm-hwmon.c if (copy_from_user(&val, argp, sizeof(int))) argp 485 drivers/hwmon/dell-smm-hwmon.c if (copy_from_user(&val, argp, sizeof(int))) argp 488 drivers/hwmon/dell-smm-hwmon.c if (copy_from_user(&speed, argp + 1, sizeof(int))) argp 503 drivers/hwmon/dell-smm-hwmon.c if (copy_to_user(argp, &val, 4)) argp 508 drivers/hwmon/dell-smm-hwmon.c if (copy_to_user(argp, buff, 16)) argp 513 drivers/hwmon/dell-smm-hwmon.c if (copy_to_user(argp, &val, sizeof(int))) argp 43 drivers/ide/ide-floppy_ioctl.c int __user *argp; argp 63 drivers/ide/ide-floppy_ioctl.c argp = arg + 1; argp 79 drivers/ide/ide-floppy_ioctl.c if (put_user(blocks, argp)) argp 82 drivers/ide/ide-floppy_ioctl.c ++argp; argp 84 drivers/ide/ide-floppy_ioctl.c if (put_user(length, argp)) argp 87 drivers/ide/ide-floppy_ioctl.c ++argp; argp 256 drivers/ide/ide-floppy_ioctl.c void __user *argp) argp 262 drivers/ide/ide-floppy_ioctl.c return ide_floppy_get_format_capacities(drive, pc, argp); argp 266 drivers/ide/ide-floppy_ioctl.c return ide_floppy_format_unit(drive, pc, (int __user *)argp); argp 268 drivers/ide/ide-floppy_ioctl.c return ide_floppy_get_format_progress(drive, pc, argp); argp 278 drivers/ide/ide-floppy_ioctl.c void __user *argp = (void __user *)arg; argp 287 drivers/ide/ide-floppy_ioctl.c err = ide_floppy_format_ioctl(drive, &pc, mode, cmd, argp); argp 296 drivers/ide/ide-floppy_ioctl.c err = scsi_cmd_blk_ioctl(bdev, mode, cmd, argp); argp 1034 drivers/ide/ide-tape.c void __user *argp = (void __user *)arg; argp 1046 drivers/ide/ide-tape.c if (copy_from_user(&config, argp, sizeof(config))) argp 1054 drivers/ide/ide-tape.c if (copy_to_user(argp, &config, sizeof(config))) argp 1379 drivers/ide/ide-tape.c void __user *argp = (void __user *)arg; argp 1396 drivers/ide/ide-tape.c if (copy_from_user(&mtop, argp, sizeof(struct mtop))) argp 1410 drivers/ide/ide-tape.c if (copy_to_user(argp, &mtget, sizeof(struct mtget))) argp 1415 drivers/ide/ide-tape.c if (copy_to_user(argp, &mtpos, sizeof(struct mtpos))) argp 446 drivers/input/joydev.c void __user *argp, size_t len) argp 455 drivers/input/joydev.c abspam = memdup_user(argp, len); argp 477 drivers/input/joydev.c void __user *argp, size_t len) argp 486 drivers/input/joydev.c keypam = memdup_user(argp, len); argp 509 drivers/input/joydev.c unsigned int cmd, void __user *argp) argp 520 drivers/input/joydev.c return copy_from_user(&joydev->glue.JS_CORR, argp, argp 524 drivers/input/joydev.c return copy_to_user(argp, &joydev->glue.JS_CORR, argp 528 drivers/input/joydev.c return get_user(joydev->glue.JS_TIMEOUT, (s32 __user *) argp); argp 531 drivers/input/joydev.c return put_user(joydev->glue.JS_TIMEOUT, (s32 __user *) argp); argp 534 drivers/input/joydev.c return put_user(JS_VERSION, (__u32 __user *) argp); argp 537 drivers/input/joydev.c return put_user(joydev->nabs, (__u8 __user *) argp); argp 540 drivers/input/joydev.c return put_user(joydev->nkey, (__u8 __user *) argp); argp 543 drivers/input/joydev.c if (copy_from_user(joydev->corr, argp, argp 554 drivers/input/joydev.c return copy_to_user(argp, joydev->corr, argp 567 drivers/input/joydev.c return joydev_handle_JSIOCSAXMAP(joydev, argp, _IOC_SIZE(cmd)); argp 571 drivers/input/joydev.c return copy_to_user(argp, joydev->abspam, len) ? -EFAULT : len; argp 574 drivers/input/joydev.c return joydev_handle_JSIOCSBTNMAP(joydev, argp, _IOC_SIZE(cmd)); argp 578 drivers/input/joydev.c return copy_to_user(argp, joydev->keypam, len) ? -EFAULT : len; argp 586 drivers/input/joydev.c return copy_to_user(argp, name, len) ? -EFAULT : len; argp 598 drivers/input/joydev.c void __user *argp = (void __user *)arg; argp 626 drivers/input/joydev.c retval = copy_from_user(&ds32, argp, argp 646 drivers/input/joydev.c retval = copy_to_user(argp, &ds32, sizeof(ds32)) ? -EFAULT : 0; argp 650 drivers/input/joydev.c retval = joydev_ioctl_common(joydev, cmd, argp); argp 665 drivers/input/joydev.c void __user *argp = (void __user *)arg; argp 690 drivers/input/joydev.c retval = copy_from_user(&joydev->glue, argp, argp 695 drivers/input/joydev.c retval = copy_to_user(argp, &joydev->glue, argp 700 drivers/input/joydev.c retval = joydev_ioctl_common(joydev, cmd, argp); argp 758 drivers/isdn/capi/capi.c void __user *argp = (void __user *)arg; argp 768 drivers/isdn/capi/capi.c if (copy_from_user(&cdev->ap.rparam, argp, argp 787 drivers/isdn/capi/capi.c if (copy_from_user(&data.contr, argp, argp 793 drivers/isdn/capi/capi.c if (copy_to_user(argp, &data.version, argp 799 drivers/isdn/capi/capi.c if (copy_from_user(&data.contr, argp, argp 805 drivers/isdn/capi/capi.c if (copy_to_user(argp, data.serial, argp 811 drivers/isdn/capi/capi.c if (copy_from_user(&data.contr, argp, argp 820 drivers/isdn/capi/capi.c retval = copy_to_user(argp, argp 829 drivers/isdn/capi/capi.c retval = copy_to_user(argp, &data.profile, argp 837 drivers/isdn/capi/capi.c if (copy_from_user(&data.contr, argp, argp 844 drivers/isdn/capi/capi.c if (copy_to_user(argp, data.manufacturer, argp 854 drivers/isdn/capi/capi.c if (copy_to_user(argp, &data.errcode, argp 869 drivers/isdn/capi/capi.c if (copy_from_user(&mcmd, argp, sizeof(mcmd))) argp 877 drivers/isdn/capi/capi.c if (copy_from_user(&userflags, argp, sizeof(userflags))) argp 889 drivers/isdn/capi/capi.c if (copy_to_user(argp, &cdev->userflags, argp 904 drivers/isdn/capi/capi.c if (copy_from_user(&ncci, argp, sizeof(ncci))) argp 921 drivers/isdn/capi/capi.c if (copy_from_user(&ncci, argp, sizeof(ncci))) argp 1422 drivers/lightnvm/core.c void __user *argp = (void __user *)arg; argp 1429 drivers/lightnvm/core.c return nvm_ioctl_info(file, argp); argp 1431 drivers/lightnvm/core.c return nvm_ioctl_get_devices(file, argp); argp 1433 drivers/lightnvm/core.c return nvm_ioctl_dev_create(file, argp); argp 1435 drivers/lightnvm/core.c return nvm_ioctl_dev_remove(file, argp); argp 1437 drivers/lightnvm/core.c return nvm_ioctl_dev_init(file, argp); argp 1439 drivers/lightnvm/core.c return nvm_ioctl_dev_factory(file, argp); argp 2368 drivers/macintosh/via-pmu.c __u32 __user *argp = (__u32 __user *)arg; argp 2379 drivers/macintosh/via-pmu.c return put_user(0, argp); argp 2381 drivers/macintosh/via-pmu.c return put_user(1, argp); argp 2394 drivers/macintosh/via-pmu.c return put_user(brightness, argp); argp 2401 drivers/macintosh/via-pmu.c error = get_user(brightness, argp); argp 2423 drivers/macintosh/via-pmu.c return put_user(pmu_kind, argp); argp 2425 drivers/macintosh/via-pmu.c return put_user(pmu_has_adb, argp); argp 7280 drivers/md/md.c void __user *argp = (void __user *)arg; argp 7304 drivers/md/md.c err = get_version(argp); argp 7333 drivers/md/md.c err = get_array_info(mddev, argp); argp 7340 drivers/md/md.c err = get_disk_info(mddev, argp); argp 7348 drivers/md/md.c err = get_bitmap_file(mddev, argp); argp 7390 drivers/md/md.c else if (copy_from_user(&info, argp, sizeof(info))) { argp 7460 drivers/md/md.c if (copy_from_user(&info, argp, sizeof(info))) argp 7531 drivers/md/md.c if (copy_from_user(&info, argp, sizeof(info))) argp 378 drivers/media/rc/lirc_dev.c u32 __user *argp = (u32 __user *)(arg); argp 383 drivers/media/rc/lirc_dev.c ret = get_user(val, argp); argp 594 drivers/media/rc/lirc_dev.c ret = put_user(val, argp); argp 131 drivers/media/usb/pvrusb2/pvrusb2-encoder.c u32 *argp) argp 206 drivers/media/usb/pvrusb2/pvrusb2-encoder.c wrData[idx+4] = argp[idx]; argp 281 drivers/media/usb/pvrusb2/pvrusb2-encoder.c argp[idx] = rdData[idx+4]; argp 970 drivers/misc/fastrpc.c char __user *argp) argp 993 drivers/misc/fastrpc.c if (copy_from_user(&init, argp, sizeof(init))) { argp 1203 drivers/misc/fastrpc.c static int fastrpc_dmabuf_alloc(struct fastrpc_user *fl, char __user *argp) argp 1210 drivers/misc/fastrpc.c if (copy_from_user(&bp, argp, sizeof(bp))) argp 1233 drivers/misc/fastrpc.c if (copy_to_user(argp, &bp, sizeof(bp))) { argp 1258 drivers/misc/fastrpc.c static int fastrpc_invoke(struct fastrpc_user *fl, char __user *argp) argp 1265 drivers/misc/fastrpc.c if (copy_from_user(&inv, argp, sizeof(inv))) argp 1292 drivers/misc/fastrpc.c char __user *argp = (char __user *)arg; argp 1297 drivers/misc/fastrpc.c err = fastrpc_invoke(fl, argp); argp 1303 drivers/misc/fastrpc.c err = fastrpc_init_create_process(fl, argp); argp 1306 drivers/misc/fastrpc.c err = fastrpc_dmabuf_alloc(fl, argp); argp 75 drivers/misc/mic/scif/scif_fd.c void __user *argp = (void __user *)arg; argp 87 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(&pn, argp, sizeof(pn))) argp 94 drivers/misc/mic/scif/scif_fd.c if (copy_to_user(argp, &pn, sizeof(pn))) argp 106 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(&req, argp, sizeof(req))) argp 116 drivers/misc/mic/scif/scif_fd.c if (copy_to_user(argp, &req, sizeof(req))) argp 133 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(&request, argp, sizeof(request))) argp 140 drivers/misc/mic/scif/scif_fd.c if (copy_to_user(argp, &request, sizeof(request))) { argp 167 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(&newep, argp, sizeof(void *))) argp 211 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(&request, argp, argp 221 drivers/misc/mic/scif/scif_fd.c ((struct scifioctl_msg __user *)argp)->out_len, argp 235 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(&request, argp, argp 247 drivers/misc/mic/scif/scif_fd.c ((struct scifioctl_msg __user *)argp)->out_len, argp 265 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(&node_ids, argp, sizeof(node_ids))) { argp 290 drivers/misc/mic/scif/scif_fd.c if (copy_to_user(argp, &node_ids, sizeof(node_ids))) { argp 305 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(®, argp, sizeof(reg))) { argp 320 drivers/misc/mic/scif/scif_fd.c if (copy_to_user(&((struct scifioctl_reg __user *)argp) argp 335 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(&unreg, argp, sizeof(unreg))) { argp 349 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(©, argp, sizeof(copy))) { argp 364 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(©, argp, sizeof(copy))) { argp 379 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(©, argp, sizeof(copy))) { argp 394 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(©, argp, sizeof(copy))) { argp 410 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(&mark, argp, sizeof(mark))) { argp 439 drivers/misc/mic/scif/scif_fd.c if (copy_from_user(&signal, argp, sizeof(signal))) { argp 153 drivers/misc/mic/vop/vop_vringh.c static int vop_virtio_config_change(struct vop_vdev *vdev, void *argp) argp 171 drivers/misc/mic/vop/vop_vringh.c memcpy(mic_vq_configspace(vdev->dd), argp, vdev->dd->config_len); argp 194 drivers/misc/mic/vop/vop_vringh.c struct mic_device_desc *argp, __u8 *type, argp 203 drivers/misc/mic/vop/vop_vringh.c vqconfig = mic_vq_config(argp); argp 204 drivers/misc/mic/vop/vop_vringh.c for (i = 0; i < argp->num_vq; i++) { argp 215 drivers/misc/mic/vop/vop_vringh.c i < MIC_DP_SIZE - mic_total_desc_size(argp); argp 233 drivers/misc/mic/vop/vop_vringh.c *type = argp->type; argp 234 drivers/misc/mic/vop/vop_vringh.c argp->type = 0; argp 235 drivers/misc/mic/vop/vop_vringh.c memcpy(devp, argp, mic_desc_size(argp)); argp 260 drivers/misc/mic/vop/vop_vringh.c struct mic_device_desc *argp) argp 279 drivers/misc/mic/vop/vop_vringh.c ret = vop_copy_dp_entry(vdev, argp, &type, &dd); argp 371 drivers/misc/mic/vop/vop_vringh.c argp->type = type; argp 922 drivers/misc/mic/vop/vop_vringh.c void __user *argp = (void __user *)arg; argp 930 drivers/misc/mic/vop/vop_vringh.c if (copy_from_user(&dd, argp, sizeof(dd))) argp 937 drivers/misc/mic/vop/vop_vringh.c dd_config = memdup_user(argp, mic_desc_size(&dd)); argp 968 drivers/misc/mic/vop/vop_vringh.c if (copy_from_user(©, argp, sizeof(copy))) { argp 977 drivers/misc/mic/vop/vop_vringh.c &((struct mic_copy_desc __user *)argp)->out_len, argp 992 drivers/misc/mic/vop/vop_vringh.c buf = memdup_user(argp, vdev->dd->config_len); argp 91 drivers/misc/phantom.c void __user *argp = (void __user *)arg; argp 98 drivers/misc/phantom.c if (copy_from_user(&r, argp, sizeof(r))) argp 129 drivers/misc/phantom.c if (copy_from_user(&rs, argp, sizeof(rs))) argp 147 drivers/misc/phantom.c if (copy_from_user(&r, argp, sizeof(r))) argp 155 drivers/misc/phantom.c if (copy_to_user(argp, &r, sizeof(r))) argp 162 drivers/misc/phantom.c if (copy_from_user(&rs, argp, sizeof(rs))) argp 175 drivers/misc/phantom.c if (copy_to_user(argp, &rs, sizeof(rs))) argp 587 drivers/mtd/mtdchar.c struct mtd_write_req __user *argp) argp 594 drivers/mtd/mtdchar.c if (copy_from_user(&req, argp, sizeof(req))) argp 638 drivers/mtd/mtdchar.c void __user *argp = (void __user *)arg; argp 646 drivers/mtd/mtdchar.c if (copy_to_user(argp, &(mtd->numeraseregions), sizeof(int))) argp 654 drivers/mtd/mtdchar.c struct region_info_user __user *ur = argp; argp 682 drivers/mtd/mtdchar.c if (copy_to_user(argp, &info, sizeof(struct mtd_info_user))) argp 701 drivers/mtd/mtdchar.c if (copy_from_user(&einfo64, argp, argp 711 drivers/mtd/mtdchar.c if (copy_from_user(&einfo32, argp, argp 729 drivers/mtd/mtdchar.c struct mtd_oob_buf __user *buf_user = argp; argp 732 drivers/mtd/mtdchar.c if (copy_from_user(&buf, argp, sizeof(buf))) argp 743 drivers/mtd/mtdchar.c struct mtd_oob_buf __user *buf_user = argp; argp 746 drivers/mtd/mtdchar.c if (copy_from_user(&buf, argp, sizeof(buf))) argp 757 drivers/mtd/mtdchar.c struct mtd_oob_buf64 __user *buf_user = argp; argp 759 drivers/mtd/mtdchar.c if (copy_from_user(&buf, argp, sizeof(buf))) argp 771 drivers/mtd/mtdchar.c struct mtd_oob_buf64 __user *buf_user = argp; argp 773 drivers/mtd/mtdchar.c if (copy_from_user(&buf, argp, sizeof(buf))) argp 793 drivers/mtd/mtdchar.c if (copy_from_user(&einfo, argp, sizeof(einfo))) argp 804 drivers/mtd/mtdchar.c if (copy_from_user(&einfo, argp, sizeof(einfo))) argp 815 drivers/mtd/mtdchar.c if (copy_from_user(&einfo, argp, sizeof(einfo))) argp 834 drivers/mtd/mtdchar.c if (copy_to_user(argp, &oi, sizeof(struct nand_oobinfo))) argp 843 drivers/mtd/mtdchar.c if (copy_from_user(&offs, argp, sizeof(loff_t))) argp 853 drivers/mtd/mtdchar.c if (copy_from_user(&offs, argp, sizeof(loff_t))) argp 862 drivers/mtd/mtdchar.c if (copy_from_user(&mode, argp, sizeof(int))) argp 894 drivers/mtd/mtdchar.c ret = copy_to_user(argp, &nbr, sizeof(int)); argp 896 drivers/mtd/mtdchar.c ret = copy_to_user(argp, buf, retlen); argp 910 drivers/mtd/mtdchar.c if (copy_from_user(&oinfo, argp, sizeof(oinfo))) argp 930 drivers/mtd/mtdchar.c if (copy_to_user(argp, usrlay, sizeof(*usrlay))) argp 938 drivers/mtd/mtdchar.c if (copy_to_user(argp, &mtd->ecc_stats, argp 970 drivers/mtd/mtdchar.c struct blkpg_ioctl_arg __user *blk_arg = argp; argp 1021 drivers/mtd/mtdchar.c void __user *argp = compat_ptr(arg); argp 1030 drivers/mtd/mtdchar.c struct mtd_oob_buf32 __user *buf_user = argp; argp 1032 drivers/mtd/mtdchar.c if (copy_from_user(&buf, argp, sizeof(buf))) argp 1044 drivers/mtd/mtdchar.c struct mtd_oob_buf32 __user *buf_user = argp; argp 1047 drivers/mtd/mtdchar.c if (copy_from_user(&buf, argp, sizeof(buf))) argp 1059 drivers/mtd/mtdchar.c struct blkpg_compat_ioctl_arg __user *uarg = argp; argp 1079 drivers/mtd/mtdchar.c ret = mtdchar_ioctl(file, cmd, (unsigned long)argp); argp 385 drivers/mtd/ubi/cdev.c void __user *argp = (void __user *)arg; argp 398 drivers/mtd/ubi/cdev.c err = copy_from_user(&bytes, argp, sizeof(int64_t)); argp 433 drivers/mtd/ubi/cdev.c err = copy_from_user(&req, argp, argp 467 drivers/mtd/ubi/cdev.c err = get_user(lnum, (__user int32_t *)argp); argp 498 drivers/mtd/ubi/cdev.c err = copy_from_user(&req, argp, sizeof(struct ubi_map_req)); argp 512 drivers/mtd/ubi/cdev.c err = get_user(lnum, (__user int32_t *)argp); argp 526 drivers/mtd/ubi/cdev.c err = get_user(lnum, (__user int32_t *)argp); argp 540 drivers/mtd/ubi/cdev.c err = copy_from_user(&req, argp, argp 837 drivers/mtd/ubi/cdev.c void __user *argp = (void __user *)arg; argp 853 drivers/mtd/ubi/cdev.c err = copy_from_user(&req, argp, sizeof(struct ubi_mkvol_req)); argp 869 drivers/mtd/ubi/cdev.c err = put_user(req.vol_id, (__user int32_t *)argp); argp 882 drivers/mtd/ubi/cdev.c err = get_user(vol_id, (__user int32_t *)argp); argp 914 drivers/mtd/ubi/cdev.c err = copy_from_user(&req, argp, sizeof(struct ubi_rsvol_req)); argp 952 drivers/mtd/ubi/cdev.c err = copy_from_user(req, argp, sizeof(struct ubi_rnvol_req)); argp 969 drivers/mtd/ubi/cdev.c err = get_user(pnum, (__user int32_t *)argp); argp 984 drivers/mtd/ubi/cdev.c err = get_user(pnum, (__user int32_t *)argp); argp 1007 drivers/mtd/ubi/cdev.c void __user *argp = (void __user *)arg; argp 1020 drivers/mtd/ubi/cdev.c err = copy_from_user(&req, argp, sizeof(struct ubi_attach_req)); argp 1050 drivers/mtd/ubi/cdev.c err = put_user(err, (__user int32_t *)argp); argp 1061 drivers/mtd/ubi/cdev.c err = get_user(ubi_num, (__user int32_t *)argp); argp 406 drivers/net/ppp/ppp_async.c void __user *argp = (void __user *)arg; argp 407 drivers/net/ppp/ppp_async.c int __user *p = argp; argp 430 drivers/net/ppp/ppp_async.c if (put_user(ap->xaccm[0], (u32 __user *)argp)) argp 435 drivers/net/ppp/ppp_async.c if (get_user(ap->xaccm[0], (u32 __user *)argp)) argp 441 drivers/net/ppp/ppp_async.c if (put_user(ap->raccm, (u32 __user *)argp)) argp 446 drivers/net/ppp/ppp_async.c if (get_user(ap->raccm, (u32 __user *)argp)) argp 452 drivers/net/ppp/ppp_async.c if (copy_to_user(argp, ap->xaccm, sizeof(ap->xaccm))) argp 457 drivers/net/ppp/ppp_async.c if (copy_from_user(accm, argp, sizeof(accm))) argp 590 drivers/net/ppp/ppp_generic.c void __user *argp = (void __user *)arg; argp 591 drivers/net/ppp/ppp_generic.c int __user *p = argp; argp 707 drivers/net/ppp/ppp_generic.c if (copy_to_user(argp, &idle, sizeof(idle))) argp 735 drivers/net/ppp/ppp_generic.c if (copy_from_user(&npi, argp, sizeof(npi))) argp 744 drivers/net/ppp/ppp_generic.c if (copy_to_user(argp, &npi, sizeof(npi))) argp 759 drivers/net/ppp/ppp_generic.c err = get_filter(argp, &code); argp 785 drivers/net/ppp/ppp_generic.c err = get_filter(argp, &code); argp 401 drivers/net/ppp/ppp_synctty.c void __user *argp = (void __user *)arg; argp 402 drivers/net/ppp/ppp_synctty.c u32 __user *p = argp; argp 408 drivers/net/ppp/ppp_synctty.c if (put_user(val, (int __user *) argp)) argp 413 drivers/net/ppp/ppp_synctty.c if (get_user(val, (int __user *) argp)) argp 445 drivers/net/ppp/ppp_synctty.c if (copy_to_user(argp, ap->xaccm, sizeof(ap->xaccm))) argp 450 drivers/net/ppp/ppp_synctty.c if (copy_from_user(accm, argp, sizeof(accm))) argp 459 drivers/net/ppp/ppp_synctty.c if (put_user(ap->mru, (int __user *) argp)) argp 464 drivers/net/ppp/ppp_synctty.c if (get_user(val, (int __user *) argp)) argp 573 drivers/net/ppp/pptp.c void __user *argp = (void __user *)arg; argp 574 drivers/net/ppp/pptp.c int __user *p = argp; argp 69 drivers/net/tap.c static long tap_get_vnet_be(struct tap_queue *q, int __user *argp) argp 74 drivers/net/tap.c static long tap_set_vnet_be(struct tap_queue *q, int __user *argp) argp 981 drivers/net/tap.c void __user *argp = (void __user *)arg; argp 982 drivers/net/tap.c struct ifreq __user *ifr = argp; argp 983 drivers/net/tap.c unsigned int __user *up = argp; argp 985 drivers/net/tap.c int __user *sp = argp; argp 346 drivers/net/tun.c static long tun_get_vnet_be(struct tun_struct *tun, int __user *argp) argp 350 drivers/net/tun.c if (put_user(be, argp)) argp 356 drivers/net/tun.c static long tun_set_vnet_be(struct tun_struct *tun, int __user *argp) argp 360 drivers/net/tun.c if (get_user(be, argp)) argp 376 drivers/net/tun.c static long tun_get_vnet_be(struct tun_struct *tun, int __user *argp) argp 381 drivers/net/tun.c static long tun_set_vnet_be(struct tun_struct *tun, int __user *argp) argp 3044 drivers/net/tun.c void __user* argp = (void __user*)arg; argp 3057 drivers/net/tun.c if (copy_from_user(&ifr, argp, ifreq_len)) argp 3068 drivers/net/tun.c (unsigned int __user*)argp); argp 3093 drivers/net/tun.c if (copy_to_user(argp, &ifr, ifreq_len)) argp 3103 drivers/net/tun.c if (copy_from_user(&ifindex, argp, sizeof(ifindex))) argp 3128 drivers/net/tun.c if (copy_to_user(argp, &ifr, ifreq_len)) argp 3220 drivers/net/tun.c if (copy_to_user(argp, &ifr, ifreq_len)) argp 3234 drivers/net/tun.c if (copy_to_user(argp, &sndbuf, sizeof(sndbuf))) argp 3239 drivers/net/tun.c if (copy_from_user(&sndbuf, argp, sizeof(sndbuf))) { argp 3254 drivers/net/tun.c if (copy_to_user(argp, &vnet_hdr_sz, sizeof(vnet_hdr_sz))) argp 3259 drivers/net/tun.c if (copy_from_user(&vnet_hdr_sz, argp, sizeof(vnet_hdr_sz))) { argp 3273 drivers/net/tun.c if (put_user(le, (int __user *)argp)) argp 3278 drivers/net/tun.c if (get_user(le, (int __user *)argp)) { argp 3289 drivers/net/tun.c ret = tun_get_vnet_be(tun, argp); argp 3293 drivers/net/tun.c ret = tun_set_vnet_be(tun, argp); argp 3302 drivers/net/tun.c if (copy_from_user(&tun->fprog, argp, sizeof(tun->fprog))) argp 3322 drivers/net/tun.c if (copy_to_user(argp, &tun->fprog, sizeof(tun->fprog))) argp 3328 drivers/net/tun.c ret = tun_set_ebpf(tun, &tun->steering_prog, argp); argp 3332 drivers/net/tun.c ret = tun_set_ebpf(tun, &tun->filter_prog, argp); argp 3337 drivers/net/tun.c if (copy_from_user(&carrier, argp, sizeof(carrier))) argp 1132 drivers/net/wan/cosa.c void __user *argp = (void __user *)arg; argp 1146 drivers/net/wan/cosa.c return cosa_download(cosa, argp); argp 1150 drivers/net/wan/cosa.c return cosa_readmem(cosa, argp); argp 1152 drivers/net/wan/cosa.c return cosa_gettype(cosa, argp); argp 1154 drivers/net/wan/cosa.c return cosa_getidstr(cosa, argp); argp 1535 drivers/nvme/host/core.c void __user *argp, argp 1547 drivers/nvme/host/core.c ret = nvme_user_cmd(ctrl, NULL, argp); argp 1550 drivers/nvme/host/core.c ret = nvme_user_cmd64(ctrl, NULL, argp); argp 1553 drivers/nvme/host/core.c ret = sed_ioctl(ctrl->opal_dev, cmd, argp); argp 1564 drivers/nvme/host/core.c void __user *argp = (void __user *)arg; argp 1578 drivers/nvme/host/core.c return nvme_handle_ctrl_ioctl(ns, cmd, argp, head, srcu_idx); argp 1586 drivers/nvme/host/core.c ret = nvme_user_cmd(ns->ctrl, ns, argp); argp 1589 drivers/nvme/host/core.c ret = nvme_submit_io(ns, argp); argp 1592 drivers/nvme/host/core.c ret = nvme_user_cmd64(ns->ctrl, ns, argp); argp 2933 drivers/nvme/host/core.c static int nvme_dev_user_cmd(struct nvme_ctrl *ctrl, void __user *argp) argp 2957 drivers/nvme/host/core.c ret = nvme_user_cmd(ctrl, ns, argp); argp 2970 drivers/nvme/host/core.c void __user *argp = (void __user *)arg; argp 2974 drivers/nvme/host/core.c return nvme_user_cmd(ctrl, NULL, argp); argp 2976 drivers/nvme/host/core.c return nvme_user_cmd64(ctrl, NULL, argp); argp 2978 drivers/nvme/host/core.c return nvme_dev_user_cmd(ctrl, argp); argp 981 drivers/pci/switch/switchtec.c void __user *argp = (void __user *)arg; argp 989 drivers/pci/switch/switchtec.c rc = ioctl_flash_info(stdev, argp); argp 992 drivers/pci/switch/switchtec.c rc = ioctl_flash_part_info(stdev, argp); argp 995 drivers/pci/switch/switchtec.c rc = ioctl_event_summary(stdev, stuser, argp, argp 999 drivers/pci/switch/switchtec.c rc = ioctl_event_ctl(stdev, argp); argp 1002 drivers/pci/switch/switchtec.c rc = ioctl_pff_to_port(stdev, argp); argp 1005 drivers/pci/switch/switchtec.c rc = ioctl_port_to_pff(stdev, argp); argp 1008 drivers/pci/switch/switchtec.c rc = ioctl_event_summary(stdev, stuser, argp, argp 79 drivers/platform/x86/intel_scu_ipcutil.c void __user *argp = (void __user *)arg; argp 84 drivers/platform/x86/intel_scu_ipcutil.c if (copy_from_user(&data, argp, sizeof(struct scu_ipc_data))) argp 89 drivers/platform/x86/intel_scu_ipcutil.c if (copy_to_user(argp, &data, sizeof(struct scu_ipc_data))) argp 261 drivers/platform/x86/intel_speed_select_if/isst_if_common.c static int isst_if_get_platform_info(void __user *argp) argp 271 drivers/platform/x86/intel_speed_select_if/isst_if_common.c if (copy_to_user(argp, &info, sizeof(info))) argp 439 drivers/platform/x86/intel_speed_select_if/isst_if_common.c static long isst_if_exec_multi_cmd(void __user *argp, struct isst_if_cmd_cb *cb) argp 448 drivers/platform/x86/intel_speed_select_if/isst_if_common.c if (copy_from_user(&cmd_count, argp, sizeof(cmd_count))) argp 459 drivers/platform/x86/intel_speed_select_if/isst_if_common.c ptr = argp + cb->offset; argp 494 drivers/platform/x86/intel_speed_select_if/isst_if_common.c void __user *argp = (void __user *)arg; argp 501 drivers/platform/x86/intel_speed_select_if/isst_if_common.c ret = isst_if_get_platform_info(argp); argp 507 drivers/platform/x86/intel_speed_select_if/isst_if_common.c ret = isst_if_exec_multi_cmd(argp, &cmd_cb); argp 512 drivers/platform/x86/intel_speed_select_if/isst_if_common.c ret = isst_if_exec_multi_cmd(argp, cb); argp 517 drivers/platform/x86/intel_speed_select_if/isst_if_common.c ret = isst_if_exec_multi_cmd(argp, cb); argp 523 drivers/platform/x86/intel_speed_select_if/isst_if_common.c ret = isst_if_exec_multi_cmd(argp, &cmd_cb); argp 4136 drivers/platform/x86/sony-laptop.c void __user *argp = (void __user *)arg; argp 4154 drivers/platform/x86/sony-laptop.c if (copy_to_user(argp, &val8, sizeof(val8))) argp 4162 drivers/platform/x86/sony-laptop.c if (copy_from_user(&val8, argp, sizeof(val8))) { argp 4181 drivers/platform/x86/sony-laptop.c if (copy_to_user(argp, &val16, sizeof(val16))) argp 4189 drivers/platform/x86/sony-laptop.c if (copy_to_user(argp, &val16, sizeof(val16))) argp 4197 drivers/platform/x86/sony-laptop.c if (copy_to_user(argp, &val16, sizeof(val16))) argp 4205 drivers/platform/x86/sony-laptop.c if (copy_to_user(argp, &val16, sizeof(val16))) argp 4214 drivers/platform/x86/sony-laptop.c if (copy_to_user(argp, &val8, sizeof(val8))) argp 4219 drivers/platform/x86/sony-laptop.c if (copy_to_user(argp, &val8, sizeof(val8))) argp 4223 drivers/platform/x86/sony-laptop.c if (copy_from_user(&val8, argp, sizeof(val8))) { argp 4235 drivers/platform/x86/sony-laptop.c if (copy_to_user(argp, &val8, sizeof(val8))) argp 4239 drivers/platform/x86/sony-laptop.c if (copy_from_user(&val8, argp, sizeof(val8))) { argp 4252 drivers/platform/x86/sony-laptop.c if (copy_to_user(argp, &val8, sizeof(val8))) argp 2528 drivers/platform/x86/toshiba_acpi.c SMMRegisters __user *argp = (SMMRegisters __user *)arg; argp 2532 drivers/platform/x86/toshiba_acpi.c if (!argp) argp 2537 drivers/platform/x86/toshiba_acpi.c if (copy_from_user(®s, argp, sizeof(SMMRegisters))) argp 2542 drivers/platform/x86/toshiba_acpi.c if (copy_to_user(argp, ®s, sizeof(SMMRegisters))) argp 2546 drivers/platform/x86/toshiba_acpi.c if (copy_from_user(®s, argp, sizeof(SMMRegisters))) argp 2557 drivers/platform/x86/toshiba_acpi.c if (copy_to_user(argp, ®s, sizeof(SMMRegisters))) argp 433 drivers/rpmsg/rpmsg_char.c void __user *argp = (void __user *)arg; argp 440 drivers/rpmsg/rpmsg_char.c if (copy_from_user(&eptinfo, argp, sizeof(eptinfo))) argp 5078 drivers/s390/block/dasd_eckd.c void __user *argp) argp 5089 drivers/s390/block/dasd_eckd.c if (copy_from_user(&usrparm, argp, sizeof(usrparm))) argp 5129 drivers/s390/block/dasd_eckd.c if (copy_to_user(argp, &usrparm, sizeof(usrparm))) argp 5144 drivers/s390/block/dasd_eckd.c dasd_eckd_performance(struct dasd_device *device, void __user *argp) argp 5195 drivers/s390/block/dasd_eckd.c if (copy_to_user(argp, stats, argp 5208 drivers/s390/block/dasd_eckd.c dasd_eckd_get_attrib(struct dasd_device *device, void __user *argp) argp 5216 drivers/s390/block/dasd_eckd.c if (!argp) argp 5220 drivers/s390/block/dasd_eckd.c if (copy_to_user(argp, (long *) &attrib, argp 5232 drivers/s390/block/dasd_eckd.c dasd_eckd_set_attrib(struct dasd_device *device, void __user *argp) argp 5239 drivers/s390/block/dasd_eckd.c if (!argp) argp 5242 drivers/s390/block/dasd_eckd.c if (copy_from_user(&attrib, argp, sizeof(struct attrib_data_t))) argp 5256 drivers/s390/block/dasd_eckd.c static int dasd_symm_io(struct dasd_device *device, void __user *argp) argp 5271 drivers/s390/block/dasd_eckd.c if (copy_from_user(&usrparm, argp, sizeof(usrparm))) argp 5364 drivers/s390/block/dasd_eckd.c dasd_eckd_ioctl(struct dasd_block *block, unsigned int cmd, void __user *argp) argp 5370 drivers/s390/block/dasd_eckd.c return dasd_eckd_get_attrib(device, argp); argp 5372 drivers/s390/block/dasd_eckd.c return dasd_eckd_set_attrib(device, argp); argp 5374 drivers/s390/block/dasd_eckd.c return dasd_eckd_performance(device, argp); argp 5382 drivers/s390/block/dasd_eckd.c return dasd_eckd_snid(device, argp); argp 5384 drivers/s390/block/dasd_eckd.c return dasd_symm_io(device, argp); argp 33 drivers/s390/block/dasd_ioctl.c dasd_ioctl_api_version(void __user *argp) argp 36 drivers/s390/block/dasd_ioctl.c return put_user(ver, (int __user *)argp); argp 262 drivers/s390/block/dasd_ioctl.c dasd_ioctl_format(struct block_device *bdev, void __user *argp) argp 270 drivers/s390/block/dasd_ioctl.c if (!argp) argp 280 drivers/s390/block/dasd_ioctl.c if (copy_from_user(&fdata, argp, sizeof(struct format_data_t))) { argp 299 drivers/s390/block/dasd_ioctl.c static int dasd_ioctl_check_format(struct block_device *bdev, void __user *argp) argp 305 drivers/s390/block/dasd_ioctl.c if (!argp) argp 318 drivers/s390/block/dasd_ioctl.c if (copy_from_user(&cdata, argp, sizeof(cdata))) { argp 327 drivers/s390/block/dasd_ioctl.c if (copy_to_user(argp, &cdata, sizeof(cdata))) argp 350 drivers/s390/block/dasd_ioctl.c static int dasd_ioctl_release_space(struct block_device *bdev, void __user *argp) argp 358 drivers/s390/block/dasd_ioctl.c if (!argp) argp 376 drivers/s390/block/dasd_ioctl.c if (copy_from_user(&rdata, argp, sizeof(rdata))) { argp 402 drivers/s390/block/dasd_ioctl.c static int dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp) argp 439 drivers/s390/block/dasd_ioctl.c if (copy_to_user(argp, data, sizeof(*data))) argp 451 drivers/s390/block/dasd_ioctl.c static int dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp) argp 461 drivers/s390/block/dasd_ioctl.c unsigned int cmd, void __user *argp) argp 525 drivers/s390/block/dasd_ioctl.c if (copy_to_user(argp, dasd_info, argp 538 drivers/s390/block/dasd_ioctl.c dasd_ioctl_set_ro(struct block_device *bdev, void __user *argp) argp 548 drivers/s390/block/dasd_ioctl.c if (get_user(intval, (int __user *)argp)) argp 564 drivers/s390/block/dasd_ioctl.c struct cmbdata __user *argp) argp 571 drivers/s390/block/dasd_ioctl.c if (!ret && copy_to_user(argp, &data, min(size, sizeof(*argp)))) argp 581 drivers/s390/block/dasd_ioctl.c void __user *argp; argp 585 drivers/s390/block/dasd_ioctl.c argp = compat_ptr(arg); argp 587 drivers/s390/block/dasd_ioctl.c argp = (void __user *)arg; argp 619 drivers/s390/block/dasd_ioctl.c rc = dasd_ioctl_format(bdev, argp); argp 622 drivers/s390/block/dasd_ioctl.c rc = dasd_ioctl_check_format(bdev, argp); argp 625 drivers/s390/block/dasd_ioctl.c rc = dasd_ioctl_information(block, cmd, argp); argp 628 drivers/s390/block/dasd_ioctl.c rc = dasd_ioctl_information(block, cmd, argp); argp 631 drivers/s390/block/dasd_ioctl.c rc = dasd_ioctl_read_profile(block, argp); argp 637 drivers/s390/block/dasd_ioctl.c rc = dasd_ioctl_set_ro(bdev, argp); argp 640 drivers/s390/block/dasd_ioctl.c rc = dasd_ioctl_api_version(argp); argp 649 drivers/s390/block/dasd_ioctl.c rc = dasd_ioctl_readall_cmb(block, cmd, argp); argp 652 drivers/s390/block/dasd_ioctl.c rc = dasd_ioctl_release_space(bdev, argp); argp 658 drivers/s390/block/dasd_ioctl.c rc = base->discipline->ioctl(block, cmd, argp); argp 328 drivers/s390/char/fs3270.c char __user *argp; argp 337 drivers/s390/char/fs3270.c argp = compat_ptr(arg); argp 339 drivers/s390/char/fs3270.c argp = (char __user *)arg; argp 350 drivers/s390/char/fs3270.c rc = put_user(fp->read_command, argp); argp 353 drivers/s390/char/fs3270.c rc = put_user(fp->write_command, argp); argp 362 drivers/s390/char/fs3270.c if (copy_to_user(argp, &iocb, sizeof(struct raw3270_iocb))) argp 480 drivers/s390/char/keyboard.c void __user *argp; argp 484 drivers/s390/char/keyboard.c argp = (void __user *)arg; argp 496 drivers/s390/char/keyboard.c return put_user(KB_101, (char __user *)argp); argp 499 drivers/s390/char/keyboard.c return do_kdsk_ioctl(kbd, argp, cmd, perm); argp 502 drivers/s390/char/keyboard.c return do_kdgkb_ioctl(kbd, argp, cmd, perm); argp 505 drivers/s390/char/keyboard.c struct kbdiacrs __user *a = argp; argp 522 drivers/s390/char/keyboard.c struct kbdiacrsuc __user *a = argp; argp 534 drivers/s390/char/keyboard.c struct kbdiacrs __user *a = argp; argp 556 drivers/s390/char/keyboard.c struct kbdiacrsuc __user *a = argp; argp 96 drivers/s390/char/sclp_ctl.c void __user *argp; argp 99 drivers/s390/char/sclp_ctl.c argp = compat_ptr(arg); argp 101 drivers/s390/char/sclp_ctl.c argp = (void __user *) arg; argp 104 drivers/s390/char/sclp_ctl.c return sclp_ctl_ioctl_sccb(argp); argp 459 drivers/s390/char/tape_char.c unsigned long argp; argp 465 drivers/s390/char/tape_char.c argp = (unsigned long) compat_ptr(data); argp 468 drivers/s390/char/tape_char.c rval = device->discipline->ioctl_fn(device, no, argp); argp 204 drivers/s390/char/vmcp.c int __user *argp; argp 208 drivers/s390/char/vmcp.c argp = compat_ptr(arg); argp 210 drivers/s390/char/vmcp.c argp = (int __user *)arg; argp 215 drivers/s390/char/vmcp.c ret = put_user(session->resp_code, argp); argp 219 drivers/s390/char/vmcp.c ret = get_user(session->bufsize, argp); argp 228 drivers/s390/char/vmcp.c ret = put_user(session->resp_size, argp); argp 879 drivers/s390/cio/chsc_sch.c void __user *argp; argp 883 drivers/s390/cio/chsc_sch.c argp = compat_ptr(arg); argp 885 drivers/s390/cio/chsc_sch.c argp = (void __user *)arg; argp 888 drivers/s390/cio/chsc_sch.c return chsc_ioctl_start(argp); argp 890 drivers/s390/cio/chsc_sch.c return chsc_ioctl_start_sync(argp); argp 892 drivers/s390/cio/chsc_sch.c return chsc_ioctl_info_channel_path(argp); argp 894 drivers/s390/cio/chsc_sch.c return chsc_ioctl_info_cu(argp); argp 896 drivers/s390/cio/chsc_sch.c return chsc_ioctl_info_sch_cu(argp); argp 898 drivers/s390/cio/chsc_sch.c return chsc_ioctl_conf_info(argp); argp 900 drivers/s390/cio/chsc_sch.c return chsc_ioctl_conf_comp_list(argp); argp 902 drivers/s390/cio/chsc_sch.c return chsc_ioctl_chpd(argp); argp 904 drivers/s390/cio/chsc_sch.c return chsc_ioctl_dcal(argp); argp 906 drivers/s390/cio/chsc_sch.c return chsc_ioctl_on_close_set(argp); argp 130 drivers/sbus/char/openprom.c static int opromgetprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize) argp 138 drivers/sbus/char/openprom.c return copyout(argp, op, sizeof(int)); argp 144 drivers/sbus/char/openprom.c return copyout(argp, op, sizeof(int) + bufsize); argp 147 drivers/sbus/char/openprom.c static int opromnxtprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize) argp 153 drivers/sbus/char/openprom.c return copyout(argp, op, sizeof(int)); argp 157 drivers/sbus/char/openprom.c return copyout(argp, op, sizeof(int)); argp 165 drivers/sbus/char/openprom.c return copyout(argp, op, sizeof(int)); argp 174 drivers/sbus/char/openprom.c return copyout(argp, op, sizeof(int) + bufsize); argp 185 drivers/sbus/char/openprom.c static int opromnext(void __user *argp, unsigned int cmd, struct device_node *dp, struct openpromio *op, int bufsize, DATA *data) argp 229 drivers/sbus/char/openprom.c return copyout(argp, op, bufsize + sizeof(int)); argp 232 drivers/sbus/char/openprom.c static int oprompci2node(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize, DATA *data) argp 249 drivers/sbus/char/openprom.c err = copyout(argp, op, bufsize + sizeof(int)); argp 258 drivers/sbus/char/openprom.c static int oprompath2node(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize, DATA *data) argp 269 drivers/sbus/char/openprom.c return copyout(argp, op, bufsize + sizeof(int)); argp 272 drivers/sbus/char/openprom.c static int opromgetbootargs(void __user *argp, struct openpromio *op, int bufsize) argp 283 drivers/sbus/char/openprom.c return copyout(argp, op, bufsize + sizeof(int)); argp 297 drivers/sbus/char/openprom.c void __user *argp = (void __user *)arg; argp 300 drivers/sbus/char/openprom.c bufsize = getstrings(argp, &opp); argp 302 drivers/sbus/char/openprom.c bufsize = copyin(argp, &opp); argp 312 drivers/sbus/char/openprom.c error = opromgetprop(argp, dp, opp, bufsize); argp 317 drivers/sbus/char/openprom.c error = opromnxtprop(argp, dp, opp, bufsize); argp 328 drivers/sbus/char/openprom.c error = opromnext(argp, cmd, dp, opp, bufsize, data); argp 332 drivers/sbus/char/openprom.c error = oprompci2node(argp, dp, opp, bufsize, data); argp 336 drivers/sbus/char/openprom.c error = oprompath2node(argp, dp, opp, bufsize, data); argp 340 drivers/sbus/char/openprom.c error = opromgetbootargs(argp, opp, bufsize); argp 385 drivers/sbus/char/openprom.c static int opiocget(void __user *argp, DATA *data) argp 393 drivers/sbus/char/openprom.c if (copy_from_user(&op, argp, sizeof(op))) argp 408 drivers/sbus/char/openprom.c if (copy_to_user(argp, &op, sizeof(op)) || argp 417 drivers/sbus/char/openprom.c static int opiocnextprop(void __user *argp, DATA *data) argp 425 drivers/sbus/char/openprom.c if (copy_from_user(&op, argp, sizeof(op))) argp 453 drivers/sbus/char/openprom.c if (copy_to_user(argp, &op, sizeof(op))) argp 463 drivers/sbus/char/openprom.c static int opiocset(void __user *argp, DATA *data) argp 470 drivers/sbus/char/openprom.c if (copy_from_user(&op, argp, sizeof(op))) argp 495 drivers/sbus/char/openprom.c static int opiocgetnext(unsigned int cmd, void __user *argp) argp 502 drivers/sbus/char/openprom.c if (copy_from_user(&nd, argp, sizeof(phandle))) argp 521 drivers/sbus/char/openprom.c if (copy_to_user(argp, &nd, sizeof(phandle))) argp 531 drivers/sbus/char/openprom.c void __user *argp = (void __user *)arg; argp 537 drivers/sbus/char/openprom.c err = opiocget(argp, data); argp 541 drivers/sbus/char/openprom.c err = opiocnextprop(argp, data); argp 545 drivers/sbus/char/openprom.c err = opiocset(argp, data); argp 552 drivers/sbus/char/openprom.c if (copy_to_user(argp, &options_node->phandle, sizeof(phandle))) argp 558 drivers/sbus/char/openprom.c err = opiocgetnext(cmd, argp); argp 655 drivers/scsi/3w-9xxx.c void __user *argp = (void __user *)arg; argp 666 drivers/scsi/3w-9xxx.c if (copy_from_user(&driver_command, argp, sizeof(TW_Ioctl_Driver_Command))) argp 688 drivers/scsi/3w-9xxx.c if (copy_from_user(tw_ioctl, argp, driver_command.buffer_length + sizeof(TW_Ioctl_Buf_Apache) - 1)) argp 870 drivers/scsi/3w-9xxx.c if (copy_to_user(argp, tw_ioctl, sizeof(TW_Ioctl_Buf_Apache) + driver_command.buffer_length - 1) == 0) argp 728 drivers/scsi/3w-sas.c void __user *argp = (void __user *)arg; argp 739 drivers/scsi/3w-sas.c if (copy_from_user(&driver_command, argp, sizeof(TW_Ioctl_Driver_Command))) argp 761 drivers/scsi/3w-sas.c if (copy_from_user(tw_ioctl, argp, driver_command.buffer_length + sizeof(TW_Ioctl_Buf_Apache) - 1)) argp 819 drivers/scsi/3w-sas.c if (copy_to_user(argp, tw_ioctl, sizeof(TW_Ioctl_Buf_Apache) + driver_command.buffer_length - 1) == 0) argp 888 drivers/scsi/3w-xxxx.c void __user *argp = (void __user *)arg; argp 900 drivers/scsi/3w-xxxx.c if (copy_from_user(&data_buffer_length, argp, sizeof(unsigned int))) argp 922 drivers/scsi/3w-xxxx.c if (copy_from_user(tw_ioctl, argp, data_buffer_length + sizeof(TW_New_Ioctl) - 1)) argp 1018 drivers/scsi/3w-xxxx.c if (copy_to_user(argp, tw_ioctl, sizeof(TW_New_Ioctl) + data_buffer_length - 1)) argp 623 drivers/scsi/ch.c void __user *argp = (void __user *)arg; argp 641 drivers/scsi/ch.c if (copy_to_user(argp, ¶ms, sizeof(params))) argp 666 drivers/scsi/ch.c if (copy_to_user(argp, &vparams, sizeof(vparams))) argp 675 drivers/scsi/ch.c if (copy_from_user(&pos, argp, sizeof (pos))) argp 694 drivers/scsi/ch.c if (copy_from_user(&mv, argp, sizeof (mv))) argp 716 drivers/scsi/ch.c if (copy_from_user(&mv, argp, sizeof (mv))) argp 741 drivers/scsi/ch.c if (copy_from_user(&ces, argp, sizeof (ces))) argp 757 drivers/scsi/ch.c if (copy_from_user(&cge, argp, sizeof (cge))) argp 822 drivers/scsi/ch.c if (copy_to_user(argp, &cge, sizeof (cge))) argp 840 drivers/scsi/ch.c if (copy_from_user(&csv, argp, sizeof(csv))) argp 858 drivers/scsi/ch.c return scsi_ioctl(ch->device, cmd, argp); argp 1956 drivers/scsi/dpt_i2o.c void __user *argp = (void __user *)arg; argp 1979 drivers/scsi/dpt_i2o.c if (copy_to_user(argp, &DPTI_sig, sizeof(DPTI_sig))) { argp 1984 drivers/scsi/dpt_i2o.c return adpt_i2o_passthru(pHba, argp); argp 2000 drivers/scsi/dpt_i2o.c if(copy_to_user(argp, &HbaInfo, sizeof(HbaInfo))){ argp 2007 drivers/scsi/dpt_i2o.c return adpt_system_info(argp); argp 2011 drivers/scsi/dpt_i2o.c if (copy_to_user(argp, &value, sizeof(value))) { argp 3883 drivers/scsi/gdth.c void __user *argp = (void __user *)arg; argp 3893 drivers/scsi/gdth.c if (put_user(cnt, (int __user *)argp)) argp 3901 drivers/scsi/gdth.c if (put_user(ver, (int __user *)argp)) argp 3913 drivers/scsi/gdth.c if (copy_to_user(argp, &osv, sizeof(gdth_ioctl_osvers))) argp 3922 drivers/scsi/gdth.c if (copy_from_user(&ctrt, argp, sizeof(gdth_ioctl_ctrtype)) || argp 3939 drivers/scsi/gdth.c if (copy_to_user(argp, &ctrt, sizeof(gdth_ioctl_ctrtype))) argp 3945 drivers/scsi/gdth.c return ioc_general(argp, cmnd); argp 3948 drivers/scsi/gdth.c return ioc_event(argp); argp 3951 drivers/scsi/gdth.c return ioc_lockdrv(argp); argp 3958 drivers/scsi/gdth.c if (copy_from_user(&lchn, argp, sizeof(gdth_ioctl_lockchn)) || argp 3982 drivers/scsi/gdth.c return ioc_rescan(argp, cmnd); argp 3985 drivers/scsi/gdth.c return ioc_hdrlist(argp, cmnd); argp 3992 drivers/scsi/gdth.c if (copy_from_user(&res, argp, sizeof(gdth_ioctl_reset)) || argp 4006 drivers/scsi/gdth.c if (copy_to_user(argp, &res, sizeof(gdth_ioctl_reset))) argp 4012 drivers/scsi/gdth.c return ioc_resetdrv(argp, cmnd); argp 6302 drivers/scsi/hpsa.c static int hpsa_getpciinfo_ioctl(struct ctlr_info *h, void __user *argp) argp 6306 drivers/scsi/hpsa.c if (!argp) argp 6312 drivers/scsi/hpsa.c if (copy_to_user(argp, &pciinfo, sizeof(pciinfo))) argp 6317 drivers/scsi/hpsa.c static int hpsa_getdrivver_ioctl(struct ctlr_info *h, void __user *argp) argp 6333 drivers/scsi/hpsa.c if (!argp) argp 6335 drivers/scsi/hpsa.c if (copy_to_user(argp, &DriverVer, sizeof(DriverVer_type))) argp 6340 drivers/scsi/hpsa.c static int hpsa_passthru_ioctl(struct ctlr_info *h, void __user *argp) argp 6348 drivers/scsi/hpsa.c if (!argp) argp 6352 drivers/scsi/hpsa.c if (copy_from_user(&iocommand, argp, sizeof(iocommand))) argp 6420 drivers/scsi/hpsa.c if (copy_to_user(argp, &iocommand, sizeof(iocommand))) { argp 6439 drivers/scsi/hpsa.c static int hpsa_big_passthru_ioctl(struct ctlr_info *h, void __user *argp) argp 6452 drivers/scsi/hpsa.c if (!argp) argp 6456 drivers/scsi/hpsa.c ioc = vmemdup_user(argp, sizeof(*ioc)); argp 6547 drivers/scsi/hpsa.c if (copy_to_user(argp, ioc, sizeof(*ioc))) { argp 6595 drivers/scsi/hpsa.c void __user *argp = (void __user *)arg; argp 6607 drivers/scsi/hpsa.c return hpsa_getpciinfo_ioctl(h, argp); argp 6609 drivers/scsi/hpsa.c return hpsa_getdrivver_ioctl(h, argp); argp 6613 drivers/scsi/hpsa.c rc = hpsa_passthru_ioctl(h, argp); argp 6619 drivers/scsi/hpsa.c rc = hpsa_big_passthru_ioctl(h, argp); argp 118 drivers/scsi/megaraid/megaraid_mm.c void __user *argp = (void __user *)arg; argp 132 drivers/scsi/megaraid/megaraid_mm.c if (copy_from_user(signature, argp, EXT_IOCTL_SIGN_SZ)) { argp 153 drivers/scsi/megaraid/megaraid_mm.c rval = handle_drvrcmd(argp, old_ioctl, &drvrcmd_rval); argp 161 drivers/scsi/megaraid/megaraid_mm.c if ((adp = mraid_mm_get_adapter(argp, &rval)) == NULL) { argp 188 drivers/scsi/megaraid/megaraid_mm.c if ((rval = mimd_to_kioc(argp, adp, kioc))) { argp 211 drivers/scsi/megaraid/megaraid_mm.c rval = kioc_to_mimd(kioc, argp); argp 3910 drivers/scsi/pmcraid.c void __user *argp = (void __user *)arg; argp 3920 drivers/scsi/pmcraid.c retval = pmcraid_check_ioctl_buffer(cmd, argp, hdr); argp 3946 drivers/scsi/pmcraid.c hdr->buffer_length, argp); argp 3955 drivers/scsi/pmcraid.c hdr->buffer_length, argp); argp 564 drivers/scsi/sr.c void __user *argp = (void __user *)arg; argp 583 drivers/scsi/sr.c ret = scsi_ioctl(sdev, cmd, argp); argp 591 drivers/scsi/sr.c ret = scsi_ioctl(sdev, cmd, argp); argp 456 drivers/staging/gasket/apex_driver.c struct apex_gate_clock_ioctl __user *argp) argp 463 drivers/staging/gasket/apex_driver.c if (copy_from_user(&ibuf, argp, sizeof(ibuf))) argp 489 drivers/staging/gasket/apex_driver.c static long apex_ioctl(struct file *filp, uint cmd, void __user *argp) argp 498 drivers/staging/gasket/apex_driver.c return apex_clock_gating(gasket_dev, argp); argp 1311 drivers/staging/gasket/gasket_core.c void __user *argp = (void __user *)arg; argp 1330 drivers/staging/gasket/gasket_core.c return driver_desc->ioctl_handler_cb(filp, cmd, argp); argp 1336 drivers/staging/gasket/gasket_core.c return gasket_handle_ioctl(filp, cmd, argp); argp 308 drivers/staging/gasket/gasket_core.h void __user *argp); argp 311 drivers/staging/gasket/gasket_core.h void __user *argp); argp 28 drivers/staging/gasket/gasket_ioctl.c struct gasket_interrupt_eventfd __user *argp) argp 32 drivers/staging/gasket/gasket_ioctl.c if (copy_from_user(&die, argp, sizeof(struct gasket_interrupt_eventfd))) argp 43 drivers/staging/gasket/gasket_ioctl.c struct gasket_page_table_ioctl __user *argp) argp 48 drivers/staging/gasket/gasket_ioctl.c if (copy_from_user(&ibuf, argp, sizeof(struct gasket_page_table_ioctl))) argp 61 drivers/staging/gasket/gasket_ioctl.c if (copy_to_user(argp, &ibuf, sizeof(ibuf))) argp 69 drivers/staging/gasket/gasket_ioctl.c struct gasket_page_table_ioctl __user *argp) argp 74 drivers/staging/gasket/gasket_ioctl.c if (copy_from_user(&ibuf, argp, sizeof(struct gasket_page_table_ioctl))) argp 87 drivers/staging/gasket/gasket_ioctl.c if (copy_to_user(argp, &ibuf, sizeof(ibuf))) argp 95 drivers/staging/gasket/gasket_ioctl.c struct gasket_page_table_ioctl __user *argp) argp 101 drivers/staging/gasket/gasket_ioctl.c if (copy_from_user(&ibuf, argp, sizeof(struct gasket_page_table_ioctl))) argp 131 drivers/staging/gasket/gasket_ioctl.c struct gasket_page_table_ioctl __user *argp) argp 135 drivers/staging/gasket/gasket_ioctl.c if (copy_from_user(&ibuf, argp, sizeof(struct gasket_page_table_ioctl))) argp 157 drivers/staging/gasket/gasket_ioctl.c struct gasket_page_table_ioctl __user *argp) argp 161 drivers/staging/gasket/gasket_ioctl.c if (copy_from_user(&ibuf, argp, sizeof(struct gasket_page_table_ioctl))) argp 186 drivers/staging/gasket/gasket_ioctl.c struct gasket_coherent_alloc_config_ioctl __user *argp) argp 191 drivers/staging/gasket/gasket_ioctl.c if (copy_from_user(&ibuf, argp, argp 215 drivers/staging/gasket/gasket_ioctl.c if (copy_to_user(argp, &ibuf, sizeof(ibuf))) argp 270 drivers/staging/gasket/gasket_ioctl.c long gasket_handle_ioctl(struct file *filp, uint cmd, void __user *argp) argp 273 drivers/staging/gasket/gasket_ioctl.c unsigned long arg = (unsigned long)argp; argp 282 drivers/staging/gasket/gasket_ioctl.c retval = ioctl_permissions_cb(filp, cmd, argp); argp 306 drivers/staging/gasket/gasket_ioctl.c retval = gasket_set_event_fd(gasket_dev, argp); argp 316 drivers/staging/gasket/gasket_ioctl.c retval = gasket_partition_page_table(gasket_dev, argp); argp 320 drivers/staging/gasket/gasket_ioctl.c if (copy_to_user(argp, &gasket_dev->num_page_tables, argp 327 drivers/staging/gasket/gasket_ioctl.c retval = gasket_read_page_table_size(gasket_dev, argp); argp 330 drivers/staging/gasket/gasket_ioctl.c retval = gasket_read_simple_page_table_size(gasket_dev, argp); argp 333 drivers/staging/gasket/gasket_ioctl.c retval = gasket_map_buffers(gasket_dev, argp); argp 336 drivers/staging/gasket/gasket_ioctl.c retval = gasket_config_coherent_allocator(gasket_dev, argp); argp 339 drivers/staging/gasket/gasket_ioctl.c retval = gasket_unmap_buffers(gasket_dev, argp); argp 18 drivers/staging/gasket/gasket_ioctl.h long gasket_handle_ioctl(struct file *filp, uint cmd, void __user *argp); argp 877 drivers/staging/pi433/pi433_if.c void __user *argp = (void __user *)arg; argp 891 drivers/staging/pi433/pi433_if.c if (copy_to_user(argp, &instance->tx_cfg, argp 896 drivers/staging/pi433/pi433_if.c if (copy_from_user(&tx_cfg, argp, sizeof(struct pi433_tx_cfg))) argp 903 drivers/staging/pi433/pi433_if.c if (copy_to_user(argp, &device->rx_cfg, argp 916 drivers/staging/pi433/pi433_if.c if (copy_from_user(&device->rx_cfg, argp, argp 300 drivers/staging/vme/devices/vme_user.c void __user *argp = (void __user *)arg; argp 306 drivers/staging/vme/devices/vme_user.c copied = copy_from_user(&irq_req, argp, argp 332 drivers/staging/vme/devices/vme_user.c copied = copy_to_user(argp, &master, argp 348 drivers/staging/vme/devices/vme_user.c copied = copy_from_user(&master, argp, sizeof(master)); argp 377 drivers/staging/vme/devices/vme_user.c copied = copy_to_user(argp, &slave, argp 388 drivers/staging/vme/devices/vme_user.c copied = copy_from_user(&slave, argp, sizeof(slave)); argp 1210 drivers/tty/amiserial.c void __user *argp = (void __user *)arg; argp 1229 drivers/tty/amiserial.c return get_lsr_info(info, argp); argp 2627 drivers/tty/cyclades.c void __user *argp = (void __user *)arg; argp 2639 drivers/tty/cyclades.c if (copy_to_user(argp, &info->mon, sizeof(info->mon))) { argp 2646 drivers/tty/cyclades.c ret_val = get_threshold(info, argp); argp 2653 drivers/tty/cyclades.c (unsigned long __user *)argp); argp 2659 drivers/tty/cyclades.c ret_val = get_timeout(info, argp); argp 2666 drivers/tty/cyclades.c (unsigned long __user *)argp); argp 2703 drivers/tty/cyclades.c ret_val = get_lsr_info(info, argp); argp 290 drivers/tty/moxa.c void __user *argp = (void __user *)arg; argp 303 drivers/tty/moxa.c if (copy_to_user(argp, &moxaLog, sizeof(moxaLog))) argp 310 drivers/tty/moxa.c struct moxaq_str __user *argm = argp; argp 332 drivers/tty/moxa.c ret = put_user(status, (unsigned long __user *)argp); argp 336 drivers/tty/moxa.c ret = put_user(status, (unsigned long __user *)argp); argp 339 drivers/tty/moxa.c struct mxser_mstatus __user *argm = argp; argp 1495 drivers/tty/mxser.c static int mxser_ioctl_special(unsigned int cmd, void __user *argp) argp 1509 drivers/tty/mxser.c return put_user(ttymajor, (int __user *)argp); argp 1517 drivers/tty/mxser.c return put_user(result, (unsigned long __user *)argp); argp 1521 drivers/tty/mxser.c if (copy_to_user(argp, &mxvar_log, sizeof(mxvar_log))) argp 1525 drivers/tty/mxser.c struct mxser_mstatus ms, __user *msu = argp; argp 1642 drivers/tty/mxser.c if (copy_to_user(argp, me, sizeof(*me))) argp 1680 drivers/tty/mxser.c void __user *argp = (void __user *)arg; argp 1683 drivers/tty/mxser.c return mxser_ioctl_special(cmd, argp); argp 1697 drivers/tty/mxser.c if (get_user(opmode, (int __user *) argp)) argp 1718 drivers/tty/mxser.c if (put_user(opmode, (int __user *)argp)) argp 1729 drivers/tty/mxser.c return mxser_get_lsr_info(info, argp); argp 1744 drivers/tty/mxser.c return put_user(info->baud_base != 115200 ? 1 : 0, (int __user *)argp); argp 1761 drivers/tty/mxser.c return put_user(len, (int __user *)argp); argp 1788 drivers/tty/mxser.c if (copy_to_user(argp, &info->mon_data, argp 1795 drivers/tty/mxser.c if (put_user(info->err_shadow, (unsigned char __user *)argp)) argp 1804 drivers/tty/mxser.c if (get_user(method, (int __user *)argp)) argp 1807 drivers/tty/mxser.c return put_user(method, (int __user *)argp); argp 1282 drivers/tty/rocket.c void __user *argp = (void __user *)arg; argp 1292 drivers/tty/rocket.c ret = get_config(info, argp); argp 1297 drivers/tty/rocket.c ret = set_config(tty, info, argp); argp 1302 drivers/tty/rocket.c ret = get_ports(info, argp); argp 1307 drivers/tty/rocket.c ret = reset_rm2(info, argp); argp 1312 drivers/tty/rocket.c ret = get_version(info, argp); argp 2972 drivers/tty/synclink.c void __user *argp = (void __user *)arg; argp 2976 drivers/tty/synclink.c return mgsl_get_params(info, argp); argp 2978 drivers/tty/synclink.c return mgsl_set_params(info, argp); argp 2980 drivers/tty/synclink.c return mgsl_get_txidle(info, argp); argp 2990 drivers/tty/synclink.c return mgsl_get_stats(info, argp); argp 2992 drivers/tty/synclink.c return mgsl_wait_event(info, argp); argp 1025 drivers/tty/synclink_gt.c void __user *argp = (void __user *)arg; argp 1039 drivers/tty/synclink_gt.c return wait_mgsl_event(info, argp); argp 1043 drivers/tty/synclink_gt.c return set_gpio(info, argp); argp 1045 drivers/tty/synclink_gt.c return get_gpio(info, argp); argp 1047 drivers/tty/synclink_gt.c return wait_gpio(info, argp); argp 1049 drivers/tty/synclink_gt.c return get_xsync(info, argp); argp 1053 drivers/tty/synclink_gt.c return get_xctrl(info, argp); argp 1060 drivers/tty/synclink_gt.c ret = get_params(info, argp); argp 1063 drivers/tty/synclink_gt.c ret = set_params(info, argp); argp 1066 drivers/tty/synclink_gt.c ret = get_txidle(info, argp); argp 1081 drivers/tty/synclink_gt.c ret = get_stats(info, argp); argp 1084 drivers/tty/synclink_gt.c ret = get_interface(info, argp); argp 1253 drivers/tty/synclinkmp.c void __user *argp = (void __user *)arg; argp 1269 drivers/tty/synclinkmp.c return get_params(info, argp); argp 1271 drivers/tty/synclinkmp.c return set_params(info, argp); argp 1273 drivers/tty/synclinkmp.c return get_txidle(info, argp); argp 1283 drivers/tty/synclinkmp.c return get_stats(info, argp); argp 1285 drivers/tty/synclinkmp.c return wait_mgsl_event(info, argp); argp 2909 drivers/usb/misc/sisusbvga/sisusb.c u32 __user *argp = (u32 __user *)arg; argp 2926 drivers/usb/misc/sisusbvga/sisusb.c if (put_user(sizeof(x), argp)) argp 2906 drivers/usb/serial/ftdi_sio.c void __user *argp = (void __user *)arg; argp 2910 drivers/usb/serial/ftdi_sio.c return get_lsr_info(port, argp); argp 1946 drivers/usb/serial/mos7840.c void __user *argp = (void __user *)arg; argp 1962 drivers/usb/serial/mos7840.c return mos7840_get_lsr_info(tty, argp); argp 1697 drivers/vhost/net.c void __user *argp = (void __user *)arg; argp 1698 drivers/vhost/net.c u64 __user *featurep = argp; argp 1705 drivers/vhost/net.c if (copy_from_user(&backend, argp, sizeof backend)) argp 1736 drivers/vhost/net.c r = vhost_dev_ioctl(&n->dev, ioctl, argp); argp 1738 drivers/vhost/net.c r = vhost_vring_ioctl(&n->dev, ioctl, argp); argp 1669 drivers/vhost/scsi.c void __user *argp = (void __user *)arg; argp 1670 drivers/vhost/scsi.c u64 __user *featurep = argp; argp 1671 drivers/vhost/scsi.c u32 __user *eventsp = argp; argp 1679 drivers/vhost/scsi.c if (copy_from_user(&backend, argp, sizeof backend)) argp 1686 drivers/vhost/scsi.c if (copy_from_user(&backend, argp, sizeof backend)) argp 1693 drivers/vhost/scsi.c if (copy_to_user(argp, &abi_version, sizeof abi_version)) argp 1721 drivers/vhost/scsi.c r = vhost_dev_ioctl(&vs->dev, ioctl, argp); argp 1724 drivers/vhost/scsi.c r = vhost_vring_ioctl(&vs->dev, ioctl, argp); argp 270 drivers/vhost/test.c void __user *argp = (void __user *)arg; argp 271 drivers/vhost/test.c u64 __user *featurep = argp; argp 277 drivers/vhost/test.c if (copy_from_user(&test, argp, sizeof test)) argp 298 drivers/vhost/test.c r = vhost_dev_ioctl(&n->dev, ioctl, argp); argp 300 drivers/vhost/test.c r = vhost_vring_ioctl(&n->dev, ioctl, argp); argp 72 drivers/vhost/vhost.c static long vhost_set_vring_endian(struct vhost_virtqueue *vq, int __user *argp) argp 79 drivers/vhost/vhost.c if (copy_from_user(&s, argp, sizeof(s))) argp 95 drivers/vhost/vhost.c int __user *argp) argp 102 drivers/vhost/vhost.c if (copy_to_user(argp, &s, sizeof(s))) argp 122 drivers/vhost/vhost.c static long vhost_set_vring_endian(struct vhost_virtqueue *vq, int __user *argp) argp 128 drivers/vhost/vhost.c int __user *argp) argp 1489 drivers/vhost/vhost.c void __user *argp) argp 1498 drivers/vhost/vhost.c if (copy_from_user(&s, argp, sizeof s)) argp 1510 drivers/vhost/vhost.c void __user *argp) argp 1514 drivers/vhost/vhost.c if (copy_from_user(&a, argp, sizeof a)) argp 1564 drivers/vhost/vhost.c void __user *argp) argp 1572 drivers/vhost/vhost.c r = vhost_vring_set_num(d, vq, argp); argp 1575 drivers/vhost/vhost.c r = vhost_vring_set_addr(d, vq, argp); argp 1585 drivers/vhost/vhost.c long vhost_vring_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp) argp 1590 drivers/vhost/vhost.c u32 __user *idxp = argp; argp 1608 drivers/vhost/vhost.c return vhost_vring_set_num_addr(d, vq, ioctl, argp); argp 1621 drivers/vhost/vhost.c if (copy_from_user(&s, argp, sizeof s)) { argp 1636 drivers/vhost/vhost.c if (copy_to_user(argp, &s, sizeof s)) argp 1640 drivers/vhost/vhost.c if (copy_from_user(&f, argp, sizeof f)) { argp 1656 drivers/vhost/vhost.c if (copy_from_user(&f, argp, sizeof f)) { argp 1668 drivers/vhost/vhost.c if (copy_from_user(&f, argp, sizeof f)) { argp 1680 drivers/vhost/vhost.c r = vhost_set_vring_endian(vq, argp); argp 1683 drivers/vhost/vhost.c r = vhost_get_vring_endian(vq, idx, argp); argp 1686 drivers/vhost/vhost.c if (copy_from_user(&s, argp, sizeof(s))) { argp 1695 drivers/vhost/vhost.c if (copy_to_user(argp, &s, sizeof(s))) argp 1749 drivers/vhost/vhost.c long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp) argp 1769 drivers/vhost/vhost.c r = vhost_set_memory(d, argp); argp 1772 drivers/vhost/vhost.c if (copy_from_user(&p, argp, sizeof p)) { argp 1794 drivers/vhost/vhost.c r = get_user(fd, (int __user *)argp); argp 48 drivers/vhost/vhost.h long vhost_vring_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp); argp 188 drivers/vhost/vhost.h long vhost_dev_ioctl(struct vhost_dev *, unsigned int ioctl, void __user *argp); argp 189 drivers/vhost/vhost.h long vhost_vring_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp); argp 732 drivers/vhost/vsock.c void __user *argp = (void __user *)arg; argp 740 drivers/vhost/vsock.c if (copy_from_user(&guest_cid, argp, sizeof(guest_cid))) argp 744 drivers/vhost/vsock.c if (copy_from_user(&start, argp, sizeof(start))) argp 752 drivers/vhost/vsock.c if (copy_to_user(argp, &features, sizeof(features))) argp 756 drivers/vhost/vsock.c if (copy_from_user(&features, argp, sizeof(features))) argp 761 drivers/vhost/vsock.c r = vhost_dev_ioctl(&vsock->dev, ioctl, argp); argp 763 drivers/vhost/vsock.c r = vhost_vring_ioctl(&vsock->dev, ioctl, argp); argp 3394 drivers/video/fbdev/amifb.c void __user *argp = (void __user *)arg; argp 3402 drivers/video/fbdev/amifb.c return copy_to_user(argp, &crsr.fix, argp 3411 drivers/video/fbdev/amifb.c return copy_to_user(argp, &crsr.var, argp 3415 drivers/video/fbdev/amifb.c if (copy_from_user(&crsr.var, argp, sizeof(crsr.var))) argp 3425 drivers/video/fbdev/amifb.c return copy_to_user(argp, &crsr.state, argp 3429 drivers/video/fbdev/amifb.c if (copy_from_user(&crsr.state, argp, sizeof(crsr.state))) argp 401 drivers/video/fbdev/arcfb.c void __user *argp = (void __user *)arg; argp 429 drivers/video/fbdev/arcfb.c if (copy_to_user(argp, &ctl2, sizeof(ctl2))) argp 3345 drivers/video/fbdev/core/fbcon.c int fbcon_set_con2fb_map_ioctl(void __user *argp) argp 3350 drivers/video/fbdev/core/fbcon.c if (copy_from_user(&con2fb, argp, sizeof(con2fb))) argp 3370 drivers/video/fbdev/core/fbcon.c int fbcon_get_con2fb_map_ioctl(void __user *argp) argp 3374 drivers/video/fbdev/core/fbcon.c if (copy_from_user(&con2fb, argp, sizeof(con2fb))) argp 3383 drivers/video/fbdev/core/fbcon.c return copy_to_user(argp, &con2fb, sizeof(con2fb)) ? -EFAULT : 0; argp 1087 drivers/video/fbdev/core/fbmem.c void __user *argp = (void __user *)arg; argp 1096 drivers/video/fbdev/core/fbmem.c ret = copy_to_user(argp, &var, sizeof(var)) ? -EFAULT : 0; argp 1099 drivers/video/fbdev/core/fbmem.c if (copy_from_user(&var, argp, sizeof(var))) argp 1108 drivers/video/fbdev/core/fbmem.c if (!ret && copy_to_user(argp, &var, sizeof(var))) argp 1118 drivers/video/fbdev/core/fbmem.c ret = copy_to_user(argp, &fix, sizeof(fix)) ? -EFAULT : 0; argp 1121 drivers/video/fbdev/core/fbmem.c if (copy_from_user(&cmap, argp, sizeof(cmap))) argp 1126 drivers/video/fbdev/core/fbmem.c if (copy_from_user(&cmap, argp, sizeof(cmap))) argp 1134 drivers/video/fbdev/core/fbmem.c if (copy_from_user(&var, argp, sizeof(var))) argp 1141 drivers/video/fbdev/core/fbmem.c if (ret == 0 && copy_to_user(argp, &var, sizeof(var))) argp 1148 drivers/video/fbdev/core/fbmem.c ret = fbcon_get_con2fb_map_ioctl(argp); argp 1151 drivers/video/fbdev/core/fbmem.c ret = fbcon_set_con2fb_map_ioctl(argp); argp 1269 drivers/video/fbdev/imsttfb.c void __user *argp = (void __user *)arg; argp 1275 drivers/video/fbdev/imsttfb.c if (copy_from_user(reg, argp, 8) || reg[0] > (0x1000 - sizeof(reg[0])) / sizeof(reg[0])) argp 1280 drivers/video/fbdev/imsttfb.c if (copy_from_user(reg, argp, 4) || reg[0] > (0x1000 - sizeof(reg[0])) / sizeof(reg[0])) argp 1287 drivers/video/fbdev/imsttfb.c if (copy_from_user(reg, argp, 8) || reg[0] > (0x1000 - sizeof(reg[0])) / sizeof(reg[0])) argp 1292 drivers/video/fbdev/imsttfb.c if (copy_from_user(reg, argp, 4) || reg[0] > (0x1000 - sizeof(reg[0])) / sizeof(reg[0])) argp 1299 drivers/video/fbdev/imsttfb.c if (copy_from_user(idx, argp, 2)) argp 1306 drivers/video/fbdev/imsttfb.c if (copy_from_user(idx, argp, 1)) argp 584 drivers/video/fbdev/kyro/fbdev.c void __user *argp = (void __user *)arg; argp 588 drivers/video/fbdev/kyro/fbdev.c if (copy_from_user(&ol_create, argp, sizeof(overlay_create))) argp 599 drivers/video/fbdev/kyro/fbdev.c if (copy_from_user(&ol_viewport_set, argp, argp 620 drivers/video/fbdev/kyro/fbdev.c if (copy_to_user(argp, &deviceInfo.ulOverlayUVStride, sizeof(deviceInfo.ulOverlayUVStride))) argp 624 drivers/video/fbdev/kyro/fbdev.c if (copy_to_user(argp, &deviceInfo.ulOverlayStride, sizeof(deviceInfo.ulOverlayStride))) argp 628 drivers/video/fbdev/kyro/fbdev.c if (copy_to_user(argp, &deviceInfo.ulOverlayOffset, sizeof(deviceInfo.ulOverlayOffset))) argp 877 drivers/video/fbdev/matrox/matroxfb_base.c void __user *argp = (void __user *)arg; argp 895 drivers/video/fbdev/matrox/matroxfb_base.c if (copy_to_user(argp, &vblank, sizeof(vblank))) argp 914 drivers/video/fbdev/matrox/matroxfb_base.c if (copy_from_user(&mom, argp, sizeof(mom))) argp 964 drivers/video/fbdev/matrox/matroxfb_base.c if (copy_from_user(&mom, argp, sizeof(mom))) argp 979 drivers/video/fbdev/matrox/matroxfb_base.c if (copy_to_user(argp, &mom, sizeof(mom))) argp 989 drivers/video/fbdev/matrox/matroxfb_base.c if (copy_from_user(&tmp, argp, sizeof(tmp))) argp 1097 drivers/video/fbdev/matrox/matroxfb_base.c if (copy_to_user(argp, &r, sizeof(r))) argp 1107 drivers/video/fbdev/matrox/matroxfb_base.c if (copy_from_user(&qctrl, argp, sizeof(qctrl))) argp 1120 drivers/video/fbdev/matrox/matroxfb_base.c copy_to_user(argp, &qctrl, sizeof(qctrl))) argp 1129 drivers/video/fbdev/matrox/matroxfb_base.c if (copy_from_user(&ctrl, argp, sizeof(ctrl))) argp 1142 drivers/video/fbdev/matrox/matroxfb_base.c copy_to_user(argp, &ctrl, sizeof(ctrl))) argp 1151 drivers/video/fbdev/matrox/matroxfb_base.c if (copy_from_user(&ctrl, argp, sizeof(ctrl))) argp 315 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c void __user *argp = (void __user *)arg; argp 321 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c if (copy_to_user(argp, l1_cfg, sizeof(*l1_cfg))) argp 325 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c if (copy_from_user(l1_cfg, argp, sizeof(*l1_cfg))) argp 777 drivers/video/fbdev/ps3fb.c void __user *argp = (void __user *)arg; argp 790 drivers/video/fbdev/ps3fb.c if (copy_to_user(argp, &vblank, sizeof(vblank))) argp 812 drivers/video/fbdev/ps3fb.c if (copy_from_user(&val, argp, sizeof(val))) argp 841 drivers/video/fbdev/ps3fb.c if (!copy_to_user(argp, &val, sizeof(val))) argp 855 drivers/video/fbdev/ps3fb.c if (!copy_to_user(argp, &res, sizeof(res))) argp 873 drivers/video/fbdev/ps3fb.c if (copy_from_user(&val, argp, sizeof(val))) argp 197 drivers/video/fbdev/sbuslib.c struct fbcmap32 __user *argp = (void __user *)arg; argp 202 drivers/video/fbdev/sbuslib.c ret = copy_in_user(p, argp, 2 * sizeof(int)); argp 203 drivers/video/fbdev/sbuslib.c ret |= get_user(addr, &argp->red); argp 205 drivers/video/fbdev/sbuslib.c ret |= get_user(addr, &argp->green); argp 207 drivers/video/fbdev/sbuslib.c ret |= get_user(addr, &argp->blue); argp 220 drivers/video/fbdev/sbuslib.c struct fbcursor32 __user *argp = (void __user *)arg; argp 224 drivers/video/fbdev/sbuslib.c ret = copy_in_user(p, argp, argp 226 drivers/video/fbdev/sbuslib.c ret |= copy_in_user(&p->size, &argp->size, sizeof(struct fbcurpos)); argp 227 drivers/video/fbdev/sbuslib.c ret |= copy_in_user(&p->cmap, &argp->cmap, 2 * sizeof(int)); argp 228 drivers/video/fbdev/sbuslib.c ret |= get_user(addr, &argp->cmap.red); argp 230 drivers/video/fbdev/sbuslib.c ret |= get_user(addr, &argp->cmap.green); argp 232 drivers/video/fbdev/sbuslib.c ret |= get_user(addr, &argp->cmap.blue); argp 234 drivers/video/fbdev/sbuslib.c ret |= get_user(addr, &argp->mask); argp 236 drivers/video/fbdev/sbuslib.c ret |= get_user(addr, &argp->image); argp 1695 drivers/video/fbdev/sis/sis_main.c u32 __user *argp = (u32 __user *)arg; argp 1717 drivers/video/fbdev/sis/sis_main.c if(get_user(gpu32, argp)) argp 1736 drivers/video/fbdev/sis/sis_main.c return put_user(sizeof(struct sisfb_info), argp); argp 1799 drivers/video/fbdev/sis/sis_main.c return put_user((u32)1, argp); argp 1801 drivers/video/fbdev/sis/sis_main.c return put_user((u32)0, argp); argp 1810 drivers/video/fbdev/sis/sis_main.c return put_user((u32)1, argp); argp 1812 drivers/video/fbdev/sis/sis_main.c return put_user((u32)0, argp); argp 1820 drivers/video/fbdev/sis/sis_main.c if(get_user(gpu32, argp)) argp 1827 drivers/video/fbdev/sis/sis_main.c if(get_user(gpu32, argp)) argp 1836 drivers/video/fbdev/sis/sis_main.c argp); argp 1852 drivers/video/fbdev/sis/sis_main.c if(get_user(gpu32, argp)) argp 510 drivers/video/fbdev/tmiofb.c void __user *argp = (void __user *) arg; argp 513 drivers/video/fbdev/tmiofb.c if (copy_to_user(argp, &vblank, sizeof vblank)) argp 524 drivers/video/fbdev/tmiofb.c u32 __user *argp = (void __user *) arg; argp 528 drivers/video/fbdev/tmiofb.c if (get_user(len, argp)) argp 532 drivers/video/fbdev/tmiofb.c if (copy_from_user(acc, argp + 1, sizeof(u32) * len)) argp 395 drivers/video/fbdev/via/viafbdev.c u32 __user *argp = (u32 __user *) arg; argp 404 drivers/video/fbdev/via/viafbdev.c if (copy_to_user(argp, viaparinfo->chip_info, argp 409 drivers/video/fbdev/via/viafbdev.c return put_user((u32)sizeof(struct viafb_ioctl_info), argp); argp 415 drivers/video/fbdev/via/viafbdev.c info->var.bits_per_pixel), argp); argp 417 drivers/video/fbdev/via/viafbdev.c if (copy_from_user(&gpu32, argp, sizeof(gpu32))) argp 441 drivers/video/fbdev/via/viafbdev.c if (copy_to_user(argp, &u.viamode, sizeof(u.viamode))) argp 475 drivers/video/fbdev/via/viafbdev.c if (copy_to_user(argp, &u.viasamm, sizeof(u.viasamm))) argp 480 drivers/video/fbdev/via/viafbdev.c if (copy_from_user(&gpu32, argp, sizeof(gpu32))) argp 490 drivers/video/fbdev/via/viafbdev.c if (copy_from_user(&gpu32, argp, sizeof(gpu32))) argp 525 drivers/video/fbdev/via/viafbdev.c if (copy_to_user(argp, &u.active_dev, sizeof(u.active_dev))) argp 535 drivers/video/fbdev/via/viafbdev.c if (copy_to_user(argp, &u.driver_version, argp 545 drivers/video/fbdev/via/viafbdev.c if (copy_to_user(argp, &u.viafb_setting, argp 553 drivers/video/fbdev/via/viafbdev.c if (put_user(state_info, argp)) argp 559 drivers/video/fbdev/via/viafbdev.c if (put_user(state_info, argp)) argp 567 drivers/video/fbdev/via/viafbdev.c if (put_user(state_info, argp)) argp 572 drivers/video/fbdev/via/viafbdev.c if (copy_to_user(argp, driver_name, sizeof(driver_name))) argp 577 drivers/video/fbdev/via/viafbdev.c viafb_gamma_table = memdup_user(argp, 256 * sizeof(u32)); argp 590 drivers/video/fbdev/via/viafbdev.c if (copy_to_user(argp, viafb_gamma_table, argp 600 drivers/video/fbdev/via/viafbdev.c if (put_user(state_info, argp)) argp 610 drivers/video/fbdev/via/viafbdev.c if (copy_from_user(&u.panel_pos_size_para, argp, argp 614 drivers/video/fbdev/via/viafbdev.c if (copy_to_user(argp, &u.panel_pos_size_para, argp 619 drivers/video/fbdev/via/viafbdev.c if (copy_from_user(&u.panel_pos_size_para, argp, argp 623 drivers/video/fbdev/via/viafbdev.c if (copy_to_user(argp, &u.panel_pos_size_para, argp 629 drivers/video/fbdev/via/viafbdev.c if (copy_from_user(&u.panel_pos_size_para, argp, argp 633 drivers/video/fbdev/via/viafbdev.c if (copy_to_user(argp, &u.panel_pos_size_para, argp 638 drivers/video/fbdev/via/viafbdev.c if (copy_from_user(&u.panel_pos_size_para, argp, argp 642 drivers/video/fbdev/via/viafbdev.c if (copy_to_user(argp, &u.panel_pos_size_para, argp 648 drivers/video/fbdev/via/viafbdev.c if (copy_from_user(&u.panel_pos_size_para, argp, argp 653 drivers/video/fbdev/via/viafbdev.c if (copy_from_user(&u.panel_pos_size_para, argp, argp 147 drivers/watchdog/acquirewdt.c void __user *argp = (void __user *)arg; argp 148 drivers/watchdog/acquirewdt.c int __user *p = argp; argp 157 drivers/watchdog/acquirewdt.c return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 134 drivers/watchdog/advantechwdt.c void __user *argp = (void __user *)arg; argp 135 drivers/watchdog/advantechwdt.c int __user *p = argp; argp 146 drivers/watchdog/advantechwdt.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 178 drivers/watchdog/alim1535_wdt.c void __user *argp = (void __user *)arg; argp 179 drivers/watchdog/alim1535_wdt.c int __user *p = argp; argp 190 drivers/watchdog/alim1535_wdt.c return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 236 drivers/watchdog/alim7101_wdt.c void __user *argp = (void __user *)arg; argp 237 drivers/watchdog/alim7101_wdt.c int __user *p = argp; argp 247 drivers/watchdog/alim7101_wdt.c return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 162 drivers/watchdog/at91rm9200_wdt.c void __user *argp = (void __user *)arg; argp 163 drivers/watchdog/at91rm9200_wdt.c int __user *p = argp; argp 168 drivers/watchdog/at91rm9200_wdt.c return copy_to_user(argp, &at91_wdt_info, argp 186 drivers/watchdog/ath79_wdt.c void __user *argp = (void __user *)arg; argp 187 drivers/watchdog/ath79_wdt.c int __user *p = argp; argp 193 drivers/watchdog/ath79_wdt.c err = copy_to_user(argp, &ath79_wdt_info, argp 169 drivers/watchdog/bcm63xx_wdt.c void __user *argp = (void __user *)arg; argp 170 drivers/watchdog/bcm63xx_wdt.c int __user *p = argp; argp 175 drivers/watchdog/bcm63xx_wdt.c return copy_to_user(argp, &bcm63xx_wdt_info, argp 141 drivers/watchdog/cpu5wdt.c void __user *argp = (void __user *)arg; argp 142 drivers/watchdog/cpu5wdt.c int __user *p = argp; argp 151 drivers/watchdog/cpu5wdt.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 414 drivers/watchdog/cpwd.c void __user *argp = (void __user *)arg; argp 423 drivers/watchdog/cpwd.c if (copy_to_user(argp, &info, sizeof(struct watchdog_info))) argp 429 drivers/watchdog/cpwd.c if (put_user(0, (int __user *)argp)) argp 438 drivers/watchdog/cpwd.c if (copy_from_user(&setopt, argp, sizeof(unsigned int))) argp 455 drivers/watchdog/cpwd.c if (copy_to_user(argp, &setopt, sizeof(unsigned int))) argp 235 drivers/watchdog/eurotechwdt.c void __user *argp = (void __user *)arg; argp 236 drivers/watchdog/eurotechwdt.c int __user *p = argp; argp 249 drivers/watchdog/eurotechwdt.c return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 163 drivers/watchdog/gef_wdt.c void __user *argp = (void __user *)arg; argp 173 drivers/watchdog/gef_wdt.c if (copy_to_user(argp, &info, sizeof(info))) argp 179 drivers/watchdog/gef_wdt.c if (put_user(wdt_status, (int __user *)argp)) argp 185 drivers/watchdog/gef_wdt.c if (get_user(options, (int __user *)argp)) argp 201 drivers/watchdog/gef_wdt.c if (get_user(timeout, (int __user *)argp)) argp 207 drivers/watchdog/gef_wdt.c if (put_user(gef_wdt_timeout, (int __user *)argp)) argp 138 drivers/watchdog/geodewdt.c void __user *argp = (void __user *)arg; argp 139 drivers/watchdog/geodewdt.c int __user *p = argp; argp 151 drivers/watchdog/geodewdt.c return copy_to_user(argp, &ident, argp 170 drivers/watchdog/ib700wdt.c void __user *argp = (void __user *)arg; argp 171 drivers/watchdog/ib700wdt.c int __user *p = argp; argp 182 drivers/watchdog/ib700wdt.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 277 drivers/watchdog/ibmasr.c void __user *argp = (void __user *)arg; argp 278 drivers/watchdog/ibmasr.c int __user *p = argp; argp 283 drivers/watchdog/ibmasr.c return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 351 drivers/watchdog/intel_scu_watchdog.c void __user *argp = (void __user *)arg; argp 352 drivers/watchdog/intel_scu_watchdog.c u32 __user *p = argp; argp 366 drivers/watchdog/intel_scu_watchdog.c return copy_to_user(argp, argp 128 drivers/watchdog/iop_wdt.c int __user *argp = (int __user *)arg; argp 132 drivers/watchdog/iop_wdt.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 139 drivers/watchdog/iop_wdt.c ret = put_user(0, argp); argp 143 drivers/watchdog/iop_wdt.c ret = put_user(boot_status, argp); argp 172 drivers/watchdog/iop_wdt.c ret = put_user(iop_watchdog_timeout(), argp); argp 257 drivers/watchdog/it8712f_wdt.c void __user *argp = (void __user *)arg; argp 258 drivers/watchdog/it8712f_wdt.c int __user *p = argp; argp 270 drivers/watchdog/it8712f_wdt.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 342 drivers/watchdog/kempld_wdt.c void __user *argp = (void __user *)arg; argp 344 drivers/watchdog/kempld_wdt.c int __user *p = argp; argp 305 drivers/watchdog/machzwd.c void __user *argp = (void __user *)arg; argp 306 drivers/watchdog/machzwd.c int __user *p = argp; argp 309 drivers/watchdog/machzwd.c if (copy_to_user(argp, &zf_info, sizeof(zf_info))) argp 195 drivers/watchdog/mixcomwd.c void __user *argp = (void __user *)arg; argp 196 drivers/watchdog/mixcomwd.c int __user *p = argp; argp 206 drivers/watchdog/mixcomwd.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 134 drivers/watchdog/mtx-1_wdt.c void __user *argp = (void __user *)arg; argp 135 drivers/watchdog/mtx-1_wdt.c int __user *p = (int __user *)argp; argp 144 drivers/watchdog/mtx-1_wdt.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 180 drivers/watchdog/mv64x60_wdt.c void __user *argp = (void __user *)arg; argp 191 drivers/watchdog/mv64x60_wdt.c if (copy_to_user(argp, &info, sizeof(info))) argp 197 drivers/watchdog/mv64x60_wdt.c if (put_user(wdt_status, (int __user *)argp)) argp 206 drivers/watchdog/mv64x60_wdt.c if (get_user(options, (int __user *)argp)) argp 222 drivers/watchdog/mv64x60_wdt.c if (get_user(timeout, (int __user *)argp)) argp 228 drivers/watchdog/mv64x60_wdt.c if (put_user(mv64x60_wdt_timeout, (int __user *)argp)) argp 215 drivers/watchdog/nv_tco.c void __user *argp = (void __user *)arg; argp 216 drivers/watchdog/nv_tco.c int __user *p = argp; argp 227 drivers/watchdog/nv_tco.c return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 592 drivers/watchdog/pcwd.c int __user *argp = (int __user *)arg; argp 605 drivers/watchdog/pcwd.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 611 drivers/watchdog/pcwd.c return put_user(status, argp); argp 614 drivers/watchdog/pcwd.c return put_user(pcwd_private.boot_status, argp); argp 620 drivers/watchdog/pcwd.c return put_user(temperature, argp); argp 624 drivers/watchdog/pcwd.c if (get_user(rv, argp)) argp 647 drivers/watchdog/pcwd.c if (get_user(new_heartbeat, argp)) argp 657 drivers/watchdog/pcwd.c return put_user(heartbeat, argp); argp 466 drivers/watchdog/pcwd_pci.c void __user *argp = (void __user *)arg; argp 467 drivers/watchdog/pcwd_pci.c int __user *p = argp; argp 480 drivers/watchdog/pcwd_pci.c return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 391 drivers/watchdog/pcwd_usb.c void __user *argp = (void __user *)arg; argp 392 drivers/watchdog/pcwd_usb.c int __user *p = argp; argp 403 drivers/watchdog/pcwd_usb.c return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 176 drivers/watchdog/pika_wdt.c void __user *argp = (void __user *)arg; argp 177 drivers/watchdog/pika_wdt.c int __user *p = argp; argp 182 drivers/watchdog/pika_wdt.c return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 191 drivers/watchdog/rc32434_wdt.c void __user *argp = (void __user *)arg; argp 202 drivers/watchdog/rc32434_wdt.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 208 drivers/watchdog/rc32434_wdt.c if (copy_to_user(argp, &value, sizeof(int))) argp 212 drivers/watchdog/rc32434_wdt.c if (copy_from_user(&value, argp, sizeof(int))) argp 229 drivers/watchdog/rc32434_wdt.c if (copy_from_user(&new_timeout, argp, sizeof(int))) argp 235 drivers/watchdog/rc32434_wdt.c return copy_to_user(argp, &timeout, sizeof(int)) ? -EFAULT : 0; argp 143 drivers/watchdog/rdc321x_wdt.c void __user *argp = (void __user *)arg; argp 161 drivers/watchdog/rdc321x_wdt.c if (copy_to_user(argp, &value, sizeof(u32))) argp 165 drivers/watchdog/rdc321x_wdt.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 169 drivers/watchdog/rdc321x_wdt.c if (copy_from_user(&value, argp, sizeof(int))) argp 96 drivers/watchdog/riowd.c void __user *argp = (void __user *)arg; argp 103 drivers/watchdog/riowd.c if (copy_to_user(argp, &info, sizeof(info))) argp 109 drivers/watchdog/riowd.c if (put_user(0, (int __user *)argp)) argp 118 drivers/watchdog/riowd.c if (copy_from_user(&options, argp, sizeof(options))) argp 131 drivers/watchdog/riowd.c if (get_user(new_margin, (int __user *)argp)) argp 140 drivers/watchdog/riowd.c return put_user(riowd_timeout * 60, (int __user *)argp); argp 96 drivers/watchdog/sa1100_wdt.c void __user *argp = (void __user *)arg; argp 97 drivers/watchdog/sa1100_wdt.c int __user *p = argp; argp 101 drivers/watchdog/sa1100_wdt.c ret = copy_to_user(argp, &ident, argp 174 drivers/watchdog/sb_wdog.c void __user *argp = (void __user *)arg; argp 175 drivers/watchdog/sb_wdog.c int __user *p = argp; argp 179 drivers/watchdog/sb_wdog.c ret = copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 223 drivers/watchdog/sbc60xxwdt.c void __user *argp = (void __user *)arg; argp 224 drivers/watchdog/sbc60xxwdt.c int __user *p = argp; argp 234 drivers/watchdog/sbc60xxwdt.c return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 105 drivers/watchdog/sbc_epx_c3.c int __user *argp = (void __user *)arg; argp 114 drivers/watchdog/sbc_epx_c3.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 119 drivers/watchdog/sbc_epx_c3.c return put_user(0, argp); argp 121 drivers/watchdog/sbc_epx_c3.c if (get_user(options, argp)) argp 139 drivers/watchdog/sbc_epx_c3.c return put_user(WATCHDOG_TIMEOUT, argp); argp 184 drivers/watchdog/sc1200wdt.c void __user *argp = (void __user *)arg; argp 185 drivers/watchdog/sc1200wdt.c int __user *p = argp; argp 195 drivers/watchdog/sc1200wdt.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 275 drivers/watchdog/sc520_wdt.c void __user *argp = (void __user *)arg; argp 276 drivers/watchdog/sc520_wdt.c int __user *p = argp; argp 286 drivers/watchdog/sc520_wdt.c return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 248 drivers/watchdog/sch311x_wdt.c void __user *argp = (void __user *)arg; argp 249 drivers/watchdog/sch311x_wdt.c int __user *p = argp; argp 260 drivers/watchdog/sch311x_wdt.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 158 drivers/watchdog/scx200_wdt.c void __user *argp = (void __user *)arg; argp 159 drivers/watchdog/scx200_wdt.c int __user *p = argp; argp 170 drivers/watchdog/scx200_wdt.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 241 drivers/watchdog/w83877f_wdt.c void __user *argp = (void __user *)arg; argp 242 drivers/watchdog/w83877f_wdt.c int __user *p = argp; argp 252 drivers/watchdog/w83877f_wdt.c return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 126 drivers/watchdog/wafer5823wdt.c void __user *argp = (void __user *)arg; argp 127 drivers/watchdog/wafer5823wdt.c int __user *p = argp; argp 137 drivers/watchdog/wafer5823wdt.c if (copy_to_user(argp, &ident, sizeof(ident))) argp 696 drivers/watchdog/watchdog_dev.c void __user *argp = (void __user *)arg; argp 698 drivers/watchdog/watchdog_dev.c int __user *p = argp; argp 716 drivers/watchdog/watchdog_dev.c err = copy_to_user(argp, wdd->info, argp 275 drivers/watchdog/wdrtas.c int __user *argp = (void __user *)arg; argp 285 drivers/watchdog/wdrtas.c if (copy_to_user(argp, &wdinfo, sizeof(wdinfo))) argp 291 drivers/watchdog/wdrtas.c return put_user(i, argp); argp 295 drivers/watchdog/wdrtas.c return put_user(i, argp); argp 302 drivers/watchdog/wdrtas.c return put_user(i, argp); argp 305 drivers/watchdog/wdrtas.c if (get_user(i, argp)) argp 323 drivers/watchdog/wdrtas.c if (get_user(i, argp)) argp 338 drivers/watchdog/wdrtas.c return put_user(wdrtas_interval, argp); argp 353 drivers/watchdog/wdt.c void __user *argp = (void __user *)arg; argp 354 drivers/watchdog/wdt.c int __user *p = argp; argp 377 drivers/watchdog/wdt.c return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 390 drivers/watchdog/wdt_pci.c void __user *argp = (void __user *)arg; argp 391 drivers/watchdog/wdt_pci.c int __user *p = argp; argp 414 drivers/watchdog/wdt_pci.c return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; argp 2217 fs/btrfs/ioctl.c void __user *argp) argp 2228 fs/btrfs/ioctl.c uargs = (struct btrfs_ioctl_search_args __user *)argp; argp 2251 fs/btrfs/ioctl.c void __user *argp) argp 2264 fs/btrfs/ioctl.c uarg = (struct btrfs_ioctl_search_args_v2 __user *)argp; argp 2539 fs/btrfs/ioctl.c void __user *argp) argp 2545 fs/btrfs/ioctl.c args = memdup_user(argp, sizeof(*args)); argp 2573 fs/btrfs/ioctl.c if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) argp 2592 fs/btrfs/ioctl.c static int btrfs_ioctl_ino_lookup_user(struct file *file, void __user *argp) argp 2598 fs/btrfs/ioctl.c args = memdup_user(argp, sizeof(*args)); argp 2616 fs/btrfs/ioctl.c if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) argp 2624 fs/btrfs/ioctl.c static int btrfs_ioctl_get_subvol_info(struct file *file, void __user *argp) argp 2733 fs/btrfs/ioctl.c if (copy_to_user(argp, subvol_info, sizeof(*subvol_info))) argp 2746 fs/btrfs/ioctl.c static int btrfs_ioctl_get_subvol_rootref(struct file *file, void __user *argp) argp 2764 fs/btrfs/ioctl.c rootrefs = memdup_user(argp, sizeof(*rootrefs)); argp 2829 fs/btrfs/ioctl.c if (copy_to_user(argp, rootrefs, sizeof(*rootrefs))) argp 2952 fs/btrfs/ioctl.c static int btrfs_ioctl_defrag(struct file *file, void __user *argp) argp 2994 fs/btrfs/ioctl.c if (argp) { argp 2995 fs/btrfs/ioctl.c if (copy_from_user(range, argp, argp 3951 fs/btrfs/ioctl.c static long btrfs_ioctl_default_subvol(struct file *file, void __user *argp) argp 3973 fs/btrfs/ioctl.c if (copy_from_user(&objectid, argp, sizeof(objectid))) { argp 4193 fs/btrfs/ioctl.c void __user *argp) argp 4215 fs/btrfs/ioctl.c if (argp) argp 4216 fs/btrfs/ioctl.c if (copy_to_user(argp, &transid, sizeof(transid))) argp 4222 fs/btrfs/ioctl.c void __user *argp) argp 4226 fs/btrfs/ioctl.c if (argp) { argp 4227 fs/btrfs/ioctl.c if (copy_from_user(&transid, argp, sizeof(transid))) argp 5410 fs/btrfs/ioctl.c static int _btrfs_ioctl_send(struct file *file, void __user *argp, bool compat) argp 5419 fs/btrfs/ioctl.c ret = copy_from_user(&args32, argp, sizeof(args32)); argp 5436 fs/btrfs/ioctl.c arg = memdup_user(argp, sizeof(*arg)); argp 5451 fs/btrfs/ioctl.c void __user *argp = (void __user *)arg; argp 5455 fs/btrfs/ioctl.c return btrfs_ioctl_getflags(file, argp); argp 5457 fs/btrfs/ioctl.c return btrfs_ioctl_setflags(file, argp); argp 5459 fs/btrfs/ioctl.c return btrfs_ioctl_getversion(file, argp); argp 5461 fs/btrfs/ioctl.c return btrfs_ioctl_get_fslabel(file, argp); argp 5463 fs/btrfs/ioctl.c return btrfs_ioctl_set_fslabel(file, argp); argp 5465 fs/btrfs/ioctl.c return btrfs_ioctl_fitrim(file, argp); argp 5467 fs/btrfs/ioctl.c return btrfs_ioctl_snap_create(file, argp, 0); argp 5469 fs/btrfs/ioctl.c return btrfs_ioctl_snap_create_v2(file, argp, 0); argp 5471 fs/btrfs/ioctl.c return btrfs_ioctl_snap_create(file, argp, 1); argp 5473 fs/btrfs/ioctl.c return btrfs_ioctl_snap_create_v2(file, argp, 1); argp 5475 fs/btrfs/ioctl.c return btrfs_ioctl_snap_destroy(file, argp); argp 5477 fs/btrfs/ioctl.c return btrfs_ioctl_subvol_getflags(file, argp); argp 5479 fs/btrfs/ioctl.c return btrfs_ioctl_subvol_setflags(file, argp); argp 5481 fs/btrfs/ioctl.c return btrfs_ioctl_default_subvol(file, argp); argp 5485 fs/btrfs/ioctl.c return btrfs_ioctl_defrag(file, argp); argp 5487 fs/btrfs/ioctl.c return btrfs_ioctl_resize(file, argp); argp 5489 fs/btrfs/ioctl.c return btrfs_ioctl_add_dev(fs_info, argp); argp 5491 fs/btrfs/ioctl.c return btrfs_ioctl_rm_dev(file, argp); argp 5493 fs/btrfs/ioctl.c return btrfs_ioctl_rm_dev_v2(file, argp); argp 5495 fs/btrfs/ioctl.c return btrfs_ioctl_fs_info(fs_info, argp); argp 5497 fs/btrfs/ioctl.c return btrfs_ioctl_dev_info(fs_info, argp); argp 5501 fs/btrfs/ioctl.c return btrfs_ioctl_tree_search(file, argp); argp 5503 fs/btrfs/ioctl.c return btrfs_ioctl_tree_search_v2(file, argp); argp 5505 fs/btrfs/ioctl.c return btrfs_ioctl_ino_lookup(file, argp); argp 5507 fs/btrfs/ioctl.c return btrfs_ioctl_ino_to_path(root, argp); argp 5509 fs/btrfs/ioctl.c return btrfs_ioctl_logical_to_ino(fs_info, argp, 1); argp 5511 fs/btrfs/ioctl.c return btrfs_ioctl_logical_to_ino(fs_info, argp, 2); argp 5513 fs/btrfs/ioctl.c return btrfs_ioctl_space_info(fs_info, argp); argp 5530 fs/btrfs/ioctl.c return btrfs_ioctl_start_sync(root, argp); argp 5532 fs/btrfs/ioctl.c return btrfs_ioctl_wait_sync(fs_info, argp); argp 5534 fs/btrfs/ioctl.c return btrfs_ioctl_scrub(file, argp); argp 5538 fs/btrfs/ioctl.c return btrfs_ioctl_scrub_progress(fs_info, argp); argp 5540 fs/btrfs/ioctl.c return btrfs_ioctl_balance(file, argp); argp 5544 fs/btrfs/ioctl.c return btrfs_ioctl_balance_progress(fs_info, argp); argp 5546 fs/btrfs/ioctl.c return btrfs_ioctl_set_received_subvol(file, argp); argp 5549 fs/btrfs/ioctl.c return btrfs_ioctl_set_received_subvol_32(file, argp); argp 5552 fs/btrfs/ioctl.c return _btrfs_ioctl_send(file, argp, false); argp 5555 fs/btrfs/ioctl.c return _btrfs_ioctl_send(file, argp, true); argp 5558 fs/btrfs/ioctl.c return btrfs_ioctl_get_dev_stats(fs_info, argp); argp 5560 fs/btrfs/ioctl.c return btrfs_ioctl_quota_ctl(file, argp); argp 5562 fs/btrfs/ioctl.c return btrfs_ioctl_qgroup_assign(file, argp); argp 5564 fs/btrfs/ioctl.c return btrfs_ioctl_qgroup_create(file, argp); argp 5566 fs/btrfs/ioctl.c return btrfs_ioctl_qgroup_limit(file, argp); argp 5568 fs/btrfs/ioctl.c return btrfs_ioctl_quota_rescan(file, argp); argp 5570 fs/btrfs/ioctl.c return btrfs_ioctl_quota_rescan_status(file, argp); argp 5572 fs/btrfs/ioctl.c return btrfs_ioctl_quota_rescan_wait(file, argp); argp 5574 fs/btrfs/ioctl.c return btrfs_ioctl_dev_replace(fs_info, argp); argp 5576 fs/btrfs/ioctl.c return btrfs_ioctl_get_supported_features(argp); argp 5578 fs/btrfs/ioctl.c return btrfs_ioctl_get_features(file, argp); argp 5580 fs/btrfs/ioctl.c return btrfs_ioctl_set_features(file, argp); argp 5582 fs/btrfs/ioctl.c return btrfs_ioctl_fsgetxattr(file, argp); argp 5584 fs/btrfs/ioctl.c return btrfs_ioctl_fssetxattr(file, argp); argp 5586 fs/btrfs/ioctl.c return btrfs_ioctl_get_subvol_info(file, argp); argp 5588 fs/btrfs/ioctl.c return btrfs_ioctl_get_subvol_rootref(file, argp); argp 5590 fs/btrfs/ioctl.c return btrfs_ioctl_ino_lookup_user(file, argp); argp 383 fs/compat_ioctl.c unsigned int cmd, void __user *argp) argp 413 fs/compat_ioctl.c upos32 = argp; argp 417 fs/compat_ioctl.c umget32 = argp; argp 445 fs/compat_ioctl.c unsigned cmd, void __user *argp) argp 460 fs/compat_ioctl.c return convert_in_user(valp, (unsigned int __user *)argp); argp 462 fs/compat_ioctl.c return do_ioctl(file, RTC_IRQP_SET, (unsigned long)argp); argp 464 fs/compat_ioctl.c return do_ioctl(file, RTC_EPOCH_SET, (unsigned long)argp); argp 930 fs/compat_ioctl.c void __user *argp = compat_ptr(arg); argp 934 fs/compat_ioctl.c return ppp_gidle(file, cmd, argp); argp 936 fs/compat_ioctl.c return ppp_scompress(file, cmd, argp); argp 939 fs/compat_ioctl.c return ppp_sock_fprog_ioctl_trans(file, cmd, argp); argp 942 fs/compat_ioctl.c return sg_ioctl_trans(file, cmd, argp); argp 944 fs/compat_ioctl.c return sg_grt_trans(file, cmd, argp); argp 947 fs/compat_ioctl.c return mt_ioctl_trans(file, cmd, argp); argp 954 fs/compat_ioctl.c return rtc_ioctl(file, cmd, argp); argp 280 fs/fcntl.c u64 *argp = (u64 __user *)arg; argp 287 fs/fcntl.c if (copy_to_user(argp, &h, sizeof(*argp))) argp 291 fs/fcntl.c if (copy_from_user(&h, argp, sizeof(h))) argp 303 fs/fcntl.c if (copy_to_user(argp, &h, sizeof(*argp))) argp 307 fs/fcntl.c if (copy_from_user(&h, argp, sizeof(h))) argp 325 fs/fcntl.c void __user *argp = (void __user *)arg; argp 354 fs/fcntl.c if (copy_from_user(&flock, argp, sizeof(flock))) argp 357 fs/fcntl.c if (!err && copy_to_user(argp, &flock, sizeof(flock))) argp 368 fs/fcntl.c if (copy_from_user(&flock, argp, sizeof(flock))) argp 475 fs/fcntl.c void __user *argp = (void __user *)arg; argp 496 fs/fcntl.c if (copy_from_user(&flock, argp, sizeof(flock))) argp 499 fs/fcntl.c if (!err && copy_to_user(argp, &flock, sizeof(flock))) argp 507 fs/fcntl.c if (copy_from_user(&flock, argp, sizeof(flock))) argp 1393 fs/gfs2/rgrp.c int gfs2_fitrim(struct file *filp, void __user *argp) argp 1416 fs/gfs2/rgrp.c if (copy_from_user(&r, argp, sizeof(r))) argp 1478 fs/gfs2/rgrp.c if (copy_to_user(argp, &r, sizeof(r))) argp 77 fs/gfs2/rgrp.h extern int gfs2_fitrim(struct file *filp, void __user *argp); argp 142 fs/hfsplus/ioctl.c void __user *argp = (void __user *)arg; argp 146 fs/hfsplus/ioctl.c return hfsplus_ioctl_getflags(file, argp); argp 148 fs/hfsplus/ioctl.c return hfsplus_ioctl_setflags(file, argp); argp 150 fs/hfsplus/ioctl.c return hfsplus_ioctl_bless(file, argp); argp 248 fs/ioctl.c static long ioctl_file_clone_range(struct file *file, void __user *argp) argp 252 fs/ioctl.c if (copy_from_user(&args, argp, sizeof(args))) argp 470 fs/ioctl.c int ioctl_preallocate(struct file *filp, void __user *argp) argp 475 fs/ioctl.c if (copy_from_user(&sr, argp, sizeof(sr))) argp 513 fs/ioctl.c static int ioctl_fionbio(struct file *filp, int __user *argp) argp 518 fs/ioctl.c error = get_user(on, argp); argp 537 fs/ioctl.c int __user *argp) argp 542 fs/ioctl.c error = get_user(on, argp); argp 590 fs/ioctl.c struct file_dedupe_range __user *argp = arg; argp 596 fs/ioctl.c if (get_user(count, &argp->dest_count)) { argp 607 fs/ioctl.c same = memdup_user(argp, size); argp 619 fs/ioctl.c ret = copy_to_user(argp, same, size); argp 639 fs/ioctl.c int __user *argp = (int __user *)arg; argp 652 fs/ioctl.c error = ioctl_fionbio(filp, argp); argp 656 fs/ioctl.c error = ioctl_fioasync(fd, filp, argp); argp 663 fs/ioctl.c error = copy_to_user(argp, &res, sizeof(res)) ? argp 684 fs/ioctl.c return put_user(inode->i_sb->s_blocksize, argp); argp 690 fs/ioctl.c return ioctl_file_clone_range(filp, argp); argp 693 fs/ioctl.c return ioctl_file_dedupe_range(filp, argp); argp 128 fs/lockd/clntproc.c struct nlm_args *argp = &req->a_args; argp 129 fs/lockd/clntproc.c struct nlm_lock *lock = &argp->lock; argp 132 fs/lockd/clntproc.c nlmclnt_next_cookie(&argp->cookie); argp 265 fs/lockd/clntproc.c struct nlm_args *argp = &req->a_args; argp 268 fs/lockd/clntproc.c .rpc_argp = argp, argp 278 fs/lockd/clntproc.c if (host->h_reclaiming && !argp->reclaim) argp 308 fs/lockd/clntproc.c if (argp->reclaim) { argp 314 fs/lockd/clntproc.c if (!argp->reclaim) { argp 436 fs/lockd/mon.c static void encode_mon_name(struct xdr_stream *xdr, const struct nsm_args *argp) argp 438 fs/lockd/mon.c encode_nsm_string(xdr, argp->mon_name); argp 447 fs/lockd/mon.c static void encode_my_id(struct xdr_stream *xdr, const struct nsm_args *argp) argp 451 fs/lockd/mon.c encode_nsm_string(xdr, argp->nodename); argp 453 fs/lockd/mon.c *p++ = cpu_to_be32(argp->prog); argp 454 fs/lockd/mon.c *p++ = cpu_to_be32(argp->vers); argp 455 fs/lockd/mon.c *p = cpu_to_be32(argp->proc); argp 462 fs/lockd/mon.c static void encode_mon_id(struct xdr_stream *xdr, const struct nsm_args *argp) argp 464 fs/lockd/mon.c encode_mon_name(xdr, argp); argp 465 fs/lockd/mon.c encode_my_id(xdr, argp); argp 473 fs/lockd/mon.c static void encode_priv(struct xdr_stream *xdr, const struct nsm_args *argp) argp 478 fs/lockd/mon.c xdr_encode_opaque_fixed(p, argp->priv->data, SM_PRIV_SIZE); argp 482 fs/lockd/mon.c const void *argp) argp 484 fs/lockd/mon.c encode_mon_id(xdr, argp); argp 485 fs/lockd/mon.c encode_priv(xdr, argp); argp 489 fs/lockd/mon.c const void *argp) argp 491 fs/lockd/mon.c encode_mon_id(xdr, argp); argp 23 fs/lockd/svc4proc.c nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, argp 28 fs/lockd/svc4proc.c struct nlm_lock *lock = &argp->lock; argp 37 fs/lockd/svc4proc.c || (argp->monitor && nsm_monitor(host) < 0)) argp 84 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; argp 90 fs/lockd/svc4proc.c resp->cookie = argp->cookie; argp 93 fs/lockd/svc4proc.c if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) argp 97 fs/lockd/svc4proc.c resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); argp 103 fs/lockd/svc4proc.c nlmsvc_release_lockowner(&argp->lock); argp 118 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; argp 125 fs/lockd/svc4proc.c resp->cookie = argp->cookie; argp 128 fs/lockd/svc4proc.c if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) argp 138 fs/lockd/svc4proc.c if (host->h_nsmstate && host->h_nsmstate != argp->state) { argp 144 fs/lockd/svc4proc.c resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, argp 145 fs/lockd/svc4proc.c argp->block, &argp->cookie, argp 146 fs/lockd/svc4proc.c argp->reclaim); argp 152 fs/lockd/svc4proc.c nlmsvc_release_lockowner(&argp->lock); argp 167 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; argp 173 fs/lockd/svc4proc.c resp->cookie = argp->cookie; argp 182 fs/lockd/svc4proc.c if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) argp 186 fs/lockd/svc4proc.c resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock); argp 189 fs/lockd/svc4proc.c nlmsvc_release_lockowner(&argp->lock); argp 207 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; argp 213 fs/lockd/svc4proc.c resp->cookie = argp->cookie; argp 222 fs/lockd/svc4proc.c if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) argp 226 fs/lockd/svc4proc.c resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock); argp 229 fs/lockd/svc4proc.c nlmsvc_release_lockowner(&argp->lock); argp 248 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; argp 250 fs/lockd/svc4proc.c resp->cookie = argp->cookie; argp 253 fs/lockd/svc4proc.c resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); argp 291 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; argp 297 fs/lockd/svc4proc.c argp->lock.caller, argp 298 fs/lockd/svc4proc.c argp->lock.len); argp 355 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; argp 362 fs/lockd/svc4proc.c resp->cookie = argp->cookie; argp 365 fs/lockd/svc4proc.c if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { argp 371 fs/lockd/svc4proc.c if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) argp 375 fs/lockd/svc4proc.c resp->status = nlmsvc_share_file(host, file, argp); argp 378 fs/lockd/svc4proc.c nlmsvc_release_lockowner(&argp->lock); argp 390 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; argp 397 fs/lockd/svc4proc.c resp->cookie = argp->cookie; argp 406 fs/lockd/svc4proc.c if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) argp 410 fs/lockd/svc4proc.c resp->status = nlmsvc_unshare_file(host, file, argp); argp 413 fs/lockd/svc4proc.c nlmsvc_release_lockowner(&argp->lock); argp 425 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; argp 429 fs/lockd/svc4proc.c argp->monitor = 0; /* just clean the monitor flag */ argp 439 fs/lockd/svc4proc.c struct nlm_args *argp = rqstp->rq_argp; argp 443 fs/lockd/svc4proc.c if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL)) argp 457 fs/lockd/svc4proc.c struct nlm_reboot *argp = rqstp->rq_argp; argp 468 fs/lockd/svc4proc.c nlm_host_rebooted(SVC_NET(rqstp), argp); argp 478 fs/lockd/svc4proc.c struct nlm_res *argp = rqstp->rq_argp; argp 485 fs/lockd/svc4proc.c nlmsvc_grant_reply(&argp->cookie, argp->status); argp 52 fs/lockd/svcproc.c nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, argp 57 fs/lockd/svcproc.c struct nlm_lock *lock = &argp->lock; argp 66 fs/lockd/svcproc.c || (argp->monitor && nsm_monitor(host) < 0)) argp 114 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; argp 120 fs/lockd/svcproc.c resp->cookie = argp->cookie; argp 123 fs/lockd/svcproc.c if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) argp 127 fs/lockd/svcproc.c resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie)); argp 134 fs/lockd/svcproc.c nlmsvc_release_lockowner(&argp->lock); argp 149 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; argp 156 fs/lockd/svcproc.c resp->cookie = argp->cookie; argp 159 fs/lockd/svcproc.c if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) argp 169 fs/lockd/svcproc.c if (host->h_nsmstate && host->h_nsmstate != argp->state) { argp 175 fs/lockd/svcproc.c resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, argp 176 fs/lockd/svcproc.c argp->block, &argp->cookie, argp 177 fs/lockd/svcproc.c argp->reclaim)); argp 183 fs/lockd/svcproc.c nlmsvc_release_lockowner(&argp->lock); argp 198 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; argp 205 fs/lockd/svcproc.c resp->cookie = argp->cookie; argp 214 fs/lockd/svcproc.c if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) argp 218 fs/lockd/svcproc.c resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock)); argp 221 fs/lockd/svcproc.c nlmsvc_release_lockowner(&argp->lock); argp 239 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; argp 246 fs/lockd/svcproc.c resp->cookie = argp->cookie; argp 255 fs/lockd/svcproc.c if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) argp 259 fs/lockd/svcproc.c resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock)); argp 262 fs/lockd/svcproc.c nlmsvc_release_lockowner(&argp->lock); argp 281 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; argp 283 fs/lockd/svcproc.c resp->cookie = argp->cookie; argp 286 fs/lockd/svcproc.c resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); argp 332 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; argp 338 fs/lockd/svcproc.c argp->lock.caller, argp 339 fs/lockd/svcproc.c argp->lock.len); argp 398 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; argp 405 fs/lockd/svcproc.c resp->cookie = argp->cookie; argp 408 fs/lockd/svcproc.c if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { argp 414 fs/lockd/svcproc.c if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) argp 418 fs/lockd/svcproc.c resp->status = cast_status(nlmsvc_share_file(host, file, argp)); argp 421 fs/lockd/svcproc.c nlmsvc_release_lockowner(&argp->lock); argp 433 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; argp 440 fs/lockd/svcproc.c resp->cookie = argp->cookie; argp 449 fs/lockd/svcproc.c if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) argp 453 fs/lockd/svcproc.c resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); argp 456 fs/lockd/svcproc.c nlmsvc_release_lockowner(&argp->lock); argp 468 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; argp 472 fs/lockd/svcproc.c argp->monitor = 0; /* just clean the monitor flag */ argp 482 fs/lockd/svcproc.c struct nlm_args *argp = rqstp->rq_argp; argp 486 fs/lockd/svcproc.c if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL)) argp 500 fs/lockd/svcproc.c struct nlm_reboot *argp = rqstp->rq_argp; argp 511 fs/lockd/svcproc.c nlm_host_rebooted(SVC_NET(rqstp), argp); argp 521 fs/lockd/svcproc.c struct nlm_res *argp = rqstp->rq_argp; argp 528 fs/lockd/svcproc.c nlmsvc_grant_reply(&argp->cookie, argp->status); argp 29 fs/lockd/svcshare.c struct nlm_args *argp) argp 32 fs/lockd/svcshare.c struct xdr_netobj *oh = &argp->lock.oh; argp 38 fs/lockd/svcshare.c if ((argp->fsm_access & share->s_mode) argp 39 fs/lockd/svcshare.c || (argp->fsm_mode & share->s_access )) argp 60 fs/lockd/svcshare.c share->s_access = argp->fsm_access; argp 61 fs/lockd/svcshare.c share->s_mode = argp->fsm_mode; argp 70 fs/lockd/svcshare.c struct nlm_args *argp) argp 73 fs/lockd/svcshare.c struct xdr_netobj *oh = &argp->lock.oh; argp 186 fs/lockd/xdr.c struct nlm_args *argp = rqstp->rq_argp; argp 189 fs/lockd/xdr.c if (!(p = nlm_decode_cookie(p, &argp->cookie))) argp 193 fs/lockd/xdr.c if (!(p = nlm_decode_lock(p, &argp->lock))) argp 196 fs/lockd/xdr.c argp->lock.fl.fl_type = F_WRLCK; argp 214 fs/lockd/xdr.c struct nlm_args *argp = rqstp->rq_argp; argp 217 fs/lockd/xdr.c if (!(p = nlm_decode_cookie(p, &argp->cookie))) argp 219 fs/lockd/xdr.c argp->block = ntohl(*p++); argp 221 fs/lockd/xdr.c if (!(p = nlm_decode_lock(p, &argp->lock))) argp 224 fs/lockd/xdr.c argp->lock.fl.fl_type = F_WRLCK; argp 225 fs/lockd/xdr.c argp->reclaim = ntohl(*p++); argp 226 fs/lockd/xdr.c argp->state = ntohl(*p++); argp 227 fs/lockd/xdr.c argp->monitor = 1; /* monitor client by default */ argp 235 fs/lockd/xdr.c struct nlm_args *argp = rqstp->rq_argp; argp 238 fs/lockd/xdr.c if (!(p = nlm_decode_cookie(p, &argp->cookie))) argp 240 fs/lockd/xdr.c argp->block = ntohl(*p++); argp 242 fs/lockd/xdr.c if (!(p = nlm_decode_lock(p, &argp->lock))) argp 245 fs/lockd/xdr.c argp->lock.fl.fl_type = F_WRLCK; argp 252 fs/lockd/xdr.c struct nlm_args *argp = rqstp->rq_argp; argp 254 fs/lockd/xdr.c if (!(p = nlm_decode_cookie(p, &argp->cookie)) argp 255 fs/lockd/xdr.c || !(p = nlm_decode_lock(p, &argp->lock))) argp 257 fs/lockd/xdr.c argp->lock.fl.fl_type = F_UNLCK; argp 264 fs/lockd/xdr.c struct nlm_args *argp = rqstp->rq_argp; argp 265 fs/lockd/xdr.c struct nlm_lock *lock = &argp->lock; argp 271 fs/lockd/xdr.c if (!(p = nlm_decode_cookie(p, &argp->cookie)) argp 277 fs/lockd/xdr.c argp->fsm_mode = ntohl(*p++); argp 278 fs/lockd/xdr.c argp->fsm_access = ntohl(*p++); argp 308 fs/lockd/xdr.c struct nlm_args *argp = rqstp->rq_argp; argp 309 fs/lockd/xdr.c struct nlm_lock *lock = &argp->lock; argp 314 fs/lockd/xdr.c argp->state = ntohl(*p++); argp 321 fs/lockd/xdr.c struct nlm_reboot *argp = rqstp->rq_argp; argp 323 fs/lockd/xdr.c if (!(p = xdr_decode_string_inplace(p, &argp->mon, &argp->len, SM_MAXSTRLEN))) argp 325 fs/lockd/xdr.c argp->state = ntohl(*p++); argp 326 fs/lockd/xdr.c memcpy(&argp->priv.data, p, sizeof(argp->priv.data)); argp 183 fs/lockd/xdr4.c struct nlm_args *argp = rqstp->rq_argp; argp 186 fs/lockd/xdr4.c if (!(p = nlm4_decode_cookie(p, &argp->cookie))) argp 190 fs/lockd/xdr4.c if (!(p = nlm4_decode_lock(p, &argp->lock))) argp 193 fs/lockd/xdr4.c argp->lock.fl.fl_type = F_WRLCK; argp 211 fs/lockd/xdr4.c struct nlm_args *argp = rqstp->rq_argp; argp 214 fs/lockd/xdr4.c if (!(p = nlm4_decode_cookie(p, &argp->cookie))) argp 216 fs/lockd/xdr4.c argp->block = ntohl(*p++); argp 218 fs/lockd/xdr4.c if (!(p = nlm4_decode_lock(p, &argp->lock))) argp 221 fs/lockd/xdr4.c argp->lock.fl.fl_type = F_WRLCK; argp 222 fs/lockd/xdr4.c argp->reclaim = ntohl(*p++); argp 223 fs/lockd/xdr4.c argp->state = ntohl(*p++); argp 224 fs/lockd/xdr4.c argp->monitor = 1; /* monitor client by default */ argp 232 fs/lockd/xdr4.c struct nlm_args *argp = rqstp->rq_argp; argp 235 fs/lockd/xdr4.c if (!(p = nlm4_decode_cookie(p, &argp->cookie))) argp 237 fs/lockd/xdr4.c argp->block = ntohl(*p++); argp 239 fs/lockd/xdr4.c if (!(p = nlm4_decode_lock(p, &argp->lock))) argp 242 fs/lockd/xdr4.c argp->lock.fl.fl_type = F_WRLCK; argp 249 fs/lockd/xdr4.c struct nlm_args *argp = rqstp->rq_argp; argp 251 fs/lockd/xdr4.c if (!(p = nlm4_decode_cookie(p, &argp->cookie)) argp 252 fs/lockd/xdr4.c || !(p = nlm4_decode_lock(p, &argp->lock))) argp 254 fs/lockd/xdr4.c argp->lock.fl.fl_type = F_UNLCK; argp 261 fs/lockd/xdr4.c struct nlm_args *argp = rqstp->rq_argp; argp 262 fs/lockd/xdr4.c struct nlm_lock *lock = &argp->lock; argp 268 fs/lockd/xdr4.c if (!(p = nlm4_decode_cookie(p, &argp->cookie)) argp 274 fs/lockd/xdr4.c argp->fsm_mode = ntohl(*p++); argp 275 fs/lockd/xdr4.c argp->fsm_access = ntohl(*p++); argp 305 fs/lockd/xdr4.c struct nlm_args *argp = rqstp->rq_argp; argp 306 fs/lockd/xdr4.c struct nlm_lock *lock = &argp->lock; argp 311 fs/lockd/xdr4.c argp->state = ntohl(*p++); argp 318 fs/lockd/xdr4.c struct nlm_reboot *argp = rqstp->rq_argp; argp 320 fs/lockd/xdr4.c if (!(p = xdr_decode_string_inplace(p, &argp->mon, &argp->len, SM_MAXSTRLEN))) argp 322 fs/lockd/xdr4.c argp->state = ntohl(*p++); argp 323 fs/lockd/xdr4.c memcpy(&argp->priv.data, p, sizeof(argp->priv.data)); argp 118 fs/nfs/callback.h extern __be32 nfs4_callback_sequence(void *argp, void *resp, argp 137 fs/nfs/callback.h extern __be32 nfs4_callback_recallany(void *argp, void *resp, argp 143 fs/nfs/callback.h extern __be32 nfs4_callback_recallslot(void *argp, void *resp, argp 160 fs/nfs/callback.h extern __be32 nfs4_callback_layoutrecall(void *argp, void *resp, argp 175 fs/nfs/callback.h extern __be32 nfs4_callback_devicenotify(void *argp, void *resp, argp 184 fs/nfs/callback.h extern __be32 nfs4_callback_notify_lock(void *argp, void *resp, argp 200 fs/nfs/callback.h extern __be32 nfs4_callback_getattr(void *argp, void *resp, argp 202 fs/nfs/callback.h extern __be32 nfs4_callback_recall(void *argp, void *resp, argp 23 fs/nfs/callback_proc.c __be32 nfs4_callback_getattr(void *argp, void *resp, argp 26 fs/nfs/callback_proc.c struct cb_getattrargs *args = argp; argp 75 fs/nfs/callback_proc.c __be32 nfs4_callback_recall(void *argp, void *resp, argp 78 fs/nfs/callback_proc.c struct cb_recallargs *args = argp; argp 341 fs/nfs/callback_proc.c __be32 nfs4_callback_layoutrecall(void *argp, void *resp, argp 344 fs/nfs/callback_proc.c struct cb_layoutrecallargs *args = argp; argp 363 fs/nfs/callback_proc.c __be32 nfs4_callback_devicenotify(void *argp, void *resp, argp 366 fs/nfs/callback_proc.c struct cb_devicenotifyargs *args = argp; argp 502 fs/nfs/callback_proc.c __be32 nfs4_callback_sequence(void *argp, void *resp, argp 505 fs/nfs/callback_proc.c struct cb_sequenceargs *args = argp; argp 606 fs/nfs/callback_proc.c __be32 nfs4_callback_recallany(void *argp, void *resp, argp 609 fs/nfs/callback_proc.c struct cb_recallanyargs *args = argp; argp 640 fs/nfs/callback_proc.c __be32 nfs4_callback_recallslot(void *argp, void *resp, argp 643 fs/nfs/callback_proc.c struct cb_recallslotargs *args = argp; argp 666 fs/nfs/callback_proc.c __be32 nfs4_callback_notify_lock(void *argp, void *resp, argp 669 fs/nfs/callback_proc.c struct cb_notify_lock_args *args = argp; argp 177 fs/nfs/callback_xdr.c struct xdr_stream *xdr, void *argp) argp 179 fs/nfs/callback_xdr.c struct cb_getattrargs *args = argp; argp 189 fs/nfs/callback_xdr.c struct xdr_stream *xdr, void *argp) argp 191 fs/nfs/callback_xdr.c struct cb_recallargs *args = argp; argp 213 fs/nfs/callback_xdr.c struct xdr_stream *xdr, void *argp) argp 215 fs/nfs/callback_xdr.c struct cb_layoutrecallargs *args = argp; argp 258 fs/nfs/callback_xdr.c void *argp) argp 260 fs/nfs/callback_xdr.c struct cb_devicenotifyargs *args = argp; argp 401 fs/nfs/callback_xdr.c void *argp) argp 403 fs/nfs/callback_xdr.c struct cb_sequenceargs *args = argp; argp 449 fs/nfs/callback_xdr.c void *argp) argp 451 fs/nfs/callback_xdr.c struct cb_recallanyargs *args = argp; argp 469 fs/nfs/callback_xdr.c void *argp) argp 471 fs/nfs/callback_xdr.c struct cb_recallslotargs *args = argp; argp 512 fs/nfs/callback_xdr.c struct xdr_stream *xdr, void *argp) argp 514 fs/nfs/callback_xdr.c struct cb_notify_lock_args *args = argp; argp 866 fs/nfs/callback_xdr.c struct xdr_stream *xdr_in, void *argp, argp 906 fs/nfs/callback_xdr.c status = op->decode_args(rqstp, xdr_in, argp); argp 908 fs/nfs/callback_xdr.c status = op->process_op(argp, resp, cps); argp 8228 fs/nfs/nfs4proc.c struct nfs41_exchange_id_args *argp; argp 8237 fs/nfs/nfs4proc.c argp = task->tk_msg.rpc_argp; argp 8274 fs/nfs/nfs4proc.c memcpy(clp->cl_confirm.data, argp->verifier.data, argp 263 fs/nfs/read.c struct nfs_pgio_args *argp = &hdr->args; argp 270 fs/nfs/read.c nfs_set_pgio_error(hdr, -EIO, argp->offset); argp 282 fs/nfs/read.c argp->offset += resp->count; argp 283 fs/nfs/read.c argp->pgbase += resp->count; argp 284 fs/nfs/read.c argp->count -= resp->count; argp 1529 fs/nfs/write.c struct nfs_pgio_args *argp = &hdr->args; argp 1531 fs/nfs/write.c u64 size = argp->offset + resp->count; argp 1620 fs/nfs/write.c struct nfs_pgio_args *argp = &hdr->args; argp 1623 fs/nfs/write.c if (resp->count < argp->count) { argp 1634 fs/nfs/write.c argp->count); argp 1637 fs/nfs/write.c nfs_set_pgio_error(hdr, -EIO, argp->offset); argp 1652 fs/nfs/write.c argp->offset += resp->count; argp 1653 fs/nfs/write.c argp->pgbase += resp->count; argp 1654 fs/nfs/write.c argp->count -= resp->count; argp 1659 fs/nfs/write.c argp->stable = NFS_FILE_SYNC; argp 33 fs/nfsd/nfs2acl.c struct nfsd3_getaclargs *argp = rqstp->rq_argp; argp 40 fs/nfsd/nfs2acl.c dprintk("nfsd: GETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); argp 42 fs/nfsd/nfs2acl.c fh = fh_copy(&resp->fh, &argp->fh); argp 49 fs/nfsd/nfs2acl.c if (argp->mask & ~NFS_ACL_MASK) argp 51 fs/nfsd/nfs2acl.c resp->mask = argp->mask; argp 94 fs/nfsd/nfs2acl.c struct nfsd3_setaclargs *argp = rqstp->rq_argp; argp 101 fs/nfsd/nfs2acl.c dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); argp 103 fs/nfsd/nfs2acl.c fh = fh_copy(&resp->fh, &argp->fh); argp 116 fs/nfsd/nfs2acl.c error = set_posix_acl(inode, ACL_TYPE_ACCESS, argp->acl_access); argp 119 fs/nfsd/nfs2acl.c error = set_posix_acl(inode, ACL_TYPE_DEFAULT, argp->acl_default); argp 132 fs/nfsd/nfs2acl.c posix_acl_release(argp->acl_access); argp 133 fs/nfsd/nfs2acl.c posix_acl_release(argp->acl_default); argp 148 fs/nfsd/nfs2acl.c struct nfsd_fhandle *argp = rqstp->rq_argp; argp 151 fs/nfsd/nfs2acl.c dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); argp 153 fs/nfsd/nfs2acl.c fh_copy(&resp->fh, &argp->fh); argp 166 fs/nfsd/nfs2acl.c struct nfsd3_accessargs *argp = rqstp->rq_argp; argp 171 fs/nfsd/nfs2acl.c SVCFH_fmt(&argp->fh), argp 172 fs/nfsd/nfs2acl.c argp->access); argp 174 fs/nfsd/nfs2acl.c fh_copy(&resp->fh, &argp->fh); argp 175 fs/nfsd/nfs2acl.c resp->access = argp->access; argp 188 fs/nfsd/nfs2acl.c struct nfsd3_getaclargs *argp = rqstp->rq_argp; argp 190 fs/nfsd/nfs2acl.c p = nfs2svc_decode_fh(p, &argp->fh); argp 193 fs/nfsd/nfs2acl.c argp->mask = ntohl(*p); p++; argp 201 fs/nfsd/nfs2acl.c struct nfsd3_setaclargs *argp = rqstp->rq_argp; argp 206 fs/nfsd/nfs2acl.c p = nfs2svc_decode_fh(p, &argp->fh); argp 209 fs/nfsd/nfs2acl.c argp->mask = ntohl(*p++); argp 210 fs/nfsd/nfs2acl.c if (argp->mask & ~NFS_ACL_MASK || argp 216 fs/nfsd/nfs2acl.c (argp->mask & NFS_ACL) ? argp 217 fs/nfsd/nfs2acl.c &argp->acl_access : NULL); argp 220 fs/nfsd/nfs2acl.c (argp->mask & NFS_DFACL) ? argp 221 fs/nfsd/nfs2acl.c &argp->acl_default : NULL); argp 227 fs/nfsd/nfs2acl.c struct nfsd_fhandle *argp = rqstp->rq_argp; argp 229 fs/nfsd/nfs2acl.c p = nfs2svc_decode_fh(p, &argp->fh); argp 237 fs/nfsd/nfs2acl.c struct nfsd3_accessargs *argp = rqstp->rq_argp; argp 239 fs/nfsd/nfs2acl.c p = nfs2svc_decode_fh(p, &argp->fh); argp 242 fs/nfsd/nfs2acl.c argp->access = ntohl(*p++); argp 32 fs/nfsd/nfs3acl.c struct nfsd3_getaclargs *argp = rqstp->rq_argp; argp 39 fs/nfsd/nfs3acl.c fh = fh_copy(&resp->fh, &argp->fh); argp 46 fs/nfsd/nfs3acl.c if (argp->mask & ~NFS_ACL_MASK) argp 48 fs/nfsd/nfs3acl.c resp->mask = argp->mask; argp 87 fs/nfsd/nfs3acl.c struct nfsd3_setaclargs *argp = rqstp->rq_argp; argp 94 fs/nfsd/nfs3acl.c fh = fh_copy(&resp->fh, &argp->fh); argp 107 fs/nfsd/nfs3acl.c error = set_posix_acl(inode, ACL_TYPE_ACCESS, argp->acl_access); argp 110 fs/nfsd/nfs3acl.c error = set_posix_acl(inode, ACL_TYPE_DEFAULT, argp->acl_default); argp 120 fs/nfsd/nfs3acl.c posix_acl_release(argp->acl_access); argp 121 fs/nfsd/nfs3acl.c posix_acl_release(argp->acl_default); argp 46 fs/nfsd/nfs3proc.c struct nfsd_fhandle *argp = rqstp->rq_argp; argp 51 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh)); argp 53 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); argp 70 fs/nfsd/nfs3proc.c struct nfsd3_sattrargs *argp = rqstp->rq_argp; argp 75 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh)); argp 77 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); argp 78 fs/nfsd/nfs3proc.c nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, argp 79 fs/nfsd/nfs3proc.c argp->check_guard, argp->guardtime); argp 89 fs/nfsd/nfs3proc.c struct nfsd3_diropargs *argp = rqstp->rq_argp; argp 94 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), argp 95 fs/nfsd/nfs3proc.c argp->len, argp 96 fs/nfsd/nfs3proc.c argp->name); argp 98 fs/nfsd/nfs3proc.c fh_copy(&resp->dirfh, &argp->fh); argp 102 fs/nfsd/nfs3proc.c argp->name, argp 103 fs/nfsd/nfs3proc.c argp->len, argp 114 fs/nfsd/nfs3proc.c struct nfsd3_accessargs *argp = rqstp->rq_argp; argp 119 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), argp 120 fs/nfsd/nfs3proc.c argp->access); argp 122 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); argp 123 fs/nfsd/nfs3proc.c resp->access = argp->access; argp 134 fs/nfsd/nfs3proc.c struct nfsd3_readlinkargs *argp = rqstp->rq_argp; argp 138 fs/nfsd/nfs3proc.c dprintk("nfsd: READLINK(3) %s\n", SVCFH_fmt(&argp->fh)); argp 141 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); argp 143 fs/nfsd/nfs3proc.c nfserr = nfsd_readlink(rqstp, &resp->fh, argp->buffer, &resp->len); argp 153 fs/nfsd/nfs3proc.c struct nfsd3_readargs *argp = rqstp->rq_argp; argp 157 fs/nfsd/nfs3proc.c unsigned long cnt = min(argp->count, max_blocksize); argp 160 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), argp 161 fs/nfsd/nfs3proc.c (unsigned long) argp->count, argp 162 fs/nfsd/nfs3proc.c (unsigned long long) argp->offset); argp 171 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); argp 173 fs/nfsd/nfs3proc.c argp->offset, argp 174 fs/nfsd/nfs3proc.c rqstp->rq_vec, argp->vlen, argp 186 fs/nfsd/nfs3proc.c struct nfsd3_writeargs *argp = rqstp->rq_argp; argp 189 fs/nfsd/nfs3proc.c unsigned long cnt = argp->len; argp 193 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), argp 194 fs/nfsd/nfs3proc.c argp->len, argp 195 fs/nfsd/nfs3proc.c (unsigned long long) argp->offset, argp 196 fs/nfsd/nfs3proc.c argp->stable? " stable" : ""); argp 198 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); argp 199 fs/nfsd/nfs3proc.c resp->committed = argp->stable; argp 201 fs/nfsd/nfs3proc.c &argp->first, cnt); argp 204 fs/nfsd/nfs3proc.c nfserr = nfsd_write(rqstp, &resp->fh, argp->offset, argp 219 fs/nfsd/nfs3proc.c struct nfsd3_createargs *argp = rqstp->rq_argp; argp 226 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), argp 227 fs/nfsd/nfs3proc.c argp->len, argp 228 fs/nfsd/nfs3proc.c argp->name); argp 230 fs/nfsd/nfs3proc.c dirfhp = fh_copy(&resp->dirfh, &argp->fh); argp 232 fs/nfsd/nfs3proc.c attr = &argp->attrs; argp 244 fs/nfsd/nfs3proc.c nfserr = do_nfsd_create(rqstp, dirfhp, argp->name, argp->len, argp 246 fs/nfsd/nfs3proc.c argp->createmode, (u32 *)argp->verf, NULL, NULL); argp 257 fs/nfsd/nfs3proc.c struct nfsd3_createargs *argp = rqstp->rq_argp; argp 262 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), argp 263 fs/nfsd/nfs3proc.c argp->len, argp 264 fs/nfsd/nfs3proc.c argp->name); argp 266 fs/nfsd/nfs3proc.c argp->attrs.ia_valid &= ~ATTR_SIZE; argp 267 fs/nfsd/nfs3proc.c fh_copy(&resp->dirfh, &argp->fh); argp 269 fs/nfsd/nfs3proc.c nfserr = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, argp 270 fs/nfsd/nfs3proc.c &argp->attrs, S_IFDIR, 0, &resp->fh); argp 278 fs/nfsd/nfs3proc.c struct nfsd3_symlinkargs *argp = rqstp->rq_argp; argp 282 fs/nfsd/nfs3proc.c if (argp->tlen == 0) argp 284 fs/nfsd/nfs3proc.c if (argp->tlen > NFS3_MAXPATHLEN) argp 287 fs/nfsd/nfs3proc.c argp->tname = svc_fill_symlink_pathname(rqstp, &argp->first, argp 289 fs/nfsd/nfs3proc.c argp->tlen); argp 290 fs/nfsd/nfs3proc.c if (IS_ERR(argp->tname)) argp 291 fs/nfsd/nfs3proc.c RETURN_STATUS(nfserrno(PTR_ERR(argp->tname))); argp 294 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->ffh), argp 295 fs/nfsd/nfs3proc.c argp->flen, argp->fname, argp 296 fs/nfsd/nfs3proc.c argp->tlen, argp->tname); argp 298 fs/nfsd/nfs3proc.c fh_copy(&resp->dirfh, &argp->ffh); argp 300 fs/nfsd/nfs3proc.c nfserr = nfsd_symlink(rqstp, &resp->dirfh, argp->fname, argp->flen, argp 301 fs/nfsd/nfs3proc.c argp->tname, &resp->fh); argp 302 fs/nfsd/nfs3proc.c kfree(argp->tname); argp 312 fs/nfsd/nfs3proc.c struct nfsd3_mknodargs *argp = rqstp->rq_argp; argp 319 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), argp 320 fs/nfsd/nfs3proc.c argp->len, argp 321 fs/nfsd/nfs3proc.c argp->name); argp 323 fs/nfsd/nfs3proc.c fh_copy(&resp->dirfh, &argp->fh); argp 326 fs/nfsd/nfs3proc.c if (argp->ftype == 0 || argp->ftype >= NF3BAD) argp 328 fs/nfsd/nfs3proc.c if (argp->ftype == NF3CHR || argp->ftype == NF3BLK) { argp 329 fs/nfsd/nfs3proc.c rdev = MKDEV(argp->major, argp->minor); argp 330 fs/nfsd/nfs3proc.c if (MAJOR(rdev) != argp->major || argp 331 fs/nfsd/nfs3proc.c MINOR(rdev) != argp->minor) argp 334 fs/nfsd/nfs3proc.c if (argp->ftype != NF3SOCK && argp->ftype != NF3FIFO) argp 337 fs/nfsd/nfs3proc.c type = nfs3_ftypes[argp->ftype]; argp 338 fs/nfsd/nfs3proc.c nfserr = nfsd_create(rqstp, &resp->dirfh, argp->name, argp->len, argp 339 fs/nfsd/nfs3proc.c &argp->attrs, type, rdev, &resp->fh); argp 350 fs/nfsd/nfs3proc.c struct nfsd3_diropargs *argp = rqstp->rq_argp; argp 355 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), argp 356 fs/nfsd/nfs3proc.c argp->len, argp 357 fs/nfsd/nfs3proc.c argp->name); argp 360 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); argp 361 fs/nfsd/nfs3proc.c nfserr = nfsd_unlink(rqstp, &resp->fh, -S_IFDIR, argp->name, argp->len); argp 372 fs/nfsd/nfs3proc.c struct nfsd3_diropargs *argp = rqstp->rq_argp; argp 377 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), argp 378 fs/nfsd/nfs3proc.c argp->len, argp 379 fs/nfsd/nfs3proc.c argp->name); argp 381 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); argp 382 fs/nfsd/nfs3proc.c nfserr = nfsd_unlink(rqstp, &resp->fh, S_IFDIR, argp->name, argp->len); argp 390 fs/nfsd/nfs3proc.c struct nfsd3_renameargs *argp = rqstp->rq_argp; argp 395 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->ffh), argp 396 fs/nfsd/nfs3proc.c argp->flen, argp 397 fs/nfsd/nfs3proc.c argp->fname); argp 399 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->tfh), argp 400 fs/nfsd/nfs3proc.c argp->tlen, argp 401 fs/nfsd/nfs3proc.c argp->tname); argp 403 fs/nfsd/nfs3proc.c fh_copy(&resp->ffh, &argp->ffh); argp 404 fs/nfsd/nfs3proc.c fh_copy(&resp->tfh, &argp->tfh); argp 405 fs/nfsd/nfs3proc.c nfserr = nfsd_rename(rqstp, &resp->ffh, argp->fname, argp->flen, argp 406 fs/nfsd/nfs3proc.c &resp->tfh, argp->tname, argp->tlen); argp 413 fs/nfsd/nfs3proc.c struct nfsd3_linkargs *argp = rqstp->rq_argp; argp 418 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->ffh)); argp 420 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->tfh), argp 421 fs/nfsd/nfs3proc.c argp->tlen, argp 422 fs/nfsd/nfs3proc.c argp->tname); argp 424 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->ffh); argp 425 fs/nfsd/nfs3proc.c fh_copy(&resp->tfh, &argp->tfh); argp 426 fs/nfsd/nfs3proc.c nfserr = nfsd_link(rqstp, &resp->tfh, argp->tname, argp->tlen, argp 437 fs/nfsd/nfs3proc.c struct nfsd3_readdirargs *argp = rqstp->rq_argp; argp 445 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), argp 446 fs/nfsd/nfs3proc.c argp->count, (u32) argp->cookie); argp 450 fs/nfsd/nfs3proc.c count = (argp->count >> 2) - 2; argp 453 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); argp 457 fs/nfsd/nfs3proc.c resp->buffer = argp->buffer; argp 459 fs/nfsd/nfs3proc.c nfserr = nfsd_readdir(rqstp, &resp->fh, (loff_t*) &argp->cookie, argp 461 fs/nfsd/nfs3proc.c memcpy(resp->verf, argp->verf, 8); argp 475 fs/nfsd/nfs3proc.c loff_t offset = argp->cookie; argp 498 fs/nfsd/nfs3proc.c struct nfsd3_readdirargs *argp = rqstp->rq_argp; argp 507 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), argp 508 fs/nfsd/nfs3proc.c argp->count, (u32) argp->cookie); argp 512 fs/nfsd/nfs3proc.c resp->count = (argp->count >> 2) - 2; argp 515 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); argp 518 fs/nfsd/nfs3proc.c resp->buffer = argp->buffer; argp 521 fs/nfsd/nfs3proc.c offset = argp->cookie; argp 534 fs/nfsd/nfs3proc.c memcpy(resp->verf, argp->verf, 8); argp 567 fs/nfsd/nfs3proc.c struct nfsd_fhandle *argp = rqstp->rq_argp; argp 572 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh)); argp 574 fs/nfsd/nfs3proc.c nfserr = nfsd_statfs(rqstp, &argp->fh, &resp->stats, 0); argp 575 fs/nfsd/nfs3proc.c fh_put(&argp->fh); argp 585 fs/nfsd/nfs3proc.c struct nfsd_fhandle *argp = rqstp->rq_argp; argp 591 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh)); argp 603 fs/nfsd/nfs3proc.c nfserr = fh_verify(rqstp, &argp->fh, 0, argp 610 fs/nfsd/nfs3proc.c struct super_block *sb = argp->fh.fh_dentry->d_sb; argp 619 fs/nfsd/nfs3proc.c fh_put(&argp->fh); argp 629 fs/nfsd/nfs3proc.c struct nfsd_fhandle *argp = rqstp->rq_argp; argp 634 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh)); argp 644 fs/nfsd/nfs3proc.c nfserr = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP); argp 647 fs/nfsd/nfs3proc.c struct super_block *sb = argp->fh.fh_dentry->d_sb; argp 662 fs/nfsd/nfs3proc.c fh_put(&argp->fh); argp 673 fs/nfsd/nfs3proc.c struct nfsd3_commitargs *argp = rqstp->rq_argp; argp 678 fs/nfsd/nfs3proc.c SVCFH_fmt(&argp->fh), argp 679 fs/nfsd/nfs3proc.c argp->count, argp 680 fs/nfsd/nfs3proc.c (unsigned long long) argp->offset); argp 682 fs/nfsd/nfs3proc.c if (argp->offset > NFS_OFFSET_MAX) argp 685 fs/nfsd/nfs3proc.c fh_copy(&resp->fh, &argp->fh); argp 686 fs/nfsd/nfs3proc.c nfserr = nfsd_commit(rqstp, &resp->fh, argp->offset, argp->count); argp 1866 fs/nfsd/nfs4proc.c struct nfsd4_compoundargs *argp = rqstp->rq_argp; argp 1867 fs/nfsd/nfs4proc.c struct nfsd4_op *this = &argp->ops[resp->opcnt - 1]; argp 1868 fs/nfsd/nfs4proc.c struct nfsd4_op *next = &argp->ops[resp->opcnt]; argp 1883 fs/nfsd/nfs4proc.c if (argp->opcnt == resp->opcnt) argp 2734 fs/nfsd/nfs4proc.c struct nfsd4_compoundargs *argp = rqstp->rq_argp; argp 2735 fs/nfsd/nfs4proc.c struct nfsd4_op *this = &argp->ops[resp->opcnt - 1]; argp 2747 fs/nfsd/nfs4proc.c while (opiter < argp->opcnt) { argp 2748 fs/nfsd/nfs4proc.c this = &argp->ops[opiter++]; argp 3547 fs/nfsd/nfs4state.c struct nfsd4_compoundargs *argp = rqstp->rq_argp; argp 3556 fs/nfsd/nfs4state.c if (slot->sl_opcnt < argp->opcnt && !slot->sl_status) argp 3563 fs/nfsd/nfs4state.c if (slot->sl_opcnt > argp->opcnt) argp 116 fs/nfsd/nfs4xdr.c if (!(x = (p==argp->tmp || p == argp->tmpp) ? \ argp 117 fs/nfsd/nfs4xdr.c savemem(argp, p, nbytes) : \ argp 132 fs/nfsd/nfs4xdr.c if (nbytes <= (u32)((char *)argp->end - (char *)argp->p)) { \ argp 133 fs/nfsd/nfs4xdr.c p = argp->p; \ argp 134 fs/nfsd/nfs4xdr.c argp->p += XDR_QUADLEN(nbytes); \ argp 135 fs/nfsd/nfs4xdr.c } else if (!(p = read_buf(argp, nbytes))) { \ argp 142 fs/nfsd/nfs4xdr.c static void next_decode_page(struct nfsd4_compoundargs *argp) argp 144 fs/nfsd/nfs4xdr.c argp->p = page_address(argp->pagelist[0]); argp 145 fs/nfsd/nfs4xdr.c argp->pagelist++; argp 146 fs/nfsd/nfs4xdr.c if (argp->pagelen < PAGE_SIZE) { argp 147 fs/nfsd/nfs4xdr.c argp->end = argp->p + XDR_QUADLEN(argp->pagelen); argp 148 fs/nfsd/nfs4xdr.c argp->pagelen = 0; argp 150 fs/nfsd/nfs4xdr.c argp->end = argp->p + (PAGE_SIZE>>2); argp 151 fs/nfsd/nfs4xdr.c argp->pagelen -= PAGE_SIZE; argp 155 fs/nfsd/nfs4xdr.c static __be32 *read_buf(struct nfsd4_compoundargs *argp, u32 nbytes) argp 160 fs/nfsd/nfs4xdr.c unsigned int avail = (char *)argp->end - (char *)argp->p; argp 163 fs/nfsd/nfs4xdr.c if (argp->pagelen == 0) { argp 164 fs/nfsd/nfs4xdr.c struct kvec *vec = &argp->rqstp->rq_arg.tail[0]; argp 166 fs/nfsd/nfs4xdr.c if (!argp->tail) { argp 167 fs/nfsd/nfs4xdr.c argp->tail = true; argp 169 fs/nfsd/nfs4xdr.c argp->p = vec->iov_base; argp 170 fs/nfsd/nfs4xdr.c argp->end = vec->iov_base + avail; argp 176 fs/nfsd/nfs4xdr.c p = argp->p; argp 177 fs/nfsd/nfs4xdr.c argp->p += XDR_QUADLEN(nbytes); argp 181 fs/nfsd/nfs4xdr.c if (avail + argp->pagelen < nbytes) argp 186 fs/nfsd/nfs4xdr.c if (nbytes <= sizeof(argp->tmp)) argp 187 fs/nfsd/nfs4xdr.c p = argp->tmp; argp 189 fs/nfsd/nfs4xdr.c kfree(argp->tmpp); argp 190 fs/nfsd/nfs4xdr.c p = argp->tmpp = kmalloc(nbytes, GFP_KERNEL); argp 200 fs/nfsd/nfs4xdr.c memcpy(p, argp->p, avail); argp 201 fs/nfsd/nfs4xdr.c next_decode_page(argp); argp 202 fs/nfsd/nfs4xdr.c memcpy(((char*)p)+avail, argp->p, (nbytes - avail)); argp 203 fs/nfsd/nfs4xdr.c argp->p += XDR_QUADLEN(nbytes - avail); argp 207 fs/nfsd/nfs4xdr.c static unsigned int compoundargs_bytes_left(struct nfsd4_compoundargs *argp) argp 209 fs/nfsd/nfs4xdr.c unsigned int this = (char *)argp->end - (char *)argp->p; argp 211 fs/nfsd/nfs4xdr.c return this + argp->pagelen; argp 228 fs/nfsd/nfs4xdr.c svcxdr_tmpalloc(struct nfsd4_compoundargs *argp, u32 len) argp 235 fs/nfsd/nfs4xdr.c tb->next = argp->to_free; argp 236 fs/nfsd/nfs4xdr.c argp->to_free = tb; argp 248 fs/nfsd/nfs4xdr.c svcxdr_dupstr(struct nfsd4_compoundargs *argp, void *buf, u32 len) argp 250 fs/nfsd/nfs4xdr.c char *p = svcxdr_tmpalloc(argp, len + 1); argp 269 fs/nfsd/nfs4xdr.c static char *savemem(struct nfsd4_compoundargs *argp, __be32 *p, int nbytes) argp 273 fs/nfsd/nfs4xdr.c ret = svcxdr_tmpalloc(argp, nbytes); argp 281 fs/nfsd/nfs4xdr.c nfsd4_decode_time(struct nfsd4_compoundargs *argp, struct timespec64 *tv) argp 295 fs/nfsd/nfs4xdr.c nfsd4_decode_bitmap(struct nfsd4_compoundargs *argp, u32 *bmval) argp 321 fs/nfsd/nfs4xdr.c nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval, argp 331 fs/nfsd/nfs4xdr.c if ((status = nfsd4_decode_bitmap(argp, bmval))) argp 337 fs/nfsd/nfs4xdr.c if (nfsd_attrs_supported(argp->minorversion, bmval)) argp 358 fs/nfsd/nfs4xdr.c if (nace > compoundargs_bytes_left(argp)/20) argp 366 fs/nfsd/nfs4xdr.c *acl = svcxdr_tmpalloc(argp, nfs4_acl_bytes(nace)); argp 385 fs/nfsd/nfs4xdr.c status = nfsd_map_name_to_gid(argp->rqstp, argp 388 fs/nfsd/nfs4xdr.c status = nfsd_map_name_to_uid(argp->rqstp, argp 409 fs/nfsd/nfs4xdr.c if ((status = nfsd_map_name_to_uid(argp->rqstp, buf, dummy32, &iattr->ia_uid))) argp 420 fs/nfsd/nfs4xdr.c if ((status = nfsd_map_name_to_gid(argp->rqstp, buf, dummy32, &iattr->ia_gid))) argp 431 fs/nfsd/nfs4xdr.c status = nfsd4_decode_time(argp, &iattr->ia_atime); argp 450 fs/nfsd/nfs4xdr.c status = nfsd4_decode_time(argp, &iattr->ia_mtime); argp 481 fs/nfsd/nfs4xdr.c label->data = svcxdr_dupstr(argp, buf, dummy32); argp 503 fs/nfsd/nfs4xdr.c nfsd4_decode_stateid(struct nfsd4_compoundargs *argp, stateid_t *sid) argp 515 fs/nfsd/nfs4xdr.c nfsd4_decode_access(struct nfsd4_compoundargs *argp, struct nfsd4_access *access) argp 525 fs/nfsd/nfs4xdr.c static __be32 nfsd4_decode_cb_sec(struct nfsd4_compoundargs *argp, struct nfsd4_cb_sec *cbs) argp 528 fs/nfsd/nfs4xdr.c struct user_namespace *userns = nfsd_user_namespace(argp->rqstp); argp 606 fs/nfsd/nfs4xdr.c static __be32 nfsd4_decode_backchannel_ctl(struct nfsd4_compoundargs *argp, struct nfsd4_backchannel_ctl *bc) argp 612 fs/nfsd/nfs4xdr.c nfsd4_decode_cb_sec(argp, &bc->bc_cb_sec); argp 617 fs/nfsd/nfs4xdr.c static __be32 nfsd4_decode_bind_conn_to_session(struct nfsd4_compoundargs *argp, struct nfsd4_bind_conn_to_session *bcts) argp 630 fs/nfsd/nfs4xdr.c nfsd4_decode_close(struct nfsd4_compoundargs *argp, struct nfsd4_close *close) argp 636 fs/nfsd/nfs4xdr.c return nfsd4_decode_stateid(argp, &close->cl_stateid); argp 643 fs/nfsd/nfs4xdr.c nfsd4_decode_commit(struct nfsd4_compoundargs *argp, struct nfsd4_commit *commit) argp 655 fs/nfsd/nfs4xdr.c nfsd4_decode_create(struct nfsd4_compoundargs *argp, struct nfsd4_create *create) argp 666 fs/nfsd/nfs4xdr.c create->cr_data = svcxdr_dupstr(argp, p, create->cr_datalen); argp 690 fs/nfsd/nfs4xdr.c status = nfsd4_decode_fattr(argp, create->cr_bmval, &create->cr_iattr, argp 700 fs/nfsd/nfs4xdr.c nfsd4_decode_delegreturn(struct nfsd4_compoundargs *argp, struct nfsd4_delegreturn *dr) argp 702 fs/nfsd/nfs4xdr.c return nfsd4_decode_stateid(argp, &dr->dr_stateid); argp 706 fs/nfsd/nfs4xdr.c nfsd4_decode_getattr(struct nfsd4_compoundargs *argp, struct nfsd4_getattr *getattr) argp 708 fs/nfsd/nfs4xdr.c return nfsd4_decode_bitmap(argp, getattr->ga_bmval); argp 712 fs/nfsd/nfs4xdr.c nfsd4_decode_link(struct nfsd4_compoundargs *argp, struct nfsd4_link *link) argp 727 fs/nfsd/nfs4xdr.c nfsd4_decode_lock(struct nfsd4_compoundargs *argp, struct nfsd4_lock *lock) argp 746 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &lock->lk_new_open_stateid); argp 756 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &lock->lk_old_lock_stateid); argp 767 fs/nfsd/nfs4xdr.c nfsd4_decode_lockt(struct nfsd4_compoundargs *argp, struct nfsd4_lockt *lockt) argp 786 fs/nfsd/nfs4xdr.c nfsd4_decode_locku(struct nfsd4_compoundargs *argp, struct nfsd4_locku *locku) argp 795 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &locku->lu_stateid); argp 806 fs/nfsd/nfs4xdr.c nfsd4_decode_lookup(struct nfsd4_compoundargs *argp, struct nfsd4_lookup *lookup) argp 820 fs/nfsd/nfs4xdr.c static __be32 nfsd4_decode_share_access(struct nfsd4_compoundargs *argp, u32 *share_access, u32 *deleg_want, u32 *deleg_when) argp 843 fs/nfsd/nfs4xdr.c if (!argp->minorversion) argp 873 fs/nfsd/nfs4xdr.c static __be32 nfsd4_decode_share_deny(struct nfsd4_compoundargs *argp, u32 *x) argp 887 fs/nfsd/nfs4xdr.c static __be32 nfsd4_decode_opaque(struct nfsd4_compoundargs *argp, struct xdr_netobj *o) argp 905 fs/nfsd/nfs4xdr.c nfsd4_decode_open(struct nfsd4_compoundargs *argp, struct nfsd4_open *open) argp 919 fs/nfsd/nfs4xdr.c status = nfsd4_decode_share_access(argp, &open->op_share_access, argp 923 fs/nfsd/nfs4xdr.c status = nfsd4_decode_share_deny(argp, &open->op_share_deny); argp 928 fs/nfsd/nfs4xdr.c status = nfsd4_decode_opaque(argp, &open->op_owner); argp 942 fs/nfsd/nfs4xdr.c status = nfsd4_decode_fattr(argp, open->op_bmval, argp 953 fs/nfsd/nfs4xdr.c if (argp->minorversion < 1) argp 957 fs/nfsd/nfs4xdr.c status = nfsd4_decode_fattr(argp, open->op_bmval, argp 989 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &open->op_delegate_stateid); argp 1001 fs/nfsd/nfs4xdr.c if (argp->minorversion < 1) argp 1006 fs/nfsd/nfs4xdr.c if (argp->minorversion < 1) argp 1008 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &open->op_delegate_stateid); argp 1020 fs/nfsd/nfs4xdr.c nfsd4_decode_open_confirm(struct nfsd4_compoundargs *argp, struct nfsd4_open_confirm *open_conf) argp 1024 fs/nfsd/nfs4xdr.c if (argp->minorversion >= 1) argp 1027 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &open_conf->oc_req_stateid); argp 1037 fs/nfsd/nfs4xdr.c nfsd4_decode_open_downgrade(struct nfsd4_compoundargs *argp, struct nfsd4_open_downgrade *open_down) argp 1041 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &open_down->od_stateid); argp 1046 fs/nfsd/nfs4xdr.c status = nfsd4_decode_share_access(argp, &open_down->od_share_access, argp 1050 fs/nfsd/nfs4xdr.c status = nfsd4_decode_share_deny(argp, &open_down->od_share_deny); argp 1057 fs/nfsd/nfs4xdr.c nfsd4_decode_putfh(struct nfsd4_compoundargs *argp, struct nfsd4_putfh *putfh) argp 1072 fs/nfsd/nfs4xdr.c nfsd4_decode_putpubfh(struct nfsd4_compoundargs *argp, void *p) argp 1074 fs/nfsd/nfs4xdr.c if (argp->minorversion == 0) argp 1080 fs/nfsd/nfs4xdr.c nfsd4_decode_read(struct nfsd4_compoundargs *argp, struct nfsd4_read *read) argp 1084 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &read->rd_stateid); argp 1095 fs/nfsd/nfs4xdr.c nfsd4_decode_readdir(struct nfsd4_compoundargs *argp, struct nfsd4_readdir *readdir) argp 1104 fs/nfsd/nfs4xdr.c if ((status = nfsd4_decode_bitmap(argp, readdir->rd_bmval))) argp 1111 fs/nfsd/nfs4xdr.c nfsd4_decode_remove(struct nfsd4_compoundargs *argp, struct nfsd4_remove *remove) argp 1126 fs/nfsd/nfs4xdr.c nfsd4_decode_rename(struct nfsd4_compoundargs *argp, struct nfsd4_rename *rename) argp 1147 fs/nfsd/nfs4xdr.c nfsd4_decode_renew(struct nfsd4_compoundargs *argp, clientid_t *clientid) argp 1151 fs/nfsd/nfs4xdr.c if (argp->minorversion >= 1) argp 1161 fs/nfsd/nfs4xdr.c nfsd4_decode_secinfo(struct nfsd4_compoundargs *argp, argp 1177 fs/nfsd/nfs4xdr.c nfsd4_decode_secinfo_no_name(struct nfsd4_compoundargs *argp, argp 1188 fs/nfsd/nfs4xdr.c nfsd4_decode_setattr(struct nfsd4_compoundargs *argp, struct nfsd4_setattr *setattr) argp 1192 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &setattr->sa_stateid); argp 1195 fs/nfsd/nfs4xdr.c return nfsd4_decode_fattr(argp, setattr->sa_bmval, &setattr->sa_iattr, argp 1200 fs/nfsd/nfs4xdr.c nfsd4_decode_setclientid(struct nfsd4_compoundargs *argp, struct nfsd4_setclientid *setclientid) argp 1204 fs/nfsd/nfs4xdr.c if (argp->minorversion >= 1) argp 1210 fs/nfsd/nfs4xdr.c status = nfsd4_decode_opaque(argp, &setclientid->se_name); argp 1230 fs/nfsd/nfs4xdr.c nfsd4_decode_setclientid_confirm(struct nfsd4_compoundargs *argp, struct nfsd4_setclientid_confirm *scd_c) argp 1234 fs/nfsd/nfs4xdr.c if (argp->minorversion >= 1) argp 1246 fs/nfsd/nfs4xdr.c nfsd4_decode_verify(struct nfsd4_compoundargs *argp, struct nfsd4_verify *verify) argp 1250 fs/nfsd/nfs4xdr.c if ((status = nfsd4_decode_bitmap(argp, verify->ve_bmval))) argp 1265 fs/nfsd/nfs4xdr.c nfsd4_decode_write(struct nfsd4_compoundargs *argp, struct nfsd4_write *write) argp 1271 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &write->wr_stateid); argp 1285 fs/nfsd/nfs4xdr.c avail = (char*)argp->end - (char*)argp->p; argp 1286 fs/nfsd/nfs4xdr.c if (avail + argp->pagelen < write->wr_buflen) { argp 1293 fs/nfsd/nfs4xdr.c write->wr_pagelist = argp->pagelist; argp 1302 fs/nfsd/nfs4xdr.c argp->pagelist += pages; argp 1303 fs/nfsd/nfs4xdr.c argp->pagelen -= pages * PAGE_SIZE; argp 1306 fs/nfsd/nfs4xdr.c next_decode_page(argp); argp 1308 fs/nfsd/nfs4xdr.c argp->p += XDR_QUADLEN(len); argp 1314 fs/nfsd/nfs4xdr.c nfsd4_decode_release_lockowner(struct nfsd4_compoundargs *argp, struct nfsd4_release_lockowner *rlockowner) argp 1318 fs/nfsd/nfs4xdr.c if (argp->minorversion >= 1) argp 1327 fs/nfsd/nfs4xdr.c if (argp->minorversion && !zero_clientid(&rlockowner->rl_clientid)) argp 1333 fs/nfsd/nfs4xdr.c nfsd4_decode_exchange_id(struct nfsd4_compoundargs *argp, argp 1342 fs/nfsd/nfs4xdr.c status = nfsd4_decode_opaque(argp, &exid->clname); argp 1357 fs/nfsd/nfs4xdr.c status = nfsd4_decode_bitmap(argp, argp 1362 fs/nfsd/nfs4xdr.c status = nfsd4_decode_bitmap(argp, exid->spo_must_allow); argp 1412 fs/nfsd/nfs4xdr.c status = nfsd4_decode_opaque(argp, &exid->nii_domain); argp 1417 fs/nfsd/nfs4xdr.c status = nfsd4_decode_opaque(argp, &exid->nii_name); argp 1422 fs/nfsd/nfs4xdr.c status = nfsd4_decode_time(argp, &exid->nii_time); argp 1430 fs/nfsd/nfs4xdr.c nfsd4_decode_create_session(struct nfsd4_compoundargs *argp, argp 1476 fs/nfsd/nfs4xdr.c nfsd4_decode_cb_sec(argp, &sess->cb_sec); argp 1481 fs/nfsd/nfs4xdr.c nfsd4_decode_destroy_session(struct nfsd4_compoundargs *argp, argp 1492 fs/nfsd/nfs4xdr.c nfsd4_decode_free_stateid(struct nfsd4_compoundargs *argp, argp 1505 fs/nfsd/nfs4xdr.c nfsd4_decode_sequence(struct nfsd4_compoundargs *argp, argp 1521 fs/nfsd/nfs4xdr.c nfsd4_decode_test_stateid(struct nfsd4_compoundargs *argp, struct nfsd4_test_stateid *test_stateid) argp 1533 fs/nfsd/nfs4xdr.c stateid = svcxdr_tmpalloc(argp, sizeof(*stateid)); argp 1542 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &stateid->ts_id_stateid); argp 1556 fs/nfsd/nfs4xdr.c static __be32 nfsd4_decode_destroy_clientid(struct nfsd4_compoundargs *argp, struct nfsd4_destroy_clientid *dc) argp 1566 fs/nfsd/nfs4xdr.c static __be32 nfsd4_decode_reclaim_complete(struct nfsd4_compoundargs *argp, struct nfsd4_reclaim_complete *rc) argp 1578 fs/nfsd/nfs4xdr.c nfsd4_decode_getdeviceinfo(struct nfsd4_compoundargs *argp, argp 1605 fs/nfsd/nfs4xdr.c nfsd4_decode_layoutget(struct nfsd4_compoundargs *argp, argp 1618 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &lgp->lg_sid); argp 1629 fs/nfsd/nfs4xdr.c nfsd4_decode_layoutcommit(struct nfsd4_compoundargs *argp, argp 1640 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &lcp->lc_sid); argp 1654 fs/nfsd/nfs4xdr.c status = nfsd4_decode_time(argp, &lcp->lc_mtime); argp 1677 fs/nfsd/nfs4xdr.c nfsd4_decode_layoutreturn(struct nfsd4_compoundargs *argp, argp 1692 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &lrp->lr_sid); argp 1712 fs/nfsd/nfs4xdr.c nfsd4_decode_fallocate(struct nfsd4_compoundargs *argp, argp 1717 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &fallocate->falloc_stateid); argp 1729 fs/nfsd/nfs4xdr.c nfsd4_decode_clone(struct nfsd4_compoundargs *argp, struct nfsd4_clone *clone) argp 1733 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &clone->cl_src_stateid); argp 1736 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &clone->cl_dst_stateid); argp 1748 fs/nfsd/nfs4xdr.c nfsd4_decode_copy(struct nfsd4_compoundargs *argp, struct nfsd4_copy *copy) argp 1752 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, ©->cp_src_stateid); argp 1755 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, ©->cp_dst_stateid); argp 1771 fs/nfsd/nfs4xdr.c nfsd4_decode_offload_status(struct nfsd4_compoundargs *argp, argp 1774 fs/nfsd/nfs4xdr.c return nfsd4_decode_stateid(argp, &os->stateid); argp 1778 fs/nfsd/nfs4xdr.c nfsd4_decode_seek(struct nfsd4_compoundargs *argp, struct nfsd4_seek *seek) argp 1782 fs/nfsd/nfs4xdr.c status = nfsd4_decode_stateid(argp, &seek->seek_stateid); argp 1794 fs/nfsd/nfs4xdr.c nfsd4_decode_noop(struct nfsd4_compoundargs *argp, void *p) argp 1800 fs/nfsd/nfs4xdr.c nfsd4_decode_notsupp(struct nfsd4_compoundargs *argp, void *p) argp 1805 fs/nfsd/nfs4xdr.c typedef __be32(*nfsd4_dec)(struct nfsd4_compoundargs *argp, void *); argp 1892 fs/nfsd/nfs4xdr.c nfsd4_opnum_in_range(struct nfsd4_compoundargs *argp, struct nfsd4_op *op) argp 1896 fs/nfsd/nfs4xdr.c else if (argp->minorversion == 0 && op->opnum > LAST_NFS40_OP) argp 1898 fs/nfsd/nfs4xdr.c else if (argp->minorversion == 1 && op->opnum > LAST_NFS41_OP) argp 1900 fs/nfsd/nfs4xdr.c else if (argp->minorversion == 2 && op->opnum > LAST_NFS42_OP) argp 1906 fs/nfsd/nfs4xdr.c nfsd4_decode_compound(struct nfsd4_compoundargs *argp) argp 1911 fs/nfsd/nfs4xdr.c int auth_slack= argp->rqstp->rq_auth_slack; argp 1918 fs/nfsd/nfs4xdr.c argp->taglen = be32_to_cpup(p++); argp 1919 fs/nfsd/nfs4xdr.c READ_BUF(argp->taglen); argp 1920 fs/nfsd/nfs4xdr.c SAVEMEM(argp->tag, argp->taglen); argp 1922 fs/nfsd/nfs4xdr.c argp->minorversion = be32_to_cpup(p++); argp 1923 fs/nfsd/nfs4xdr.c argp->opcnt = be32_to_cpup(p++); argp 1924 fs/nfsd/nfs4xdr.c max_reply += 4 + (XDR_QUADLEN(argp->taglen) << 2); argp 1926 fs/nfsd/nfs4xdr.c if (argp->taglen > NFSD4_MAX_TAGLEN) argp 1933 fs/nfsd/nfs4xdr.c if (argp->opcnt > NFSD_MAX_OPS_PER_COMPOUND) argp 1936 fs/nfsd/nfs4xdr.c if (argp->opcnt > ARRAY_SIZE(argp->iops)) { argp 1937 fs/nfsd/nfs4xdr.c argp->ops = kzalloc(argp->opcnt * sizeof(*argp->ops), GFP_KERNEL); argp 1938 fs/nfsd/nfs4xdr.c if (!argp->ops) { argp 1939 fs/nfsd/nfs4xdr.c argp->ops = argp->iops; argp 1945 fs/nfsd/nfs4xdr.c if (argp->minorversion > NFSD_SUPPORTED_MINOR_VERSION) argp 1946 fs/nfsd/nfs4xdr.c argp->opcnt = 0; argp 1948 fs/nfsd/nfs4xdr.c for (i = 0; i < argp->opcnt; i++) { argp 1949 fs/nfsd/nfs4xdr.c op = &argp->ops[i]; argp 1955 fs/nfsd/nfs4xdr.c if (nfsd4_opnum_in_range(argp, op)) argp 1956 fs/nfsd/nfs4xdr.c op->status = nfsd4_dec_ops[op->opnum](argp, &op->u); argp 1970 fs/nfsd/nfs4xdr.c readbytes += nfsd4_max_reply(argp->rqstp, op); argp 1972 fs/nfsd/nfs4xdr.c max_reply += nfsd4_max_reply(argp->rqstp, op); argp 1983 fs/nfsd/nfs4xdr.c argp->opcnt = i+1; argp 1988 fs/nfsd/nfs4xdr.c if (argp->minorversion) argp 1990 fs/nfsd/nfs4xdr.c svc_reserve(argp->rqstp, max_reply + readbytes); argp 1991 fs/nfsd/nfs4xdr.c argp->rqstp->rq_cachetype = cachethis ? RC_REPLBUFF : RC_NOCACHE; argp 1994 fs/nfsd/nfs4xdr.c clear_bit(RQ_SPLICE_OK, &argp->rqstp->rq_flags); argp 45 fs/nfsd/nfsproc.c struct nfsd_fhandle *argp = rqstp->rq_argp; argp 48 fs/nfsd/nfsproc.c dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); argp 50 fs/nfsd/nfsproc.c fh_copy(&resp->fh, &argp->fh); argp 63 fs/nfsd/nfsproc.c struct nfsd_sattrargs *argp = rqstp->rq_argp; argp 65 fs/nfsd/nfsproc.c struct iattr *iap = &argp->attrs; argp 70 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->fh), argp 71 fs/nfsd/nfsproc.c argp->attrs.ia_valid, (long) argp->attrs.ia_size); argp 73 fs/nfsd/nfsproc.c fhp = fh_copy(&resp->fh, &argp->fh); argp 130 fs/nfsd/nfsproc.c struct nfsd_diropargs *argp = rqstp->rq_argp; argp 135 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->fh), argp->len, argp->name); argp 138 fs/nfsd/nfsproc.c nfserr = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, argp 141 fs/nfsd/nfsproc.c fh_put(&argp->fh); argp 151 fs/nfsd/nfsproc.c struct nfsd_readlinkargs *argp = rqstp->rq_argp; argp 155 fs/nfsd/nfsproc.c dprintk("nfsd: READLINK %s\n", SVCFH_fmt(&argp->fh)); argp 159 fs/nfsd/nfsproc.c nfserr = nfsd_readlink(rqstp, &argp->fh, argp->buffer, &resp->len); argp 161 fs/nfsd/nfsproc.c fh_put(&argp->fh); argp 172 fs/nfsd/nfsproc.c struct nfsd_readargs *argp = rqstp->rq_argp; argp 178 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->fh), argp 179 fs/nfsd/nfsproc.c argp->count, argp->offset); argp 185 fs/nfsd/nfsproc.c if (NFSSVC_MAXBLKSIZE_V2 < argp->count) { argp 190 fs/nfsd/nfsproc.c argp->count); argp 191 fs/nfsd/nfsproc.c argp->count = NFSSVC_MAXBLKSIZE_V2; argp 193 fs/nfsd/nfsproc.c svc_reserve_auth(rqstp, (19<<2) + argp->count + 4); argp 195 fs/nfsd/nfsproc.c resp->count = argp->count; argp 196 fs/nfsd/nfsproc.c nfserr = nfsd_read(rqstp, fh_copy(&resp->fh, &argp->fh), argp 197 fs/nfsd/nfsproc.c argp->offset, argp 198 fs/nfsd/nfsproc.c rqstp->rq_vec, argp->vlen, argp 213 fs/nfsd/nfsproc.c struct nfsd_writeargs *argp = rqstp->rq_argp; argp 216 fs/nfsd/nfsproc.c unsigned long cnt = argp->len; argp 220 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->fh), argp 221 fs/nfsd/nfsproc.c argp->len, argp->offset); argp 224 fs/nfsd/nfsproc.c &argp->first, cnt); argp 227 fs/nfsd/nfsproc.c nfserr = nfsd_write(rqstp, fh_copy(&resp->fh, &argp->fh), argp 228 fs/nfsd/nfsproc.c argp->offset, rqstp->rq_vec, nvecs, argp 242 fs/nfsd/nfsproc.c struct nfsd_createargs *argp = rqstp->rq_argp; argp 244 fs/nfsd/nfsproc.c svc_fh *dirfhp = &argp->fh; argp 246 fs/nfsd/nfsproc.c struct iattr *attr = &argp->attrs; argp 255 fs/nfsd/nfsproc.c SVCFH_fmt(dirfhp), argp->len, argp->name); argp 265 fs/nfsd/nfsproc.c if (isdotent(argp->name, argp->len)) argp 274 fs/nfsd/nfsproc.c dchild = lookup_one_len(argp->name, dirfhp->fh_dentry, argp->len); argp 372 fs/nfsd/nfsproc.c nfserr = nfsd_create_locked(rqstp, dirfhp, argp->name, argp 373 fs/nfsd/nfsproc.c argp->len, attr, type, rdev, newfhp); argp 376 fs/nfsd/nfsproc.c argp->name, attr->ia_valid, (long) attr->ia_size); argp 398 fs/nfsd/nfsproc.c struct nfsd_diropargs *argp = rqstp->rq_argp; argp 401 fs/nfsd/nfsproc.c dprintk("nfsd: REMOVE %s %.*s\n", SVCFH_fmt(&argp->fh), argp 402 fs/nfsd/nfsproc.c argp->len, argp->name); argp 405 fs/nfsd/nfsproc.c nfserr = nfsd_unlink(rqstp, &argp->fh, -S_IFDIR, argp->name, argp->len); argp 406 fs/nfsd/nfsproc.c fh_put(&argp->fh); argp 413 fs/nfsd/nfsproc.c struct nfsd_renameargs *argp = rqstp->rq_argp; argp 417 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->ffh), argp->flen, argp->fname); argp 419 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->tfh), argp->tlen, argp->tname); argp 421 fs/nfsd/nfsproc.c nfserr = nfsd_rename(rqstp, &argp->ffh, argp->fname, argp->flen, argp 422 fs/nfsd/nfsproc.c &argp->tfh, argp->tname, argp->tlen); argp 423 fs/nfsd/nfsproc.c fh_put(&argp->ffh); argp 424 fs/nfsd/nfsproc.c fh_put(&argp->tfh); argp 431 fs/nfsd/nfsproc.c struct nfsd_linkargs *argp = rqstp->rq_argp; argp 435 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->ffh)); argp 437 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->tfh), argp 438 fs/nfsd/nfsproc.c argp->tlen, argp 439 fs/nfsd/nfsproc.c argp->tname); argp 441 fs/nfsd/nfsproc.c nfserr = nfsd_link(rqstp, &argp->tfh, argp->tname, argp->tlen, argp 442 fs/nfsd/nfsproc.c &argp->ffh); argp 443 fs/nfsd/nfsproc.c fh_put(&argp->ffh); argp 444 fs/nfsd/nfsproc.c fh_put(&argp->tfh); argp 451 fs/nfsd/nfsproc.c struct nfsd_symlinkargs *argp = rqstp->rq_argp; argp 455 fs/nfsd/nfsproc.c if (argp->tlen > NFS_MAXPATHLEN) argp 458 fs/nfsd/nfsproc.c argp->tname = svc_fill_symlink_pathname(rqstp, &argp->first, argp 460 fs/nfsd/nfsproc.c argp->tlen); argp 461 fs/nfsd/nfsproc.c if (IS_ERR(argp->tname)) argp 462 fs/nfsd/nfsproc.c return nfserrno(PTR_ERR(argp->tname)); argp 465 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->ffh), argp->flen, argp->fname, argp 466 fs/nfsd/nfsproc.c argp->tlen, argp->tname); argp 469 fs/nfsd/nfsproc.c nfserr = nfsd_symlink(rqstp, &argp->ffh, argp->fname, argp->flen, argp 470 fs/nfsd/nfsproc.c argp->tname, &newfh); argp 472 fs/nfsd/nfsproc.c kfree(argp->tname); argp 473 fs/nfsd/nfsproc.c fh_put(&argp->ffh); argp 485 fs/nfsd/nfsproc.c struct nfsd_createargs *argp = rqstp->rq_argp; argp 489 fs/nfsd/nfsproc.c dprintk("nfsd: MKDIR %s %.*s\n", SVCFH_fmt(&argp->fh), argp->len, argp->name); argp 496 fs/nfsd/nfsproc.c argp->attrs.ia_valid &= ~ATTR_SIZE; argp 498 fs/nfsd/nfsproc.c nfserr = nfsd_create(rqstp, &argp->fh, argp->name, argp->len, argp 499 fs/nfsd/nfsproc.c &argp->attrs, S_IFDIR, 0, &resp->fh); argp 500 fs/nfsd/nfsproc.c fh_put(&argp->fh); argp 510 fs/nfsd/nfsproc.c struct nfsd_diropargs *argp = rqstp->rq_argp; argp 513 fs/nfsd/nfsproc.c dprintk("nfsd: RMDIR %s %.*s\n", SVCFH_fmt(&argp->fh), argp->len, argp->name); argp 515 fs/nfsd/nfsproc.c nfserr = nfsd_unlink(rqstp, &argp->fh, S_IFDIR, argp->name, argp->len); argp 516 fs/nfsd/nfsproc.c fh_put(&argp->fh); argp 526 fs/nfsd/nfsproc.c struct nfsd_readdirargs *argp = rqstp->rq_argp; argp 533 fs/nfsd/nfsproc.c SVCFH_fmt(&argp->fh), argp 534 fs/nfsd/nfsproc.c argp->count, argp->cookie); argp 537 fs/nfsd/nfsproc.c count = (argp->count >> 2) - 2; argp 544 fs/nfsd/nfsproc.c resp->buffer = argp->buffer; argp 549 fs/nfsd/nfsproc.c offset = argp->cookie; argp 550 fs/nfsd/nfsproc.c nfserr = nfsd_readdir(rqstp, &argp->fh, &offset, argp 553 fs/nfsd/nfsproc.c resp->count = resp->buffer - argp->buffer; argp 557 fs/nfsd/nfsproc.c fh_put(&argp->fh); argp 567 fs/nfsd/nfsproc.c struct nfsd_fhandle *argp = rqstp->rq_argp; argp 571 fs/nfsd/nfsproc.c dprintk("nfsd: STATFS %s\n", SVCFH_fmt(&argp->fh)); argp 573 fs/nfsd/nfsproc.c nfserr = nfsd_statfs(rqstp, &argp->fh, &resp->stats, argp 575 fs/nfsd/nfsproc.c fh_put(&argp->fh); argp 703 fs/nfsd/xdr4.h struct nfsd4_compoundargs *argp = rqstp->rq_argp; argp 705 fs/nfsd/xdr4.h return argp->opcnt == resp->opcnt; argp 118 fs/nilfs2/ioctl.c static int nilfs_ioctl_getflags(struct inode *inode, void __user *argp) argp 122 fs/nilfs2/ioctl.c return put_user(flags, (int __user *)argp); argp 129 fs/nilfs2/ioctl.c void __user *argp) argp 138 fs/nilfs2/ioctl.c if (get_user(flags, (int __user *)argp)) argp 178 fs/nilfs2/ioctl.c static int nilfs_ioctl_getversion(struct inode *inode, void __user *argp) argp 180 fs/nilfs2/ioctl.c return put_user(inode->i_generation, (int __user *)argp); argp 203 fs/nilfs2/ioctl.c unsigned int cmd, void __user *argp) argp 218 fs/nilfs2/ioctl.c if (copy_from_user(&cpmode, argp, sizeof(cpmode))) argp 258 fs/nilfs2/ioctl.c unsigned int cmd, void __user *argp) argp 273 fs/nilfs2/ioctl.c if (copy_from_user(&cno, argp, sizeof(cno))) argp 337 fs/nilfs2/ioctl.c unsigned int cmd, void __user *argp) argp 349 fs/nilfs2/ioctl.c if (copy_to_user(argp, &cpstat, sizeof(cpstat))) argp 404 fs/nilfs2/ioctl.c unsigned int cmd, void __user *argp) argp 416 fs/nilfs2/ioctl.c if (copy_to_user(argp, &sustat, sizeof(sustat))) argp 513 fs/nilfs2/ioctl.c unsigned int cmd, void __user *argp) argp 519 fs/nilfs2/ioctl.c if (copy_from_user(&argv, argp, sizeof(argv))) argp 530 fs/nilfs2/ioctl.c if (copy_to_user(argp, &argv, sizeof(argv))) argp 860 fs/nilfs2/ioctl.c unsigned int cmd, void __user *argp) argp 884 fs/nilfs2/ioctl.c if (copy_from_user(argv, argp, sizeof(argv))) argp 999 fs/nilfs2/ioctl.c unsigned int cmd, void __user *argp) argp 1014 fs/nilfs2/ioctl.c if (argp != NULL) { argp 1018 fs/nilfs2/ioctl.c if (copy_to_user(argp, &cno, sizeof(cno))) argp 1033 fs/nilfs2/ioctl.c void __user *argp) argp 1046 fs/nilfs2/ioctl.c if (copy_from_user(&newsize, argp, sizeof(newsize))) argp 1068 fs/nilfs2/ioctl.c static int nilfs_ioctl_trim_fs(struct inode *inode, void __user *argp) argp 1081 fs/nilfs2/ioctl.c if (copy_from_user(&range, argp, sizeof(range))) argp 1093 fs/nilfs2/ioctl.c if (copy_to_user(argp, &range, sizeof(range))) argp 1110 fs/nilfs2/ioctl.c static int nilfs_ioctl_set_alloc_range(struct inode *inode, void __user *argp) argp 1122 fs/nilfs2/ioctl.c if (copy_from_user(range, argp, sizeof(__u64[2]))) argp 1165 fs/nilfs2/ioctl.c unsigned int cmd, void __user *argp, argp 1176 fs/nilfs2/ioctl.c if (copy_from_user(&argv, argp, sizeof(argv))) argp 1186 fs/nilfs2/ioctl.c if (copy_to_user(argp, &argv, sizeof(argv))) argp 1216 fs/nilfs2/ioctl.c unsigned int cmd, void __user *argp) argp 1234 fs/nilfs2/ioctl.c if (copy_from_user(&argv, argp, sizeof(argv))) argp 1283 fs/nilfs2/ioctl.c void __user *argp = (void __user *)arg; argp 1287 fs/nilfs2/ioctl.c return nilfs_ioctl_getflags(inode, argp); argp 1289 fs/nilfs2/ioctl.c return nilfs_ioctl_setflags(inode, filp, argp); argp 1291 fs/nilfs2/ioctl.c return nilfs_ioctl_getversion(inode, argp); argp 1293 fs/nilfs2/ioctl.c return nilfs_ioctl_change_cpmode(inode, filp, cmd, argp); argp 1295 fs/nilfs2/ioctl.c return nilfs_ioctl_delete_checkpoint(inode, filp, cmd, argp); argp 1297 fs/nilfs2/ioctl.c return nilfs_ioctl_get_info(inode, filp, cmd, argp, argp 1301 fs/nilfs2/ioctl.c return nilfs_ioctl_get_cpstat(inode, filp, cmd, argp); argp 1303 fs/nilfs2/ioctl.c return nilfs_ioctl_get_info(inode, filp, cmd, argp, argp 1307 fs/nilfs2/ioctl.c return nilfs_ioctl_set_suinfo(inode, filp, cmd, argp); argp 1309 fs/nilfs2/ioctl.c return nilfs_ioctl_get_sustat(inode, filp, cmd, argp); argp 1311 fs/nilfs2/ioctl.c return nilfs_ioctl_get_info(inode, filp, cmd, argp, argp 1315 fs/nilfs2/ioctl.c return nilfs_ioctl_get_bdescs(inode, filp, cmd, argp); argp 1317 fs/nilfs2/ioctl.c return nilfs_ioctl_clean_segments(inode, filp, cmd, argp); argp 1319 fs/nilfs2/ioctl.c return nilfs_ioctl_sync(inode, filp, cmd, argp); argp 1321 fs/nilfs2/ioctl.c return nilfs_ioctl_resize(inode, filp, argp); argp 1323 fs/nilfs2/ioctl.c return nilfs_ioctl_set_alloc_range(inode, argp); argp 1325 fs/nilfs2/ioctl.c return nilfs_ioctl_trim_fs(inode, argp); argp 191 fs/nsfs.c uid_t __user *argp; argp 207 fs/nsfs.c argp = (uid_t __user *) arg; argp 209 fs/nsfs.c return put_user(uid, argp); argp 849 fs/ocfs2/ioctl.c void __user *argp = (void __user *)arg; argp 906 fs/ocfs2/ioctl.c if (copy_from_user(&args, argp, sizeof(args))) argp 914 fs/ocfs2/ioctl.c if (copy_from_user(&info, argp, sizeof(struct ocfs2_info))) argp 931 fs/ocfs2/ioctl.c if (copy_from_user(&range, argp, sizeof(range))) argp 940 fs/ocfs2/ioctl.c if (copy_to_user(argp, &range, sizeof(range))) argp 946 fs/ocfs2/ioctl.c return ocfs2_ioctl_move_extents(filp, argp); argp 959 fs/ocfs2/ioctl.c void __user *argp = (void __user *)arg; argp 977 fs/ocfs2/ioctl.c if (copy_from_user(&args, argp, sizeof(args))) argp 984 fs/ocfs2/ioctl.c if (copy_from_user(&info, argp, sizeof(struct ocfs2_info))) argp 985 fs/ocfs2/move_extents.c int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp) argp 993 fs/ocfs2/move_extents.c if (!argp) argp 1020 fs/ocfs2/move_extents.c if (copy_from_user(&range, argp, sizeof(range))) { argp 1072 fs/ocfs2/move_extents.c if (copy_to_user(argp, &range, sizeof(range))) argp 12 fs/ocfs2/move_extents.h int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp); argp 20 include/linux/fbcon.h int fbcon_set_con2fb_map_ioctl(void __user *argp); argp 21 include/linux/fbcon.h int fbcon_get_con2fb_map_ioctl(void __user *argp); argp 38 include/linux/fbcon.h static inline int fbcon_set_con2fb_map_ioctl(void __user *argp) { return 0; } argp 39 include/linux/fbcon.h static inline int fbcon_get_con2fb_map_ioctl(void __user *argp) { return 0; } argp 2558 include/linux/fs.h extern int ioctl_preallocate(struct file *filp, void __user *argp); argp 1784 net/appletalk/ddp.c void __user *argp = (void __user *)arg; argp 1793 net/appletalk/ddp.c rc = put_user(amount, (int __user *)argp); argp 1806 net/appletalk/ddp.c rc = put_user(amount, (int __user *)argp); argp 1814 net/appletalk/ddp.c rc = atrtr_ioctl(cmd, argp); argp 1825 net/appletalk/ddp.c rc = atif_ioctl(cmd, argp); argp 724 net/atm/br2684.c void __user *argp = (void __user *)arg; argp 731 net/atm/br2684.c err = get_user(b, (atm_backend_t __user *) argp); argp 741 net/atm/br2684.c return br2684_regvcc(atmvcc, argp); argp 743 net/atm/br2684.c return br2684_create(argp); argp 751 net/atm/br2684.c err = br2684_setfilt(atmvcc, argp); argp 58 net/atm/ioctl.c void __user *argp = (void __user *)arg; argp 69 net/atm/ioctl.c (int __user *)argp) ? -EFAULT : 0; argp 81 net/atm/ioctl.c (int __user *)argp) ? -EFAULT : 0; argp 123 net/atm/ioctl.c error = get_user(backend, (atm_backend_t __user *)argp); argp 165 net/atm/ioctl.c error = atm_dev_ioctl(cmd, argp, compat); argp 446 net/atm/pppoatm.c void __user *argp = (void __user *)arg; argp 453 net/atm/pppoatm.c if (get_user(b, (atm_backend_t __user *) argp)) argp 461 net/atm/pppoatm.c return pppoatm_assign_vcc(atmvcc, argp); argp 465 net/atm/pppoatm.c chan), (int __user *) argp) ? -EFAULT : 0; argp 468 net/atm/pppoatm.c chan), (int __user *) argp) ? -EFAULT : 0; argp 1693 net/ax25/af_ax25.c void __user *argp = (void __user *)arg; argp 1704 net/ax25/af_ax25.c res = put_user(amount, (int __user *)argp); argp 1714 net/ax25/af_ax25.c res = put_user(amount, (int __user *) argp); argp 1722 net/ax25/af_ax25.c if (copy_from_user(&sax25, argp, sizeof(sax25))) { argp 1736 net/ax25/af_ax25.c if (get_user(amount, (long __user *)argp)) { argp 1756 net/ax25/af_ax25.c res = ax25_rt_ioctl(cmd, argp); argp 1764 net/ax25/af_ax25.c res = ax25_ctl_ioctl(cmd, argp); argp 1801 net/ax25/af_ax25.c if (copy_to_user(argp, &ax25_info, sizeof(struct ax25_info_struct_deprecated))) { argp 1806 net/ax25/af_ax25.c if (copy_to_user(argp, &ax25_info, sizeof(struct ax25_info_struct))) { argp 1822 net/ax25/af_ax25.c if (copy_from_user(&ax25_fwd, argp, sizeof(ax25_fwd))) { argp 52 net/bluetooth/bnep/sock.c static int do_bnep_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) argp 62 net/bluetooth/bnep/sock.c BT_DBG("cmd %x arg %p", cmd, argp); argp 69 net/bluetooth/bnep/sock.c if (copy_from_user(&ca, argp, sizeof(ca))) argp 84 net/bluetooth/bnep/sock.c if (copy_to_user(argp, &ca, sizeof(ca))) argp 95 net/bluetooth/bnep/sock.c if (copy_from_user(&cd, argp, sizeof(cd))) argp 101 net/bluetooth/bnep/sock.c if (copy_from_user(&cl, argp, sizeof(cl))) argp 108 net/bluetooth/bnep/sock.c if (!err && copy_to_user(argp, &cl, sizeof(cl))) argp 114 net/bluetooth/bnep/sock.c if (copy_from_user(&ci, argp, sizeof(ci))) argp 118 net/bluetooth/bnep/sock.c if (!err && copy_to_user(argp, &ci, sizeof(ci))) argp 124 net/bluetooth/bnep/sock.c if (copy_to_user(argp, &supp_feat, sizeof(supp_feat))) argp 144 net/bluetooth/bnep/sock.c void __user *argp = compat_ptr(arg); argp 147 net/bluetooth/bnep/sock.c unsigned __user *p = argp; argp 167 net/bluetooth/bnep/sock.c return do_bnep_sock_ioctl(sock, cmd, argp); argp 66 net/bluetooth/cmtp/sock.c static int do_cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) argp 75 net/bluetooth/cmtp/sock.c BT_DBG("cmd %x arg %p", cmd, argp); argp 82 net/bluetooth/cmtp/sock.c if (copy_from_user(&ca, argp, sizeof(ca))) argp 96 net/bluetooth/cmtp/sock.c if (copy_to_user(argp, &ca, sizeof(ca))) argp 107 net/bluetooth/cmtp/sock.c if (copy_from_user(&cd, argp, sizeof(cd))) argp 113 net/bluetooth/cmtp/sock.c if (copy_from_user(&cl, argp, sizeof(cl))) argp 120 net/bluetooth/cmtp/sock.c if (!err && copy_to_user(argp, &cl, sizeof(cl))) argp 126 net/bluetooth/cmtp/sock.c if (copy_from_user(&ci, argp, sizeof(ci))) argp 130 net/bluetooth/cmtp/sock.c if (!err && copy_to_user(argp, &ci, sizeof(ci))) argp 147 net/bluetooth/cmtp/sock.c void __user *argp = compat_ptr(arg); argp 150 net/bluetooth/cmtp/sock.c u32 __user *p = argp; argp 170 net/bluetooth/cmtp/sock.c return do_cmtp_sock_ioctl(sock, cmd, argp); argp 969 net/bluetooth/hci_sock.c void __user *argp = (void __user *)arg; argp 1007 net/bluetooth/hci_sock.c return hci_get_dev_list(argp); argp 1010 net/bluetooth/hci_sock.c return hci_get_dev_info(argp); argp 1013 net/bluetooth/hci_sock.c return hci_get_conn_list(argp); argp 1045 net/bluetooth/hci_sock.c return hci_dev_cmd(cmd, argp); argp 1048 net/bluetooth/hci_sock.c return hci_inquiry(argp); argp 49 net/bluetooth/hidp/sock.c static int do_hidp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) argp 59 net/bluetooth/hidp/sock.c BT_DBG("cmd %x arg %p", cmd, argp); argp 66 net/bluetooth/hidp/sock.c if (copy_from_user(&ca, argp, sizeof(ca))) argp 81 net/bluetooth/hidp/sock.c if (!err && copy_to_user(argp, &ca, sizeof(ca))) argp 93 net/bluetooth/hidp/sock.c if (copy_from_user(&cd, argp, sizeof(cd))) argp 99 net/bluetooth/hidp/sock.c if (copy_from_user(&cl, argp, sizeof(cl))) argp 106 net/bluetooth/hidp/sock.c if (!err && copy_to_user(argp, &cl, sizeof(cl))) argp 112 net/bluetooth/hidp/sock.c if (copy_from_user(&ci, argp, sizeof(ci))) argp 116 net/bluetooth/hidp/sock.c if (!err && copy_to_user(argp, &ci, sizeof(ci))) argp 149 net/bluetooth/hidp/sock.c void __user *argp = compat_ptr(arg); argp 154 net/bluetooth/hidp/sock.c u32 __user *p = argp; argp 209 net/bluetooth/hidp/sock.c if (!err && copy_to_user(argp, &ca32, sizeof(ca32))) argp 1178 net/netrom/af_netrom.c void __user *argp = (void __user *)arg; argp 1189 net/netrom/af_netrom.c return put_user(amount, (int __user *)argp); argp 1201 net/netrom/af_netrom.c return put_user(amount, (int __user *)argp); argp 1221 net/netrom/af_netrom.c return nr_rt_ioctl(cmd, argp); argp 929 net/qrtr/qrtr.c void __user *argp = (void __user *)arg; argp 945 net/qrtr/qrtr.c rc = put_user(len, (int __user *)argp); argp 951 net/qrtr/qrtr.c rc = put_user(len, (int __user *)argp); argp 954 net/qrtr/qrtr.c if (copy_from_user(&ifr, argp, sizeof(ifr))) { argp 961 net/qrtr/qrtr.c if (copy_to_user(argp, &ifr, sizeof(ifr))) { argp 1258 net/rose/af_rose.c void __user *argp = (void __user *)arg; argp 1267 net/rose/af_rose.c return put_user(amount, (unsigned int __user *) argp); argp 1276 net/rose/af_rose.c return put_user(amount, (unsigned int __user *) argp); argp 1296 net/rose/af_rose.c return rose_rt_ioctl(cmd, argp); argp 1302 net/rose/af_rose.c return copy_to_user(argp, &rose_cause, sizeof(struct rose_cause_struct)) ? -EFAULT : 0; argp 1307 net/rose/af_rose.c if (copy_from_user(&rose_cause, argp, sizeof(struct rose_cause_struct))) argp 1318 net/rose/af_rose.c if (copy_from_user(&rose_callsign, argp, sizeof(ax25_address))) argp 1326 net/rose/af_rose.c return copy_to_user(argp, &rose_callsign, sizeof(ax25_address)) ? -EFAULT : 0; argp 1036 net/socket.c void __user *argp = (void __user *)arg; argp 1049 net/socket.c if (copy_from_user(&ifc, argp, sizeof(struct ifconf))) argp 1054 net/socket.c if (!err && copy_to_user(argp, &ifc, sizeof(struct ifconf))) argp 1059 net/socket.c if (copy_from_user(&ifr, argp, sizeof(struct ifreq))) argp 1063 net/socket.c if (copy_to_user(argp, &ifr, sizeof(struct ifreq))) argp 1091 net/socket.c void __user *argp = (void __user *)arg; argp 1101 net/socket.c if (copy_from_user(&ifr, argp, sizeof(struct ifreq))) argp 1105 net/socket.c if (copy_to_user(argp, &ifr, sizeof(struct ifreq))) argp 1110 net/socket.c err = wext_handle_ioctl(net, cmd, argp); argp 1117 net/socket.c if (get_user(pid, (int __user *)argp)) argp 1124 net/socket.c (int __user *)argp); argp 1136 net/socket.c err = br_ioctl_hook(net, cmd, argp); argp 1147 net/socket.c err = vlan_ioctl_hook(net, argp); argp 1158 net/socket.c err = dlci_ioctl_hook(cmd, argp); argp 1174 net/socket.c err = sock->ops->gettstamp(sock, argp, argp 1184 net/socket.c err = sock->ops->gettstamp(sock, argp, argp 3367 net/socket.c unsigned int cmd, void __user *argp) argp 3378 net/socket.c struct in6_rtmsg32 __user *ur6 = argp; argp 3391 net/socket.c struct rtentry32 __user *ur4 = argp; argp 3427 net/socket.c static int old_bridge_ioctl(compat_ulong_t __user *argp) argp 3431 net/socket.c if (get_user(tmp, argp)) argp 3441 net/socket.c void __user *argp = compat_ptr(arg); argp 3446 net/socket.c return compat_ifr_data_ioctl(net, cmd, argp); argp 3451 net/socket.c return old_bridge_ioctl(argp); argp 3453 net/socket.c return compat_dev_ifconf(net, argp); argp 3455 net/socket.c return ethtool_ioctl(net, argp); argp 3457 net/socket.c return compat_siocwandev(net, argp); argp 3460 net/socket.c return compat_sioc_ifmap(net, cmd, argp); argp 3463 net/socket.c return routing_ioctl(net, sock, cmd, argp); argp 3468 net/socket.c return sock->ops->gettstamp(sock, argp, cmd == SIOCGSTAMP_OLD, argp 3475 net/socket.c return compat_ifr_data_ioctl(net, cmd, argp); argp 3530 net/socket.c return compat_ifreq_ioctl(net, sock, cmd, argp); argp 3111 net/tipc/socket.c void __user *argp = (void __user *)arg; argp 3115 net/tipc/socket.c if (copy_from_user(&lnr, argp, sizeof(lnr))) argp 3120 net/tipc/socket.c if (copy_to_user(argp, &lnr, sizeof(lnr))) argp 3126 net/tipc/socket.c if (copy_from_user(&nr, argp, sizeof(nr))) argp 3130 net/tipc/socket.c if (copy_to_user(argp, &nr, sizeof(nr))) argp 1093 net/wireless/wext-core.c void __user *argp = (void __user *)arg; argp 1099 net/wireless/wext-core.c if (copy_from_user(&iwr, argp, sizeof(struct iwreq))) argp 1116 net/wireless/wext-core.c copy_to_user(argp, &iwr, sizeof(struct iwreq))) argp 1371 net/x25/af_x25.c void __user *argp = (void __user *)arg; argp 1381 net/x25/af_x25.c rc = put_user(amount, (unsigned int __user *)argp); argp 1396 net/x25/af_x25.c rc = put_user(amount, (unsigned int __user *)argp); argp 1417 net/x25/af_x25.c rc = x25_route_ioctl(cmd, argp); argp 1420 net/x25/af_x25.c rc = x25_subscr_ioctl(cmd, argp); argp 1426 net/x25/af_x25.c rc = x25_subscr_ioctl(cmd, argp); argp 1430 net/x25/af_x25.c rc = copy_to_user(argp, &x25->facilities, argp 1440 net/x25/af_x25.c if (copy_from_user(&facilities, argp, sizeof(facilities))) argp 1482 net/x25/af_x25.c rc = copy_to_user(argp, &x25->dte_facilities, argp 1493 net/x25/af_x25.c if (copy_from_user(&dtefacs, argp, sizeof(dtefacs))) argp 1513 net/x25/af_x25.c rc = copy_to_user(argp, &x25->calluserdata, argp 1524 net/x25/af_x25.c if (copy_from_user(&calluserdata, argp, sizeof(calluserdata))) argp 1538 net/x25/af_x25.c rc = copy_to_user(argp, &x25->causediag, sizeof(x25->causediag)) argp 1547 net/x25/af_x25.c if (copy_from_user(&causediag, argp, sizeof(causediag))) argp 1564 net/x25/af_x25.c if (copy_from_user(&sub_addr, argp, argp 1670 net/x25/af_x25.c void __user *argp = compat_ptr(arg); argp 1676 net/x25/af_x25.c rc = x25_ioctl(sock, cmd, (unsigned long)argp); argp 1695 net/x25/af_x25.c rc = x25_route_ioctl(cmd, argp); argp 1698 net/x25/af_x25.c rc = compat_x25_subscr_ioctl(cmd, argp); argp 1704 net/x25/af_x25.c rc = compat_x25_subscr_ioctl(cmd, argp); argp 1717 net/x25/af_x25.c rc = x25_ioctl(sock, cmd, (unsigned long)argp); argp 79 security/keys/trusted.c va_list argp; argp 97 security/keys/trusted.c va_start(argp, keylen); argp 99 security/keys/trusted.c dlen = va_arg(argp, unsigned int); argp 102 security/keys/trusted.c data = va_arg(argp, unsigned char *); argp 111 security/keys/trusted.c va_end(argp); argp 132 security/keys/trusted.c va_list argp; argp 147 security/keys/trusted.c va_start(argp, h3); argp 149 security/keys/trusted.c dlen = va_arg(argp, unsigned int); argp 152 security/keys/trusted.c data = va_arg(argp, unsigned char *); argp 161 security/keys/trusted.c va_end(argp); argp 195 security/keys/trusted.c va_list argp; argp 229 security/keys/trusted.c va_start(argp, keylen); argp 231 security/keys/trusted.c dlen = va_arg(argp, unsigned int); argp 234 security/keys/trusted.c dpos = va_arg(argp, unsigned int); argp 239 security/keys/trusted.c va_end(argp); argp 286 security/keys/trusted.c va_list argp; argp 323 security/keys/trusted.c va_start(argp, keylen2); argp 325 security/keys/trusted.c dlen = va_arg(argp, unsigned int); argp 328 security/keys/trusted.c dpos = va_arg(argp, unsigned int); argp 333 security/keys/trusted.c va_end(argp); argp 1515 sound/core/control.c void __user *argp = (void __user *)arg; argp 1516 sound/core/control.c int __user *ip = argp; argp 1527 sound/core/control.c return snd_ctl_card_info(card, ctl, cmd, argp); argp 1529 sound/core/control.c return snd_ctl_elem_list(card, argp); argp 1531 sound/core/control.c return snd_ctl_elem_info_user(ctl, argp); argp 1533 sound/core/control.c return snd_ctl_elem_read_user(card, argp); argp 1535 sound/core/control.c return snd_ctl_elem_write_user(ctl, argp); argp 1537 sound/core/control.c return snd_ctl_elem_lock(ctl, argp); argp 1539 sound/core/control.c return snd_ctl_elem_unlock(ctl, argp); argp 1541 sound/core/control.c return snd_ctl_elem_add_user(ctl, argp, 0); argp 1543 sound/core/control.c return snd_ctl_elem_add_user(ctl, argp, 1); argp 1545 sound/core/control.c return snd_ctl_elem_remove(ctl, argp); argp 1550 sound/core/control.c err = snd_ctl_tlv_ioctl(ctl, argp, SNDRV_CTL_TLV_OP_READ); argp 1555 sound/core/control.c err = snd_ctl_tlv_ioctl(ctl, argp, SNDRV_CTL_TLV_OP_WRITE); argp 1560 sound/core/control.c err = snd_ctl_tlv_ioctl(ctl, argp, SNDRV_CTL_TLV_OP_CMD); argp 436 sound/core/control_compat.c void __user *argp = compat_ptr(arg); argp 455 sound/core/control_compat.c return snd_ctl_ioctl(file, cmd, (unsigned long)argp); argp 457 sound/core/control_compat.c return snd_ctl_elem_list_compat(ctl->card, argp); argp 459 sound/core/control_compat.c return snd_ctl_elem_info_compat(ctl, argp); argp 461 sound/core/control_compat.c return snd_ctl_elem_read_user_compat(ctl->card, argp); argp 463 sound/core/control_compat.c return snd_ctl_elem_write_user_compat(ctl, argp); argp 465 sound/core/control_compat.c return snd_ctl_elem_add_compat(ctl, argp, 0); argp 467 sound/core/control_compat.c return snd_ctl_elem_add_compat(ctl, argp, 1); argp 470 sound/core/control_compat.c return snd_ctl_elem_read_user_x32(ctl->card, argp); argp 472 sound/core/control_compat.c return snd_ctl_elem_write_user_x32(ctl, argp); argp 232 sound/core/hwdep.c void __user *argp = (void __user *)arg; argp 235 sound/core/hwdep.c return put_user(SNDRV_HWDEP_VERSION, (int __user *)argp); argp 237 sound/core/hwdep.c return snd_hwdep_info(hw, argp); argp 239 sound/core/hwdep.c return snd_hwdep_dsp_status(hw, argp); argp 241 sound/core/hwdep.c return snd_hwdep_dsp_load(hw, argp); argp 52 sound/core/hwdep_compat.c void __user *argp = compat_ptr(arg); argp 57 sound/core/hwdep_compat.c return snd_hwdep_ioctl(file, cmd, (unsigned long)argp); argp 59 sound/core/hwdep_compat.c return snd_hwdep_dsp_load_compat(hw, argp); argp 299 sound/core/oss/mixer_oss.c void __user *argp = (void __user *)arg; argp 300 sound/core/oss/mixer_oss.c int __user *p = argp; argp 308 sound/core/oss/mixer_oss.c return snd_mixer_oss_info(fmixer, argp); argp 310 sound/core/oss/mixer_oss.c return snd_mixer_oss_info_obsolete(fmixer, argp); argp 642 sound/core/pcm_compat.c void __user *argp = compat_ptr(arg); argp 676 sound/core/pcm_compat.c return snd_pcm_common_ioctl(file, substream, cmd, argp); argp 678 sound/core/pcm_compat.c return snd_pcm_ioctl_hw_params_compat(substream, 1, argp); argp 680 sound/core/pcm_compat.c return snd_pcm_ioctl_hw_params_compat(substream, 0, argp); argp 682 sound/core/pcm_compat.c return snd_pcm_ioctl_sw_params_compat(substream, argp); argp 684 sound/core/pcm_compat.c return snd_pcm_status_user_compat(substream, argp, false); argp 686 sound/core/pcm_compat.c return snd_pcm_status_user_compat(substream, argp, true); argp 688 sound/core/pcm_compat.c return snd_pcm_ioctl_sync_ptr_compat(substream, argp); argp 690 sound/core/pcm_compat.c return snd_pcm_ioctl_channel_info_compat(substream, argp); argp 692 sound/core/pcm_compat.c return snd_pcm_ioctl_xferi_compat(substream, SNDRV_PCM_STREAM_PLAYBACK, argp); argp 694 sound/core/pcm_compat.c return snd_pcm_ioctl_xferi_compat(substream, SNDRV_PCM_STREAM_CAPTURE, argp); argp 696 sound/core/pcm_compat.c return snd_pcm_ioctl_xfern_compat(substream, SNDRV_PCM_STREAM_PLAYBACK, argp); argp 698 sound/core/pcm_compat.c return snd_pcm_ioctl_xfern_compat(substream, SNDRV_PCM_STREAM_CAPTURE, argp); argp 700 sound/core/pcm_compat.c return snd_pcm_ioctl_delay_compat(substream, argp); argp 702 sound/core/pcm_compat.c return snd_pcm_ioctl_rewind_compat(substream, argp); argp 704 sound/core/pcm_compat.c return snd_pcm_ioctl_forward_compat(substream, argp); argp 707 sound/core/pcm_compat.c return snd_pcm_status_user_x32(substream, argp, false); argp 709 sound/core/pcm_compat.c return snd_pcm_status_user_x32(substream, argp, true); argp 711 sound/core/pcm_compat.c return snd_pcm_ioctl_sync_ptr_x32(substream, argp); argp 713 sound/core/pcm_compat.c return snd_pcm_ioctl_channel_info_x32(substream, argp); argp 726 sound/core/rawmidi.c void __user *argp = (void __user *)arg; argp 733 sound/core/rawmidi.c return put_user(SNDRV_RAWMIDI_VERSION, (int __user *)argp) ? -EFAULT : 0; argp 737 sound/core/rawmidi.c struct snd_rawmidi_info __user *info = argp; argp 754 sound/core/rawmidi.c if (copy_from_user(¶ms, argp, sizeof(struct snd_rawmidi_params))) argp 774 sound/core/rawmidi.c if (copy_from_user(&status, argp, sizeof(struct snd_rawmidi_status))) argp 792 sound/core/rawmidi.c if (copy_to_user(argp, &status, sizeof(struct snd_rawmidi_status))) argp 800 sound/core/rawmidi.c if (get_user(val, (int __user *) argp)) argp 815 sound/core/rawmidi.c if (get_user(val, (int __user *) argp)) argp 842 sound/core/rawmidi.c void __user *argp = (void __user *)arg; argp 849 sound/core/rawmidi.c if (get_user(device, (int __user *)argp)) argp 863 sound/core/rawmidi.c if (put_user(device, (int __user *)argp)) argp 871 sound/core/rawmidi.c if (get_user(val, (int __user *)argp)) argp 877 sound/core/rawmidi.c return snd_rawmidi_info_select_user(card, argp); argp 145 sound/core/rawmidi_compat.c void __user *argp = compat_ptr(arg); argp 153 sound/core/rawmidi_compat.c return snd_rawmidi_ioctl(file, cmd, (unsigned long)argp); argp 155 sound/core/rawmidi_compat.c return snd_rawmidi_ioctl_params_compat(rfile, argp); argp 157 sound/core/rawmidi_compat.c return snd_rawmidi_ioctl_status_compat(rfile, argp); argp 160 sound/core/rawmidi_compat.c return snd_rawmidi_ioctl_status_x32(rfile, argp); argp 77 sound/core/seq/seq_compat.c void __user *argp = compat_ptr(arg); argp 111 sound/core/seq/seq_compat.c return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_CREATE_PORT, argp); argp 113 sound/core/seq/seq_compat.c return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_DELETE_PORT, argp); argp 115 sound/core/seq/seq_compat.c return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_GET_PORT_INFO, argp); argp 117 sound/core/seq/seq_compat.c return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_SET_PORT_INFO, argp); argp 119 sound/core/seq/seq_compat.c return snd_seq_call_port_info_ioctl(client, SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT, argp); argp 1980 sound/core/timer.c void __user *argp = (void __user *)arg; argp 1981 sound/core/timer.c int __user *p = argp; argp 1988 sound/core/timer.c return snd_timer_user_next_device(argp); argp 2007 sound/core/timer.c return snd_timer_user_ginfo(file, argp); argp 2009 sound/core/timer.c return snd_timer_user_gparams(file, argp); argp 2011 sound/core/timer.c return snd_timer_user_gstatus(file, argp); argp 2013 sound/core/timer.c return snd_timer_user_tselect(file, argp); argp 2015 sound/core/timer.c return snd_timer_user_info(file, argp); argp 2017 sound/core/timer.c return snd_timer_user_params(file, argp); argp 2019 sound/core/timer.c return snd_timer_user_status(file, argp); argp 125 sound/core/timer_compat.c void __user *argp = compat_ptr(arg); argp 143 sound/core/timer_compat.c return __snd_timer_user_ioctl(file, cmd, (unsigned long)argp); argp 145 sound/core/timer_compat.c return snd_timer_user_gparams_compat(file, argp); argp 147 sound/core/timer_compat.c return snd_timer_user_info_compat(file, argp); argp 149 sound/core/timer_compat.c return snd_timer_user_status_compat(file, argp); argp 152 sound/core/timer_compat.c return snd_timer_user_status_x32(file, argp); argp 83 sound/drivers/opl3/opl3_synth.c void __user *argp = (void __user *)arg; argp 96 sound/drivers/opl3/opl3_synth.c if (copy_to_user(argp, &info, sizeof(struct snd_dm_fm_info))) argp 114 sound/drivers/opl3/opl3_synth.c if (copy_from_user(¬e, argp, sizeof(struct snd_dm_fm_note))) argp 125 sound/drivers/opl3/opl3_synth.c if (copy_from_user(&voice, argp, sizeof(struct snd_dm_fm_voice))) argp 136 sound/drivers/opl3/opl3_synth.c if (copy_from_user(¶ms, argp, sizeof(struct snd_dm_fm_params))) argp 1654 sound/isa/wavefront/wavefront_synth.c void __user *argp = (void __user *)arg; argp 1669 sound/isa/wavefront/wavefront_synth.c if (wavefront_load_patch (dev, argp) != 0) { argp 1675 sound/isa/wavefront/wavefront_synth.c wc = memdup_user(argp, sizeof(*wc)); argp 1681 sound/isa/wavefront/wavefront_synth.c else if (copy_to_user (argp, wc, sizeof (*wc))) argp 2526 sound/pci/emu10k1/emufx.c void __user *argp = (void __user *)arg; argp 2532 sound/pci/emu10k1/emufx.c return put_user(SNDRV_EMU10K1_VERSION, (int __user *)argp); argp 2538 sound/pci/emu10k1/emufx.c if (copy_to_user(argp, info, sizeof(*info))) { argp 2548 sound/pci/emu10k1/emufx.c icode = memdup_user(argp, sizeof(*icode)); argp 2555 sound/pci/emu10k1/emufx.c icode = memdup_user(argp, sizeof(*icode)); argp 2559 sound/pci/emu10k1/emufx.c if (res == 0 && copy_to_user(argp, icode, sizeof(*icode))) { argp 2566 sound/pci/emu10k1/emufx.c ipcm = memdup_user(argp, sizeof(*ipcm)); argp 2573 sound/pci/emu10k1/emufx.c ipcm = memdup_user(argp, sizeof(*ipcm)); argp 2577 sound/pci/emu10k1/emufx.c if (res == 0 && copy_to_user(argp, ipcm, sizeof(*ipcm))) { argp 2586 sound/pci/emu10k1/emufx.c if (get_user(addr, (unsigned int __user *)argp)) argp 2624 sound/pci/emu10k1/emufx.c if (get_user(addr, (unsigned int __user *)argp)) argp 2643 sound/pci/emu10k1/emufx.c if (put_user(addr, (unsigned int __user *)argp)) argp 64 sound/pci/hda/hda_hwdep.c void __user *argp = (void __user *)arg; argp 68 sound/pci/hda/hda_hwdep.c return put_user(HDA_HWDEP_VERSION, (int __user *)argp); argp 70 sound/pci/hda/hda_hwdep.c return verb_write_ioctl(codec, argp); argp 72 sound/pci/hda/hda_hwdep.c return get_wcap_ioctl(codec, argp); argp 4693 sound/pci/rme9652/hdsp.c void __user *argp = (void __user *)arg; argp 4779 sound/pci/rme9652/hdsp.c if (copy_to_user(argp, &info, sizeof(info))) argp 4789 sound/pci/rme9652/hdsp.c if (copy_to_user(argp, &h9632_aeb, sizeof(h9632_aeb))) argp 4805 sound/pci/rme9652/hdsp.c if ((err = copy_to_user(argp, &hdsp_version, sizeof(hdsp_version)))) argp 4823 sound/pci/rme9652/hdsp.c firmware = (struct hdsp_firmware __user *)argp; argp 4865 sound/pci/rme9652/hdsp.c struct hdsp_mixer __user *mixer = (struct hdsp_mixer __user *)argp; argp 6163 sound/pci/rme9652/hdspm.c void __user *argp = (void __user *)arg; argp 6216 sound/pci/rme9652/hdspm.c s = copy_to_user(argp, levels, sizeof(*levels)); argp 6261 sound/pci/rme9652/hdspm.c s = copy_to_user(argp, <c, sizeof(ltc)); argp 6286 sound/pci/rme9652/hdspm.c if (copy_to_user(argp, &info, sizeof(info))) argp 6325 sound/pci/rme9652/hdspm.c if (copy_to_user(argp, &status, sizeof(status))) argp 6343 sound/pci/rme9652/hdspm.c if (copy_to_user(argp, &hdspm_version, argp 6349 sound/pci/rme9652/hdspm.c if (copy_from_user(&mixer, argp, sizeof(mixer))) argp 530 tools/testing/selftests/bpf/test_progs.c static const struct argp argp = { argp 537 tools/testing/selftests/bpf/test_progs.c err = argp_parse(&argp, argc, argv, 0, NULL, &env); argp 1109 virt/kvm/arm/arm.c void __user *argp = (void __user *)arg; argp 1118 virt/kvm/arm/arm.c if (copy_from_user(&init, argp, sizeof(init))) argp 1133 virt/kvm/arm/arm.c if (copy_from_user(®, argp, sizeof(reg))) argp 1143 virt/kvm/arm/arm.c struct kvm_reg_list __user *user_list = argp; argp 1170 virt/kvm/arm/arm.c if (copy_from_user(&attr, argp, sizeof(attr))) argp 1177 virt/kvm/arm/arm.c if (copy_from_user(&attr, argp, sizeof(attr))) argp 1184 virt/kvm/arm/arm.c if (copy_from_user(&attr, argp, sizeof(attr))) argp 1195 virt/kvm/arm/arm.c if (copy_to_user(argp, &events, sizeof(events))) argp 1203 virt/kvm/arm/arm.c if (copy_from_user(&events, argp, sizeof(events))) argp 1214 virt/kvm/arm/arm.c if (get_user(what, (const int __user *)argp)) argp 1301 virt/kvm/arm/arm.c void __user *argp = (void __user *)arg; argp 1316 virt/kvm/arm/arm.c if (copy_from_user(&dev_addr, argp, sizeof(dev_addr))) argp 1328 virt/kvm/arm/arm.c if (copy_to_user(argp, &init, sizeof(init))) argp 2877 virt/kvm/kvm_main.c void __user *argp = (void __user *)arg; argp 2934 virt/kvm/kvm_main.c if (copy_to_user(argp, kvm_regs, sizeof(struct kvm_regs))) argp 2945 virt/kvm/kvm_main.c kvm_regs = memdup_user(argp, sizeof(*kvm_regs)); argp 2964 virt/kvm/kvm_main.c if (copy_to_user(argp, kvm_sregs, sizeof(struct kvm_sregs))) argp 2970 virt/kvm/kvm_main.c kvm_sregs = memdup_user(argp, sizeof(*kvm_sregs)); argp 2986 virt/kvm/kvm_main.c if (copy_to_user(argp, &mp_state, sizeof(mp_state))) argp 2995 virt/kvm/kvm_main.c if (copy_from_user(&mp_state, argp, sizeof(mp_state))) argp 3004 virt/kvm/kvm_main.c if (copy_from_user(&tr, argp, sizeof(tr))) argp 3010 virt/kvm/kvm_main.c if (copy_to_user(argp, &tr, sizeof(tr))) argp 3019 virt/kvm/kvm_main.c if (copy_from_user(&dbg, argp, sizeof(dbg))) argp 3025 virt/kvm/kvm_main.c struct kvm_signal_mask __user *sigmask_arg = argp; argp 3030 virt/kvm/kvm_main.c if (argp) { argp 3032 virt/kvm/kvm_main.c if (copy_from_user(&kvm_sigmask, argp, argp 3056 virt/kvm/kvm_main.c if (copy_to_user(argp, fpu, sizeof(struct kvm_fpu))) argp 3062 virt/kvm/kvm_main.c fpu = memdup_user(argp, sizeof(*fpu)); argp 3086 virt/kvm/kvm_main.c void __user *argp = compat_ptr(arg); argp 3094 virt/kvm/kvm_main.c struct kvm_signal_mask __user *sigmask_arg = argp; argp 3098 virt/kvm/kvm_main.c if (argp) { argp 3100 virt/kvm/kvm_main.c if (copy_from_user(&kvm_sigmask, argp, argp 3352 virt/kvm/kvm_main.c void __user *argp = (void __user *)arg; argp 3365 virt/kvm/kvm_main.c if (copy_from_user(&cap, argp, sizeof(cap))) argp 3374 virt/kvm/kvm_main.c if (copy_from_user(&kvm_userspace_mem, argp, argp 3385 virt/kvm/kvm_main.c if (copy_from_user(&log, argp, sizeof(log))) argp 3395 virt/kvm/kvm_main.c if (copy_from_user(&log, argp, sizeof(log))) argp 3406 virt/kvm/kvm_main.c if (copy_from_user(&zone, argp, sizeof(zone))) argp 3415 virt/kvm/kvm_main.c if (copy_from_user(&zone, argp, sizeof(zone))) argp 3425 virt/kvm/kvm_main.c if (copy_from_user(&data, argp, sizeof(data))) argp 3434 virt/kvm/kvm_main.c if (copy_from_user(&data, argp, sizeof(data))) argp 3444 virt/kvm/kvm_main.c if (copy_from_user(&msi, argp, sizeof(msi))) argp 3456 virt/kvm/kvm_main.c if (copy_from_user(&irq_event, argp, sizeof(irq_event))) argp 3466 virt/kvm/kvm_main.c if (copy_to_user(argp, &irq_event, sizeof(irq_event))) argp 3481 virt/kvm/kvm_main.c if (copy_from_user(&routing, argp, sizeof(routing))) argp 3497 virt/kvm/kvm_main.c urouting = argp; argp 3513 virt/kvm/kvm_main.c if (copy_from_user(&cd, argp, sizeof(cd))) argp 3521 virt/kvm/kvm_main.c if (copy_to_user(argp, &cd, sizeof(cd))) argp 189 virt/kvm/vfio.c int32_t __user *argp = (int32_t __user *)(unsigned long)arg; argp 196 virt/kvm/vfio.c if (get_user(fd, argp)) argp 240 virt/kvm/vfio.c if (get_user(fd, argp))