Lines Matching refs:pgpt_head
57 gpt_header *pgpt_head, gpt_entry **pgpt_pte);
59 gpt_header *pgpt_head);
930 gpt_header *pgpt_head, gpt_entry **pgpt_pte) in is_gpt_valid() argument
933 if (!dev_desc || !pgpt_head) { in is_gpt_valid()
947 if (blk_dread(dev_desc, (lbaint_t)lba, 1, pgpt_head) != 1) { in is_gpt_valid()
953 if (le64_to_cpu(pgpt_head->signature) == GPT_HEADER_CHROMEOS_IGNORE) { in is_gpt_valid()
958 if (validate_gpt_header(pgpt_head, (lbaint_t)lba, dev_desc->lba)) in is_gpt_valid()
963 if (memcmp(&pgpt_head->disk_guid, &empty, sizeof(empty))) { in is_gpt_valid()
965 memcpy(&dev_desc->guid_sig, &pgpt_head->disk_guid, in is_gpt_valid()
974 *pgpt_pte = alloc_read_gpt_entries(dev_desc, pgpt_head); in is_gpt_valid()
980 if (validate_gpt_entries(pgpt_head, *pgpt_pte)) { in is_gpt_valid()
1033 gpt_header *pgpt_head) in alloc_read_gpt_entries() argument
1039 if (!dev_desc || !pgpt_head) { in alloc_read_gpt_entries()
1044 count = le32_to_cpu(pgpt_head->num_partition_entries) * in alloc_read_gpt_entries()
1045 le32_to_cpu(pgpt_head->sizeof_partition_entry); in alloc_read_gpt_entries()
1048 (u32) le32_to_cpu(pgpt_head->num_partition_entries), in alloc_read_gpt_entries()
1049 (u32) le32_to_cpu(pgpt_head->sizeof_partition_entry), in alloc_read_gpt_entries()
1065 blk = le64_to_cpu(pgpt_head->partition_entry_lba); in alloc_read_gpt_entries()