Lines Matching refs:lnum

190 	aeb->lnum = UBI_UNKNOWN;  in ubi_alloc_aeb()
230 int lnum, int ec, int to_head, struct list_head *list) in add_to_list() argument
249 aeb->lnum = lnum; in add_to_list()
566 int err, vol_id, lnum; in ubi_add_to_av() local
573 lnum = be32_to_cpu(vid_hdr->lnum); in ubi_add_to_av()
577 pnum, vol_id, lnum, ec, sqnum, bitflips); in ubi_add_to_av()
596 if (lnum != aeb->lnum) { in ubi_add_to_av()
597 if (lnum < aeb->lnum) in ubi_add_to_av()
651 aeb->lnum, aeb->ec, cmp_res & 4, in ubi_add_to_av()
659 aeb->lnum = lnum; in ubi_add_to_av()
664 if (av->highest_lnum == lnum) in ubi_add_to_av()
674 return add_to_list(ai, pnum, vol_id, lnum, ec, in ubi_add_to_av()
693 aeb->lnum = lnum; in ubi_add_to_av()
698 if (av->highest_lnum <= lnum) { in ubi_add_to_av()
699 av->highest_lnum = lnum; in ubi_add_to_av()
1135 int lnum = be32_to_cpu(vidh->lnum); in scan_peb() local
1141 vol_id, lnum); in scan_peb()
1143 err = add_to_list(ai, pnum, vol_id, lnum, in scan_peb()
1151 vol_id, lnum); in scan_peb()
1157 vol_id, lnum); in scan_peb()
1158 err = add_to_list(ai, pnum, vol_id, lnum, in scan_peb()
1166 vol_id, lnum); in scan_peb()
1747 if (aeb->lnum >= av->used_ebs) { in self_check_ai()
1758 if (aeb->lnum > av->highest_lnum) { in self_check_ai()
1775 if (aeb->lnum != av->highest_lnum) { in self_check_ai()
1828 if (aeb->lnum != be32_to_cpu(vidh->lnum)) { in self_check_ai()
1829 ubi_err(ubi, "bad lnum %d", aeb->lnum); in self_check_ai()
1847 if (av->highest_lnum != be32_to_cpu(vidh->lnum)) { in self_check_ai()
1905 ubi_err(ubi, "bad attaching information about LEB %d", aeb->lnum); in self_check_ai()