Lines Matching refs:ptes
338 gpt_header **gpt, gpt_entry **ptes) in is_gpt_valid() argument
343 if (!ptes) in is_gpt_valid()
432 if (!(*ptes = alloc_read_gpt_entries(state, *gpt))) in is_gpt_valid()
436 crc = efi_crc32((const unsigned char *) (*ptes), pt_size); in is_gpt_valid()
447 kfree(*ptes); in is_gpt_valid()
448 *ptes = NULL; in is_gpt_valid()
584 gpt_entry **ptes) in find_valid_gpt() argument
593 if (!ptes) in find_valid_gpt()
633 *ptes = pptes; in find_valid_gpt()
642 *ptes = aptes; in find_valid_gpt()
655 *ptes = NULL; in find_valid_gpt()
681 gpt_entry *ptes = NULL; in efi_partition() local
685 if (!find_valid_gpt(state, &gpt, &ptes) || !gpt || !ptes) { in efi_partition()
687 kfree(ptes); in efi_partition()
697 u64 start = le64_to_cpu(ptes[i].starting_lba); in efi_partition()
698 u64 size = le64_to_cpu(ptes[i].ending_lba) - in efi_partition()
699 le64_to_cpu(ptes[i].starting_lba) + 1ULL; in efi_partition()
701 if (!is_pte_valid(&ptes[i], last_lba(state->bdev))) in efi_partition()
707 if (!efi_guidcmp(ptes[i].partition_type_guid, PARTITION_LINUX_RAID_GUID)) in efi_partition()
711 efi_guid_to_str(&ptes[i].unique_partition_guid, info->uuid); in efi_partition()
715 ARRAY_SIZE(ptes[i].partition_name)); in efi_partition()
718 u8 c = ptes[i].partition_name[label_count] & 0xff; in efi_partition()
726 kfree(ptes); in efi_partition()