Lines Matching refs:lastlba
296 u64 lastlba;
336 lastlba = last_lba(state->bdev);
337 if (le64_to_cpu((*gpt)->first_usable_lba) > lastlba) {
340 (unsigned long long)lastlba);
343 if (le64_to_cpu((*gpt)->last_usable_lba) > lastlba) {
346 (unsigned long long)lastlba);
378 * @lastlba is last lba of the disk
383 is_pte_valid(const gpt_entry *pte, const u64 lastlba)
386 le64_to_cpu(pte->starting_lba) > lastlba ||
387 le64_to_cpu(pte->ending_lba) > lastlba)
396 * @lastlba is the last LBA number
402 compare_gpts(gpt_header *pgpt, gpt_header *agpt, u64 lastlba)
469 if (le64_to_cpu(pgpt->alternate_lba) != lastlba) {
474 (unsigned long long)lastlba);
478 if (le64_to_cpu(agpt->my_lba) != lastlba) {
483 (unsigned long long)lastlba);
515 u64 lastlba;
520 lastlba = last_lba(state->bdev);
541 good_agpt = is_gpt_valid(state, lastlba, &agpt, &aptes);
547 compare_gpts(pgpt, agpt, lastlba);