Home
last modified time | relevance | path

Searched refs:my_lba (Results 1 – 7 of 7) sorted by relevance

/external/vboot_reference/firmware/lib/cgptlib/
Dcgptlib_internal.c115 if (h->my_lba != gpt_drive_sectors - GPT_HEADER_SECTORS) in CheckHeader()
117 if (h->entries_lba != h->my_lba - CalculateEntriesSectors(h)) in CheckHeader()
120 if (h->my_lba != GPT_PMBR_SECTORS) in CheckHeader()
122 if (h->entries_lba < h->my_lba + 1) in CheckHeader()
331 header2->my_lba = gpt->gpt_drive_sectors - GPT_HEADER_SECTORS; in GptRepair()
333 header2->entries_lba = header2->my_lba - CalculateEntriesSectors(header1); in GptRepair()
340 header1->my_lba = GPT_PMBR_SECTORS; /* Second sector. */ in GptRepair()
344 header1->entries_lba = header1->my_lba + 1; in GptRepair()
/external/vboot_reference/cgpt/
Dcgpt_create.c42 h->my_lba = GPT_PMBR_SECTORS; /* The second sector on drive. */ in GptCreate()
81 h->entries_lba = h->my_lba + GPT_HEADER_SECTORS; in GptCreate()
Dcgpt_common.c950 secondary_header->my_lba = gpt->gpt_drive_sectors - 1; /* the last sector */ in RepairHeader()
951 secondary_header->alternate_lba = primary_header->my_lba; in RepairHeader()
952 secondary_header->entries_lba = secondary_header->my_lba - in RepairHeader()
957 primary_header->my_lba = GPT_PMBR_SECTORS; /* the second sector on drive */ in RepairHeader()
958 primary_header->alternate_lba = secondary_header->my_lba; in RepairHeader()
960 primary_header->entries_lba = primary_header->my_lba + GPT_HEADER_SECTORS; in RepairHeader()
Dcgpt_show.c77 printf("%sMy LBA: %lld\n", indent, (long long)header->my_lba); in HeaderDetails()
/external/vboot_reference/tests/
Dvboot_kernel_tests.c90 h->my_lba = MOCK_SECTOR_COUNT - GPT_HEADER_SECTORS; in SetupGptHeader()
91 h->entries_lba = h->my_lba - CalculateEntriesSectors(h); in SetupGptHeader()
93 h->my_lba = GPT_PMBR_SECTORS; in SetupGptHeader()
94 h->entries_lba = h->my_lba + 1; in SetupGptHeader()
Dcgptlib_test.c168 header->my_lba = 1; in BuildTestGptData()
198 header2->my_lba = DEFAULT_DRIVE_SECTORS - 1; /* 466 */ in BuildTestGptData()
542 h2->entries_lba = h2->my_lba - CalculateEntriesSectors(h2); in NumberOfPartitionEntriesTest()
567 h1->my_lba--; in MyLbaTest()
568 h2->my_lba--; in MyLbaTest()
574 h1->my_lba = 2; in MyLbaTest()
575 h2->my_lba--; in MyLbaTest()
1467 secondary_header->entries_lba = secondary_header->my_lba - in CheckHeaderOffDevice()
/external/vboot_reference/firmware/include/
Dgpt.h81 uint64_t my_lba; member