Lines Matching refs:cmd
147 struct ipmi_cmd * cmd; in ipmi_cmd_print() local
152 for (cmd=cmdlist; cmd->func != NULL; cmd++) { in ipmi_cmd_print()
153 if (cmd->desc == NULL) in ipmi_cmd_print()
159 lprintf(LOG_NOTICE, "\t%-12s %s", cmd->name, cmd->desc); in ipmi_cmd_print()
181 struct ipmi_cmd * cmd = intf->cmdlist; in ipmi_cmd_run() local
185 if (cmd->func == NULL || cmd->name == NULL) in ipmi_cmd_run()
187 else if (strncmp(cmd->name, "default", 7) == 0) in ipmi_cmd_run()
188 return cmd->func(intf, 0, NULL); in ipmi_cmd_run()
196 for (cmd=intf->cmdlist; cmd->func != NULL; cmd++) { in ipmi_cmd_run()
197 if (strncmp(name, cmd->name, __maxlen(cmd->name, name)) == 0) in ipmi_cmd_run()
200 if (cmd->func == NULL) { in ipmi_cmd_run()
201 cmd = intf->cmdlist; in ipmi_cmd_run()
202 if (strncmp(cmd->name, "default", 7) == 0) in ipmi_cmd_run()
203 return cmd->func(intf, argc+1, argv-1); in ipmi_cmd_run()
209 return cmd->func(intf, argc, argv); in ipmi_cmd_run()