Lines Matching refs:cmd
24 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument
27 switch (cmd) { in check_quotactl_permission()
48 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission()
763 static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, in do_quotactl() argument
778 ret = check_quotactl_permission(sb, type, cmd, id); in do_quotactl()
782 switch (cmd) { in do_quotactl()
832 static int quotactl_cmd_write(int cmd) in quotactl_cmd_write() argument
839 switch (cmd) { in quotactl_cmd_write()
855 static bool quotactl_cmd_onoff(int cmd) in quotactl_cmd_onoff() argument
857 return (cmd == Q_QUOTAON) || (cmd == Q_QUOTAOFF) || in quotactl_cmd_onoff()
858 (cmd == Q_XQUOTAON) || (cmd == Q_XQUOTAOFF); in quotactl_cmd_onoff()
865 static struct super_block *quotactl_block(const char __user *special, int cmd) in quotactl_block() argument
878 if (quotactl_cmd_onoff(cmd)) in quotactl_block()
880 else if (quotactl_cmd_write(cmd)) in quotactl_block()
900 SYSCALL_DEFINE4(quotactl, unsigned int, cmd, const char __user *, special, in SYSCALL_DEFINE4() argument
908 cmds = cmd >> SUBCMDSHIFT; in SYSCALL_DEFINE4()
909 type = cmd & SUBCMDMASK; in SYSCALL_DEFINE4()