Lines Matching refs:argp
577 struct mtd_write_req __user *argp) in mtdchar_write_ioctl() argument
585 if (copy_from_user(&req, argp, sizeof(req))) in mtdchar_write_ioctl()
629 void __user *argp = (void __user *)arg; in mtdchar_ioctl() local
680 if (copy_to_user(argp, &(mtd->numeraseregions), sizeof(int))) in mtdchar_ioctl()
688 struct region_info_user __user *ur = argp; in mtdchar_ioctl()
716 if (copy_to_user(argp, &info, sizeof(struct mtd_info_user))) in mtdchar_ioctl()
732 if (copy_from_user(&einfo64, argp, in mtdchar_ioctl()
742 if (copy_from_user(&einfo32, argp, in mtdchar_ioctl()
760 struct mtd_oob_buf __user *buf_user = argp; in mtdchar_ioctl()
763 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
774 struct mtd_oob_buf __user *buf_user = argp; in mtdchar_ioctl()
777 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
788 struct mtd_oob_buf64 __user *buf_user = argp; in mtdchar_ioctl()
790 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
802 struct mtd_oob_buf64 __user *buf_user = argp; in mtdchar_ioctl()
804 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
824 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
835 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
846 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
865 if (copy_to_user(argp, &oi, sizeof(struct nand_oobinfo))) in mtdchar_ioctl()
874 if (copy_from_user(&offs, argp, sizeof(loff_t))) in mtdchar_ioctl()
883 if (copy_from_user(&offs, argp, sizeof(loff_t))) in mtdchar_ioctl()
891 if (copy_from_user(&mode, argp, sizeof(int))) in mtdchar_ioctl()
923 ret = copy_to_user(argp, &nbr, sizeof(int)); in mtdchar_ioctl()
925 ret = copy_to_user(argp, buf, retlen); in mtdchar_ioctl()
940 if (copy_from_user(&oinfo, argp, sizeof(oinfo))) in mtdchar_ioctl()
963 if (copy_to_user(argp, usrlay, sizeof(*usrlay))) in mtdchar_ioctl()
971 if (copy_to_user(argp, &mtd->ecc_stats, in mtdchar_ioctl()
1004 struct blkpg_ioctl_arg __user *blk_arg = argp; in mtdchar_ioctl()
1056 void __user *argp = compat_ptr(arg); in mtdchar_compat_ioctl() local
1065 struct mtd_oob_buf32 __user *buf_user = argp; in mtdchar_compat_ioctl()
1072 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_compat_ioctl()
1084 struct mtd_oob_buf32 __user *buf_user = argp; in mtdchar_compat_ioctl()
1087 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_compat_ioctl()
1099 struct blkpg_compat_ioctl_arg __user *uarg = argp; in mtdchar_compat_ioctl()
1119 ret = mtdchar_ioctl(file, cmd, (unsigned long)argp); in mtdchar_compat_ioctl()