Lines Matching refs:opt
32 struct sys_options opt = { variable
144 opt.force = 1; in parse_options()
147 opt.heads = 64; in parse_options()
148 opt.sectors = 32; in parse_options()
151 opt.sectors = strtoul(optarg, NULL, 0); in parse_options()
152 if (opt.sectors < 1 || opt.sectors > 63) { in parse_options()
155 program, opt.sectors); in parse_options()
160 opt.heads = strtoul(optarg, NULL, 0); in parse_options()
161 if (opt.heads < 1 || opt.heads > 256) { in parse_options()
164 program, opt.heads); in parse_options()
169 opt.raid_mode = 1; in parse_options()
172 opt.stupid_mode = 1; in parse_options()
175 opt.update_only = 0; in parse_options()
179 opt.update_only = 1; in parse_options()
191 opt.set_once = optarg; in parse_options()
195 opt.offset = strtoul(optarg, NULL, 0); in parse_options()
198 opt.set_once = ""; in parse_options()
201 opt.directory = optarg; in parse_options()
204 opt.reset_adv = 1; in parse_options()
207 opt.menu_save = optarg; in parse_options()
210 opt.install_mbr = 1; in parse_options()
213 opt.activate_partition = 1; in parse_options()
218 opt.device = optarg; in parse_options()
234 opt.device = argv[optind++]; in parse_options()
237 if (!opt.directory) in parse_options()
238 opt.directory = argv[optind++]; in parse_options()
244 opt.bootsecfile = argv[optind++]; in parse_options()
256 if (opt.reset_adv) in modify_adv()
259 if (opt.set_once) { in modify_adv()
260 if (syslinux_setadv(ADV_BOOTONCE, strlen(opt.set_once), opt.set_once)) { in modify_adv()
266 if (opt.menu_save) { in modify_adv()
267 if (syslinux_setadv(ADV_MENUSAVE, strlen(opt.menu_save), opt.menu_save)) { in modify_adv()