Home
last modified time | relevance | path

Searched refs:primary_header (Results 1 – 11 of 11) sorted by relevance

/external/vboot_reference/firmware/lib/
Dgpt_misc.c33 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/
Dcgpt_common.c163 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 …]
Dcgpt_show.c267 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()
Dcgpt_create.c28 AllocAndClear(&drive->gpt.primary_header, in GptCreate()
38 GptHeader *h = (GptHeader *)drive->gpt.primary_header; in GptCreate()
Dcgpt_legacy.c22 h1 = (GptHeader *)drive.gpt.primary_header; in CgptLegacy()
Dcgpt_add.c283 (GptHeader*)drive->gpt.primary_header); in GptAdd()
/external/vboot_reference/tests/
Dcgptlib_test.c77 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 …]
Dvboot_kernel_tests.c313 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/
Dcgptlib.c35 GptHeader *header = (GptHeader *)gpt->primary_header; in GptNextKernelEntry()
217 GptHeader *header = (GptHeader *)gpt->primary_header; in GptFindNthEntry()
Dcgptlib_internal.c240 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/
Dgpt_misc.h84 uint8_t *primary_header; member