Lines Matching refs:pgpt_head
47 gpt_header *pgpt_head, gpt_entry **pgpt_pte);
49 gpt_header *pgpt_head);
1184 gpt_header *pgpt_head, gpt_entry **pgpt_pte) in is_gpt_valid() argument
1188 if (!dev_desc || !pgpt_head) { in is_gpt_valid()
1207 if (blk_dread(dev_desc, (lbaint_t)lba * sector, sector, pgpt_head) != sector) { in is_gpt_valid()
1212 if (validate_gpt_header(pgpt_head, (lbaint_t)lba, dev_desc->rawlba)) in is_gpt_valid()
1217 if (memcmp(&pgpt_head->disk_guid, &empty, sizeof(empty))) { in is_gpt_valid()
1219 memcpy(&dev_desc->guid_sig, &pgpt_head->disk_guid, in is_gpt_valid()
1228 *pgpt_pte = alloc_read_gpt_entries(dev_desc, pgpt_head); in is_gpt_valid()
1234 if (validate_gpt_entries(pgpt_head, *pgpt_pte)) { in is_gpt_valid()
1254 gpt_header *pgpt_head) in alloc_read_gpt_entries() argument
1260 if (!dev_desc || !pgpt_head) { in alloc_read_gpt_entries()
1265 count = le32_to_cpu(pgpt_head->num_partition_entries) * in alloc_read_gpt_entries()
1266 le32_to_cpu(pgpt_head->sizeof_partition_entry); in alloc_read_gpt_entries()
1269 (u32) le32_to_cpu(pgpt_head->num_partition_entries), in alloc_read_gpt_entries()
1270 (u32) le32_to_cpu(pgpt_head->sizeof_partition_entry), in alloc_read_gpt_entries()
1286 blk = le64_to_cpu(pgpt_head->partition_entry_lba); in alloc_read_gpt_entries()