Lines Matching refs:primary_header
33 gptdata->primary_header = (uint8_t *)VbExMalloc(gptdata->sector_bytes); in AllocAndReadGptData()
39 if (gptdata->primary_header == NULL || in AllocAndReadGptData()
46 if (0 != VbExDiskRead(disk_handle, 1, 1, gptdata->primary_header)) in AllocAndReadGptData()
50 GptHeader* primary_header = (GptHeader*)gptdata->primary_header; in AllocAndReadGptData() local
51 if (0 == CheckHeader(primary_header, 0, in AllocAndReadGptData()
56 uint64_t entries_bytes = primary_header->number_of_entries in AllocAndReadGptData()
57 * primary_header->size_of_entry; in AllocAndReadGptData()
61 primary_header->entries_lba, in AllocAndReadGptData()
106 GptHeader *header = (GptHeader *)gptdata->primary_header; in WriteAndFreeGptData()
117 if (gptdata->primary_header) { in WriteAndFreeGptData()
118 GptHeader *h = (GptHeader *)(gptdata->primary_header); in WriteAndFreeGptData()
137 gptdata->primary_header)) in WriteAndFreeGptData()
186 if (gptdata->primary_header) in WriteAndFreeGptData()
187 VbExFree(gptdata->primary_header); in WriteAndFreeGptData()