Lines Matching refs:mboot
107 static int find_x86_bootpar(struct mboot *, int *, uint32_t *);
617 assert(src_stage2->mboot); in propagate_bootblock()
620 dest_stage2->mboot = (multiboot_header_t *)(dest_stage2->buf + in propagate_bootblock()
730 struct mboot *mboot; in get_start_sector() local
751 mboot = (struct mboot *)device->boot_sector; in get_start_sector()
754 if (find_x86_bootpar(mboot, &pno, &secnum) != BC_SUCCESS) { in get_start_sector()
780 part = (struct ipart *)mboot->parts + i; in get_start_sector()
942 multiboot_header_t *mboot; in prepare_fake_multiboot() local
945 assert(stage2->mboot != NULL); in prepare_fake_multiboot()
948 mboot = stage2->mboot; in prepare_fake_multiboot()
954 assert(mboot->flags & BB_MBOOT_AOUT_FLAG); in prepare_fake_multiboot()
957 mboot->header_addr = stage2->mboot_off; in prepare_fake_multiboot()
958 mboot->load_addr = 0; in prepare_fake_multiboot()
959 mboot->load_end_addr = stage2->file_size; in prepare_fake_multiboot()
1230 multiboot_header_t *mboot; in read_stage2_from_disk() local
1247 mboot = (multiboot_header_t *)(mboot_scan + mboot_off); in read_stage2_from_disk()
1253 if (mboot->load_end_addr == 0 || in read_stage2_from_disk()
1254 mboot->load_end_addr < mboot->load_addr) in read_stage2_from_disk()
1262 size = mboot->load_end_addr - mboot->load_addr; in read_stage2_from_disk()
1283 stage2->mboot = (multiboot_header_t *)(stage2->buf + stage2->mboot_off); in read_stage2_from_disk()
1370 stage2->mboot = (multiboot_header_t *)(stage2->file + in prepare_stage2()
1458 find_x86_bootpar(struct mboot *mboot, int *part_num, uint32_t *start_sect) in find_x86_bootpar() argument
1465 part = (struct ipart *)mboot->parts + i; in find_x86_bootpar()
1486 struct mboot *mboot; in get_raw_partition_path() local
1488 mboot = (struct mboot *)device->boot_sector; in get_raw_partition_path()
1489 if (find_x86_bootpar(mboot, &part, NULL) != BC_SUCCESS) { in get_raw_partition_path()