Lines Matching refs:pgpt
481 compare_gpts(gpt_header *pgpt, gpt_header *agpt, u64 lastlba) in compare_gpts() argument
484 if (!pgpt || !agpt) in compare_gpts()
486 if (le64_to_cpu(pgpt->my_lba) != le64_to_cpu(agpt->alternate_lba)) { in compare_gpts()
489 (unsigned long long)le64_to_cpu(pgpt->my_lba), in compare_gpts()
493 if (le64_to_cpu(pgpt->alternate_lba) != le64_to_cpu(agpt->my_lba)) { in compare_gpts()
496 (unsigned long long)le64_to_cpu(pgpt->alternate_lba), in compare_gpts()
500 if (le64_to_cpu(pgpt->first_usable_lba) != in compare_gpts()
504 (unsigned long long)le64_to_cpu(pgpt->first_usable_lba), in compare_gpts()
508 if (le64_to_cpu(pgpt->last_usable_lba) != in compare_gpts()
512 (unsigned long long)le64_to_cpu(pgpt->last_usable_lba), in compare_gpts()
516 if (efi_guidcmp(pgpt->disk_guid, agpt->disk_guid)) { in compare_gpts()
520 if (le32_to_cpu(pgpt->num_partition_entries) != in compare_gpts()
524 le32_to_cpu(pgpt->num_partition_entries), in compare_gpts()
528 if (le32_to_cpu(pgpt->sizeof_partition_entry) != in compare_gpts()
532 le32_to_cpu(pgpt->sizeof_partition_entry), in compare_gpts()
536 if (le32_to_cpu(pgpt->partition_entry_array_crc32) != in compare_gpts()
540 le32_to_cpu(pgpt->partition_entry_array_crc32), in compare_gpts()
544 if (le64_to_cpu(pgpt->alternate_lba) != lastlba) { in compare_gpts()
547 (unsigned long long)le64_to_cpu(pgpt->alternate_lba), in compare_gpts()
585 gpt_header *pgpt = NULL, *agpt = NULL; in find_valid_gpt() local
616 &pgpt, &pptes); in find_valid_gpt()
619 le64_to_cpu(pgpt->alternate_lba), in find_valid_gpt()
638 compare_gpts(pgpt, agpt, lastlba); in find_valid_gpt()
642 *gpt = pgpt; in find_valid_gpt()
653 kfree(pgpt); in find_valid_gpt()
660 kfree(pgpt); in find_valid_gpt()