Lines Matching refs:header1
240 GptHeader *header1 = (GptHeader *)(gpt->primary_header); in GptSanityCheck() local
254 if (0 == CheckHeader(header1, 0, gpt->streaming_drive_sectors, in GptSanityCheck()
257 goodhdr = header1; in GptSanityCheck()
309 0 != HeaderFieldsSame(header1, header2)) in GptSanityCheck()
317 GptHeader *header1 = (GptHeader *)(gpt->primary_header); in GptRepair() local
330 Memcpy(header2, header1, sizeof(GptHeader)); in GptRepair()
333 header2->entries_lba = header2->my_lba - CalculateEntriesSectors(header1); in GptRepair()
339 Memcpy(header1, header2, sizeof(GptHeader)); in GptRepair()
340 header1->my_lba = GPT_PMBR_SECTORS; /* Second sector. */ in GptRepair()
341 header1->alternate_lba = in GptRepair()
344 header1->entries_lba = header1->my_lba + 1; in GptRepair()
345 header1->header_crc32 = HeaderCrc(header1); in GptRepair()
351 entries_size = header1->size_of_entry * header1->number_of_entries; in GptRepair()