Lines Matching refs:lastlba
339 u64 lastlba, pt_size; in is_gpt_valid() local
396 lastlba = last_lba(state->disk); in is_gpt_valid()
397 if (le64_to_cpu((*gpt)->first_usable_lba) > lastlba) { in is_gpt_valid()
400 (unsigned long long)lastlba); in is_gpt_valid()
403 if (le64_to_cpu((*gpt)->last_usable_lba) > lastlba) { in is_gpt_valid()
406 (unsigned long long)lastlba); in is_gpt_valid()
461 is_pte_valid(const gpt_entry *pte, const u64 lastlba) in is_pte_valid() argument
464 le64_to_cpu(pte->starting_lba) > lastlba || in is_pte_valid()
465 le64_to_cpu(pte->ending_lba) > lastlba) in is_pte_valid()
481 compare_gpts(gpt_header *pgpt, gpt_header *agpt, u64 lastlba) in compare_gpts() argument
544 if (le64_to_cpu(pgpt->alternate_lba) != lastlba) { in compare_gpts()
548 (unsigned long long)lastlba); in compare_gpts()
552 if (le64_to_cpu(agpt->my_lba) != lastlba) { in compare_gpts()
556 (unsigned long long)lastlba); in compare_gpts()
591 u64 lastlba; in find_valid_gpt() local
596 lastlba = last_lba(state->disk); in find_valid_gpt()
622 good_agpt = is_gpt_valid(state, lastlba, &agpt, &aptes); in find_valid_gpt()
638 compare_gpts(pgpt, agpt, lastlba); in find_valid_gpt()