Home
last modified time | relevance | path

Searched refs:GptHeader (Results 1 – 14 of 14) sorted by relevance

/external/vboot_reference/tests/
Dcgptlib_test.c74 GptHeader *header, *header2; in RefreshCrc32()
77 header = (GptHeader *)gpt->primary_header; in RefreshCrc32()
79 header2 = (GptHeader *)gpt->secondary_header; in RefreshCrc32()
147 GptHeader *header, *header2; in BuildTestGptData()
161 header = (GptHeader *)gpt->primary_header; in BuildTestGptData()
166 header->size = sizeof(GptHeader); in BuildTestGptData()
194 header2 = (GptHeader *)gpt->secondary_header; in BuildTestGptData()
196 Memcpy(header2, header, sizeof(GptHeader)); in BuildTestGptData()
213 EXPECT(GPTHEADER_EXPECTED_SIZE == sizeof(GptHeader)); in StructSizeTest()
272 GptHeader *h1 = (GptHeader *)gpt->primary_header; in HeaderCrcTest()
[all …]
Dvboot_kernel_tests.c66 static GptHeader *mock_gpt_primary =
67 (GptHeader*)&mock_disk[MOCK_SECTOR_SIZE * 1];
68 static GptHeader *mock_gpt_secondary =
69 (GptHeader*)&mock_disk[MOCK_SECTOR_SIZE * (MOCK_SECTOR_COUNT - 1)];
75 static void SetupGptHeader(GptHeader *h, int is_secondary) in SetupGptHeader()
296 GptHeader *h; in ReadWriteGptTest()
430 h = (GptHeader*)g.primary_header; in ReadWriteGptTest()
444 h = (GptHeader*)g.primary_header; in ReadWriteGptTest()
448 h = (GptHeader*)g.secondary_header; in ReadWriteGptTest()
459 h = (GptHeader *)g.primary_header; in ReadWriteGptTest()
[all …]
/external/vboot_reference/firmware/lib/cgptlib/
Dcgptlib_internal.c17 size_t CalculateEntriesSectors(GptHeader* h) { in CalculateEntriesSectors()
53 uint32_t HeaderCrc(GptHeader *h) in HeaderCrc()
66 int CheckHeader(GptHeader *h, int is_secondary, in CheckHeader()
159 int CheckEntries(GptEntry *entries, GptHeader *h) in CheckEntries()
211 int HeaderFieldsSame(GptHeader *h1, GptHeader *h2) in HeaderFieldsSame()
240 GptHeader *header1 = (GptHeader *)(gpt->primary_header); in GptSanityCheck()
241 GptHeader *header2 = (GptHeader *)(gpt->secondary_header); in GptSanityCheck()
244 GptHeader *goodhdr = NULL; in GptSanityCheck()
317 GptHeader *header1 = (GptHeader *)(gpt->primary_header); in GptRepair()
318 GptHeader *header2 = (GptHeader *)(gpt->secondary_header); in GptRepair()
[all …]
Dcgptlib.c35 GptHeader *header = (GptHeader *)gpt->primary_header; in GptNextKernelEntry()
217 GptHeader *header = (GptHeader *)gpt->primary_header; in GptFindNthEntry()
/external/vboot_reference/firmware/lib/
Dgpt_misc.c50 GptHeader* primary_header = (GptHeader*)gptdata->primary_header; in AllocAndReadGptData()
75 GptHeader* secondary_header = (GptHeader*)gptdata->secondary_header; in AllocAndReadGptData()
106 GptHeader *header = (GptHeader *)gptdata->primary_header; in WriteAndFreeGptData()
118 GptHeader *h = (GptHeader *)(gptdata->primary_header); in WriteAndFreeGptData()
161 GptHeader *h = (GptHeader *)(gptdata->secondary_header); in WriteAndFreeGptData()
/external/vboot_reference/firmware/lib/cgptlib/include/
Dcgptlib_internal.h88 int CheckHeader(GptHeader *h, int is_secondary,
95 uint32_t HeaderCrc(GptHeader *h);
102 int CheckEntries(GptEntry *entries, GptHeader *h);
112 int HeaderFieldsSame(GptHeader *h1, GptHeader *h2);
164 size_t CalculateEntriesSectors(GptHeader* h);
/external/vboot_reference/cgpt/
Dcgpt_common.c175 GptHeader* primary_header = (GptHeader*)drive->gpt.primary_header; in GptLoad()
189 GptHeader* secondary_header = (GptHeader*)drive->gpt.secondary_header; in GptLoad()
225 GptHeader* primary_header = (GptHeader*)drive->gpt.primary_header; in GptSave()
235 GptHeader* secondary_header = (GptHeader*)drive->gpt.secondary_header; in GptSave()
688 static GptHeader* GetGptHeader(const GptData *gpt) { in GetGptHeader()
690 return (GptHeader*)gpt->primary_header; in GetGptHeader()
692 return (GptHeader*)gpt->secondary_header; in GetGptHeader()
698 GptHeader *header = GetGptHeader(&drive->gpt); in GetNumberOfEntries()
706 GptHeader *header = GetGptHeader(gpt); in GetEntry()
818 GptHeader *primary_header, *secondary_header; in UpdateCrc()
[all …]
Dcgpt_show.c69 static void HeaderDetails(GptHeader *header, GptEntry *entries, in HeaderDetails()
263 GptHeader *header; in GptShow()
267 header = (GptHeader*)drive->gpt.primary_header; in GptShow()
272 GptHeader* primary_header = (GptHeader*)drive->gpt.primary_header; in GptShow()
283 GptHeader* secondary_header = (GptHeader*)drive->gpt.secondary_header; in GptShow()
316 !IsSynonymous((GptHeader*)drive->gpt.primary_header, in GptShow()
317 (GptHeader*)drive->gpt.secondary_header)) && in GptShow()
319 GptHeader *header; in GptShow()
323 header = (GptHeader*)drive->gpt.secondary_header; in GptShow()
Dcgpt_legacy.c13 GptHeader *h1, *h2; in CgptLegacy()
22 h1 = (GptHeader *)drive.gpt.primary_header; in CgptLegacy()
23 h2 = (GptHeader *)drive.gpt.secondary_header; in CgptLegacy()
Dcgpt_create.c38 GptHeader *h = (GptHeader *)drive->gpt.primary_header; in GptCreate()
41 h->size = sizeof(GptHeader); in GptCreate()
Dcgpt.h170 int IsSynonymous(const GptHeader* a, const GptHeader* b);
Dcgpt_add.c283 (GptHeader*)drive->gpt.primary_header); in GptAdd()
/external/vboot_reference/firmware/include/
Dgpt.h91 } __attribute__((packed)) GptHeader; typedef
/external/vboot_reference/futility/
Dmisc.c303 GptHeader *h; in recognize_gpt()
309 h = (GptHeader *)(buf + DISK_SECTOR_SIZE); in recognize_gpt()