Lines Matching refs:opt
74 if (!(iter = pi_begin(&diskinfo, opt.piflags))) in find_by_sig()
101 if (!(iter = pi_begin(&diskinfo, opt.piflags))) in find_by_guid()
130 if (!(iter = pi_begin(&diskinfo, opt.piflags))) in find_by_label()
151 uint8_t driveno = opt.regs.edx.b[0]; in do_boot()
176 if (opt.swap && driveno != swapdrive) { in do_boot()
222 *(uint16_t *) & swapstub[0x3a] = opt.regs.ds; in do_boot()
223 *(uint16_t *) & swapstub[0x3d] = opt.regs.es; in do_boot()
224 *(uint32_t *) & swapstub[0x45] = opt.regs.ecx.l; in do_boot()
225 *(uint32_t *) & swapstub[0x4b] = opt.regs.esi.l; in do_boot()
226 *(uint32_t *) & swapstub[0x51] = opt.regs.edi.l; in do_boot()
227 *(uint16_t *) & swapstub[0x56] = opt.regs.ip; in do_boot()
228 *(uint16_t *) & swapstub[0x58] = opt.regs.cs; in do_boot()
240 opt.regs.ds = opt.regs.cs = endimage >> 4; in do_boot()
241 opt.regs.esi.l = opt.regs.es = 0; in do_boot()
242 opt.regs.ecx.l = sizeof swapstub >> 2; in do_boot()
243 opt.regs.ip = 0x10; /* Installer offset */ in do_boot()
244 opt.regs.ebx.b[0] = opt.regs.edx.b[0] = swapdrive; in do_boot()
260 syslinux_shuffle_boot_rm(mlist, mmap, opt.keeppxe, &opt.regs); in do_boot()
284 if (!strncmp(opt.drivename, "mbr", 3)) { in find_dp()
285 if (find_by_sig(strtoul(opt.drivename + 4, NULL, 0), &iter) < 0) { in find_dp()
289 } else if (!strncmp(opt.drivename, "guid", 4)) { in find_dp()
290 if (str_to_guid(opt.drivename + 5, &gpt_guid)) in find_dp()
296 } else if (!strncmp(opt.drivename, "label", 5)) { in find_dp()
297 if (!opt.drivename[6]) { in find_dp()
301 if (find_by_label(opt.drivename + 6, &iter) < 0) { in find_dp()
305 } else if ((opt.drivename[0] == 'h' || opt.drivename[0] == 'f') && in find_dp()
306 opt.drivename[1] == 'd') { in find_dp()
307 hd = opt.drivename[0] == 'h' ? 0x80 : 0; in find_dp()
308 opt.drivename += 2; in find_dp()
309 drive = hd | strtol(opt.drivename, NULL, 0); in find_dp()
314 if (!(iter = pi_begin(&diskinfo, opt.piflags))) in find_dp()
317 } else if (!strcmp(opt.drivename, "boot") || !strcmp(opt.drivename, "fs")) { in find_dp()
334 if (!(iter = pi_begin(&diskinfo, opt.piflags))) in find_dp()
338 if (!strcmp(opt.drivename, "fs")) { in find_dp()
357 if (!iter->index && opt.partition) { in find_dp()
358 partition = strtol(opt.partition, NULL, 0); in find_dp()
514 if (opt.file) { in main()
515 fdat.base = (opt.fseg << 4) + opt.foff; in main()
517 if (loadfile(opt.file, &fdat.data, &fdat.size)) { in main()
528 if (opt.sect) { in main()
529 sdat.base = (opt.sseg << 4) + opt.soff; in main()
540 if (opt.save) { in main()
547 if (opt.file && opt.maps && overlap(&fdat, &sdat)) { in main()
549 opt.maps = false; in main()
554 if (opt.hand) { in main()
558 if ( ( opt.file && overlap(&fdat, &hdat)) || in main()
559 ( opt.maps && overlap(&sdat, &hdat)) ) { in main()
562 opt.hand = false; in main()
604 if (opt.file) in main()
606 if (opt.maps) in main()
608 if (opt.hand) in main()
619 if (opt.hand) in main()
624 if (opt.warn) { in main()
629 if (ndata && !opt.brkchain) /* boot only if we actually chainload */ in main()