Lines Matching refs:sqnum
328 unsigned long long sqnum2 = be64_to_cpu(vid_hdr->sqnum); in ubi_compare_lebs()
330 if (sqnum2 == aeb->sqnum) { in ubi_compare_lebs()
344 second_is_newer = (sqnum2 > aeb->sqnum); in ubi_compare_lebs()
451 unsigned long long sqnum; in ubi_add_to_av() local
458 sqnum = be64_to_cpu(vid_hdr->sqnum); in ubi_add_to_av()
461 pnum, vol_id, lnum, ec, sqnum, bitflips); in ubi_add_to_av()
467 if (ai->max_sqnum < sqnum) in ubi_add_to_av()
468 ai->max_sqnum = sqnum; in ubi_add_to_av()
494 aeb->pnum, aeb->sqnum, aeb->ec); in ubi_add_to_av()
509 if (aeb->sqnum == sqnum && sqnum != 0) { in ubi_add_to_av()
511 sqnum); in ubi_add_to_av()
546 aeb->sqnum = sqnum; in ubi_add_to_av()
582 aeb->sqnum = sqnum; in ubi_add_to_av()
817 int pnum, int *vid, unsigned long long *sqnum) in scan_peb() argument
993 if (sqnum) in scan_peb()
994 *sqnum = be64_to_cpu(vidh->sqnum); in scan_peb()
1330 unsigned long long sqnum = -1; in scan_fast() local
1334 err = scan_peb(ubi, ai, pnum, &vol_id, &sqnum); in scan_fast()
1338 if (vol_id == UBI_FM_SB_VOLUME_ID && sqnum > max_sqnum) { in scan_fast()
1339 max_sqnum = sqnum; in scan_fast()
1645 if (aeb->sqnum != be64_to_cpu(vidh->sqnum)) { in self_check_ai()
1646 ubi_err("bad sqnum %llu", aeb->sqnum); in self_check_ai()