Home
last modified time | relevance | path

Searched refs:GPT_HEADER_SECTORS (Results 1 – 8 of 8) sorted by relevance

/external/vboot_reference/cgpt/
Dcgpt_create.c29 drive->gpt.sector_bytes * GPT_HEADER_SECTORS); in GptCreate()
31 drive->gpt.sector_bytes * GPT_HEADER_SECTORS); in GptCreate()
43 h->alternate_lba = drive->gpt.gpt_drive_sectors - GPT_HEADER_SECTORS; in GptCreate()
63 (GPT_PMBR_SECTORS + GPT_HEADER_SECTORS) * drive->gpt.sector_bytes; in GptCreate()
81 h->entries_lba = h->my_lba + GPT_HEADER_SECTORS; in GptCreate()
85 h->last_usable_lba = (drive->gpt.streaming_drive_sectors - GPT_HEADER_SECTORS - in GptCreate()
Dcgpt_show.c255 (int)GPT_HEADER_SECTORS, "", "Pri GPT header"); in GptShow()
258 (int)GPT_HEADER_SECTORS, "INVALID", "Pri GPT header"); in GptShow()
303 printf(GPT_FMT, (int)(drive->gpt.gpt_drive_sectors - GPT_HEADER_SECTORS), in GptShow()
304 (int)GPT_HEADER_SECTORS, "", "Sec GPT header"); in GptShow()
307 (int)GPT_HEADER_SECTORS, "INVALID", "Sec GPT header"); in GptShow()
Dcgpt_common.c165 drive->gpt.sector_bytes, GPT_HEADER_SECTORS)) { in GptLoad()
171 drive->gpt.sector_bytes, GPT_HEADER_SECTORS)) { in GptLoad()
211 drive->gpt.sector_bytes, GPT_HEADER_SECTORS)) { in GptSave()
220 drive->gpt.sector_bytes, GPT_HEADER_SECTORS)) { in GptSave()
960 primary_header->entries_lba = primary_header->my_lba + GPT_HEADER_SECTORS; in RepairHeader()
/external/vboot_reference/firmware/lib/
Dgpt_misc.c116 uint64_t entries_lba = GPT_PMBR_SECTORS + GPT_HEADER_SECTORS; in WriteAndFreeGptData()
159 GPT_HEADER_SECTORS); in WriteAndFreeGptData()
/external/vboot_reference/firmware/lib/cgptlib/
Dcgptlib_internal.c115 if (h->my_lba != gpt_drive_sectors - GPT_HEADER_SECTORS) in CheckHeader()
331 header2->my_lba = gpt->gpt_drive_sectors - GPT_HEADER_SECTORS; in GptRepair()
342 gpt->streaming_drive_sectors - GPT_HEADER_SECTORS; in GptRepair()
/external/vboot_reference/firmware/lib/cgptlib/include/
Dcgptlib_internal.h59 #define GPT_HEADER_SECTORS 1 macro
/external/vboot_reference/tests/
Dvboot_kernel_tests.c90 h->my_lba = MOCK_SECTOR_COUNT - GPT_HEADER_SECTORS; in SetupGptHeader()
Dcgptlib_test.c250 {512, GPT_PMBR_SECTORS + GPT_HEADER_SECTORS * 2 + in ParameterTests()