Lines Matching refs:le64_to_cpu
98 if (le64_to_cpu(gpt_h->signature) != GPT_HEADER_SIGNATURE_UBOOT) { in validate_gpt_header()
101 le64_to_cpu(gpt_h->signature), in validate_gpt_header()
125 if (le64_to_cpu(gpt_h->my_lba) != lba) { in validate_gpt_header()
127 le64_to_cpu(gpt_h->my_lba), in validate_gpt_header()
136 if (le64_to_cpu(gpt_h->first_usable_lba) > lastlba) { in validate_gpt_header()
138 le64_to_cpu(gpt_h->first_usable_lba), lastlba); in validate_gpt_header()
141 if (le64_to_cpu(gpt_h->last_usable_lba) > lastlba) { in validate_gpt_header()
143 le64_to_cpu(gpt_h->last_usable_lba), lastlba); in validate_gpt_header()
148 LBAF "\n", le64_to_cpu(gpt_h->first_usable_lba), in validate_gpt_header()
149 le64_to_cpu(gpt_h->last_usable_lba), lastlba); in validate_gpt_header()
180 val = le64_to_cpu(gpt_h->my_lba); in prepare_backup_gpt_header()
184 cpu_to_le64(le64_to_cpu(gpt_h->last_usable_lba) + 1); in prepare_backup_gpt_header()
244 le64_to_cpu(gpt_pte[i].starting_lba), in part_print_efi()
245 le64_to_cpu(gpt_pte[i].ending_lba), in part_print_efi()
291 info->start = (lbaint_t)le64_to_cpu(gpt_pte[part - 1].starting_lba); in part_get_info_efi()
293 info->size = (lbaint_t)le64_to_cpu(gpt_pte[part - 1].ending_lba) + 1 in part_get_info_efi()
397 if (blk_dwrite(dev_desc, le64_to_cpu(gpt_h->partition_entry_lba), in write_gpt_table()
403 if (blk_dwrite(dev_desc, (lbaint_t)le64_to_cpu(gpt_h->last_usable_lba) in write_gpt_table()
407 if (blk_dwrite(dev_desc, (lbaint_t)le64_to_cpu(gpt_h->my_lba), 1, in write_gpt_table()
423 lbaint_t offset = (lbaint_t)le64_to_cpu(gpt_h->first_usable_lba); in gpt_fill_pte()
425 le64_to_cpu(gpt_h->last_usable_lba); in gpt_fill_pte()
598 cpu_to_le64(le64_to_cpu(gpt_h->partition_entry_lba) + 32); in gpt_fill_header()
741 gpt_part_size = le64_to_cpu(gpt_e[i].ending_lba) - in gpt_verify_partitions()
742 le64_to_cpu(gpt_e[i].starting_lba) + 1; in gpt_verify_partitions()
747 if (le64_to_cpu(gpt_part_size) != partitions[i].size) { in gpt_verify_partitions()
769 le64_to_cpu(gpt_e[i].starting_lba), in gpt_verify_partitions()
772 if (le64_to_cpu(gpt_e[i].starting_lba) != partitions[i].start) { in gpt_verify_partitions()
774 efi_str, le64_to_cpu(gpt_e[i].starting_lba), in gpt_verify_partitions()
796 gpt_e = buf + (le64_to_cpu(gpt_h->partition_entry_lba) * in is_valid_gpt_buf()
820 gpt_e = buf + (le64_to_cpu(gpt_h->partition_entry_lba) * in write_mbr_and_gpt_partitions()
844 lba = le64_to_cpu(gpt_h->partition_entry_lba); in write_mbr_and_gpt_partitions()
855 lba = le64_to_cpu(gpt_h->partition_entry_lba); in write_mbr_and_gpt_partitions()
863 lba = le64_to_cpu(gpt_h->my_lba); in write_mbr_and_gpt_partitions()
953 if (le64_to_cpu(pgpt_head->signature) == GPT_HEADER_CHROMEOS_IGNORE) { in is_gpt_valid()
1065 blk = le64_to_cpu(pgpt_head->partition_entry_lba); in alloc_read_gpt_entries()