Lines Matching refs:header1
240 GptHeader *header1 = (GptHeader *)(gpt->primary_header);
254 if (0 == CheckHeader(header1, 0, gpt->streaming_drive_sectors,
257 goodhdr = header1;
273 * catch the case where (header1,entries1) and (header2,entries2) are
293 * entries. Mark header1 invalid, so we'll update its
309 0 != HeaderFieldsSame(header1, header2))
317 GptHeader *header1 = (GptHeader *)(gpt->primary_header);
330 Memcpy(header2, header1, sizeof(GptHeader));
333 header2->entries_lba = header2->my_lba - CalculateEntriesSectors(header1);
339 Memcpy(header1, header2, sizeof(GptHeader));
340 header1->my_lba = GPT_PMBR_SECTORS; /* Second sector. */
341 header1->alternate_lba =
344 header1->entries_lba = header1->my_lba + 1;
345 header1->header_crc32 = HeaderCrc(header1);
351 entries_size = header1->size_of_entry * header1->number_of_entries;