Lines Matching refs:primary_header
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()
352 GptHeader *h1 = (GptHeader *)gpt->primary_header; in SignatureTest()
377 GptHeader *h1 = (GptHeader *)gpt->primary_header; in RevisionTest()
409 GptHeader *h1 = (GptHeader *)gpt->primary_header; in SizeTest()
443 GptHeader *h1 = (GptHeader *)gpt->primary_header; in CrcFieldTest()
464 GptHeader *h1 = (GptHeader *)gpt->primary_header; in ReservedFieldsTest()
493 GptHeader *h1 = (GptHeader *)gpt->primary_header; in SizeOfPartitionEntryTest()
535 GptHeader *h1 = (GptHeader *)gpt->primary_header; in NumberOfPartitionEntriesTest()
558 GptHeader *h1 = (GptHeader *)gpt->primary_header; in MyLbaTest()
628 GptHeader *h1 = (GptHeader *)gpt->primary_header; in FirstUsableLbaAndLastUsableLbaTest()
680 GptHeader *h1 = (GptHeader *)gpt->primary_header; in EntriesCrcTest()
706 GptHeader *h1 = (GptHeader *)gpt->primary_header; in ValidEntryTest()
740 GptHeader *h = (GptHeader *)gpt->primary_header; in OverlappedPartitionTest()
817 GptHeader *h1 = (GptHeader *)gpt->primary_header; in SanityCheckTest()
840 gpt->primary_header[0]++; in SanityCheckTest()
853 gpt->primary_header[0]++; in SanityCheckTest()
944 gpt->primary_header[0]++; in SanityCheckTest()
969 gpt->primary_header[0]++; in SanityCheckTest()
1023 gpt->primary_header = NULL; in SanityCheckTest()
1332 GptHeader *h = (GptHeader *)gpt->primary_header; in DuplicateUniqueGuidTest()
1427 GptHeader* primary_header = (GptHeader*)gpt->primary_header; in CheckHeaderOffDevice() local
1428 primary_header->first_usable_lba = 0; in CheckHeaderOffDevice()
1432 EXPECT(1 == CheckHeader(primary_header, 0, gpt->streaming_drive_sectors, in CheckHeaderOffDevice()
1435 EXPECT(0 == CheckHeader(primary_header, 0, gpt->streaming_drive_sectors, in CheckHeaderOffDevice()
1439 primary_header->number_of_entries = 100; in CheckHeaderOffDevice()
1442 EXPECT(1 == CheckHeader(primary_header, 0, gpt->streaming_drive_sectors, in CheckHeaderOffDevice()
1445 EXPECT(0 == CheckHeader(primary_header, 0, gpt->streaming_drive_sectors, in CheckHeaderOffDevice()
1448 primary_header->number_of_entries = MIN_NUMBER_OF_ENTRIES - 1; in CheckHeaderOffDevice()
1451 EXPECT(1 == CheckHeader(primary_header, 0, gpt->streaming_drive_sectors, in CheckHeaderOffDevice()