Lines Matching refs:cmd
23 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument
26 switch (cmd) { in check_quotactl_permission()
47 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission()
684 static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, in do_quotactl() argument
701 ret = check_quotactl_permission(sb, type, cmd, id); in do_quotactl()
705 switch (cmd) { in do_quotactl()
755 static int quotactl_cmd_write(int cmd) in quotactl_cmd_write() argument
762 switch (cmd) { in quotactl_cmd_write()
778 static bool quotactl_cmd_onoff(int cmd) in quotactl_cmd_onoff() argument
780 return (cmd == Q_QUOTAON) || (cmd == Q_QUOTAOFF) || in quotactl_cmd_onoff()
781 (cmd == Q_XQUOTAON) || (cmd == Q_XQUOTAOFF); in quotactl_cmd_onoff()
788 static struct super_block *quotactl_block(const char __user *special, int cmd) in quotactl_block() argument
801 if (quotactl_cmd_onoff(cmd)) in quotactl_block()
803 else if (quotactl_cmd_write(cmd)) in quotactl_block()
823 int kernel_quotactl(unsigned int cmd, const char __user *special, in kernel_quotactl() argument
831 cmds = cmd >> SUBCMDSHIFT; in kernel_quotactl()
832 type = cmd & SUBCMDMASK; in kernel_quotactl()
876 SYSCALL_DEFINE4(quotactl, unsigned int, cmd, const char __user *, special, in SYSCALL_DEFINE4() argument
879 return kernel_quotactl(cmd, special, id, addr); in SYSCALL_DEFINE4()