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
234 gpt_head, &gpt_pte) != 1) { in part_print_efi()
237 gpt_head, &gpt_pte) != 1) { in part_print_efi()
247 debug("%s: gpt-entry at %p\n", __func__, gpt_pte); in part_print_efi()
256 if (!is_pte_valid(&gpt_pte[i])) in part_print_efi()
260 le64_to_cpu(gpt_pte[i].starting_lba), in part_print_efi()
261 le64_to_cpu(gpt_pte[i].ending_lba), in part_print_efi()
262 print_efiname(&gpt_pte[i])); in part_print_efi()
263 printf("\tattrs:\t0x%016llx\n", gpt_pte[i].attributes.raw); in part_print_efi()
264 uuid_bin = (unsigned char *)gpt_pte[i].partition_type_guid.b; in part_print_efi()
271 uuid_bin = (unsigned char *)gpt_pte[i].unique_partition_guid.b; in part_print_efi()
277 free(gpt_pte); in part_print_efi()
284 static gpt_entry *gpt_pte = NULL; in part_get_info_efi() local
295 if (gpt_pte) in part_get_info_efi()
296 free(gpt_pte); in part_get_info_efi()
297 gpt_pte = NULL; in part_get_info_efi()
308 gpt_head, &gpt_pte) != 1) { in part_get_info_efi()
311 gpt_head, &gpt_pte) != 1) { in part_get_info_efi()
322 !is_pte_valid(&gpt_pte[part - 1])) { in part_get_info_efi()
329 info->start = (lbaint_t)le64_to_cpu(gpt_pte[part - 1].starting_lba); in part_get_info_efi()
331 info->size = (lbaint_t)le64_to_cpu(gpt_pte[part - 1].ending_lba) + 1 in part_get_info_efi()
336 print_efiname(&gpt_pte[part - 1])); in part_get_info_efi()
338 info->bootable = is_bootable(&gpt_pte[part - 1]); in part_get_info_efi()
340 uuid_bin_to_str(gpt_pte[part - 1].unique_partition_guid.b, info->uuid, in part_get_info_efi()
344 uuid_bin_to_str(gpt_pte[part - 1].partition_type_guid.b, in part_get_info_efi()
357 gpt_entry *gpt_pte, in gpt_entry_modify() argument
364 if (!is_pte_valid(&gpt_pte[i])) in gpt_entry_modify()
368 if (gpt_pte[i - 1].ending_lba <= (dev_desc->lba - 0x22)) in gpt_entry_modify()
371 gpt_pte[i - 1].ending_lba = dev_desc->lba - 0x41; in gpt_entry_modify()
372 calc_crc32 = efi_crc32((const unsigned char *)gpt_pte, in gpt_entry_modify()
378 static int part_efi_repair(struct blk_desc *dev_desc, gpt_entry *gpt_pte, in part_efi_repair() argument
396 gpt_entry_modify(dev_desc, gpt_pte, gpt_head); in part_efi_repair()
408 if (blk_dwrite(dev_desc, blk, (lbaint_t)blk_cnt, gpt_pte) != in part_efi_repair()
420 gpt_entry_modify(dev_desc, gpt_pte, gpt_head); in part_efi_repair()
432 if (blk_dwrite(dev_desc, blk, (lbaint_t)blk_cnt, gpt_pte) != in part_efi_repair()
855 gpt_entry **gpt_pte) in gpt_verify_headers() argument
863 gpt_head, gpt_pte) != 1) { in gpt_verify_headers()
869 gpt_head, gpt_pte) != 1) { in gpt_verify_headers()
880 gpt_header *gpt_head, gpt_entry **gpt_pte) in gpt_verify_partitions() argument
887 ret = gpt_verify_headers(dev_desc, gpt_head, gpt_pte); in gpt_verify_partitions()
891 gpt_e = *gpt_pte; in gpt_verify_partitions()