Lines Matching refs:ptes
294 gpt_header **gpt, gpt_entry **ptes) in is_gpt_valid() argument
299 if (!ptes) in is_gpt_valid()
357 if (!(*ptes = alloc_read_gpt_entries(state, *gpt))) in is_gpt_valid()
361 crc = efi_crc32((const unsigned char *) (*ptes), in is_gpt_valid()
374 kfree(*ptes); in is_gpt_valid()
375 *ptes = NULL; in is_gpt_valid()
516 gpt_entry **ptes) in find_valid_gpt() argument
524 if (!ptes) in find_valid_gpt()
559 *ptes = pptes; in find_valid_gpt()
571 *ptes = aptes; in find_valid_gpt()
585 *ptes = NULL; in find_valid_gpt()
611 gpt_entry *ptes = NULL; in efi_partition() local
616 if (!find_valid_gpt(state, &gpt, &ptes) || !gpt || !ptes) { in efi_partition()
618 kfree(ptes); in efi_partition()
628 u64 start = le64_to_cpu(ptes[i].starting_lba); in efi_partition()
629 u64 size = le64_to_cpu(ptes[i].ending_lba) - in efi_partition()
630 le64_to_cpu(ptes[i].starting_lba) + 1ULL; in efi_partition()
632 if (!is_pte_valid(&ptes[i], last_lba(state->bdev))) in efi_partition()
638 if (!efi_guidcmp(ptes[i].partition_type_guid, in efi_partition()
646 efi_guid_unparse(&ptes[i].unique_partition_guid, unparsed_guid); in efi_partition()
651 sizeof(ptes[i].partition_name)); in efi_partition()
654 u8 c = ptes[i].partition_name[label_count] & 0xff; in efi_partition()
662 kfree(ptes); in efi_partition()