Lines Matching refs:ptes
267 * Description: Returns ptes on success, NULL on error.
330 * @ptes: PTEs ptr, filled on return.
336 gpt_header **gpt, gpt_entry **ptes)
341 if (!ptes)
430 if (!(*ptes = alloc_read_gpt_entries(state, *gpt)))
434 crc = efi_crc32((const unsigned char *) (*ptes), pt_size);
445 kfree(*ptes);
446 *ptes = NULL;
569 * @ptes: PTEs ptr, filled on return.
582 gpt_entry **ptes)
593 if (!ptes)
643 *ptes = pptes;
652 *ptes = aptes;
665 *ptes = NULL;
716 gpt_entry *ptes = NULL;
720 if (!find_valid_gpt(state, &gpt, &ptes) || !gpt || !ptes) {
722 kfree(ptes);
731 u64 start = le64_to_cpu(ptes[i].starting_lba);
732 u64 size = le64_to_cpu(ptes[i].ending_lba) -
733 le64_to_cpu(ptes[i].starting_lba) + 1ULL;
735 if (!is_pte_valid(&ptes[i], last_lba(state->disk)))
741 if (!efi_guidcmp(ptes[i].partition_type_guid, PARTITION_LINUX_RAID_GUID))
745 efi_guid_to_str(&ptes[i].unique_partition_guid, info->uuid);
749 ARRAY_SIZE(ptes[i].partition_name));
750 utf16_le_to_7bit(ptes[i].partition_name, label_max, info->volname);
753 kfree(ptes);