Lines Matching refs:le64_to_cpu
288 if (read_lba(state, le64_to_cpu(gpt->partition_entry_lba), in alloc_read_gpt_entries()
347 if (le64_to_cpu((*gpt)->signature) != GPT_HEADER_SIGNATURE) { in is_gpt_valid()
350 (unsigned long long)le64_to_cpu((*gpt)->signature), in is_gpt_valid()
386 if (le64_to_cpu((*gpt)->my_lba) != lba) { in is_gpt_valid()
388 (unsigned long long)le64_to_cpu((*gpt)->my_lba), in is_gpt_valid()
397 if (le64_to_cpu((*gpt)->first_usable_lba) > lastlba) { in is_gpt_valid()
399 (unsigned long long)le64_to_cpu((*gpt)->first_usable_lba), in is_gpt_valid()
403 if (le64_to_cpu((*gpt)->last_usable_lba) > lastlba) { in is_gpt_valid()
405 (unsigned long long)le64_to_cpu((*gpt)->last_usable_lba), in is_gpt_valid()
409 if (le64_to_cpu((*gpt)->last_usable_lba) < le64_to_cpu((*gpt)->first_usable_lba)) { in is_gpt_valid()
411 (unsigned long long)le64_to_cpu((*gpt)->last_usable_lba), in is_gpt_valid()
412 (unsigned long long)le64_to_cpu((*gpt)->first_usable_lba)); in is_gpt_valid()
464 le64_to_cpu(pte->starting_lba) > lastlba || in is_pte_valid()
465 le64_to_cpu(pte->ending_lba) > lastlba) in is_pte_valid()
486 if (le64_to_cpu(pgpt->my_lba) != le64_to_cpu(agpt->alternate_lba)) { in compare_gpts()
489 (unsigned long long)le64_to_cpu(pgpt->my_lba), in compare_gpts()
490 (unsigned long long)le64_to_cpu(agpt->alternate_lba)); in compare_gpts()
493 if (le64_to_cpu(pgpt->alternate_lba) != le64_to_cpu(agpt->my_lba)) { in compare_gpts()
496 (unsigned long long)le64_to_cpu(pgpt->alternate_lba), in compare_gpts()
497 (unsigned long long)le64_to_cpu(agpt->my_lba)); in compare_gpts()
500 if (le64_to_cpu(pgpt->first_usable_lba) != in compare_gpts()
501 le64_to_cpu(agpt->first_usable_lba)) { in compare_gpts()
504 (unsigned long long)le64_to_cpu(pgpt->first_usable_lba), in compare_gpts()
505 (unsigned long long)le64_to_cpu(agpt->first_usable_lba)); in compare_gpts()
508 if (le64_to_cpu(pgpt->last_usable_lba) != in compare_gpts()
509 le64_to_cpu(agpt->last_usable_lba)) { in compare_gpts()
512 (unsigned long long)le64_to_cpu(pgpt->last_usable_lba), in compare_gpts()
513 (unsigned long long)le64_to_cpu(agpt->last_usable_lba)); in compare_gpts()
544 if (le64_to_cpu(pgpt->alternate_lba) != lastlba) { in compare_gpts()
547 (unsigned long long)le64_to_cpu(pgpt->alternate_lba), in compare_gpts()
552 if (le64_to_cpu(agpt->my_lba) != lastlba) { in compare_gpts()
555 (unsigned long long)le64_to_cpu(agpt->my_lba), in compare_gpts()
619 le64_to_cpu(pgpt->alternate_lba), in find_valid_gpt()
731 u64 start = le64_to_cpu(ptes[i].starting_lba); in efi_partition()
732 u64 size = le64_to_cpu(ptes[i].ending_lba) - in efi_partition()
733 le64_to_cpu(ptes[i].starting_lba) + 1ULL; in efi_partition()