Searched refs:my_lba (Results 1 – 9 of 9) sorted by relevance
115 if (h->my_lba != gpt_drive_sectors - GPT_HEADER_SECTORS) in CheckHeader()117 if (h->entries_lba != h->my_lba - CalculateEntriesSectors(h)) in CheckHeader()120 if (h->my_lba != GPT_PMBR_SECTORS) in CheckHeader()122 if (h->entries_lba < h->my_lba + 1) in CheckHeader()331 header2->my_lba = gpt->gpt_drive_sectors - GPT_HEADER_SECTORS; in GptRepair()333 header2->entries_lba = header2->my_lba - CalculateEntriesSectors(header1); in GptRepair()340 header1->my_lba = GPT_PMBR_SECTORS; /* Second sector. */ in GptRepair()344 header1->entries_lba = header1->my_lba + 1; in GptRepair()
115 if (le64_to_cpu(gpt_h->my_lba) != lba) { in validate_gpt_header()117 le64_to_cpu(gpt_h->my_lba), in validate_gpt_header()170 val = le64_to_cpu(gpt_h->my_lba); in prepare_backup_gpt_header()171 gpt_h->my_lba = gpt_h->alternate_lba; in prepare_backup_gpt_header()396 if (blk_dwrite(dev_desc, (lbaint_t)le64_to_cpu(gpt_h->my_lba), 1, in write_gpt_table()425 size_t hdr_start = gpt_h->my_lba; in gpt_fill_pte()581 gpt_h->my_lba = cpu_to_le64(1); in gpt_fill_header()852 lba = le64_to_cpu(gpt_h->my_lba); in write_mbr_and_gpt_partitions()
42 h->my_lba = GPT_PMBR_SECTORS; /* The second sector on drive. */ in GptCreate()81 h->entries_lba = h->my_lba + GPT_HEADER_SECTORS; in GptCreate()
950 secondary_header->my_lba = gpt->gpt_drive_sectors - 1; /* the last sector */ in RepairHeader()951 secondary_header->alternate_lba = primary_header->my_lba; in RepairHeader()952 secondary_header->entries_lba = secondary_header->my_lba - in RepairHeader()957 primary_header->my_lba = GPT_PMBR_SECTORS; /* the second sector on drive */ in RepairHeader()958 primary_header->alternate_lba = secondary_header->my_lba; in RepairHeader()960 primary_header->entries_lba = primary_header->my_lba + GPT_HEADER_SECTORS; in RepairHeader()
77 printf("%sMy LBA: %lld\n", indent, (long long)header->my_lba); in HeaderDetails()
81 uint64_t my_lba; member
90 h->my_lba = MOCK_SECTOR_COUNT - GPT_HEADER_SECTORS; in SetupGptHeader()91 h->entries_lba = h->my_lba - CalculateEntriesSectors(h); in SetupGptHeader()93 h->my_lba = GPT_PMBR_SECTORS; in SetupGptHeader()94 h->entries_lba = h->my_lba + 1; in SetupGptHeader()
168 header->my_lba = 1; in BuildTestGptData()198 header2->my_lba = DEFAULT_DRIVE_SECTORS - 1; /* 466 */ in BuildTestGptData()542 h2->entries_lba = h2->my_lba - CalculateEntriesSectors(h2); in NumberOfPartitionEntriesTest()567 h1->my_lba--; in MyLbaTest()568 h2->my_lba--; in MyLbaTest()574 h1->my_lba = 2; in MyLbaTest()575 h2->my_lba--; in MyLbaTest()1467 secondary_header->entries_lba = secondary_header->my_lba - in CheckHeaderOffDevice()
84 __le64 my_lba; member