Lines Matching refs:ptes
352 gpt_header **gpt, gpt_entry **ptes) in is_gpt_valid() argument
357 if (!ptes) in is_gpt_valid()
437 if (!(*ptes = alloc_read_gpt_entries(state, *gpt))) in is_gpt_valid()
441 crc = efi_crc32((const unsigned char *) (*ptes), in is_gpt_valid()
454 kfree(*ptes); in is_gpt_valid()
455 *ptes = NULL; in is_gpt_valid()
591 gpt_entry **ptes) in find_valid_gpt() argument
600 if (!ptes) in find_valid_gpt()
640 *ptes = pptes; in find_valid_gpt()
649 *ptes = aptes; in find_valid_gpt()
662 *ptes = NULL; in find_valid_gpt()
688 gpt_entry *ptes = NULL; in efi_partition() local
692 if (!find_valid_gpt(state, &gpt, &ptes) || !gpt || !ptes) { in efi_partition()
694 kfree(ptes); in efi_partition()
704 u64 start = le64_to_cpu(ptes[i].starting_lba); in efi_partition()
705 u64 size = le64_to_cpu(ptes[i].ending_lba) - in efi_partition()
706 le64_to_cpu(ptes[i].starting_lba) + 1ULL; in efi_partition()
708 if (!is_pte_valid(&ptes[i], last_lba(state->bdev))) in efi_partition()
714 if (!efi_guidcmp(ptes[i].partition_type_guid, PARTITION_LINUX_RAID_GUID)) in efi_partition()
718 efi_guid_to_str(&ptes[i].unique_partition_guid, info->uuid); in efi_partition()
722 ARRAY_SIZE(ptes[i].partition_name)); in efi_partition()
725 u8 c = ptes[i].partition_name[label_count] & 0xff; in efi_partition()
733 kfree(ptes); in efi_partition()