Lines Matching refs:argp

594 mtdchar_write_ioctl(struct mtd_info *mtd, struct mtd_write_req __user *argp)  in mtdchar_write_ioctl()  argument
603 if (copy_from_user(&req, argp, sizeof(req))) in mtdchar_write_ioctl()
692 mtdchar_read_ioctl(struct mtd_info *mtd, struct mtd_read_req __user *argp) in mtdchar_read_ioctl() argument
702 if (copy_from_user(&req, argp, sizeof(req))) in mtdchar_read_ioctl()
813 if (copy_to_user(argp, &req, sizeof(req))) in mtdchar_read_ioctl()
827 void __user *argp = (void __user *)arg; in mtdchar_ioctl() local
879 if (copy_to_user(argp, &(mtd->numeraseregions), sizeof(int))) in mtdchar_ioctl()
887 struct region_info_user __user *ur = argp; in mtdchar_ioctl()
915 if (copy_to_user(argp, &info, sizeof(struct mtd_info_user))) in mtdchar_ioctl()
931 if (copy_from_user(&einfo64, argp, in mtdchar_ioctl()
941 if (copy_from_user(&einfo32, argp, in mtdchar_ioctl()
959 struct mtd_oob_buf __user *buf_user = argp; in mtdchar_ioctl()
962 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
973 struct mtd_oob_buf __user *buf_user = argp; in mtdchar_ioctl()
976 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
987 struct mtd_oob_buf64 __user *buf_user = argp; in mtdchar_ioctl()
989 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
1001 struct mtd_oob_buf64 __user *buf_user = argp; in mtdchar_ioctl()
1003 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
1030 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
1041 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
1052 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
1071 if (copy_to_user(argp, &oi, sizeof(struct nand_oobinfo))) in mtdchar_ioctl()
1080 if (copy_from_user(&offs, argp, sizeof(loff_t))) in mtdchar_ioctl()
1089 if (copy_from_user(&offs, argp, sizeof(loff_t))) in mtdchar_ioctl()
1097 if (copy_from_user(&mode, argp, sizeof(int))) in mtdchar_ioctl()
1129 ret = copy_to_user(argp, &nbr, sizeof(int)); in mtdchar_ioctl()
1131 ret = copy_to_user(argp, buf, retlen); in mtdchar_ioctl()
1146 if (copy_from_user(&oinfo, argp, sizeof(oinfo))) in mtdchar_ioctl()
1169 if (copy_to_user(argp, usrlay, sizeof(*usrlay))) in mtdchar_ioctl()
1177 if (copy_to_user(argp, &mtd->ecc_stats, in mtdchar_ioctl()
1210 struct blkpg_ioctl_arg __user *blk_arg = argp; in mtdchar_ioctl()
1262 void __user *argp = compat_ptr(arg); in mtdchar_compat_ioctl() local
1271 struct mtd_oob_buf32 __user *buf_user = argp; in mtdchar_compat_ioctl()
1278 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_compat_ioctl()
1290 struct mtd_oob_buf32 __user *buf_user = argp; in mtdchar_compat_ioctl()
1293 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_compat_ioctl()
1305 struct blkpg_compat_ioctl_arg __user *uarg = argp; in mtdchar_compat_ioctl()
1325 ret = mtdchar_ioctl(file, cmd, (unsigned long)argp); in mtdchar_compat_ioctl()