Lines Matching refs:agpt
483 compare_gpts(gpt_header *pgpt, gpt_header *agpt, u64 lastlba) in compare_gpts() argument
486 if (!pgpt || !agpt) in compare_gpts()
488 if (le64_to_cpu(pgpt->my_lba) != le64_to_cpu(agpt->alternate_lba)) { in compare_gpts()
492 (unsigned long long)le64_to_cpu(agpt->alternate_lba)); in compare_gpts()
495 if (le64_to_cpu(pgpt->alternate_lba) != le64_to_cpu(agpt->my_lba)) { in compare_gpts()
499 (unsigned long long)le64_to_cpu(agpt->my_lba)); in compare_gpts()
503 le64_to_cpu(agpt->first_usable_lba)) { in compare_gpts()
507 (unsigned long long)le64_to_cpu(agpt->first_usable_lba)); in compare_gpts()
511 le64_to_cpu(agpt->last_usable_lba)) { in compare_gpts()
515 (unsigned long long)le64_to_cpu(agpt->last_usable_lba)); in compare_gpts()
518 if (efi_guidcmp(pgpt->disk_guid, agpt->disk_guid)) { in compare_gpts()
523 le32_to_cpu(agpt->num_partition_entries)) { in compare_gpts()
527 le32_to_cpu(agpt->num_partition_entries)); in compare_gpts()
531 le32_to_cpu(agpt->sizeof_partition_entry)) { in compare_gpts()
535 le32_to_cpu(agpt->sizeof_partition_entry)); in compare_gpts()
539 le32_to_cpu(agpt->partition_entry_array_crc32)) { in compare_gpts()
543 le32_to_cpu(agpt->partition_entry_array_crc32)); in compare_gpts()
554 if (le64_to_cpu(agpt->my_lba) != lastlba) { in compare_gpts()
557 (unsigned long long)le64_to_cpu(agpt->my_lba), in compare_gpts()
587 gpt_header *pgpt = NULL, *agpt = NULL; in find_valid_gpt() local
620 &agpt, &aptes); in find_valid_gpt()
622 good_agpt = is_gpt_valid(state, lastlba, &agpt, &aptes); in find_valid_gpt()
628 compare_gpts(pgpt, agpt, lastlba); in find_valid_gpt()
634 kfree(agpt); in find_valid_gpt()
641 *gpt = agpt; in find_valid_gpt()
651 kfree(agpt); in find_valid_gpt()