Lines Matching refs:ptes
352 gpt_header **gpt, gpt_entry **ptes) in is_gpt_valid() argument
357 if (!ptes) in is_gpt_valid()
446 if (!(*ptes = alloc_read_gpt_entries(state, *gpt))) in is_gpt_valid()
450 crc = efi_crc32((const unsigned char *) (*ptes), pt_size); in is_gpt_valid()
461 kfree(*ptes); in is_gpt_valid()
462 *ptes = NULL; in is_gpt_valid()
598 gpt_entry **ptes) in find_valid_gpt() argument
607 if (!ptes) in find_valid_gpt()
647 *ptes = pptes; in find_valid_gpt()
656 *ptes = aptes; in find_valid_gpt()
669 *ptes = NULL; in find_valid_gpt()
695 gpt_entry *ptes = NULL; in efi_partition() local
699 if (!find_valid_gpt(state, &gpt, &ptes) || !gpt || !ptes) { in efi_partition()
701 kfree(ptes); in efi_partition()
711 u64 start = le64_to_cpu(ptes[i].starting_lba); in efi_partition()
712 u64 size = le64_to_cpu(ptes[i].ending_lba) - in efi_partition()
713 le64_to_cpu(ptes[i].starting_lba) + 1ULL; in efi_partition()
715 if (!is_pte_valid(&ptes[i], last_lba(state->bdev))) in efi_partition()
721 if (!efi_guidcmp(ptes[i].partition_type_guid, PARTITION_LINUX_RAID_GUID)) in efi_partition()
725 efi_guid_to_str(&ptes[i].unique_partition_guid, info->uuid); in efi_partition()
729 ARRAY_SIZE(ptes[i].partition_name)); in efi_partition()
732 u8 c = ptes[i].partition_name[label_count] & 0xff; in efi_partition()
740 kfree(ptes); in efi_partition()