Lines Matching defs:ptes
269 * Description: Returns ptes on success, NULL on error.
332 * @ptes: PTEs ptr, filled on return.
338 gpt_header **gpt, gpt_entry **ptes)
343 if (!ptes)
432 if (!(*ptes = alloc_read_gpt_entries(state, *gpt)))
436 crc = efi_crc32((const unsigned char *) (*ptes), pt_size);
447 kfree(*ptes);
448 *ptes = NULL;
571 * @ptes: PTEs ptr, filled on return.
584 gpt_entry **ptes)
593 if (!ptes)
633 *ptes = pptes;
642 *ptes = aptes;
655 *ptes = NULL;
706 gpt_entry *ptes = NULL;
710 if (!find_valid_gpt(state, &gpt, &ptes) || !gpt || !ptes) {
712 kfree(ptes);
721 u64 start = le64_to_cpu(ptes[i].starting_lba);
722 u64 size = le64_to_cpu(ptes[i].ending_lba) -
723 le64_to_cpu(ptes[i].starting_lba) + 1ULL;
725 if (!is_pte_valid(&ptes[i], last_lba(state->bdev)))
731 if (!efi_guidcmp(ptes[i].partition_type_guid, PARTITION_LINUX_RAID_GUID))
735 efi_guid_to_str(&ptes[i].unique_partition_guid, info->uuid);
739 ARRAY_SIZE(ptes[i].partition_name));
740 utf16_le_to_7bit(ptes[i].partition_name, label_max, info->volname);
743 kfree(ptes);