Lines Matching defs:opt

331 bam_loader_menu(char *subcmd, char *opt, int largc, char *largv[])
353 ret = check_subcmd_and_options(subcmd, opt, menu_subcmds, &f);
364 assert(opt);
366 osdev = strtok(opt, ",");
457 opt = largv[0];
472 ret = f(&menu, menu_path, opt);
531 ret = f(&menu, NULL, opt);
563 set_option(struct menu_lst *menu, char *dummy, char *opt)
575 assert(opt);
578 val = strchr(opt, '=');
583 if (strcmp(opt, "default") == 0) {
613 } else if (strcmp(opt, "timeout") == 0) {
658 bam_error(_("invalid option: %s\n"), opt);
928 list_entry(struct menu_lst *menu, char *menu_root, char *opt)
935 if (opt == NULL) {
940 if ((ptr = strchr(opt, '=')) == NULL) {
941 bam_error(_("invalid option: %s\n"), opt);
945 i = ptr - opt;
946 if (strncmp(opt, "entry", i) == 0) {
948 } else if (strncmp(opt, "title", i) == 0) {
951 bam_error(_("invalid option: %s\n"), opt);
1013 update_temp(struct menu_lst *menu, char *dummy, char *opt)
1026 * if opt == NULL, remove transient config
1028 if (opt == NULL) {
1084 if (opt[0] == '-') {
1092 (void) fprintf(fp, "boot-args=\"%s %s\"\n", env, opt);
1094 (void) fprintf(fp, "boot-args=\"%s\"\n", opt);
1101 * so, we split the opt at first space
1106 o = strchr(opt, ' ');
1111 (void) fprintf(fp, "bootfile=\"%s\"\n", opt);
1119 (void) fprintf(fp, "bootfile=\"%s\"\n", opt);
1123 (void) fprintf(fp, "boot-args=\"%s %s\"\n", env, opt);
1200 disable_hyper(struct menu_lst *menu, char *osroot, char *opt)
1211 enable_hyper(struct menu_lst *menu, char *osroot, char *opt)
1297 opt);
1300 opt);
1303 opt);
1305 (void) fprintf(fp, "xen_cmdline=\"%s\"\n", opt);