Lines Matching refs:argp

601 		struct mtd_write_req __user *argp)  in mtdchar_write_ioctl()  argument
608 if (copy_from_user(&req, argp, sizeof(req))) in mtdchar_write_ioctl()
652 void __user *argp = (void __user *)arg; in mtdchar_ioctl() local
660 if (copy_to_user(argp, &(mtd->numeraseregions), sizeof(int))) in mtdchar_ioctl()
668 struct region_info_user __user *ur = argp; in mtdchar_ioctl()
696 if (copy_to_user(argp, &info, sizeof(struct mtd_info_user))) in mtdchar_ioctl()
715 if (copy_from_user(&einfo64, argp, in mtdchar_ioctl()
725 if (copy_from_user(&einfo32, argp, in mtdchar_ioctl()
743 struct mtd_oob_buf __user *buf_user = argp; in mtdchar_ioctl()
746 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
757 struct mtd_oob_buf __user *buf_user = argp; in mtdchar_ioctl()
760 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
771 struct mtd_oob_buf64 __user *buf_user = argp; in mtdchar_ioctl()
773 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
785 struct mtd_oob_buf64 __user *buf_user = argp; in mtdchar_ioctl()
787 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
807 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
818 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
829 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
848 if (copy_to_user(argp, &oi, sizeof(struct nand_oobinfo))) in mtdchar_ioctl()
857 if (copy_from_user(&offs, argp, sizeof(loff_t))) in mtdchar_ioctl()
867 if (copy_from_user(&offs, argp, sizeof(loff_t))) in mtdchar_ioctl()
876 if (copy_from_user(&mode, argp, sizeof(int))) in mtdchar_ioctl()
908 ret = copy_to_user(argp, &nbr, sizeof(int)); in mtdchar_ioctl()
910 ret = copy_to_user(argp, buf, retlen); in mtdchar_ioctl()
924 if (copy_from_user(&oinfo, argp, sizeof(oinfo))) in mtdchar_ioctl()
944 if (copy_to_user(argp, usrlay, sizeof(*usrlay))) in mtdchar_ioctl()
952 if (copy_to_user(argp, &mtd->ecc_stats, in mtdchar_ioctl()
984 struct blkpg_ioctl_arg __user *blk_arg = argp; in mtdchar_ioctl()
1035 void __user *argp = compat_ptr(arg); in mtdchar_compat_ioctl() local
1044 struct mtd_oob_buf32 __user *buf_user = argp; in mtdchar_compat_ioctl()
1046 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_compat_ioctl()
1058 struct mtd_oob_buf32 __user *buf_user = argp; in mtdchar_compat_ioctl()
1061 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_compat_ioctl()
1073 struct blkpg_compat_ioctl_arg __user *uarg = argp; in mtdchar_compat_ioctl()
1093 ret = mtdchar_ioctl(file, cmd, (unsigned long)argp); in mtdchar_compat_ioctl()