Lines Matching refs:agpt
475 * @agpt: alternate GPT header
478 * Description: Returns nothing. Sanity checks pgpt and agpt fields
483 compare_gpts(gpt_header *pgpt, gpt_header *agpt, u64 lastlba)
486 if (!pgpt || !agpt)
488 if (le64_to_cpu(pgpt->my_lba) != le64_to_cpu(agpt->alternate_lba)) {
492 (unsigned long long)le64_to_cpu(agpt->alternate_lba));
495 if (le64_to_cpu(pgpt->alternate_lba) != le64_to_cpu(agpt->my_lba)) {
499 (unsigned long long)le64_to_cpu(agpt->my_lba));
503 le64_to_cpu(agpt->first_usable_lba)) {
507 (unsigned long long)le64_to_cpu(agpt->first_usable_lba));
511 le64_to_cpu(agpt->last_usable_lba)) {
515 (unsigned long long)le64_to_cpu(agpt->last_usable_lba));
518 if (efi_guidcmp(pgpt->disk_guid, agpt->disk_guid)) {
523 le32_to_cpu(agpt->num_partition_entries)) {
527 le32_to_cpu(agpt->num_partition_entries));
531 le32_to_cpu(agpt->sizeof_partition_entry)) {
535 le32_to_cpu(agpt->sizeof_partition_entry));
539 le32_to_cpu(agpt->partition_entry_array_crc32)) {
543 le32_to_cpu(agpt->partition_entry_array_crc32));
554 if (le64_to_cpu(agpt->my_lba) != lastlba) {
557 (unsigned long long)le64_to_cpu(agpt->my_lba),
587 gpt_header *pgpt = NULL, *agpt = NULL;
620 &agpt, &aptes);
622 good_agpt = is_gpt_valid(state, lastlba, &agpt, &aptes);
628 compare_gpts(pgpt, agpt, lastlba);
634 kfree(agpt);
641 *gpt = agpt;
651 kfree(agpt);