Lines Matching refs:cmd
45 static int cmd_media_list(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_media_list() argument
88 static int cmd_media_get_prop(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_media_get_prop() argument
100 if (strcmp(cmd->cmd, "priority") == 0) in cmd_media_get_prop()
102 else if ((strcmp(cmd->cmd, "tolerance") == 0)) in cmd_media_get_prop()
104 else if ((strcmp(cmd->cmd, "window") == 0)) in cmd_media_get_prop()
110 (cmd->help)(cmdl); in cmd_media_get_prop()
143 static int cmd_media_get(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_media_get() argument
146 const struct cmd cmds[] = { in cmd_media_get()
153 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_media_get()
166 static int cmd_media_set_prop(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_media_set_prop() argument
180 if (strcmp(cmd->cmd, "priority") == 0) in cmd_media_set_prop()
182 else if ((strcmp(cmd->cmd, "tolerance") == 0)) in cmd_media_set_prop()
184 else if ((strcmp(cmd->cmd, "window") == 0)) in cmd_media_set_prop()
190 (cmd->help)(cmdl); in cmd_media_set_prop()
224 static int cmd_media_set(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_media_set() argument
227 const struct cmd cmds[] = { in cmd_media_set()
234 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_media_set()
249 int cmd_media(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, in cmd_media() argument
252 const struct cmd cmds[] = { in cmd_media()
259 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_media()