Lines Matching refs:rawlba

207 		if (is_gpt_valid(dev_desc, dev_desc->rawlba - 1,  in get_disk_guid()
237 if (is_gpt_valid(dev_desc, (dev_desc->rawlba - 1), in part_print_efi()
290 if (!dev_desc->rawblksz || !dev_desc->rawlba) { in part_get_info_efi()
292 dev_desc->rawlba = dev_desc->lba; in part_get_info_efi()
305 if (gpt_head && (gpt_head->last_usable_lba + b_gpt_nsec) != dev_desc->rawlba) { in part_get_info_efi()
326 if (is_gpt_valid(dev_desc, (dev_desc->rawlba - 1), in part_get_info_efi()
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()
418 gpt_head->my_lba = dev_desc->rawlba - 1; in part_efi_repair()
421 gpt_head->partition_entry_lba = dev_desc->rawlba - 5; in part_efi_repair()
422 gpt_head->last_usable_lba = cpu_to_le64(dev_desc->rawlba - 6); in part_efi_repair()
424 gpt_head->partition_entry_lba = dev_desc->rawlba - 0x21; in part_efi_repair()
425 gpt_head->last_usable_lba = cpu_to_le64(dev_desc->rawlba - 34); in part_efi_repair()
431 blk = le64_to_cpu(dev_desc->rawlba - 1); in part_efi_repair()
449 gpt_head->alternate_lba = dev_desc->rawlba - 1; in part_efi_repair()
452 gpt_head->last_usable_lba = cpu_to_le64(dev_desc->rawlba - 6); in part_efi_repair()
454 gpt_head->last_usable_lba = cpu_to_le64(dev_desc->rawlba - 34); in part_efi_repair()
495 if (!dev_desc->rawblksz || !dev_desc->rawlba) { in part_test_efi()
497 dev_desc->rawlba = dev_desc->lba; in part_test_efi()
523 backup_gpt_valid = is_gpt_valid(dev_desc, (dev_desc->rawlba - 1), in part_test_efi()
588 p_mbr->partition_record[0].nr_sects = (u32) dev_desc->rawlba - 1; in set_protective_mbr()
609 debug("max lba: %x\n", (u32) dev_desc->rawlba); in write_gpt_table()
823 gpt_h->alternate_lba = cpu_to_le64(dev_desc->rawlba - 1); in gpt_fill_header()
827 gpt_h->last_usable_lba = cpu_to_le64(dev_desc->rawlba - 6); in gpt_fill_header()
831 gpt_h->last_usable_lba = cpu_to_le64(dev_desc->rawlba - 34); in gpt_fill_header()
926 if (is_gpt_valid(dev_desc, (dev_desc->rawlba - 1), in gpt_verify_headers()
1024 != cpu_to_le64(dev_desc->rawlba) && in is_valid_gpt_buf()
1032 dev_desc->rawlba)) in is_valid_gpt_buf()
1052 if (!dev_desc->rawblksz || !dev_desc->rawlba) { in write_mbr_and_gpt_partitions()
1054 dev_desc->rawlba = dev_desc->lba; in write_mbr_and_gpt_partitions()
1212 if (validate_gpt_header(pgpt_head, (lbaint_t)lba, dev_desc->rawlba)) in is_gpt_valid()