Lines Matching refs:gpt_pte
200 gpt_entry *gpt_pte = NULL; in get_disk_guid() local
205 gpt_head, &gpt_pte) != 1) { in get_disk_guid()
208 gpt_head, &gpt_pte) != 1) { in get_disk_guid()
227 gpt_entry *gpt_pte = NULL; in part_print_efi() local
235 gpt_head, &gpt_pte) != 1) { in part_print_efi()
238 gpt_head, &gpt_pte) != 1) { in part_print_efi()
248 debug("%s: gpt-entry at %p\n", __func__, gpt_pte); in part_print_efi()
258 if (!is_pte_valid(&gpt_pte[i])) in part_print_efi()
262 le64_to_cpu(gpt_pte[i].starting_lba * sector), in part_print_efi()
263 le64_to_cpu(gpt_pte[i].ending_lba * sector + sector - 1), in part_print_efi()
264 print_efiname(&gpt_pte[i])); in part_print_efi()
265 printf("\tattrs:\t0x%016llx\n", gpt_pte[i].attributes.raw); in part_print_efi()
266 uuid_bin = (unsigned char *)gpt_pte[i].partition_type_guid.b; in part_print_efi()
273 uuid_bin = (unsigned char *)gpt_pte[i].unique_partition_guid.b; in part_print_efi()
279 free(gpt_pte); in part_print_efi()
286 static gpt_entry *gpt_pte = NULL; in part_get_info_efi() local
311 if (gpt_pte) in part_get_info_efi()
312 free(gpt_pte); in part_get_info_efi()
313 gpt_pte = NULL; in part_get_info_efi()
324 gpt_head, &gpt_pte) != 1) { in part_get_info_efi()
327 gpt_head, &gpt_pte) != 1) { in part_get_info_efi()
338 !is_pte_valid(&gpt_pte[part - 1])) { in part_get_info_efi()
346 info->start = (lbaint_t)le64_to_cpu(gpt_pte[part - 1].starting_lba); in part_get_info_efi()
348 info->size = (lbaint_t)le64_to_cpu(gpt_pte[part - 1].ending_lba) + 1 in part_get_info_efi()
356 print_efiname(&gpt_pte[part - 1])); in part_get_info_efi()
358 info->bootable = is_bootable(&gpt_pte[part - 1]); in part_get_info_efi()
360 uuid_bin_to_str(gpt_pte[part - 1].unique_partition_guid.b, info->uuid, in part_get_info_efi()
364 uuid_bin_to_str(gpt_pte[part - 1].partition_type_guid.b, in part_get_info_efi()
377 gpt_entry *gpt_pte, in gpt_entry_modify() argument
384 if (!is_pte_valid(&gpt_pte[i])) in gpt_entry_modify()
388 if (gpt_pte[i - 1].ending_lba <= (dev_desc->rawlba - 6)) in gpt_entry_modify()
390 gpt_pte[i - 1].ending_lba = dev_desc->rawlba - 6; in gpt_entry_modify()
392 if (gpt_pte[i - 1].ending_lba <= (dev_desc->rawlba - 0x22)) in gpt_entry_modify()
395 gpt_pte[i - 1].ending_lba = dev_desc->rawlba - 0x41; in gpt_entry_modify()
397 calc_crc32 = efi_crc32((const unsigned char *)gpt_pte, in gpt_entry_modify()
403 static int part_efi_repair(struct blk_desc *dev_desc, gpt_entry *gpt_pte, in part_efi_repair() argument
427 gpt_entry_modify(dev_desc, gpt_pte, gpt_head); in part_efi_repair()
440 if (blk_dwrite(dev_desc, blk * sector, (lbaint_t)blk_cnt, gpt_pte) != in part_efi_repair()
456 gpt_entry_modify(dev_desc, gpt_pte, gpt_head); in part_efi_repair()
478 if (blk_dwrite(dev_desc, blk * sector, (lbaint_t)blk_cnt, gpt_pte) != in part_efi_repair()
913 gpt_entry **gpt_pte) in gpt_verify_headers() argument
921 gpt_head, gpt_pte) != 1) { in gpt_verify_headers()
927 gpt_head, gpt_pte) != 1) { in gpt_verify_headers()
938 gpt_header *gpt_head, gpt_entry **gpt_pte) in gpt_verify_partitions() argument
945 ret = gpt_verify_headers(dev_desc, gpt_head, gpt_pte); in gpt_verify_partitions()
949 gpt_e = *gpt_pte; in gpt_verify_partitions()