Lines Matching refs:le64_to_cpu
304 if (read_lba(state, le64_to_cpu(gpt->partition_entry_lba), in alloc_read_gpt_entries()
363 if (le64_to_cpu((*gpt)->signature) != GPT_HEADER_SIGNATURE) { in is_gpt_valid()
366 (unsigned long long)le64_to_cpu((*gpt)->signature), in is_gpt_valid()
402 if (le64_to_cpu((*gpt)->my_lba) != lba) { in is_gpt_valid()
404 (unsigned long long)le64_to_cpu((*gpt)->my_lba), in is_gpt_valid()
413 if (le64_to_cpu((*gpt)->first_usable_lba) > lastlba) { in is_gpt_valid()
415 (unsigned long long)le64_to_cpu((*gpt)->first_usable_lba), in is_gpt_valid()
419 if (le64_to_cpu((*gpt)->last_usable_lba) > lastlba) { in is_gpt_valid()
421 (unsigned long long)le64_to_cpu((*gpt)->last_usable_lba), in is_gpt_valid()
425 if (le64_to_cpu((*gpt)->last_usable_lba) < le64_to_cpu((*gpt)->first_usable_lba)) { in is_gpt_valid()
427 (unsigned long long)le64_to_cpu((*gpt)->last_usable_lba), in is_gpt_valid()
428 (unsigned long long)le64_to_cpu((*gpt)->first_usable_lba)); in is_gpt_valid()
480 le64_to_cpu(pte->starting_lba) > lastlba || in is_pte_valid()
481 le64_to_cpu(pte->ending_lba) > lastlba) in is_pte_valid()
502 if (le64_to_cpu(pgpt->my_lba) != le64_to_cpu(agpt->alternate_lba)) { in compare_gpts()
505 (unsigned long long)le64_to_cpu(pgpt->my_lba), in compare_gpts()
506 (unsigned long long)le64_to_cpu(agpt->alternate_lba)); in compare_gpts()
509 if (le64_to_cpu(pgpt->alternate_lba) != le64_to_cpu(agpt->my_lba)) { in compare_gpts()
512 (unsigned long long)le64_to_cpu(pgpt->alternate_lba), in compare_gpts()
513 (unsigned long long)le64_to_cpu(agpt->my_lba)); in compare_gpts()
516 if (le64_to_cpu(pgpt->first_usable_lba) != in compare_gpts()
517 le64_to_cpu(agpt->first_usable_lba)) { in compare_gpts()
520 (unsigned long long)le64_to_cpu(pgpt->first_usable_lba), in compare_gpts()
521 (unsigned long long)le64_to_cpu(agpt->first_usable_lba)); in compare_gpts()
524 if (le64_to_cpu(pgpt->last_usable_lba) != in compare_gpts()
525 le64_to_cpu(agpt->last_usable_lba)) { in compare_gpts()
528 (unsigned long long)le64_to_cpu(pgpt->last_usable_lba), in compare_gpts()
529 (unsigned long long)le64_to_cpu(agpt->last_usable_lba)); in compare_gpts()
560 if (le64_to_cpu(pgpt->alternate_lba) != lastlba) { in compare_gpts()
563 (unsigned long long)le64_to_cpu(pgpt->alternate_lba), in compare_gpts()
568 if (le64_to_cpu(agpt->my_lba) != lastlba) { in compare_gpts()
571 (unsigned long long)le64_to_cpu(agpt->my_lba), in compare_gpts()
633 le64_to_cpu(pgpt->alternate_lba), in find_valid_gpt()
711 u64 start = le64_to_cpu(ptes[i].starting_lba); in efi_partition()
712 u64 size = le64_to_cpu(ptes[i].ending_lba) - in efi_partition()
713 le64_to_cpu(ptes[i].starting_lba) + 1ULL; in efi_partition()