Lines Matching refs:addr
106 static int quota_getfmt(struct super_block *sb, int type, void __user *addr) in quota_getfmt() argument
113 if (copy_to_user(addr, &fmt, sizeof(fmt))) in quota_getfmt()
118 static int quota_getinfo(struct super_block *sb, int type, void __user *addr) in quota_getinfo() argument
141 if (copy_to_user(addr, &uinfo, sizeof(uinfo))) in quota_getinfo()
146 static int quota_setinfo(struct super_block *sb, int type, void __user *addr) in quota_setinfo() argument
151 if (copy_from_user(&info, addr, sizeof(info))) in quota_setinfo()
201 void __user *addr) in quota_getquota() argument
219 struct compat_if_dqblk __user *compat_dqblk = addr; in quota_getquota()
226 if (copy_to_user(addr, &idq, sizeof(idq))) in quota_getquota()
237 void __user *addr) in quota_getnextquota() argument
255 if (copy_to_user(addr, &idq, sizeof(idq))) in quota_getnextquota()
287 void __user *addr) in quota_setquota() argument
294 struct compat_if_dqblk __user *compat_dqblk = addr; in quota_setquota()
300 if (copy_from_user(&idq, addr, sizeof(idq))) in quota_setquota()
312 static int quota_enable(struct super_block *sb, void __user *addr) in quota_enable() argument
316 if (copy_from_user(&flags, addr, sizeof(flags))) in quota_enable()
323 static int quota_disable(struct super_block *sb, void __user *addr) in quota_disable() argument
327 if (copy_from_user(&flags, addr, sizeof(flags))) in quota_disable()
433 static int quota_getxstate(struct super_block *sb, int type, void __user *addr) in quota_getxstate() argument
445 return compat_copy_fs_quota_stat(addr, &fqs); in quota_getxstate()
446 if (copy_to_user(addr, &fqs, sizeof(fqs))) in quota_getxstate()
496 static int quota_getxstatev(struct super_block *sb, int type, void __user *addr) in quota_getxstatev() argument
505 if (copy_from_user(&fqs, addr, 1)) /* Just read qs_version */ in quota_getxstatev()
516 if (!ret && copy_to_user(addr, &fqs, sizeof(fqs))) in quota_getxstatev()
624 void __user *addr) in quota_setxquota() argument
630 if (copy_from_user(&fdq, addr, sizeof(fdq))) in quota_setxquota()
705 void __user *addr) in quota_getxquota() argument
721 if (copy_to_user(addr, &fdq, sizeof(fdq))) in quota_getxquota()
731 void __user *addr) in quota_getnextxquota() argument
749 if (copy_to_user(addr, &fdq, sizeof(fdq))) in quota_getnextxquota()
754 static int quota_rmxquota(struct super_block *sb, void __user *addr) in quota_rmxquota() argument
758 if (copy_from_user(&flags, addr, sizeof(flags))) in quota_rmxquota()
767 void __user *addr, const struct path *path) in do_quotactl() argument
791 return quota_getfmt(sb, type, addr); in do_quotactl()
793 return quota_getinfo(sb, type, addr); in do_quotactl()
795 return quota_setinfo(sb, type, addr); in do_quotactl()
797 return quota_getquota(sb, type, id, addr); in do_quotactl()
799 return quota_getnextquota(sb, type, id, addr); in do_quotactl()
801 return quota_setquota(sb, type, id, addr); in do_quotactl()
807 return quota_enable(sb, addr); in do_quotactl()
809 return quota_disable(sb, addr); in do_quotactl()
811 return quota_rmxquota(sb, addr); in do_quotactl()
813 return quota_getxstate(sb, type, addr); in do_quotactl()
815 return quota_getxstatev(sb, type, addr); in do_quotactl()
817 return quota_setxquota(sb, type, id, addr); in do_quotactl()
819 return quota_getxquota(sb, type, id, addr); in do_quotactl()
821 return quota_getnextxquota(sb, type, id, addr); in do_quotactl()
916 qid_t, id, void __user *, addr) in SYSCALL_DEFINE4() argument
946 ret = user_path_at(AT_FDCWD, addr, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &path); in SYSCALL_DEFINE4()
959 ret = do_quotactl(sb, type, cmds, id, addr, pathp); in SYSCALL_DEFINE4()
972 qid_t, id, void __user *, addr) in SYSCALL_DEFINE4() argument
1000 ret = do_quotactl(sb, type, cmds, id, addr, ERR_PTR(-EINVAL)); in SYSCALL_DEFINE4()