Lines Matching refs:cmd
140 ui_cmdline_t cmd;
142 res = cmd_lookup(head, &cmd);
146 res = cmd_sw_validate(&cmd,cmd.switches);
149 cmd_sw_name(&cmd,res));
154 res = (*cmd.func)(&cmd,cmd.argc-cmd.argidx,
155 &(cmd.argv[cmd.argidx]));
157 cmd_free(&cmd);
202 * ui_showusage(cmd)
208 * cmd - command line structure (typically passed in from
215 int ui_showusage(ui_cmdline_t *cmd)
217 cmd_showusage(cmd);
237 ui_command_t *cmd;
247 while ((cmd = cmd_readcommand(head))) {
249 if (cmd == NULL) {
253 q_enqueue(&cmdqueue,(queue_t *) cmd);
260 while ((cmd = (ui_command_t *) q_deqnext(&(cmdqueue)))) {
261 status = ui_do_one_command(&(cmd->head));
262 term = cmd->term;
263 KFREE(cmd);
286 while ((cmd = (ui_command_t *) q_deqnext(&(cmdqueue)))) {
287 cmd_free_tokens(&(cmd->head));
288 KFREE(cmd);