Lines Matching refs:argp

536 		struct mtd_write_req __user *argp)  in mtdchar_write_ioctl()  argument
543 if (copy_from_user(&req, argp, sizeof(req))) in mtdchar_write_ioctl()
590 void __user *argp = (void __user *)arg; in mtdchar_ioctl() local
599 if (!access_ok(VERIFY_READ, argp, size)) in mtdchar_ioctl()
603 if (!access_ok(VERIFY_WRITE, argp, size)) in mtdchar_ioctl()
609 if (copy_to_user(argp, &(mtd->numeraseregions), sizeof(int))) in mtdchar_ioctl()
617 struct region_info_user __user *ur = argp; in mtdchar_ioctl()
645 if (copy_to_user(argp, &info, sizeof(struct mtd_info_user))) in mtdchar_ioctl()
669 if (copy_from_user(&einfo64, argp, in mtdchar_ioctl()
679 if (copy_from_user(&einfo32, argp, in mtdchar_ioctl()
720 struct mtd_oob_buf __user *buf_user = argp; in mtdchar_ioctl()
723 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
734 struct mtd_oob_buf __user *buf_user = argp; in mtdchar_ioctl()
737 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
748 struct mtd_oob_buf64 __user *buf_user = argp; in mtdchar_ioctl()
750 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
762 struct mtd_oob_buf64 __user *buf_user = argp; in mtdchar_ioctl()
764 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
784 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
795 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
806 if (copy_from_user(&einfo, argp, sizeof(einfo))) in mtdchar_ioctl()
829 if (copy_to_user(argp, &oi, sizeof(struct nand_oobinfo))) in mtdchar_ioctl()
838 if (copy_from_user(&offs, argp, sizeof(loff_t))) in mtdchar_ioctl()
848 if (copy_from_user(&offs, argp, sizeof(loff_t))) in mtdchar_ioctl()
857 if (copy_from_user(&mode, argp, sizeof(int))) in mtdchar_ioctl()
889 ret = copy_to_user(argp, &nbr, sizeof(int)); in mtdchar_ioctl()
891 ret = copy_to_user(argp, buf, retlen); in mtdchar_ioctl()
905 if (copy_from_user(&oinfo, argp, sizeof(oinfo))) in mtdchar_ioctl()
925 if (copy_to_user(argp, usrlay, sizeof(*usrlay))) in mtdchar_ioctl()
933 if (copy_to_user(argp, &mtd->ecc_stats, in mtdchar_ioctl()
965 struct blkpg_ioctl_arg __user *blk_arg = argp; in mtdchar_ioctl()
1016 void __user *argp = compat_ptr(arg); in mtdchar_compat_ioctl() local
1025 struct mtd_oob_buf32 __user *buf_user = argp; in mtdchar_compat_ioctl()
1027 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_compat_ioctl()
1039 struct mtd_oob_buf32 __user *buf_user = argp; in mtdchar_compat_ioctl()
1042 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_compat_ioctl()
1054 struct blkpg_compat_ioctl_arg __user *uarg = argp; in mtdchar_compat_ioctl()
1074 ret = mtdchar_ioctl(file, cmd, (unsigned long)argp); in mtdchar_compat_ioctl()