Searched refs:pmbr (Results 1 – 4 of 4) sorted by relevance
/external/vboot_reference/cgpt/ |
D | cgpt_boot.c | 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() [all …]
|
D | cgpt.h | 33 struct pmbr { struct 42 void PMBRToStr(struct pmbr *pmbr, char *str, unsigned int buflen); argument 48 struct pmbr pmbr; member
|
D | cgpt_common.c | 110 int nread = read(drive->fd, &drive->pmbr, sizeof(struct pmbr)); in ReadPMBR() 111 if (nread != sizeof(struct pmbr)) in ReadPMBR() 121 int nwrote = write(drive->fd, &drive->pmbr, sizeof(struct pmbr)); in WritePMBR() 122 if (nwrote != sizeof(struct pmbr)) in WritePMBR() 1012 void PMBRToStr(struct pmbr *pmbr, char *str, unsigned int buflen) { in PMBRToStr() argument 1014 if (GuidIsZero(&pmbr->boot_guid)) { in PMBRToStr() 1017 GuidToStr(&pmbr->boot_guid, buf, sizeof(buf)); in PMBRToStr()
|
D | cgpt_show.c | 250 PMBRToStr(&drive->pmbr, buf, sizeof(buf)); // will exit if buf is too small in GptShow()
|