Home
last modified time | relevance | path

Searched refs:secondary_header (Results 1 – 9 of 9) sorted by relevance

/external/vboot_reference/firmware/lib/
Dgpt_misc.c34 gptdata->secondary_header = in AllocAndReadGptData()
40 gptdata->secondary_header == NULL || in AllocAndReadGptData()
71 gptdata->secondary_header)) in AllocAndReadGptData()
75 GptHeader* secondary_header = (GptHeader*)gptdata->secondary_header; in AllocAndReadGptData() local
76 if (0 == CheckHeader(secondary_header, 1, in AllocAndReadGptData()
81 uint64_t entries_bytes = secondary_header->number_of_entries in AllocAndReadGptData()
82 * secondary_header->size_of_entry; in AllocAndReadGptData()
86 secondary_header->entries_lba, in AllocAndReadGptData()
160 if (gptdata->secondary_header) { in WriteAndFreeGptData()
161 GptHeader *h = (GptHeader *)(gptdata->secondary_header); in WriteAndFreeGptData()
[all …]
/external/vboot_reference/cgpt/
Dcgpt_common.c169 if (CGPT_OK != Load(drive, &drive->gpt.secondary_header, in GptLoad()
189 GptHeader* secondary_header = (GptHeader*)drive->gpt.secondary_header; in GptLoad() local
190 if (CheckHeader(secondary_header, 1, drive->gpt.streaming_drive_sectors, in GptLoad()
194 secondary_header->entries_lba, in GptLoad()
196 CalculateEntriesSectors(secondary_header))) { in GptLoad()
218 if(CGPT_OK != Save(drive, drive->gpt.secondary_header, in GptSave()
235 GptHeader* secondary_header = (GptHeader*)drive->gpt.secondary_header; in GptSave() local
238 secondary_header->entries_lba, in GptSave()
240 CalculateEntriesSectors(secondary_header))) { in GptSave()
252 if (drive->gpt.secondary_header) in GptSave()
[all …]
Dcgpt_show.c283 GptHeader* secondary_header = (GptHeader*)drive->gpt.secondary_header; in GptShow() local
284 printf(GPT_FMT, (int)secondary_header->entries_lba, in GptShow()
285 (int)CalculateEntriesSectors(secondary_header), in GptShow()
297 secondary_header->number_of_entries * in GptShow()
298 secondary_header->size_of_entry)))) { in GptShow()
317 (GptHeader*)drive->gpt.secondary_header)) && in GptShow()
323 header = (GptHeader*)drive->gpt.secondary_header; in GptShow()
Dcgpt_legacy.c23 h2 = (GptHeader *)drive.gpt.secondary_header; in CgptLegacy()
Dcgpt_create.c30 AllocAndClear(&drive->gpt.secondary_header, in GptCreate()
/external/vboot_reference/tests/
Dcgptlib_test.c79 header2 = (GptHeader *)gpt->secondary_header; in RefreshCrc32()
97 Memset(gpt->secondary_header, 0, MAX_SECTOR_SIZE); in ZeroHeaders()
122 static uint8_t secondary_header[MAX_SECTOR_SIZE]; in GetEmptyGptData() local
128 gpt.secondary_header = secondary_header; in GetEmptyGptData()
194 header2 = (GptHeader *)gpt->secondary_header; in BuildTestGptData()
300 GptHeader *h2 = (GptHeader *)gpt->secondary_header; in HeaderSameTest()
353 GptHeader *h2 = (GptHeader *)gpt->secondary_header; in SignatureTest()
378 GptHeader *h2 = (GptHeader *)gpt->secondary_header; in RevisionTest()
410 GptHeader *h2 = (GptHeader *)gpt->secondary_header; in SizeTest()
444 GptHeader *h2 = (GptHeader *)gpt->secondary_header; in CrcFieldTest()
[all …]
Dvboot_kernel_tests.c448 h = (GptHeader*)g.secondary_header; in ReadWriteGptTest()
/external/vboot_reference/firmware/include/
Dgpt_misc.h86 uint8_t *secondary_header; member
/external/vboot_reference/firmware/lib/cgptlib/
Dcgptlib_internal.c241 GptHeader *header2 = (GptHeader *)(gpt->secondary_header); in GptSanityCheck()
318 GptHeader *header2 = (GptHeader *)(gpt->secondary_header); in GptRepair()