Lines Matching defs:subcmd
836 char *subcmd,
843 if (subcmd == NULL) {
848 if (strcmp(subcmd, "set_option") == 0) {
858 } else if (strcmp(subcmd, "update_all") == 0) {
861 * subcmd is "fastboot".
871 } else if (((strcmp(subcmd, "enable_hypervisor") != 0) &&
872 (strcmp(subcmd, "list_setting") != 0)) && (bam_argc || bam_argv)) {
887 /* verify that subcmd is valid */
888 for (i = 0; table[i].subcmd != NULL; i++) {
889 if (strcmp(table[i].subcmd, subcmd) == 0)
893 if (table[i].subcmd == NULL) {
894 bam_error(_("invalid sub-command specified: %s\n"), subcmd);
909 /* subcmd verifies that opt is appropriate */
914 "take options\n"), subcmd);
917 "sub-command: %s\n"), subcmd);
1261 bam_install(char *subcmd, char *opt)
1268 if (check_subcmd_and_options(subcmd, opt, inst_subcmds, &f) ==
1276 bam_menu(char *subcmd, char *opt, int largc, char *largv[])
1306 ret = check_subcmd_and_options(subcmd, opt, menu_subcmds, &f);
1316 if (strcmp(subcmd, "update_entry") == 0) {
1415 if (strcmp(subcmd, "list_entry") == 0)
1431 if (strcmp(subcmd, "set_option") == 0) {
1434 } else if ((strcmp(subcmd, "enable_hypervisor") != 0) &&
1435 (strcmp(subcmd, "list_setting") != 0)) {
1449 if (strcmp(subcmd, "update_entry") == 0) {
1451 } else if (strcmp(subcmd, "upgrade") == 0) {
1453 } else if (strcmp(subcmd, "list_entry") == 0) {
1455 } else if (strcmp(subcmd, "list_setting") == 0) {
1458 } else if (strcmp(subcmd, "disable_hypervisor") == 0) {
1461 "machines\n"), subcmd);
1466 } else if (strcmp(subcmd, "enable_hypervisor") == 0) {
1469 "machines\n"), subcmd);
1535 char *subcmd,
1552 ret = check_subcmd_and_options(subcmd, opt, arch_subcmds, &f);
1568 if (bam_check && strcmp(subcmd, "update_all") == 0) {
1570 "subcmd: %s\n"), subcmd);
1574 if (strcmp(subcmd, "update_all") == 0)