Home
last modified time | relevance | path

Searched refs:last_usable_lba (Results 1 – 10 of 10) sorted by relevance

/external/vboot_reference/firmware/lib/cgptlib/
Dcgptlib_internal.c127 if (h->first_usable_lba > h->last_usable_lba) in CheckHeader()
131 if (h->last_usable_lba >= streaming_drive_sectors) { in CheckHeader()
145 if (h->last_usable_lba >= in CheckHeader()
183 (entry->ending_lba > h->last_usable_lba) || in CheckEntries()
223 if (h1->last_usable_lba != h2->last_usable_lba) in HeaderFieldsSame()
/external/u-boot/disk/
Dpart_efi.c131 if (le64_to_cpu(gpt_h->last_usable_lba) > lastlba) { in validate_gpt_header()
133 le64_to_cpu(gpt_h->last_usable_lba), lastlba); in validate_gpt_header()
139 le64_to_cpu(gpt_h->last_usable_lba), lastlba); in validate_gpt_header()
174 cpu_to_le64(le64_to_cpu(gpt_h->last_usable_lba) + 1); in prepare_backup_gpt_header()
392 if (blk_dwrite(dev_desc, (lbaint_t)le64_to_cpu(gpt_h->last_usable_lba) in write_gpt_table()
413 lbaint_t last_usable_lba = (lbaint_t) in gpt_fill_pte() local
414 le64_to_cpu(gpt_h->last_usable_lba); in gpt_fill_pte()
457 if (offset > (last_usable_lba + 1)) { in gpt_fill_pte()
464 gpt_e[i].ending_lba = gpt_h->last_usable_lba; in gpt_fill_pte()
583 gpt_h->last_usable_lba = cpu_to_le64(dev_desc->lba - 34); in gpt_fill_header()
/external/vboot_reference/cgpt/
Dcgpt_create.c85 h->last_usable_lba = (drive->gpt.streaming_drive_sectors - GPT_HEADER_SECTORS - in GptCreate()
89 h->last_usable_lba = (drive->gpt.streaming_drive_sectors - 1); in GptCreate()
Dcgpt_common.c863 (a->last_usable_lba == b->last_usable_lba) && in IsSynonymous()
919 target->last_usable_lba = source->last_usable_lba; in CopySynonymousParts()
Dcgpt_show.c80 printf("%sLast LBA: %lld\n", indent, (long long)header->last_usable_lba); in HeaderDetails()
/external/vboot_reference/firmware/include/
Dgpt.h84 uint64_t last_usable_lba; member
/external/u-boot/include/
Dpart_efi.h87 __le64 last_usable_lba; member
/external/vboot_reference/tests/
Dcgptlib_test.c171 header->last_usable_lba = DEFAULT_DRIVE_SECTORS - 1 - 32 - 1; /* 433 */ in BuildTestGptData()
326 h3.last_usable_lba++; in HeaderSameTest()
658 h1->last_usable_lba = cases[i].primary_last_usable_lba; in FirstUsableLbaAndLastUsableLbaTest()
661 h2->last_usable_lba = cases[i].secondary_last_usable_lba; in FirstUsableLbaAndLastUsableLbaTest()
717 e1[2].ending_lba = h1->last_usable_lba + 1; in ValidEntryTest()
Dvboot_kernel_tests.c98 h->last_usable_lba = MOCK_SECTOR_COUNT - 2 - CalculateEntriesSectors(h); in SetupGptHeader()
/external/avb/examples/uefi/
Duefi_avb_ops.c55 uint64_t last_usable_lba; member