Lines Matching refs:cmd
107 const struct command *cmd; in usbip_help() local
122 for (cmd = cmds; cmd->name != NULL; cmd++) in usbip_help()
123 if (cmd->help != NULL) in usbip_help()
124 printf(" %-10s %s\n", cmd->name, cmd->help); in usbip_help()
139 static int run_command(const struct command *cmd, int argc, char *argv[]) in run_command() argument
141 dbg("running command: `%s'", cmd->name); in run_command()
142 return cmd->fn(argc, argv); in run_command()
154 char *cmd; in main() local
187 cmd = argv[optind]; in main()
188 if (cmd) { in main()
190 if (!strcmp(cmds[i].name, cmd)) { in main()