Searched refs:primary_header (Results 1 – 11 of 11) sorted by relevance
/external/vboot_reference/firmware/lib/ |
D | gpt_misc.c | 33 gptdata->primary_header = (uint8_t *)VbExMalloc(gptdata->sector_bytes); in AllocAndReadGptData() 39 if (gptdata->primary_header == NULL || in AllocAndReadGptData() 46 if (0 != VbExDiskRead(disk_handle, 1, 1, gptdata->primary_header)) in AllocAndReadGptData() 50 GptHeader* primary_header = (GptHeader*)gptdata->primary_header; in AllocAndReadGptData() local 51 if (0 == CheckHeader(primary_header, 0, in AllocAndReadGptData() 56 uint64_t entries_bytes = primary_header->number_of_entries in AllocAndReadGptData() 57 * primary_header->size_of_entry; in AllocAndReadGptData() 61 primary_header->entries_lba, in AllocAndReadGptData() 106 GptHeader *header = (GptHeader *)gptdata->primary_header; in WriteAndFreeGptData() 117 if (gptdata->primary_header) { in WriteAndFreeGptData() [all …]
|
/external/vboot_reference/cgpt/ |
D | cgpt_common.c | 163 if (CGPT_OK != Load(drive, &drive->gpt.primary_header, in GptLoad() 175 GptHeader* primary_header = (GptHeader*)drive->gpt.primary_header; in GptLoad() local 176 if (CheckHeader(primary_header, 0, drive->gpt.streaming_drive_sectors, in GptLoad() 180 primary_header->entries_lba, in GptLoad() 182 CalculateEntriesSectors(primary_header))) { in GptLoad() 209 if (CGPT_OK != Save(drive, drive->gpt.primary_header, in GptSave() 225 GptHeader* primary_header = (GptHeader*)drive->gpt.primary_header; in GptSave() local 228 primary_header->entries_lba, in GptSave() 230 CalculateEntriesSectors(primary_header))) { in GptSave() 246 if (drive->gpt.primary_header) in GptSave() [all …]
|
D | cgpt_show.c | 267 header = (GptHeader*)drive->gpt.primary_header; in GptShow() 272 GptHeader* primary_header = (GptHeader*)drive->gpt.primary_header; in GptShow() local 273 printf(GPT_FMT, (int)primary_header->entries_lba, in GptShow() 274 (int)CalculateEntriesSectors(primary_header), in GptShow() 316 !IsSynonymous((GptHeader*)drive->gpt.primary_header, in GptShow()
|
D | cgpt_create.c | 28 AllocAndClear(&drive->gpt.primary_header, in GptCreate() 38 GptHeader *h = (GptHeader *)drive->gpt.primary_header; in GptCreate()
|
D | cgpt_legacy.c | 22 h1 = (GptHeader *)drive.gpt.primary_header; in CgptLegacy()
|
D | cgpt_add.c | 283 (GptHeader*)drive->gpt.primary_header); in GptAdd()
|
/external/vboot_reference/tests/ |
D | cgptlib_test.c | 77 header = (GptHeader *)gpt->primary_header; in RefreshCrc32() 96 Memset(gpt->primary_header, 0, MAX_SECTOR_SIZE); in ZeroHeaders() 120 static uint8_t primary_header[MAX_SECTOR_SIZE]; in GetEmptyGptData() local 126 gpt.primary_header = primary_header; in GetEmptyGptData() 161 header = (GptHeader *)gpt->primary_header; in BuildTestGptData() 272 GptHeader *h1 = (GptHeader *)gpt->primary_header; in HeaderCrcTest() 279 gpt->primary_header[0] ^= 0xa5; in HeaderCrcTest() 284 gpt->primary_header[h1->size - 1] ^= 0x5a; in HeaderCrcTest() 289 gpt->primary_header[h1->size] ^= 0x5a; in HeaderCrcTest() 299 GptHeader *h1 = (GptHeader *)gpt->primary_header; in HeaderSameTest() [all …]
|
D | vboot_kernel_tests.c | 313 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() 429 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() 430 h = (GptHeader*)g.primary_header; in ReadWriteGptTest() 443 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() 444 h = (GptHeader*)g.primary_header; in ReadWriteGptTest() 459 h = (GptHeader *)g.primary_header; in ReadWriteGptTest() 471 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() 477 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() 483 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() 489 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() [all …]
|
/external/vboot_reference/firmware/lib/cgptlib/ |
D | cgptlib.c | 35 GptHeader *header = (GptHeader *)gpt->primary_header; in GptNextKernelEntry() 217 GptHeader *header = (GptHeader *)gpt->primary_header; in GptFindNthEntry()
|
D | cgptlib_internal.c | 240 GptHeader *header1 = (GptHeader *)(gpt->primary_header); in GptSanityCheck() 317 GptHeader *header1 = (GptHeader *)(gpt->primary_header); in GptRepair() 414 GptHeader *header = (GptHeader *)gpt->primary_header; in GptModified()
|
/external/vboot_reference/firmware/include/ |
D | gpt_misc.h | 84 uint8_t *primary_header; member
|