Lines Matching refs:argp
540 struct mtd_write_req __user *argp) in mtdchar_write_ioctl() argument
547 if (copy_from_user(&req, argp, sizeof(req))) in mtdchar_write_ioctl()
594 void __user *argp = (void __user *)arg; in mtdchar_ioctl() local
603 if (!access_ok(VERIFY_READ, argp, size)) in mtdchar_ioctl()
607 if (!access_ok(VERIFY_WRITE, argp, size)) in mtdchar_ioctl()
613 if (copy_to_user(argp, &(mtd->numeraseregions), sizeof(int))) in mtdchar_ioctl()
621 struct region_info_user __user *ur = argp; in mtdchar_ioctl()
649 if (copy_to_user(argp, &info, sizeof(struct mtd_info_user))) in mtdchar_ioctl()
673 if (copy_from_user(&einfo64, argp, in mtdchar_ioctl()
683 if (copy_from_user(&einfo32, argp, in mtdchar_ioctl()
724 struct mtd_oob_buf __user *buf_user = argp; in mtdchar_ioctl()
727 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
738 struct mtd_oob_buf __user *buf_user = argp; in mtdchar_ioctl()
741 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
752 struct mtd_oob_buf64 __user *buf_user = argp; in mtdchar_ioctl()
754 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
766 struct mtd_oob_buf64 __user *buf_user = argp; in mtdchar_ioctl()
768 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
788 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
799 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
810 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
833 if (copy_to_user(argp, &oi, sizeof(struct nand_oobinfo))) in mtdchar_ioctl()
842 if (copy_from_user(&offs, argp, sizeof(loff_t))) in mtdchar_ioctl()
852 if (copy_from_user(&offs, argp, sizeof(loff_t))) in mtdchar_ioctl()
861 if (copy_from_user(&mode, argp, sizeof(int))) in mtdchar_ioctl()
893 ret = copy_to_user(argp, &nbr, sizeof(int)); in mtdchar_ioctl()
895 ret = copy_to_user(argp, buf, retlen); in mtdchar_ioctl()
909 if (copy_from_user(&oinfo, argp, sizeof(oinfo))) in mtdchar_ioctl()
929 if (copy_to_user(argp, usrlay, sizeof(*usrlay))) in mtdchar_ioctl()
937 if (copy_to_user(argp, &mtd->ecc_stats, in mtdchar_ioctl()
1015 void __user *argp = compat_ptr(arg); in mtdchar_compat_ioctl() local
1024 struct mtd_oob_buf32 __user *buf_user = argp; in mtdchar_compat_ioctl()
1026 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_compat_ioctl()
1038 struct mtd_oob_buf32 __user *buf_user = argp; in mtdchar_compat_ioctl()
1041 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_compat_ioctl()
1050 ret = mtdchar_ioctl(file, cmd, (unsigned long)argp); in mtdchar_compat_ioctl()