Lines Matching refs:pmbr
41 GuidToStr(&drive.pmbr.boot_guid, buf, sizeof(buf)); in CgptGetBootPartitionNumber()
48 if (GuidEqual(&entry->unique, &drive.pmbr.boot_guid)) { in CgptGetBootPartitionNumber()
88 drive.pmbr.magic[0] = 0x1d; in CgptBoot()
89 drive.pmbr.magic[1] = 0x9a; in CgptBoot()
90 drive.pmbr.sig[0] = 0x55; in CgptBoot()
91 drive.pmbr.sig[1] = 0xaa; in CgptBoot()
92 memset(&drive.pmbr.part, 0, sizeof(drive.pmbr.part)); in CgptBoot()
93 drive.pmbr.part[0].f_head = 0x00; in CgptBoot()
94 drive.pmbr.part[0].f_sect = 0x02; in CgptBoot()
95 drive.pmbr.part[0].f_cyl = 0x00; in CgptBoot()
96 drive.pmbr.part[0].type = 0xee; in CgptBoot()
97 drive.pmbr.part[0].l_head = 0xff; in CgptBoot()
98 drive.pmbr.part[0].l_sect = 0xff; in CgptBoot()
99 drive.pmbr.part[0].l_cyl = 0xff; in CgptBoot()
100 drive.pmbr.part[0].f_lba = htole32(1); in CgptBoot()
104 drive.pmbr.part[0].num_sect = htole32(max); in CgptBoot()
121 memcpy(&drive.pmbr.boot_guid, &entry->unique, sizeof(Guid)); in CgptBoot()
131 int n = read(fd, drive.pmbr.bootcode, sizeof(drive.pmbr.bootcode)); in CgptBoot()
142 GuidToStr(&drive.pmbr.boot_guid, buf, sizeof(buf)); in CgptBoot()