lnum              190 drivers/mtd/ubi/attach.c 	aeb->lnum = UBI_UNKNOWN;
lnum              230 drivers/mtd/ubi/attach.c 		       int lnum, int ec, int to_head, struct list_head *list)
lnum              249 drivers/mtd/ubi/attach.c 	aeb->lnum = lnum;
lnum              566 drivers/mtd/ubi/attach.c 	int err, vol_id, lnum;
lnum              573 drivers/mtd/ubi/attach.c 	lnum = be32_to_cpu(vid_hdr->lnum);
lnum              577 drivers/mtd/ubi/attach.c 		pnum, vol_id, lnum, ec, sqnum, bitflips);
lnum              596 drivers/mtd/ubi/attach.c 		if (lnum != aeb->lnum) {
lnum              597 drivers/mtd/ubi/attach.c 			if (lnum < aeb->lnum)
lnum              651 drivers/mtd/ubi/attach.c 					  aeb->lnum, aeb->ec, cmp_res & 4,
lnum              659 drivers/mtd/ubi/attach.c 			aeb->lnum = lnum;
lnum              664 drivers/mtd/ubi/attach.c 			if (av->highest_lnum == lnum)
lnum              674 drivers/mtd/ubi/attach.c 			return add_to_list(ai, pnum, vol_id, lnum, ec,
lnum              693 drivers/mtd/ubi/attach.c 	aeb->lnum = lnum;
lnum              698 drivers/mtd/ubi/attach.c 	if (av->highest_lnum <= lnum) {
lnum              699 drivers/mtd/ubi/attach.c 		av->highest_lnum = lnum;
lnum             1135 drivers/mtd/ubi/attach.c 		int lnum = be32_to_cpu(vidh->lnum);
lnum             1141 drivers/mtd/ubi/attach.c 				vol_id, lnum);
lnum             1143 drivers/mtd/ubi/attach.c 			err = add_to_list(ai, pnum, vol_id, lnum,
lnum             1151 drivers/mtd/ubi/attach.c 				vol_id, lnum);
lnum             1157 drivers/mtd/ubi/attach.c 				vol_id, lnum);
lnum             1158 drivers/mtd/ubi/attach.c 			err = add_to_list(ai, pnum, vol_id, lnum,
lnum             1166 drivers/mtd/ubi/attach.c 				vol_id, lnum);
lnum             1747 drivers/mtd/ubi/attach.c 				if (aeb->lnum >= av->used_ebs) {
lnum             1758 drivers/mtd/ubi/attach.c 			if (aeb->lnum > av->highest_lnum) {
lnum             1775 drivers/mtd/ubi/attach.c 		if (aeb->lnum != av->highest_lnum) {
lnum             1828 drivers/mtd/ubi/attach.c 			if (aeb->lnum != be32_to_cpu(vidh->lnum)) {
lnum             1829 drivers/mtd/ubi/attach.c 				ubi_err(ubi, "bad lnum %d", aeb->lnum);
lnum             1847 drivers/mtd/ubi/attach.c 		if (av->highest_lnum != be32_to_cpu(vidh->lnum)) {
lnum             1905 drivers/mtd/ubi/attach.c 	ubi_err(ubi, "bad attaching information about LEB %d", aeb->lnum);
lnum              177 drivers/mtd/ubi/cdev.c 	int err, lnum, off, len,  tbuf_size;
lnum              209 drivers/mtd/ubi/cdev.c 	lnum = div_u64_rem(*offp, vol->usable_leb_size, &off);
lnum              217 drivers/mtd/ubi/cdev.c 		err = ubi_eba_read_leb(ubi, vol, lnum, tbuf, off, len, 0);
lnum              223 drivers/mtd/ubi/cdev.c 			lnum += 1;
lnum              254 drivers/mtd/ubi/cdev.c 	int lnum, off, len, tbuf_size, err = 0;
lnum              267 drivers/mtd/ubi/cdev.c 	lnum = div_u64_rem(*offp, vol->usable_leb_size, &off);
lnum              303 drivers/mtd/ubi/cdev.c 		err = ubi_eba_write_leb(ubi, vol, lnum, tbuf, off, len);
lnum              309 drivers/mtd/ubi/cdev.c 			lnum += 1;
lnum              448 drivers/mtd/ubi/cdev.c 		if (!ubi_leb_valid(vol, req.lnum) ||
lnum              465 drivers/mtd/ubi/cdev.c 		int32_t lnum;
lnum              467 drivers/mtd/ubi/cdev.c 		err = get_user(lnum, (__user int32_t *)argp);
lnum              479 drivers/mtd/ubi/cdev.c 		if (!ubi_leb_valid(vol, lnum)) {
lnum              484 drivers/mtd/ubi/cdev.c 		dbg_gen("erase LEB %d:%d", vol->vol_id, lnum);
lnum              485 drivers/mtd/ubi/cdev.c 		err = ubi_eba_unmap_leb(ubi, vol, lnum);
lnum              503 drivers/mtd/ubi/cdev.c 		err = ubi_leb_map(desc, req.lnum);
lnum              510 drivers/mtd/ubi/cdev.c 		int32_t lnum;
lnum              512 drivers/mtd/ubi/cdev.c 		err = get_user(lnum, (__user int32_t *)argp);
lnum              517 drivers/mtd/ubi/cdev.c 		err = ubi_leb_unmap(desc, lnum);
lnum              524 drivers/mtd/ubi/cdev.c 		int32_t lnum;
lnum              526 drivers/mtd/ubi/cdev.c 		err = get_user(lnum, (__user int32_t *)argp);
lnum              531 drivers/mtd/ubi/cdev.c 		err = ubi_is_mapped(desc, lnum);
lnum               79 drivers/mtd/ubi/debug.c 	pr_err("\tlnum      %d\n",  be32_to_cpu(vid_hdr->lnum));
lnum              182 drivers/mtd/ubi/debug.c 		pr_err("\tlnum     %d\n", aeb->lnum);
lnum              107 drivers/mtd/ubi/eba.c void ubi_eba_get_ldesc(struct ubi_volume *vol, int lnum,
lnum              110 drivers/mtd/ubi/eba.c 	ldesc->lnum = lnum;
lnum              111 drivers/mtd/ubi/eba.c 	ldesc->pnum = vol->eba_tbl->entries[lnum].pnum;
lnum              212 drivers/mtd/ubi/eba.c 					    int lnum)
lnum              227 drivers/mtd/ubi/eba.c 			if (lnum < le->lnum)
lnum              229 drivers/mtd/ubi/eba.c 			else if (lnum > le->lnum)
lnum              251 drivers/mtd/ubi/eba.c 					       int vol_id, int lnum)
lnum              262 drivers/mtd/ubi/eba.c 	le->lnum = lnum;
lnum              265 drivers/mtd/ubi/eba.c 	le1 = ltree_lookup(ubi, vol_id, lnum);
lnum              293 drivers/mtd/ubi/eba.c 				ubi_assert(lnum != le1->lnum);
lnum              294 drivers/mtd/ubi/eba.c 				if (lnum < le1->lnum)
lnum              320 drivers/mtd/ubi/eba.c static int leb_read_lock(struct ubi_device *ubi, int vol_id, int lnum)
lnum              324 drivers/mtd/ubi/eba.c 	le = ltree_add_entry(ubi, vol_id, lnum);
lnum              337 drivers/mtd/ubi/eba.c static void leb_read_unlock(struct ubi_device *ubi, int vol_id, int lnum)
lnum              342 drivers/mtd/ubi/eba.c 	le = ltree_lookup(ubi, vol_id, lnum);
lnum              362 drivers/mtd/ubi/eba.c static int leb_write_lock(struct ubi_device *ubi, int vol_id, int lnum)
lnum              366 drivers/mtd/ubi/eba.c 	le = ltree_add_entry(ubi, vol_id, lnum);
lnum              384 drivers/mtd/ubi/eba.c static int leb_write_trylock(struct ubi_device *ubi, int vol_id, int lnum)
lnum              388 drivers/mtd/ubi/eba.c 	le = ltree_add_entry(ubi, vol_id, lnum);
lnum              413 drivers/mtd/ubi/eba.c static void leb_write_unlock(struct ubi_device *ubi, int vol_id, int lnum)
lnum              418 drivers/mtd/ubi/eba.c 	le = ltree_lookup(ubi, vol_id, lnum);
lnum              436 drivers/mtd/ubi/eba.c bool ubi_eba_is_mapped(struct ubi_volume *vol, int lnum)
lnum              438 drivers/mtd/ubi/eba.c 	return vol->eba_tbl->entries[lnum].pnum >= 0;
lnum              452 drivers/mtd/ubi/eba.c 		      int lnum)
lnum              459 drivers/mtd/ubi/eba.c 	err = leb_write_lock(ubi, vol_id, lnum);
lnum              463 drivers/mtd/ubi/eba.c 	pnum = vol->eba_tbl->entries[lnum].pnum;
lnum              468 drivers/mtd/ubi/eba.c 	dbg_eba("erase LEB %d:%d, PEB %d", vol_id, lnum, pnum);
lnum              471 drivers/mtd/ubi/eba.c 	vol->eba_tbl->entries[lnum].pnum = UBI_LEB_UNMAPPED;
lnum              473 drivers/mtd/ubi/eba.c 	err = ubi_wl_put_peb(ubi, vol_id, lnum, pnum, 0);
lnum              476 drivers/mtd/ubi/eba.c 	leb_write_unlock(ubi, vol_id, lnum);
lnum              498 drivers/mtd/ubi/eba.c static int check_mapping(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
lnum              508 drivers/mtd/ubi/eba.c 	if (!vol->checkmap || test_bit(lnum, vol->checkmap))
lnum              533 drivers/mtd/ubi/eba.c 		vol->eba_tbl->entries[lnum].pnum = UBI_LEB_UNMAPPED;
lnum              535 drivers/mtd/ubi/eba.c 		ubi_wl_put_peb(ubi, vol->vol_id, lnum, *pnum, torture);
lnum              550 drivers/mtd/ubi/eba.c 		found_lnum = be32_to_cpu(vid_hdr->lnum);
lnum              552 drivers/mtd/ubi/eba.c 		if (found_lnum != lnum || found_vol_id != vol->vol_id) {
lnum              554 drivers/mtd/ubi/eba.c 				*pnum, found_vol_id, found_lnum, vol->vol_id, lnum);
lnum              561 drivers/mtd/ubi/eba.c 	set_bit(lnum, vol->checkmap);
lnum              570 drivers/mtd/ubi/eba.c static int check_mapping(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
lnum              596 drivers/mtd/ubi/eba.c int ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
lnum              604 drivers/mtd/ubi/eba.c 	err = leb_read_lock(ubi, vol_id, lnum);
lnum              608 drivers/mtd/ubi/eba.c 	pnum = vol->eba_tbl->entries[lnum].pnum;
lnum              610 drivers/mtd/ubi/eba.c 		err = check_mapping(ubi, vol, lnum, &pnum);
lnum              622 drivers/mtd/ubi/eba.c 			len, offset, vol_id, lnum);
lnum              623 drivers/mtd/ubi/eba.c 		leb_read_unlock(ubi, vol_id, lnum);
lnum              630 drivers/mtd/ubi/eba.c 		len, offset, vol_id, lnum, pnum);
lnum              659 drivers/mtd/ubi/eba.c 						 pnum, vol_id, lnum);
lnum              687 drivers/mtd/ubi/eba.c 		ubi_assert(lnum < be32_to_cpu(vid_hdr->used_ebs));
lnum              724 drivers/mtd/ubi/eba.c 	leb_read_unlock(ubi, vol_id, lnum);
lnum              730 drivers/mtd/ubi/eba.c 	leb_read_unlock(ubi, vol_id, lnum);
lnum              749 drivers/mtd/ubi/eba.c 			struct ubi_sgl *sgl, int lnum, int offset, int len,
lnum              764 drivers/mtd/ubi/eba.c 		ret = ubi_eba_read_leb(ubi, vol, lnum,
lnum              807 drivers/mtd/ubi/eba.c static int try_recover_peb(struct ubi_volume *vol, int pnum, int lnum,
lnum              867 drivers/mtd/ubi/eba.c 		vol->eba_tbl->entries[lnum].pnum = new_pnum;
lnum              873 drivers/mtd/ubi/eba.c 		ubi_wl_put_peb(ubi, vol_id, lnum, pnum, 1);
lnum              880 drivers/mtd/ubi/eba.c 		ubi_wl_put_peb(ubi, vol_id, lnum, new_pnum, 1);
lnum              903 drivers/mtd/ubi/eba.c static int recover_peb(struct ubi_device *ubi, int pnum, int vol_id, int lnum,
lnum              917 drivers/mtd/ubi/eba.c 		err = try_recover_peb(vol, pnum, lnum, buf, offset, len, vidb,
lnum              945 drivers/mtd/ubi/eba.c static int try_write_vid_and_data(struct ubi_volume *vol, int lnum,
lnum              958 drivers/mtd/ubi/eba.c 	opnum = vol->eba_tbl->entries[lnum].pnum;
lnum              961 drivers/mtd/ubi/eba.c 		len, offset, vol_id, lnum, pnum);
lnum              966 drivers/mtd/ubi/eba.c 			 vol_id, lnum, pnum);
lnum              975 drivers/mtd/ubi/eba.c 				 len, offset, vol_id, lnum, pnum);
lnum              980 drivers/mtd/ubi/eba.c 	vol->eba_tbl->entries[lnum].pnum = pnum;
lnum              986 drivers/mtd/ubi/eba.c 		err = ubi_wl_put_peb(ubi, vol_id, lnum, pnum, 1);
lnum              988 drivers/mtd/ubi/eba.c 		err = ubi_wl_put_peb(ubi, vol_id, lnum, opnum, 0);
lnum             1008 drivers/mtd/ubi/eba.c int ubi_eba_write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
lnum             1018 drivers/mtd/ubi/eba.c 	err = leb_write_lock(ubi, vol_id, lnum);
lnum             1022 drivers/mtd/ubi/eba.c 	pnum = vol->eba_tbl->entries[lnum].pnum;
lnum             1024 drivers/mtd/ubi/eba.c 		err = check_mapping(ubi, vol, lnum, &pnum);
lnum             1031 drivers/mtd/ubi/eba.c 			len, offset, vol_id, lnum, pnum);
lnum             1037 drivers/mtd/ubi/eba.c 				err = recover_peb(ubi, pnum, vol_id, lnum, buf,
lnum             1050 drivers/mtd/ubi/eba.c 		leb_write_unlock(ubi, vol_id, lnum);
lnum             1059 drivers/mtd/ubi/eba.c 	vid_hdr->lnum = cpu_to_be32(lnum);
lnum             1064 drivers/mtd/ubi/eba.c 		err = try_write_vid_and_data(vol, lnum, vidb, buf, offset, len);
lnum             1084 drivers/mtd/ubi/eba.c 	leb_write_unlock(ubi, vol_id, lnum);
lnum             1112 drivers/mtd/ubi/eba.c 			 int lnum, const void *buf, int len, int used_ebs)
lnum             1122 drivers/mtd/ubi/eba.c 	if (lnum == used_ebs - 1)
lnum             1134 drivers/mtd/ubi/eba.c 	err = leb_write_lock(ubi, vol_id, lnum);
lnum             1140 drivers/mtd/ubi/eba.c 	vid_hdr->lnum = cpu_to_be32(lnum);
lnum             1150 drivers/mtd/ubi/eba.c 	ubi_assert(vol->eba_tbl->entries[lnum].pnum < 0);
lnum             1153 drivers/mtd/ubi/eba.c 		err = try_write_vid_and_data(vol, lnum, vidb, buf, 0, len);
lnum             1164 drivers/mtd/ubi/eba.c 	leb_write_unlock(ubi, vol_id, lnum);
lnum             1190 drivers/mtd/ubi/eba.c 			      int lnum, const void *buf, int len)
lnum             1205 drivers/mtd/ubi/eba.c 		err = ubi_eba_unmap_leb(ubi, vol, lnum);
lnum             1208 drivers/mtd/ubi/eba.c 		return ubi_eba_write_leb(ubi, vol, lnum, NULL, 0, 0);
lnum             1218 drivers/mtd/ubi/eba.c 	err = leb_write_lock(ubi, vol_id, lnum);
lnum             1224 drivers/mtd/ubi/eba.c 	vid_hdr->lnum = cpu_to_be32(lnum);
lnum             1234 drivers/mtd/ubi/eba.c 	dbg_eba("change LEB %d:%d", vol_id, lnum);
lnum             1237 drivers/mtd/ubi/eba.c 		err = try_write_vid_and_data(vol, lnum, vidb, buf, 0, len);
lnum             1253 drivers/mtd/ubi/eba.c 	leb_write_unlock(ubi, vol_id, lnum);
lnum             1305 drivers/mtd/ubi/eba.c 	int err, vol_id, lnum, data_size, aldata_size, idx;
lnum             1313 drivers/mtd/ubi/eba.c 	lnum = be32_to_cpu(vid_hdr->lnum);
lnum             1315 drivers/mtd/ubi/eba.c 	dbg_wl("copy LEB %d:%d, PEB %d to PEB %d", vol_id, lnum, from, to);
lnum             1355 drivers/mtd/ubi/eba.c 	err = leb_write_trylock(ubi, vol_id, lnum);
lnum             1357 drivers/mtd/ubi/eba.c 		dbg_wl("contention on LEB %d:%d, cancel", vol_id, lnum);
lnum             1366 drivers/mtd/ubi/eba.c 	if (vol->eba_tbl->entries[lnum].pnum != from) {
lnum             1368 drivers/mtd/ubi/eba.c 		       vol_id, lnum, from, vol->eba_tbl->entries[lnum].pnum);
lnum             1453 drivers/mtd/ubi/eba.c 	ubi_assert(vol->eba_tbl->entries[lnum].pnum == from);
lnum             1454 drivers/mtd/ubi/eba.c 	vol->eba_tbl->entries[lnum].pnum = to;
lnum             1459 drivers/mtd/ubi/eba.c 	leb_write_unlock(ubi, vol_id, lnum);
lnum             1565 drivers/mtd/ubi/eba.c 			scan_eba[i][aeb->lnum] = aeb->pnum;
lnum             1572 drivers/mtd/ubi/eba.c 			fm_eba[i][aeb->lnum] = aeb->pnum;
lnum             1649 drivers/mtd/ubi/eba.c 			if (aeb->lnum >= vol->reserved_pebs) {
lnum             1658 drivers/mtd/ubi/eba.c 				entry = &vol->eba_tbl->entries[aeb->lnum];
lnum              314 drivers/mtd/ubi/fastmap-wl.c 		      int lnum, int torture)
lnum              339 drivers/mtd/ubi/fastmap-wl.c 	vol_id = lnum ? UBI_FM_DATA_VOLUME_ID : UBI_FM_SB_VOLUME_ID;
lnum              340 drivers/mtd/ubi/fastmap-wl.c 	return schedule_erase(ubi, e, vol_id, lnum, torture, true);
lnum              145 drivers/mtd/ubi/fastmap.c 	aeb->lnum = -1;
lnum              214 drivers/mtd/ubi/fastmap.c 		if (aeb->lnum != tmp_aeb->lnum) {
lnum              215 drivers/mtd/ubi/fastmap.c 			if (aeb->lnum < tmp_aeb->lnum)
lnum              254 drivers/mtd/ubi/fastmap.c 		if (be32_to_cpu(new_vh->lnum) != aeb->lnum) {
lnum              255 drivers/mtd/ubi/fastmap.c 			if (be32_to_cpu(new_vh->lnum) < aeb->lnum)
lnum              268 drivers/mtd/ubi/fastmap.c 			ubi_assert(aeb->lnum == new_aeb->lnum);
lnum              286 drivers/mtd/ubi/fastmap.c 			if (av->highest_lnum == be32_to_cpu(new_vh->lnum))
lnum              291 drivers/mtd/ubi/fastmap.c 				av->vol_id, aeb->lnum, new_aeb->pnum);
lnum              303 drivers/mtd/ubi/fastmap.c 				av->vol_id, aeb->lnum, new_aeb->pnum);
lnum              311 drivers/mtd/ubi/fastmap.c 	if (av->highest_lnum <= be32_to_cpu(new_vh->lnum)) {
lnum              312 drivers/mtd/ubi/fastmap.c 		av->highest_lnum = be32_to_cpu(new_vh->lnum);
lnum              485 drivers/mtd/ubi/fastmap.c 			new_aeb->lnum = be32_to_cpu(vh->lnum);
lnum              743 drivers/mtd/ubi/fastmap.c 			aeb->lnum = j;
lnum              745 drivers/mtd/ubi/fastmap.c 			if (av->highest_lnum <= aeb->lnum)
lnum              746 drivers/mtd/ubi/fastmap.c 				av->highest_lnum = aeb->lnum;
lnum              751 drivers/mtd/ubi/fastmap.c 				aeb->pnum, aeb->lnum, av->vol_id);
lnum              832 drivers/mtd/ubi/fastmap.c 	new->lnum = old->lnum;
lnum             1322 drivers/mtd/ubi/fastmap.c 	avhdr->lnum = 0;
lnum             1346 drivers/mtd/ubi/fastmap.c 		dvhdr->lnum = cpu_to_be32(i);
lnum              156 drivers/mtd/ubi/gluebi.c 	int err = 0, lnum, offs, bytes_left;
lnum              160 drivers/mtd/ubi/gluebi.c 	lnum = div_u64_rem(from, mtd->erasesize, &offs);
lnum              168 drivers/mtd/ubi/gluebi.c 		err = ubi_read(gluebi->desc, lnum, buf, offs, to_read);
lnum              172 drivers/mtd/ubi/gluebi.c 		lnum += 1;
lnum              196 drivers/mtd/ubi/gluebi.c 	int err = 0, lnum, offs, bytes_left;
lnum              200 drivers/mtd/ubi/gluebi.c 	lnum = div_u64_rem(to, mtd->erasesize, &offs);
lnum              212 drivers/mtd/ubi/gluebi.c 		err = ubi_leb_write(gluebi->desc, lnum, buf, offs, to_write);
lnum              216 drivers/mtd/ubi/gluebi.c 		lnum += 1;
lnum              236 drivers/mtd/ubi/gluebi.c 	int err, i, lnum, count;
lnum              242 drivers/mtd/ubi/gluebi.c 	lnum = mtd_div_by_eb(instr->addr, mtd);
lnum              247 drivers/mtd/ubi/gluebi.c 		err = ubi_leb_unmap(gluebi->desc, lnum + i);
lnum              258 drivers/mtd/ubi/gluebi.c 	err = ubi_leb_erase(gluebi->desc, lnum + i);
lnum              265 drivers/mtd/ubi/gluebi.c 	instr->fail_addr = (long long)lnum * mtd->erasesize;
lnum              838 drivers/mtd/ubi/io.c 	int lnum = be32_to_cpu(vid_hdr->lnum);
lnum              851 drivers/mtd/ubi/io.c 	if (vol_id < 0 || lnum < 0 || data_size < 0 || used_ebs < 0 ||
lnum              904 drivers/mtd/ubi/io.c 		if (lnum < used_ebs - 1) {
lnum              909 drivers/mtd/ubi/io.c 		} else if (lnum == used_ebs - 1) {
lnum              368 drivers/mtd/ubi/kapi.c static int leb_read_sanity_check(struct ubi_volume_desc *desc, int lnum,
lnum              375 drivers/mtd/ubi/kapi.c 	if (vol_id < 0 || vol_id >= ubi->vtbl_slots || lnum < 0 ||
lnum              376 drivers/mtd/ubi/kapi.c 	    lnum >= vol->used_ebs || offset < 0 || len < 0 ||
lnum              384 drivers/mtd/ubi/kapi.c 		if (lnum == vol->used_ebs - 1 &&
lnum              422 drivers/mtd/ubi/kapi.c int ubi_leb_read(struct ubi_volume_desc *desc, int lnum, char *buf, int offset,
lnum              429 drivers/mtd/ubi/kapi.c 	dbg_gen("read %d bytes from LEB %d:%d:%d", len, vol_id, lnum, offset);
lnum              431 drivers/mtd/ubi/kapi.c 	err = leb_read_sanity_check(desc, lnum, offset, len);
lnum              438 drivers/mtd/ubi/kapi.c 	err = ubi_eba_read_leb(ubi, vol, lnum, buf, offset, len, check);
lnum              462 drivers/mtd/ubi/kapi.c int ubi_leb_read_sg(struct ubi_volume_desc *desc, int lnum, struct ubi_sgl *sgl,
lnum              469 drivers/mtd/ubi/kapi.c 	dbg_gen("read %d bytes from LEB %d:%d:%d", len, vol_id, lnum, offset);
lnum              471 drivers/mtd/ubi/kapi.c 	err = leb_read_sanity_check(desc, lnum, offset, len);
lnum              478 drivers/mtd/ubi/kapi.c 	err = ubi_eba_read_leb_sg(ubi, vol, sgl, lnum, offset, len, check);
lnum              513 drivers/mtd/ubi/kapi.c int ubi_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf,
lnum              520 drivers/mtd/ubi/kapi.c 	dbg_gen("write %d bytes to LEB %d:%d:%d", len, vol_id, lnum, offset);
lnum              528 drivers/mtd/ubi/kapi.c 	if (!ubi_leb_valid(vol, lnum) || offset < 0 || len < 0 ||
lnum              539 drivers/mtd/ubi/kapi.c 	return ubi_eba_write_leb(ubi, vol, lnum, buf, offset, len);
lnum              558 drivers/mtd/ubi/kapi.c int ubi_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf,
lnum              565 drivers/mtd/ubi/kapi.c 	dbg_gen("atomically write %d bytes to LEB %d:%d", len, vol_id, lnum);
lnum              573 drivers/mtd/ubi/kapi.c 	if (!ubi_leb_valid(vol, lnum) || len < 0 ||
lnum              583 drivers/mtd/ubi/kapi.c 	return ubi_eba_atomic_leb_change(ubi, vol, lnum, buf, len);
lnum              599 drivers/mtd/ubi/kapi.c int ubi_leb_erase(struct ubi_volume_desc *desc, int lnum)
lnum              605 drivers/mtd/ubi/kapi.c 	dbg_gen("erase LEB %d:%d", vol->vol_id, lnum);
lnum              610 drivers/mtd/ubi/kapi.c 	if (!ubi_leb_valid(vol, lnum))
lnum              616 drivers/mtd/ubi/kapi.c 	err = ubi_eba_unmap_leb(ubi, vol, lnum);
lnum              620 drivers/mtd/ubi/kapi.c 	return ubi_wl_flush(ubi, vol->vol_id, lnum);
lnum              660 drivers/mtd/ubi/kapi.c int ubi_leb_unmap(struct ubi_volume_desc *desc, int lnum)
lnum              665 drivers/mtd/ubi/kapi.c 	dbg_gen("unmap LEB %d:%d", vol->vol_id, lnum);
lnum              670 drivers/mtd/ubi/kapi.c 	if (!ubi_leb_valid(vol, lnum))
lnum              676 drivers/mtd/ubi/kapi.c 	return ubi_eba_unmap_leb(ubi, vol, lnum);
lnum              696 drivers/mtd/ubi/kapi.c int ubi_leb_map(struct ubi_volume_desc *desc, int lnum)
lnum              701 drivers/mtd/ubi/kapi.c 	dbg_gen("map LEB %d:%d", vol->vol_id, lnum);
lnum              706 drivers/mtd/ubi/kapi.c 	if (!ubi_leb_valid(vol, lnum))
lnum              712 drivers/mtd/ubi/kapi.c 	if (ubi_eba_is_mapped(vol, lnum))
lnum              715 drivers/mtd/ubi/kapi.c 	return ubi_eba_write_leb(ubi, vol, lnum, NULL, 0, 0);
lnum              735 drivers/mtd/ubi/kapi.c int ubi_is_mapped(struct ubi_volume_desc *desc, int lnum)
lnum              739 drivers/mtd/ubi/kapi.c 	dbg_gen("test LEB %d:%d", vol->vol_id, lnum);
lnum              741 drivers/mtd/ubi/kapi.c 	if (!ubi_leb_valid(vol, lnum))
lnum              747 drivers/mtd/ubi/kapi.c 	return ubi_eba_is_mapped(vol, lnum);
lnum              785 drivers/mtd/ubi/kapi.c int ubi_flush(int ubi_num, int vol_id, int lnum)
lnum              794 drivers/mtd/ubi/kapi.c 	err = ubi_wl_flush(ubi, vol_id, lnum);
lnum              275 drivers/mtd/ubi/ubi-media.h 	__be32  lnum;
lnum              204 drivers/mtd/ubi/ubi.h 	int lnum;
lnum              278 drivers/mtd/ubi/ubi.h 	int lnum;
lnum              677 drivers/mtd/ubi/ubi.h 	int lnum;
lnum              806 drivers/mtd/ubi/ubi.h 	int lnum;
lnum              869 drivers/mtd/ubi/ubi.h static inline bool ubi_leb_valid(struct ubi_volume *vol, int lnum)
lnum              871 drivers/mtd/ubi/ubi.h 	return lnum >= 0 && lnum < vol->reserved_pebs;
lnum              881 drivers/mtd/ubi/ubi.h void ubi_eba_get_ldesc(struct ubi_volume *vol, int lnum,
lnum              883 drivers/mtd/ubi/ubi.h bool ubi_eba_is_mapped(struct ubi_volume *vol, int lnum);
lnum              885 drivers/mtd/ubi/ubi.h 		      int lnum);
lnum              886 drivers/mtd/ubi/ubi.h int ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
lnum              889 drivers/mtd/ubi/ubi.h 			struct ubi_sgl *sgl, int lnum, int offset, int len,
lnum              891 drivers/mtd/ubi/ubi.h int ubi_eba_write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
lnum              894 drivers/mtd/ubi/ubi.h 			 int lnum, const void *buf, int len, int used_ebs);
lnum              896 drivers/mtd/ubi/ubi.h 			      int lnum, const void *buf, int len);
lnum              906 drivers/mtd/ubi/ubi.h int ubi_wl_put_peb(struct ubi_device *ubi, int vol_id, int lnum,
lnum              908 drivers/mtd/ubi/ubi.h int ubi_wl_flush(struct ubi_device *ubi, int vol_id, int lnum);
lnum              915 drivers/mtd/ubi/ubi.h 		      int lnum, int torture);
lnum              174 drivers/mtd/ubi/upd.c 		vol->vol_id, req->lnum, req->bytes);
lnum              176 drivers/mtd/ubi/upd.c 		return ubi_eba_atomic_leb_change(ubi, vol, req->lnum, NULL, 0);
lnum              181 drivers/mtd/ubi/upd.c 	vol->ch_lnum = req->lnum;
lnum              219 drivers/mtd/ubi/upd.c static int write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
lnum              234 drivers/mtd/ubi/upd.c 		err = ubi_eba_write_leb(ubi, vol, lnum, buf, 0, len);
lnum              246 drivers/mtd/ubi/upd.c 		err = ubi_eba_write_leb_st(ubi, vol, lnum, buf, len, used_ebs);
lnum              268 drivers/mtd/ubi/upd.c 	int lnum, offs, err = 0, len, to_write = count;
lnum              276 drivers/mtd/ubi/upd.c 	lnum = div_u64_rem(vol->upd_received,  vol->usable_leb_size, &offs);
lnum              309 drivers/mtd/ubi/upd.c 			err = write_leb(ubi, vol, lnum, vol->upd_buf, flush_len,
lnum              318 drivers/mtd/ubi/upd.c 		lnum += 1;
lnum              337 drivers/mtd/ubi/upd.c 			err = write_leb(ubi, vol, lnum, vol->upd_buf,
lnum              345 drivers/mtd/ubi/upd.c 		lnum += 1;
lnum              313 drivers/mtd/ubi/vtbl.c 	vid_hdr->lnum = cpu_to_be32(copy);
lnum              400 drivers/mtd/ubi/vtbl.c 		leb[aeb->lnum] = vzalloc(ubi->vtbl_size);
lnum              401 drivers/mtd/ubi/vtbl.c 		if (!leb[aeb->lnum]) {
lnum              406 drivers/mtd/ubi/vtbl.c 		err = ubi_io_read_data(ubi, leb[aeb->lnum], aeb->pnum, 0,
lnum              591 drivers/mtd/ubi/wl.c 			  int vol_id, int lnum, int torture, bool nested)
lnum              607 drivers/mtd/ubi/wl.c 	wl_wrk->lnum = lnum;
lnum              628 drivers/mtd/ubi/wl.c 			 int vol_id, int lnum, int torture)
lnum              636 drivers/mtd/ubi/wl.c 	wl_wrk.lnum = lnum;
lnum              658 drivers/mtd/ubi/wl.c 	int erase = 0, keep = 0, vol_id = -1, lnum = -1;
lnum              822 drivers/mtd/ubi/wl.c 	lnum = be32_to_cpu(vid_hdr->lnum);
lnum              881 drivers/mtd/ubi/wl.c 			e1->pnum, vol_id, lnum, e2->pnum);
lnum              893 drivers/mtd/ubi/wl.c 	err = do_sync_erase(ubi, e1, vol_id, lnum, 0);
lnum              906 drivers/mtd/ubi/wl.c 		       e2->pnum, vol_id, lnum);
lnum              907 drivers/mtd/ubi/wl.c 		err = do_sync_erase(ubi, e2, vol_id, lnum, 0);
lnum              925 drivers/mtd/ubi/wl.c 		       e1->pnum, vol_id, lnum, e2->pnum, err);
lnum              953 drivers/mtd/ubi/wl.c 		err = do_sync_erase(ubi, e2, vol_id, lnum, torture);
lnum              959 drivers/mtd/ubi/wl.c 		err = do_sync_erase(ubi, e1, vol_id, lnum, 1);
lnum              974 drivers/mtd/ubi/wl.c 			err, e1->pnum, vol_id, lnum, e2->pnum);
lnum             1087 drivers/mtd/ubi/wl.c 	int lnum = wl_wrk->lnum;
lnum             1091 drivers/mtd/ubi/wl.c 	       pnum, e->ec, wl_wrk->vol_id, wl_wrk->lnum);
lnum             1118 drivers/mtd/ubi/wl.c 		err1 = schedule_erase(ubi, e, vol_id, lnum, 0, false);
lnum             1228 drivers/mtd/ubi/wl.c int ubi_wl_put_peb(struct ubi_device *ubi, int vol_id, int lnum,
lnum             1299 drivers/mtd/ubi/wl.c 	err = schedule_erase(ubi, e, vol_id, lnum, torture, false);
lnum             1385 drivers/mtd/ubi/wl.c int ubi_wl_flush(struct ubi_device *ubi, int vol_id, int lnum)
lnum             1395 drivers/mtd/ubi/wl.c 	       vol_id, lnum, ubi->works_count);
lnum             1405 drivers/mtd/ubi/wl.c 			    (lnum == UBI_ALL || wrk->lnum == lnum)) {
lnum             1714 drivers/mtd/ubi/wl.c 		err = schedule_erase(ubi, e, aeb->vol_id, aeb->lnum, 0, false);
lnum              152 fs/reiserfs/do_balan.c 	if (tb->lnum[0] == -1) {
lnum              206 fs/reiserfs/do_balan.c 	RFALSE((tb->lnum[0] + tb->rnum[0] < n) ||
lnum              207 fs/reiserfs/do_balan.c 	       (tb->lnum[0] + tb->rnum[0] > n + 1),
lnum              210 fs/reiserfs/do_balan.c 	       tb->rnum[0], tb->lnum[0], n);
lnum              211 fs/reiserfs/do_balan.c 	RFALSE((tb->lnum[0] + tb->rnum[0] == n) &&
lnum              216 fs/reiserfs/do_balan.c 	RFALSE((tb->lnum[0] + tb->rnum[0] == n + 1) &&
lnum              222 fs/reiserfs/do_balan.c 	leaf_shift_left(tb, tb->lnum[0], tb->lbytes);
lnum              271 fs/reiserfs/do_balan.c 	if (tb->lnum[0])
lnum              295 fs/reiserfs/do_balan.c 	if (tb->item_pos == tb->lnum[0] - 1 && tb->lbytes != -1) {
lnum              299 fs/reiserfs/do_balan.c 		ret = leaf_shift_left(tb, tb->lnum[0] - 1, -1);
lnum              339 fs/reiserfs/do_balan.c 		ret = leaf_shift_left(tb, tb->lnum[0] - 1, tb->lbytes);
lnum              371 fs/reiserfs/do_balan.c 		ret = leaf_shift_left(tb, tb->lnum[0], tb->lbytes - 1);
lnum              406 fs/reiserfs/do_balan.c 		leaf_shift_left(tb, tb->lnum[0], tb->lbytes);
lnum              458 fs/reiserfs/do_balan.c 		ret = leaf_shift_left(tb, tb->lnum[0],
lnum              525 fs/reiserfs/do_balan.c 		leaf_shift_left(tb, tb->lnum[0], tb->lbytes);
lnum              560 fs/reiserfs/do_balan.c 	ret = leaf_shift_left(tb, tb->lnum[0], tb->lbytes);
lnum              591 fs/reiserfs/do_balan.c 	if (tb->item_pos == tb->lnum[0] - 1 && tb->lbytes != -1)
lnum              603 fs/reiserfs/do_balan.c 	if (tb->lnum[0] <= 0)
lnum              607 fs/reiserfs/do_balan.c 	if (tb->item_pos < tb->lnum[0]) {
lnum              616 fs/reiserfs/do_balan.c 		leaf_shift_left(tb, tb->lnum[0], tb->lbytes);
lnum             1413 fs/reiserfs/do_balan.c 	tb->item_pos -= (tb->lnum[0] - ((tb->lbytes != -1) ? 1 : 0));
lnum             1430 fs/reiserfs/do_balan.c 		RFALSE(!tb->lnum[0] || !tb->rnum[0],
lnum             1663 fs/reiserfs/do_balan.c 	if (tb->lnum[0]) {
lnum             1684 fs/reiserfs/do_balan.c 	if (tb->lnum[0]) {
lnum             1745 fs/reiserfs/do_balan.c 		if (tb->lnum[h])
lnum              205 fs/reiserfs/fix_node.c 		tb->lnum[h] = cur_free / (DC_SIZE + KEY_SIZE);
lnum              213 fs/reiserfs/fix_node.c 		tb->lnum[h] = 0;
lnum              230 fs/reiserfs/fix_node.c 		tb->lnum[0] = vn->vn_nr_item;
lnum              241 fs/reiserfs/fix_node.c 	tb->lnum[0] = 0;
lnum              248 fs/reiserfs/fix_node.c 			tb->lnum[0]++;
lnum              268 fs/reiserfs/fix_node.c 			tb->lnum[0]++;
lnum              621 fs/reiserfs/fix_node.c static void set_parameters(struct tree_balance *tb, int h, int lnum,
lnum              625 fs/reiserfs/fix_node.c 	tb->lnum[h] = lnum;
lnum              641 fs/reiserfs/fix_node.c 	PROC_INFO_ADD(tb->tb_sb, lnum[h], lnum);
lnum              663 fs/reiserfs/fix_node.c 	to_left = tb->lnum[0] - ((tb->lbytes != -1) ? 1 : 0);
lnum             1434 fs/reiserfs/fix_node.c 	if (h && (tb->rnum[h] + tb->lnum[h] >= vn->vn_nr_item + 1)) {
lnum             1446 fs/reiserfs/fix_node.c 		    ((MAX_NR_KEY(Sh) << 1) + 2 - tb->lnum[h] - tb->rnum[h] +
lnum             1459 fs/reiserfs/fix_node.c 	       (tb->lnum[h] >= vn->vn_nr_item + 1 ||
lnum             1462 fs/reiserfs/fix_node.c 	RFALSE(!h && ((tb->lnum[h] >= vn->vn_nr_item && (tb->lbytes == -1)) ||
lnum             1512 fs/reiserfs/fix_node.c 		lpar = tb->lnum[h];
lnum             1639 fs/reiserfs/fix_node.c 			       (tb->lnum[h] != 1 ||
lnum             1644 fs/reiserfs/fix_node.c 				set_parameters(tb, h, tb->lnum[h], tb->rnum[h],
lnum             1649 fs/reiserfs/fix_node.c 					       tb->lnum[h] -
lnum             1786 fs/reiserfs/fix_node.c 			if (tb->lnum[h] >= vn->vn_nr_item + 1) {
lnum             1824 fs/reiserfs/fix_node.c 		if (tb->rnum[h] + tb->lnum[h] >= vn->vn_nr_item + 1) {
lnum             1828 fs/reiserfs/fix_node.c 			    ((MAX_NR_KEY(Sh) << 1) + 2 - tb->lnum[h] -
lnum             1846 fs/reiserfs/fix_node.c 	if (tb->lnum[h] >= vn->vn_nr_item + 1)
lnum             1879 fs/reiserfs/fix_node.c 	if (tb->rnum[h] + tb->lnum[h] >= vn->vn_nr_item + 1) {
lnum             1883 fs/reiserfs/fix_node.c 		    ((MAX_NR_KEY(Sh) << 1) + 2 - tb->lnum[h] - tb->rnum[h] +
lnum             1899 fs/reiserfs/fix_node.c 		    (MAX_NR_KEY(Sh) + 1 - tb->lnum[h] + vn->vn_nr_item +
lnum             1986 fs/reiserfs/fix_node.c 	if (tb->lnum[0] >= vn->vn_nr_item && tb->lbytes == -1)
lnum             2162 fs/reiserfs/fix_node.c 	if (tb->lnum[h]) {
lnum             2407 fs/reiserfs/fix_node.c 			if (tb->lnum[i]) {
lnum              655 fs/reiserfs/ibalance.c 	if (tb->lnum[h] == 0 && tb->rnum[h] == 0) {
lnum              697 fs/reiserfs/ibalance.c 	if (tb->L[h] && tb->lnum[h] == -B_NR_ITEMS(tb->L[h]) - 1) {
lnum              711 fs/reiserfs/ibalance.c 		RFALSE(tb->lnum[h] != 0,
lnum              713 fs/reiserfs/ibalance.c 		       h, tb->lnum[h]);
lnum              722 fs/reiserfs/ibalance.c 	if (tb->lnum[h] < 0) {
lnum              727 fs/reiserfs/ibalance.c 				     -tb->lnum[h]);
lnum              733 fs/reiserfs/ibalance.c 		RFALSE(tb->lnum[h] != 0,
lnum              735 fs/reiserfs/ibalance.c 		       h, tb->lnum[h]);
lnum              741 fs/reiserfs/ibalance.c 	if (tb->lnum[h] > 0) {
lnum              742 fs/reiserfs/ibalance.c 		RFALSE(tb->rnum[h] == 0 || tb->lnum[h] + tb->rnum[h] != n + 1,
lnum              744 fs/reiserfs/ibalance.c 		       h, tb->lnum[h], h, tb->rnum[h], n);
lnum              746 fs/reiserfs/ibalance.c 		internal_shift_left(INTERNAL_SHIFT_FROM_S_TO_L, tb, h, tb->lnum[h]);	/*tb->L[h], tb->CFL[h], tb->lkey[h], tb->S[h], tb->lnum[h]); */
lnum              756 fs/reiserfs/ibalance.c 		       h, tb->lnum[h], h, tb->rnum[h]);
lnum              854 fs/reiserfs/ibalance.c 	if (tb->lnum[h] > 0) {
lnum              861 fs/reiserfs/ibalance.c 		if (tb->lnum[h] <= child_pos) {
lnum              864 fs/reiserfs/ibalance.c 					    tb->lnum[h]);
lnum              865 fs/reiserfs/ibalance.c 			child_pos -= tb->lnum[h];
lnum              866 fs/reiserfs/ibalance.c 		} else if (tb->lnum[h] > child_pos + insert_num) {
lnum              869 fs/reiserfs/ibalance.c 					    tb->lnum[h] - insert_num);
lnum              891 fs/reiserfs/ibalance.c 			k = tb->lnum[h] - child_pos - 1;
lnum              693 fs/reiserfs/prints.c 		tb->insert_size[0], tb->lnum[0], tb->lbytes, tb->rnum[0],
lnum              704 fs/reiserfs/prints.c 			h, tb->insert_size[h], tb->lnum[h], tb->rnum[h],
lnum              180 fs/reiserfs/procfs.c 			   SFPL(lnum),
lnum              473 fs/reiserfs/reiserfs.h 	long int lnum[5];	/* XXX */
lnum             2446 fs/reiserfs/reiserfs.h 	int lnum[MAX_HEIGHT];
lnum              153 fs/ubifs/auth.c 		    int lnum, int offs)
lnum              163 fs/ubifs/auth.c 	ubifs_err(c, "hash mismatch on node at LEB %d:%d", lnum, offs);
lnum               68 fs/ubifs/budget.c 	int err, lnum;
lnum               72 fs/ubifs/budget.c 	lnum = ubifs_garbage_collect(c, 1);
lnum               74 fs/ubifs/budget.c 	if (lnum < 0)
lnum               75 fs/ubifs/budget.c 		return lnum;
lnum               78 fs/ubifs/budget.c 	dbg_budg("GC freed LEB %d", lnum);
lnum               79 fs/ubifs/budget.c 	err = ubifs_return_leb(c, lnum);
lnum              163 fs/ubifs/commit.c 	c->mst_node->root_lnum   = cpu_to_le32(zroot.lnum);
lnum              517 fs/ubifs/commit.c 	int lnum, offs, len, err = 0;
lnum              521 fs/ubifs/commit.c 	lnum = d->old_zroot.lnum;
lnum              529 fs/ubifs/commit.c 	err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs);
lnum              555 fs/ubifs/commit.c 	int lnum, offs, len, err = 0, uninitialized_var(last_level), child_cnt;
lnum              574 fs/ubifs/commit.c 	lnum = d->old_zroot.lnum;
lnum              597 fs/ubifs/commit.c 		err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs);
lnum              685 fs/ubifs/commit.c 		lnum = le32_to_cpu(br->lnum);
lnum              403 fs/ubifs/debug.c 		pr_err("\tlnum           %u\n", le32_to_cpu(ref->lnum));
lnum              510 fs/ubifs/debug.c 			       i, le32_to_cpu(br->lnum), le32_to_cpu(br->offs),
lnum              619 fs/ubifs/debug.c 			       c->jheads[i].wbuf.lnum);
lnum              622 fs/ubifs/debug.c 		pr_err("\tbud LEB %d\n", bud->lnum);
lnum              625 fs/ubifs/debug.c 		pr_err("\told bud LEB %d\n", bud->lnum);
lnum              628 fs/ubifs/debug.c 		       idx_gc->lnum, idx_gc->unmap);
lnum              657 fs/ubifs/debug.c 		       lp->lnum, lp->free, lp->dirty, c->leb_size - spc, spc,
lnum              661 fs/ubifs/debug.c 		       lp->lnum, lp->free, lp->dirty, c->leb_size - spc, spc,
lnum              710 fs/ubifs/debug.c 		if (bud->lnum == lp->lnum) {
lnum              719 fs/ubifs/debug.c 				    lp->lnum == c->jheads[i].wbuf.lnum) {
lnum              729 fs/ubifs/debug.c 	if (lp->lnum == c->gc_lnum)
lnum              736 fs/ubifs/debug.c 	int lnum, err;
lnum              744 fs/ubifs/debug.c 	for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) {
lnum              745 fs/ubifs/debug.c 		err = ubifs_read_one_lp(c, lnum, &lp);
lnum              747 fs/ubifs/debug.c 			ubifs_err(c, "cannot read lprops for LEB %d", lnum);
lnum              800 fs/ubifs/debug.c 	       current->pid, sleb->lnum, offs);
lnum              805 fs/ubifs/debug.c 		       sleb->lnum, snod->offs, snod->len);
lnum              810 fs/ubifs/debug.c void ubifs_dump_leb(const struct ubifs_info *c, int lnum)
lnum              816 fs/ubifs/debug.c 	pr_err("(pid %d) start dumping LEB %d\n", current->pid, lnum);
lnum              820 fs/ubifs/debug.c 		ubifs_err(c, "cannot allocate memory for dumping LEB %d", lnum);
lnum              824 fs/ubifs/debug.c 	sleb = ubifs_scan(c, lnum, 0, buf, 0);
lnum              830 fs/ubifs/debug.c 	pr_err("LEB %d has %d nodes ending at %d\n", lnum,
lnum              835 fs/ubifs/debug.c 		pr_err("Dumping node at LEB %d:%d len %d\n", lnum,
lnum              840 fs/ubifs/debug.c 	pr_err("(pid %d) finish dumping LEB %d\n", current->pid, lnum);
lnum              862 fs/ubifs/debug.c 	       znode, zbr->lnum, zbr->offs, zbr->len, znode->parent, znode->iip,
lnum              875 fs/ubifs/debug.c 			       n, zbr->znode, zbr->lnum, zbr->offs, zbr->len,
lnum              880 fs/ubifs/debug.c 			       n, zbr->znode, zbr->lnum, zbr->offs, zbr->len,
lnum              897 fs/ubifs/debug.c 		       i, lprops->lnum, lprops->hpos, lprops->free,
lnum              917 fs/ubifs/debug.c 		       i, lp->free, lp->dirty, lp->flags, lp->lnum);
lnum             1208 fs/ubifs/debug.c 		ubifs_err(c, "1st entry at %d:%d has key %s", zbr1->lnum,
lnum             1220 fs/ubifs/debug.c 		ubifs_err(c, "2nd entry at %d:%d has key %s", zbr1->lnum,
lnum             1244 fs/ubifs/debug.c 	ubifs_msg(c, "first node at %d:%d\n", zbr1->lnum, zbr1->offs);
lnum             1246 fs/ubifs/debug.c 	ubifs_msg(c, "second node at %d:%d\n", zbr2->lnum, zbr2->offs);
lnum             1414 fs/ubifs/debug.c 		    (znode->zbranch[n].lnum == 0 ||
lnum             1420 fs/ubifs/debug.c 		if (znode->zbranch[n].lnum != 0 &&
lnum             1426 fs/ubifs/debug.c 		if (znode->zbranch[n].lnum == 0 &&
lnum             1432 fs/ubifs/debug.c 		if (znode->zbranch[n].lnum == 0 &&
lnum             1620 fs/ubifs/debug.c 						  err, zbr->lnum, zbr->offs);
lnum             1675 fs/ubifs/debug.c 	ubifs_msg(c, "dump of znode at LEB %d:%d", zbr->lnum, zbr->offs);
lnum             1943 fs/ubifs/debug.c 			  zbr->lnum, zbr->offs, err);
lnum             1986 fs/ubifs/debug.c 			  zbr->len, zbr->lnum, zbr->offs);
lnum             1997 fs/ubifs/debug.c 			  zbr->lnum, zbr->offs, err);
lnum             2015 fs/ubifs/debug.c 			  type, zbr->lnum, zbr->offs);
lnum             2053 fs/ubifs/debug.c 				  zbr->lnum, zbr->offs, fscki->size);
lnum             2111 fs/ubifs/debug.c 	ubifs_msg(c, "dump of node at LEB %d:%d", zbr->lnum, zbr->offs);
lnum             2238 fs/ubifs/debug.c 			  zbr->lnum, zbr->offs, err);
lnum             2244 fs/ubifs/debug.c 		  (unsigned long)fscki->inum, zbr->lnum, zbr->offs);
lnum             2453 fs/ubifs/debug.c static int power_cut_emulated(struct ubifs_info *c, int lnum, int write)
lnum             2489 fs/ubifs/debug.c 	if (lnum == UBIFS_SB_LNUM) {
lnum             2494 fs/ubifs/debug.c 		ubifs_warn(c, "failing in super block LEB %d", lnum);
lnum             2495 fs/ubifs/debug.c 	} else if (lnum == UBIFS_MST_LNUM || lnum == UBIFS_MST_LNUM + 1) {
lnum             2498 fs/ubifs/debug.c 		ubifs_warn(c, "failing in master LEB %d", lnum);
lnum             2499 fs/ubifs/debug.c 	} else if (lnum >= UBIFS_LOG_LNUM && lnum <= c->log_last) {
lnum             2504 fs/ubifs/debug.c 		ubifs_warn(c, "failing in log LEB %d", lnum);
lnum             2505 fs/ubifs/debug.c 	} else if (lnum >= c->lpt_first && lnum <= c->lpt_last) {
lnum             2510 fs/ubifs/debug.c 		ubifs_warn(c, "failing in LPT LEB %d", lnum);
lnum             2511 fs/ubifs/debug.c 	} else if (lnum >= c->orph_first && lnum <= c->orph_last) {
lnum             2516 fs/ubifs/debug.c 		ubifs_warn(c, "failing in orphan LEB %d", lnum);
lnum             2517 fs/ubifs/debug.c 	} else if (lnum == c->ihead_lnum) {
lnum             2520 fs/ubifs/debug.c 		ubifs_warn(c, "failing in index head LEB %d", lnum);
lnum             2521 fs/ubifs/debug.c 	} else if (c->jheads && lnum == c->jheads[GCHD].wbuf.lnum) {
lnum             2524 fs/ubifs/debug.c 		ubifs_warn(c, "failing in GC head LEB %d", lnum);
lnum             2526 fs/ubifs/debug.c 		   !ubifs_search_bud(c, lnum)) {
lnum             2529 fs/ubifs/debug.c 		ubifs_warn(c, "failing in non-bud LEB %d", lnum);
lnum             2534 fs/ubifs/debug.c 		ubifs_warn(c, "failing in bud LEB %d commit running", lnum);
lnum             2538 fs/ubifs/debug.c 		ubifs_warn(c, "failing in bud LEB %d commit not running", lnum);
lnum             2568 fs/ubifs/debug.c int dbg_leb_write(struct ubifs_info *c, int lnum, const void *buf,
lnum             2576 fs/ubifs/debug.c 	failing = power_cut_emulated(c, lnum, 1);
lnum             2580 fs/ubifs/debug.c 			   len, lnum, offs);
lnum             2582 fs/ubifs/debug.c 	err = ubi_leb_write(c->ubi, lnum, buf, offs, len);
lnum             2590 fs/ubifs/debug.c int dbg_leb_change(struct ubifs_info *c, int lnum, const void *buf,
lnum             2597 fs/ubifs/debug.c 	if (power_cut_emulated(c, lnum, 1))
lnum             2599 fs/ubifs/debug.c 	err = ubi_leb_change(c->ubi, lnum, buf, len);
lnum             2602 fs/ubifs/debug.c 	if (power_cut_emulated(c, lnum, 1))
lnum             2607 fs/ubifs/debug.c int dbg_leb_unmap(struct ubifs_info *c, int lnum)
lnum             2613 fs/ubifs/debug.c 	if (power_cut_emulated(c, lnum, 0))
lnum             2615 fs/ubifs/debug.c 	err = ubi_leb_unmap(c->ubi, lnum);
lnum             2618 fs/ubifs/debug.c 	if (power_cut_emulated(c, lnum, 0))
lnum             2623 fs/ubifs/debug.c int dbg_leb_map(struct ubifs_info *c, int lnum)
lnum             2629 fs/ubifs/debug.c 	if (power_cut_emulated(c, lnum, 0))
lnum             2631 fs/ubifs/debug.c 	err = ubi_leb_map(c->ubi, lnum);
lnum             2634 fs/ubifs/debug.c 	if (power_cut_emulated(c, lnum, 0))
lnum              253 fs/ubifs/debug.h void ubifs_dump_leb(const struct ubifs_info *c, int lnum);
lnum              293 fs/ubifs/debug.h int dbg_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs,
lnum              295 fs/ubifs/debug.h int dbg_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len);
lnum              296 fs/ubifs/debug.h int dbg_leb_unmap(struct ubifs_info *c, int lnum);
lnum              297 fs/ubifs/debug.h int dbg_leb_map(struct ubifs_info *c, int lnum);
lnum               30 fs/ubifs/find.c 	int lnum;
lnum              109 fs/ubifs/find.c 	data->lnum = lprops->lnum;
lnum              167 fs/ubifs/find.c 	data.lnum = -1;
lnum              174 fs/ubifs/find.c 	ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt);
lnum              175 fs/ubifs/find.c 	c->lscan_lnum = data.lnum;
lnum              176 fs/ubifs/find.c 	lprops = ubifs_lpt_lookup_dirty(c, data.lnum);
lnum              179 fs/ubifs/find.c 	ubifs_assert(c, lprops->lnum == data.lnum);
lnum              322 fs/ubifs/find.c 		 lp->lnum, lp->free, lp->dirty, lp->flags);
lnum              380 fs/ubifs/find.c 	data->lnum = lprops->lnum;
lnum              447 fs/ubifs/find.c 	data.lnum = -1;
lnum              453 fs/ubifs/find.c 	ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt);
lnum              454 fs/ubifs/find.c 	c->lscan_lnum = data.lnum;
lnum              455 fs/ubifs/find.c 	lprops = ubifs_lpt_lookup_dirty(c, data.lnum);
lnum              458 fs/ubifs/find.c 	ubifs_assert(c, lprops->lnum == data.lnum);
lnum              485 fs/ubifs/find.c 	int lebs, rsvd_idx_lebs, pick_free = 0, err, lnum, flags;
lnum              534 fs/ubifs/find.c 	lnum = lprops->lnum;
lnum              559 fs/ubifs/find.c 		err = ubifs_leb_unmap(c, lnum);
lnum              564 fs/ubifs/find.c 	dbg_find("found LEB %d, free %d", lnum, c->leb_size - *offs);
lnum              566 fs/ubifs/find.c 	return lnum;
lnum              613 fs/ubifs/find.c 	data->lnum = lprops->lnum;
lnum              627 fs/ubifs/find.c 	data.lnum = -1;
lnum              633 fs/ubifs/find.c 	ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt);
lnum              634 fs/ubifs/find.c 	c->lscan_lnum = data.lnum;
lnum              635 fs/ubifs/find.c 	lprops = ubifs_lpt_lookup_dirty(c, data.lnum);
lnum              638 fs/ubifs/find.c 	ubifs_assert(c, lprops->lnum == data.lnum);
lnum              664 fs/ubifs/find.c 	int lnum = -1, err, flags;
lnum              696 fs/ubifs/find.c 	lnum = lprops->lnum;
lnum              699 fs/ubifs/find.c 		 lnum, lprops->free, lprops->dirty, lprops->flags);
lnum              715 fs/ubifs/find.c 	err = ubifs_leb_unmap(c, lnum);
lnum              717 fs/ubifs/find.c 		ubifs_change_one_lp(c, lnum, LPROPS_NC, LPROPS_NC, 0,
lnum              722 fs/ubifs/find.c 	return lnum;
lnum              761 fs/ubifs/find.c 			 c->dirty_idx.arr[c->dirty_idx.cnt - 1]->lnum,
lnum              766 fs/ubifs/find.c 		c->dirty_idx.arr[i] = (void *)(size_t)c->dirty_idx.arr[i]->lnum;
lnum              802 fs/ubifs/find.c 	data->lnum = lprops->lnum;
lnum              824 fs/ubifs/find.c 	data.lnum = -1;
lnum              851 fs/ubifs/find.c 	ubifs_assert(c, data.lnum >= c->main_first && data.lnum < c->leb_cnt);
lnum              852 fs/ubifs/find.c 	c->lscan_lnum = data.lnum;
lnum              853 fs/ubifs/find.c 	lprops = ubifs_lpt_lookup_dirty(c, data.lnum);
lnum              856 fs/ubifs/find.c 	ubifs_assert(c, lprops->lnum == data.lnum);
lnum              862 fs/ubifs/find.c 		 lprops->lnum, lprops->free, lprops->dirty, lprops->flags);
lnum              869 fs/ubifs/find.c 	return lprops->lnum;
lnum              879 fs/ubifs/find.c 	int err, lnum;
lnum              884 fs/ubifs/find.c 	lnum = err;
lnum              889 fs/ubifs/find.c 	lp = ubifs_lpt_lookup_dirty(c, lnum);
lnum              897 fs/ubifs/find.c 		 lp->lnum, lp->dirty, lp->free, lp->flags);
lnum              898 fs/ubifs/find.c 	return lnum;
lnum              908 fs/ubifs/find.c 	int lnum;
lnum              914 fs/ubifs/find.c 		lnum = (size_t)c->dirty_idx.arr[--c->dirty_idx.cnt];
lnum              915 fs/ubifs/find.c 		lp = ubifs_lpt_lookup(c, lnum);
lnum              926 fs/ubifs/find.c 	dbg_find("LEB %d, dirty %d and free %d flags %#x", lp->lnum, lp->dirty,
lnum              930 fs/ubifs/find.c 	return lnum;
lnum               76 fs/ubifs/gc.c  	       wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum,
lnum              263 fs/ubifs/gc.c  		err = ubifs_tnc_has_node(c, &snod->key, 0, sleb->lnum,
lnum              309 fs/ubifs/gc.c  	int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used;
lnum              316 fs/ubifs/gc.c  	err = ubifs_tnc_replace(c, &snod->key, sleb->lnum,
lnum              340 fs/ubifs/gc.c  	if (wbuf->lnum == -1) {
lnum              436 fs/ubifs/gc.c  			ubifs_add_dirt(c, wbuf->lnum, ubifs_auth_node_sz(c));
lnum              499 fs/ubifs/gc.c  	int err = 0, lnum = lp->lnum;
lnum              503 fs/ubifs/gc.c  	ubifs_assert(c, c->gc_lnum != lnum);
lnum              504 fs/ubifs/gc.c  	ubifs_assert(c, wbuf->lnum != lnum);
lnum              508 fs/ubifs/gc.c  		dbg_gc("LEB %d is free, return it", lp->lnum);
lnum              520 fs/ubifs/gc.c  			err = ubifs_change_one_lp(c, lp->lnum, c->leb_size,
lnum              525 fs/ubifs/gc.c  		err = ubifs_leb_unmap(c, lp->lnum);
lnum              530 fs/ubifs/gc.c  			c->gc_lnum = lnum;
lnum              541 fs/ubifs/gc.c  	sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0);
lnum              552 fs/ubifs/gc.c  		       lnum, lp->free, lp->dirty);
lnum              559 fs/ubifs/gc.c  			err = ubifs_dirty_idx_node(c, &snod->key, level, lnum,
lnum              571 fs/ubifs/gc.c  		idx_gc->lnum = lnum;
lnum              581 fs/ubifs/gc.c  		err = ubifs_change_one_lp(c, lnum, c->leb_size, 0, 0,
lnum              588 fs/ubifs/gc.c  		       lnum, lp->free, lp->dirty);
lnum              598 fs/ubifs/gc.c  		err = ubifs_change_one_lp(c, lnum, c->leb_size, 0, 0, 0, 0);
lnum              603 fs/ubifs/gc.c  		c->gced_lnum = lnum;
lnum              609 fs/ubifs/gc.c  			c->gc_lnum = lnum;
lnum              616 fs/ubifs/gc.c  			err = ubifs_leb_unmap(c, lnum);
lnum              630 fs/ubifs/gc.c  	c->gced_lnum = lnum;
lnum              742 fs/ubifs/gc.c  		       lp.lnum, lp.free, lp.dirty, lp.free + lp.dirty,
lnum              746 fs/ubifs/gc.c  		if (wbuf->lnum == -1)
lnum              758 fs/ubifs/gc.c  				err = ubifs_return_leb(c, lp.lnum);
lnum              768 fs/ubifs/gc.c  			dbg_gc("LEB %d freed, return", lp.lnum);
lnum              769 fs/ubifs/gc.c  			ret = lp.lnum;
lnum              780 fs/ubifs/gc.c  			dbg_gc("indexing LEB %d freed, continue", lp.lnum);
lnum              786 fs/ubifs/gc.c  		dbg_gc("LEB %d retained, freed %d bytes", lp.lnum,
lnum              849 fs/ubifs/gc.c  	ubifs_return_leb(c, lp.lnum);
lnum              882 fs/ubifs/gc.c  		err = ubifs_leb_unmap(c, lp->lnum);
lnum              924 fs/ubifs/gc.c  		idx_gc->lnum = lp->lnum;
lnum              949 fs/ubifs/gc.c  			dbg_gc("LEB %d", idx_gc->lnum);
lnum              950 fs/ubifs/gc.c  			err = ubifs_leb_unmap(c, idx_gc->lnum);
lnum              953 fs/ubifs/gc.c  			err = ubifs_change_one_lp(c, idx_gc->lnum, LPROPS_NC,
lnum              995 fs/ubifs/gc.c  	int lnum;
lnum             1000 fs/ubifs/gc.c  	lnum = idx_gc->lnum;
lnum             1004 fs/ubifs/gc.c  	return lnum;
lnum               87 fs/ubifs/io.c  int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs,
lnum               92 fs/ubifs/io.c  	err = ubi_read(c->ubi, lnum, buf, offs, len);
lnum               99 fs/ubifs/io.c  			  len, lnum, offs, err);
lnum              105 fs/ubifs/io.c  int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs,
lnum              114 fs/ubifs/io.c  		err = ubi_leb_write(c->ubi, lnum, buf, offs, len);
lnum              116 fs/ubifs/io.c  		err = dbg_leb_write(c, lnum, buf, offs, len);
lnum              119 fs/ubifs/io.c  			  len, lnum, offs, err);
lnum              126 fs/ubifs/io.c  int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len)
lnum              134 fs/ubifs/io.c  		err = ubi_leb_change(c->ubi, lnum, buf, len);
lnum              136 fs/ubifs/io.c  		err = dbg_leb_change(c, lnum, buf, len);
lnum              139 fs/ubifs/io.c  			  len, lnum, err);
lnum              146 fs/ubifs/io.c  int ubifs_leb_unmap(struct ubifs_info *c, int lnum)
lnum              154 fs/ubifs/io.c  		err = ubi_leb_unmap(c->ubi, lnum);
lnum              156 fs/ubifs/io.c  		err = dbg_leb_unmap(c, lnum);
lnum              158 fs/ubifs/io.c  		ubifs_err(c, "unmap LEB %d failed, error %d", lnum, err);
lnum              165 fs/ubifs/io.c  int ubifs_leb_map(struct ubifs_info *c, int lnum)
lnum              173 fs/ubifs/io.c  		err = ubi_leb_map(c->ubi, lnum);
lnum              175 fs/ubifs/io.c  		err = dbg_leb_map(c, lnum);
lnum              177 fs/ubifs/io.c  		ubifs_err(c, "mapping LEB %d failed, error %d", lnum, err);
lnum              184 fs/ubifs/io.c  int ubifs_is_mapped(const struct ubifs_info *c, int lnum)
lnum              188 fs/ubifs/io.c  	err = ubi_is_mapped(c->ubi, lnum);
lnum              191 fs/ubifs/io.c  			  lnum, err);
lnum              225 fs/ubifs/io.c  int ubifs_check_node(const struct ubifs_info *c, const void *buf, int lnum,
lnum              232 fs/ubifs/io.c  	ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0);
lnum              283 fs/ubifs/io.c  		ubifs_err(c, "bad node at LEB %d:%d", lnum, offs);
lnum              542 fs/ubifs/io.c  	if (!wbuf->used || wbuf->lnum == -1)
lnum              547 fs/ubifs/io.c  	       wbuf->lnum, wbuf->offs, wbuf->used, dbg_jhead(wbuf->jhead));
lnum              568 fs/ubifs/io.c  	err = ubifs_leb_write(c, wbuf->lnum, wbuf->buf, wbuf->offs, sync_len);
lnum              596 fs/ubifs/io.c  		err = wbuf->sync_callback(c, wbuf->lnum,
lnum              611 fs/ubifs/io.c  int ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs)
lnum              615 fs/ubifs/io.c  	dbg_io("LEB %d:%d, jhead %s", lnum, offs, dbg_jhead(wbuf->jhead));
lnum              616 fs/ubifs/io.c  	ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt);
lnum              619 fs/ubifs/io.c  	ubifs_assert(c, lnum != wbuf->lnum);
lnum              623 fs/ubifs/io.c  	wbuf->lnum = lnum;
lnum              725 fs/ubifs/io.c  	       dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs + wbuf->used);
lnum              726 fs/ubifs/io.c  	ubifs_assert(c, len > 0 && wbuf->lnum >= 0 && wbuf->lnum < c->leb_cnt);
lnum              758 fs/ubifs/io.c  			       dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs);
lnum              759 fs/ubifs/io.c  			err = ubifs_leb_write(c, wbuf->lnum, wbuf->buf,
lnum              793 fs/ubifs/io.c  		       dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs);
lnum              795 fs/ubifs/io.c  		err = ubifs_leb_write(c, wbuf->lnum, wbuf->buf, wbuf->offs,
lnum              813 fs/ubifs/io.c  		       wbuf->size, wbuf->lnum, wbuf->offs);
lnum              814 fs/ubifs/io.c  		err = ubifs_leb_write(c, wbuf->lnum, buf, wbuf->offs,
lnum              834 fs/ubifs/io.c  		dbg_io("write %d bytes to LEB %d:%d", n, wbuf->lnum,
lnum              836 fs/ubifs/io.c  		err = ubifs_leb_write(c, wbuf->lnum, buf + written,
lnum              868 fs/ubifs/io.c  		err = wbuf->sync_callback(c, wbuf->lnum, free, 0);
lnum              880 fs/ubifs/io.c  		  len, wbuf->lnum, wbuf->offs, err);
lnum              883 fs/ubifs/io.c  	ubifs_dump_leb(c, wbuf->lnum);
lnum              902 fs/ubifs/io.c  int ubifs_write_node_hmac(struct ubifs_info *c, void *buf, int len, int lnum,
lnum              908 fs/ubifs/io.c  	       lnum, offs, dbg_ntype(((struct ubifs_ch *)buf)->node_type), len,
lnum              910 fs/ubifs/io.c  	ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0);
lnum              922 fs/ubifs/io.c  	err = ubifs_leb_write(c, lnum, buf, offs, buf_len);
lnum              943 fs/ubifs/io.c  int ubifs_write_node(struct ubifs_info *c, void *buf, int len, int lnum,
lnum              946 fs/ubifs/io.c  	return ubifs_write_node_hmac(c, buf, len, lnum, offs, -1);
lnum              965 fs/ubifs/io.c  			 int lnum, int offs)
lnum              971 fs/ubifs/io.c  	dbg_io("LEB %d:%d, %s, length %d, jhead %s", lnum, offs,
lnum              973 fs/ubifs/io.c  	ubifs_assert(c, wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0);
lnum              978 fs/ubifs/io.c  	overlap = (lnum == wbuf->lnum && offs + len > wbuf->offs);
lnum              982 fs/ubifs/io.c  		return ubifs_read_node(c, buf, type, len, lnum, offs);
lnum              996 fs/ubifs/io.c  		err = ubifs_leb_read(c, lnum, buf, offs, rlen, 0);
lnum             1007 fs/ubifs/io.c  	err = ubifs_check_node(c, buf, lnum, offs, 0, 0);
lnum             1022 fs/ubifs/io.c  	ubifs_err(c, "bad node at LEB %d:%d", lnum, offs);
lnum             1042 fs/ubifs/io.c  		    int lnum, int offs)
lnum             1047 fs/ubifs/io.c  	dbg_io("LEB %d:%d, %s, length %d", lnum, offs, dbg_ntype(type), len);
lnum             1048 fs/ubifs/io.c  	ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0);
lnum             1053 fs/ubifs/io.c  	err = ubifs_leb_read(c, lnum, buf, offs, len, 0);
lnum             1063 fs/ubifs/io.c  	err = ubifs_check_node(c, buf, lnum, offs, 0, 0);
lnum             1078 fs/ubifs/io.c  	ubifs_errc(c, "bad node at LEB %d:%d, LEB mapping status %d", lnum,
lnum             1079 fs/ubifs/io.c  		   offs, ubi_is_mapped(c->ubi, lnum));
lnum             1112 fs/ubifs/io.c  	wbuf->lnum = wbuf->offs = -1;
lnum               81 fs/ubifs/journal.c static void ubifs_add_auth_dirt(struct ubifs_info *c, int lnum)
lnum               84 fs/ubifs/journal.c 		ubifs_add_dirt(c, lnum, ubifs_auth_node_sz(c));
lnum              100 fs/ubifs/journal.c 	int err = 0, err1, retries = 0, avail, lnum, offs, squeeze;
lnum              119 fs/ubifs/journal.c 	if (wbuf->lnum != -1 && avail >= len)
lnum              126 fs/ubifs/journal.c 	lnum = ubifs_find_free_space(c, len, &offs, squeeze);
lnum              127 fs/ubifs/journal.c 	if (lnum >= 0)
lnum              130 fs/ubifs/journal.c 	err = lnum;
lnum              142 fs/ubifs/journal.c 	lnum = ubifs_garbage_collect(c, 0);
lnum              143 fs/ubifs/journal.c 	if (lnum < 0) {
lnum              144 fs/ubifs/journal.c 		err = lnum;
lnum              166 fs/ubifs/journal.c 	dbg_jnl("got LEB %d for jhead %s", lnum, dbg_jhead(jhead));
lnum              169 fs/ubifs/journal.c 	if (wbuf->lnum != -1 && avail >= len) {
lnum              176 fs/ubifs/journal.c 			lnum, wbuf->lnum, wbuf->offs + wbuf->used);
lnum              177 fs/ubifs/journal.c 		err = ubifs_return_leb(c, lnum);
lnum              197 fs/ubifs/journal.c 	err = ubifs_add_bud_to_log(c, jhead, lnum, offs);
lnum              200 fs/ubifs/journal.c 	err = ubifs_wbuf_seek_nolock(wbuf, lnum, offs);
lnum              213 fs/ubifs/journal.c 	err1 = ubifs_return_leb(c, lnum);
lnum              269 fs/ubifs/journal.c 		      int *lnum, int *offs, int sync)
lnum              276 fs/ubifs/journal.c 	*lnum = c->jheads[jhead].wbuf.lnum;
lnum              279 fs/ubifs/journal.c 		dbg_jhead(jhead), *lnum, *offs, len);
lnum              542 fs/ubifs/journal.c 	int err, dlen, ilen, len, lnum, ino_offs, dent_offs;
lnum              635 fs/ubifs/journal.c 	err = write_head(c, BASEHD, dent, len, &lnum, &dent_offs, sync);
lnum              646 fs/ubifs/journal.c 	ubifs_add_auth_dirt(c, lnum);
lnum              655 fs/ubifs/journal.c 		err = ubifs_add_dirt(c, lnum, dlen);
lnum              657 fs/ubifs/journal.c 		err = ubifs_tnc_add_nm(c, &dent_key, lnum, dent_offs, dlen,
lnum              670 fs/ubifs/journal.c 	err = ubifs_tnc_add(c, &ino_key, lnum, ino_offs, ilen, hash_ino);
lnum              676 fs/ubifs/journal.c 	err = ubifs_tnc_add(c, &ino_key, lnum, ino_offs,
lnum              726 fs/ubifs/journal.c 	int err, lnum, offs, compr_type, out_len, compr_len, auth_len;
lnum              794 fs/ubifs/journal.c 	err = write_head(c, DATAHD, data, write_len, &lnum, &offs, 0);
lnum              805 fs/ubifs/journal.c 	ubifs_add_auth_dirt(c, lnum);
lnum              807 fs/ubifs/journal.c 	err = ubifs_tnc_add(c, key, lnum, offs, dlen, hash);
lnum              842 fs/ubifs/journal.c 	int err, lnum, offs;
lnum              929 fs/ubifs/journal.c 	err = write_head(c, BASEHD, ino_start, write_len, &lnum, &offs, sync);
lnum              937 fs/ubifs/journal.c 	ubifs_add_auth_dirt(c, lnum);
lnum              944 fs/ubifs/journal.c 		err = ubifs_add_dirt(c, lnum, write_len);
lnum              949 fs/ubifs/journal.c 		err = ubifs_tnc_add(c, &key, lnum, offs, ilen, hash);
lnum             1055 fs/ubifs/journal.c 	int err, dlen1, dlen2, lnum, offs, len, plen = UBIFS_INO_NODE_SZ;
lnum             1138 fs/ubifs/journal.c 	err = write_head(c, BASEHD, dent1, len, &lnum, &offs, sync);
lnum             1149 fs/ubifs/journal.c 	ubifs_add_auth_dirt(c, lnum);
lnum             1152 fs/ubifs/journal.c 	err = ubifs_tnc_add_nm(c, &key, lnum, offs, dlen1, hash_dent1, snd_nm);
lnum             1158 fs/ubifs/journal.c 	err = ubifs_tnc_add_nm(c, &key, lnum, offs, dlen2, hash_dent2, fst_nm);
lnum             1165 fs/ubifs/journal.c 	err = ubifs_tnc_add(c, &key, lnum, offs, plen, hash_p1);
lnum             1172 fs/ubifs/journal.c 		err = ubifs_tnc_add(c, &key, lnum, offs, plen, hash_p2);
lnum             1220 fs/ubifs/journal.c 	int err, dlen1, dlen2, ilen, lnum, offs, len;
lnum             1338 fs/ubifs/journal.c 	err = write_head(c, BASEHD, dent, len, &lnum, &offs, sync);
lnum             1352 fs/ubifs/journal.c 	ubifs_add_auth_dirt(c, lnum);
lnum             1355 fs/ubifs/journal.c 	err = ubifs_tnc_add_nm(c, &key, lnum, offs, dlen1, hash_dent1, new_nm);
lnum             1362 fs/ubifs/journal.c 		err = ubifs_tnc_add_nm(c, &key, lnum, offs, dlen2, hash_dent2, old_nm);
lnum             1368 fs/ubifs/journal.c 		err = ubifs_add_dirt(c, lnum, dlen2);
lnum             1381 fs/ubifs/journal.c 		err = ubifs_tnc_add(c, &key, lnum, offs, ilen, hash_new_inode);
lnum             1388 fs/ubifs/journal.c 	err = ubifs_tnc_add(c, &key, lnum, offs, plen, hash_old_dir);
lnum             1395 fs/ubifs/journal.c 		err = ubifs_tnc_add(c, &key, lnum, offs, plen, hash_new_dir);
lnum             1510 fs/ubifs/journal.c 	int err, dlen, len, lnum, offs, bit, sz, sync = IS_SYNC(inode);
lnum             1596 fs/ubifs/journal.c 	err = write_head(c, BASEHD, ino, len, &lnum, &offs, sync);
lnum             1603 fs/ubifs/journal.c 	ubifs_add_auth_dirt(c, lnum);
lnum             1607 fs/ubifs/journal.c 		err = ubifs_tnc_add(c, &key, lnum, sz, dlen, hash_dn);
lnum             1613 fs/ubifs/journal.c 	err = ubifs_tnc_add(c, &key, lnum, offs, UBIFS_INO_NODE_SZ, hash_ino);
lnum             1617 fs/ubifs/journal.c 	err = ubifs_add_dirt(c, lnum, UBIFS_TRUN_NODE_SZ);
lnum             1668 fs/ubifs/journal.c 	int err, xlen, hlen, len, lnum, xent_offs, aligned_xlen, write_len;
lnum             1720 fs/ubifs/journal.c 	err = write_head(c, BASEHD, xent, write_len, &lnum, &xent_offs, sync);
lnum             1725 fs/ubifs/journal.c 	ubifs_add_auth_dirt(c, lnum);
lnum             1734 fs/ubifs/journal.c 	err = ubifs_add_dirt(c, lnum, xlen);
lnum             1747 fs/ubifs/journal.c 	err = ubifs_add_dirt(c, lnum, UBIFS_INO_NODE_SZ);
lnum             1753 fs/ubifs/journal.c 	err = ubifs_tnc_add(c, &key1, lnum, xent_offs + len - hlen, hlen, hash);
lnum             1789 fs/ubifs/journal.c 	int err, len1, len2, aligned_len, aligned_len1, lnum, offs;
lnum             1827 fs/ubifs/journal.c 	err = write_head(c, BASEHD, ino, aligned_len, &lnum, &offs, 0);
lnum             1838 fs/ubifs/journal.c 	ubifs_add_auth_dirt(c, lnum);
lnum             1841 fs/ubifs/journal.c 	err = ubifs_tnc_add(c, &key, lnum, offs, len1, hash_host);
lnum             1846 fs/ubifs/journal.c 	err = ubifs_tnc_add(c, &key, lnum, offs + aligned_len1, len2, hash);
lnum               30 fs/ubifs/log.c struct ubifs_bud *ubifs_search_bud(struct ubifs_info *c, int lnum)
lnum               39 fs/ubifs/log.c 		if (lnum < bud->lnum)
lnum               41 fs/ubifs/log.c 		else if (lnum > bud->lnum)
lnum               59 fs/ubifs/log.c struct ubifs_wbuf *ubifs_get_wbuf(struct ubifs_info *c, int lnum)
lnum               72 fs/ubifs/log.c 		if (lnum < bud->lnum)
lnum               74 fs/ubifs/log.c 		else if (lnum > bud->lnum)
lnum              123 fs/ubifs/log.c 		ubifs_assert(c, bud->lnum != b->lnum);
lnum              124 fs/ubifs/log.c 		if (bud->lnum < b->lnum)
lnum              146 fs/ubifs/log.c 	dbg_log("LEB %d:%d, jhead %s, bud_bytes %lld", bud->lnum,
lnum              164 fs/ubifs/log.c int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs)
lnum              224 fs/ubifs/log.c 	bud->lnum = lnum;
lnum              230 fs/ubifs/log.c 	ref->lnum = cpu_to_le32(bud->lnum);
lnum              255 fs/ubifs/log.c 		err = ubifs_leb_map(c, bud->lnum);
lnum              314 fs/ubifs/log.c 		if (wbuf->lnum == bud->lnum) {
lnum              321 fs/ubifs/log.c 				bud->lnum, bud->start, dbg_jhead(bud->jhead),
lnum              327 fs/ubifs/log.c 				bud->lnum, bud->start, dbg_jhead(bud->jhead),
lnum              394 fs/ubifs/log.c 		int lnum = c->jheads[i].wbuf.lnum;
lnum              397 fs/ubifs/log.c 		if (lnum == -1 || offs == c->leb_size)
lnum              401 fs/ubifs/log.c 			lnum, offs, dbg_jhead(i));
lnum              404 fs/ubifs/log.c 		ref->lnum = cpu_to_le32(lnum);
lnum              517 fs/ubifs/log.c 	int lnum, err = 0;
lnum              523 fs/ubifs/log.c 		err = ubifs_return_leb(c, bud->lnum);
lnum              531 fs/ubifs/log.c 	for (lnum = old_ltail_lnum; lnum != c->ltail_lnum;
lnum              532 fs/ubifs/log.c 	     lnum = ubifs_next_log_lnum(c, lnum)) {
lnum              533 fs/ubifs/log.c 		dbg_log("unmap log LEB %d", lnum);
lnum              534 fs/ubifs/log.c 		err = ubifs_leb_unmap(c, lnum);
lnum              550 fs/ubifs/log.c 	int lnum;
lnum              561 fs/ubifs/log.c static int done_already(struct rb_root *done_tree, int lnum)
lnum              569 fs/ubifs/log.c 		if (lnum < dr->lnum)
lnum              571 fs/ubifs/log.c 		else if (lnum > dr->lnum)
lnum              581 fs/ubifs/log.c 	dr->lnum = lnum;
lnum              611 fs/ubifs/log.c static int add_node(struct ubifs_info *c, void *buf, int *lnum, int *offs,
lnum              621 fs/ubifs/log.c 		err = ubifs_leb_change(c, *lnum, buf, sz);
lnum              624 fs/ubifs/log.c 		*lnum = ubifs_next_log_lnum(c, *lnum);
lnum              647 fs/ubifs/log.c 	int lnum, err, first = 1, write_lnum, offs = 0;
lnum              655 fs/ubifs/log.c 	lnum = c->ltail_lnum;
lnum              656 fs/ubifs/log.c 	write_lnum = lnum;
lnum              658 fs/ubifs/log.c 		sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0);
lnum              667 fs/ubifs/log.c 				int ref_lnum = le32_to_cpu(ref->lnum);
lnum              692 fs/ubifs/log.c 		if (lnum == c->lhead_lnum)
lnum              694 fs/ubifs/log.c 		lnum = ubifs_next_log_lnum(c, lnum);
lnum              712 fs/ubifs/log.c 	lnum = write_lnum;
lnum              714 fs/ubifs/log.c 		lnum = ubifs_next_log_lnum(c, lnum);
lnum              715 fs/ubifs/log.c 		err = ubifs_leb_unmap(c, lnum);
lnum              718 fs/ubifs/log.c 	} while (lnum != c->lhead_lnum);
lnum              495 fs/ubifs/lprops.c 	pos = (lprops->lnum - c->main_first) & (UBIFS_LPT_FANOUT - 1);
lnum              532 fs/ubifs/lprops.c 	       lprops->lnum, free, dirty, flags);
lnum              548 fs/ubifs/lprops.c 		lprops = ubifs_lpt_lookup_dirty(c, lprops->lnum);
lnum              552 fs/ubifs/lprops.c 		ubifs_assert(c, lprops == ubifs_lpt_lookup_dirty(c, lprops->lnum));
lnum              649 fs/ubifs/lprops.c int ubifs_change_one_lp(struct ubifs_info *c, int lnum, int free, int dirty,
lnum              657 fs/ubifs/lprops.c 	lp = ubifs_lpt_lookup_dirty(c, lnum);
lnum              672 fs/ubifs/lprops.c 			  lnum, err);
lnum              688 fs/ubifs/lprops.c int ubifs_update_one_lp(struct ubifs_info *c, int lnum, int free, int dirty,
lnum              696 fs/ubifs/lprops.c 	lp = ubifs_lpt_lookup_dirty(c, lnum);
lnum              711 fs/ubifs/lprops.c 			  lnum, err);
lnum              725 fs/ubifs/lprops.c int ubifs_read_one_lp(struct ubifs_info *c, int lnum, struct ubifs_lprops *lp)
lnum              732 fs/ubifs/lprops.c 	lpp = ubifs_lpt_lookup(c, lnum);
lnum              736 fs/ubifs/lprops.c 			  lnum, err);
lnum              863 fs/ubifs/lprops.c 				  lprops->lnum, lprops->free, lprops->dirty,
lnum              869 fs/ubifs/lprops.c 				  lprops->lnum, lprops->free, lprops->dirty,
lnum              879 fs/ubifs/lprops.c 				  lprops->lnum, lprops->free, lprops->dirty,
lnum              885 fs/ubifs/lprops.c 				  lprops->lnum, lprops->free, lprops->dirty,
lnum              909 fs/ubifs/lprops.c 				  lprops->lnum, lprops->free, lprops->dirty,
lnum              915 fs/ubifs/lprops.c 				  lprops->lnum, lprops->free, lprops->dirty,
lnum              921 fs/ubifs/lprops.c 				  lprops->lnum, lprops->free, lprops->dirty,
lnum              971 fs/ubifs/lprops.c 		lp = ubifs_lpt_lookup(c, lprops->lnum);
lnum              978 fs/ubifs/lprops.c 				  (size_t)lprops, (size_t)lp, lprops->lnum,
lnum              979 fs/ubifs/lprops.c 				  lp->lnum);
lnum              989 fs/ubifs/lprops.c 			if (lp->lnum == lprops->lnum) {
lnum             1021 fs/ubifs/lprops.c 	int cat, lnum = lp->lnum, is_idx = 0, used = 0, free, dirty, ret;
lnum             1073 fs/ubifs/lprops.c 		if ((lp->hpos != -1 && heap->arr[lp->hpos]->lnum != lnum) ||
lnum             1102 fs/ubifs/lprops.c 	sleb = ubifs_scan(c, lnum, 0, buf, 0);
lnum             1123 fs/ubifs/lprops.c 				  lnum, snod->offs);
lnum             1134 fs/ubifs/lprops.c 		found = ubifs_tnc_has_node(c, &snod->key, level, lnum,
lnum             1149 fs/ubifs/lprops.c 			  lnum, free, dirty);
lnum             1171 fs/ubifs/lprops.c 	    lnum != c->ihead_lnum) {
lnum             1231 fs/ubifs/lprops.c 		  lnum, lp->free, lp->dirty, lp->flags, free, dirty);
lnum             1232 fs/ubifs/lprops.c 	ubifs_dump_leb(c, lnum);
lnum              384 fs/ubifs/lpt.c 		int lnum = nnode->nbranch[i].lnum;
lnum              386 fs/ubifs/lpt.c 		if (lnum == 0)
lnum              387 fs/ubifs/lpt.c 			lnum = c->lpt_last + 1;
lnum              388 fs/ubifs/lpt.c 		pack_bits(c, &addr, &pos, lnum - c->lpt_first, c->lpt_lnum_bits);
lnum              452 fs/ubifs/lpt.c void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty)
lnum              454 fs/ubifs/lpt.c 	if (!dirty || !lnum)
lnum              457 fs/ubifs/lpt.c 	       lnum, dirty, c->ltab[lnum - c->lpt_first].dirty);
lnum              458 fs/ubifs/lpt.c 	ubifs_assert(c, lnum >= c->lpt_first && lnum <= c->lpt_last);
lnum              459 fs/ubifs/lpt.c 	c->ltab[lnum - c->lpt_first].dirty += dirty;
lnum              469 fs/ubifs/lpt.c static void set_ltab(struct ubifs_info *c, int lnum, int free, int dirty)
lnum              472 fs/ubifs/lpt.c 	       lnum, c->ltab[lnum - c->lpt_first].free,
lnum              473 fs/ubifs/lpt.c 	       c->ltab[lnum - c->lpt_first].dirty, free, dirty);
lnum              474 fs/ubifs/lpt.c 	ubifs_assert(c, lnum >= c->lpt_first && lnum <= c->lpt_last);
lnum              475 fs/ubifs/lpt.c 	c->ltab[lnum - c->lpt_first].free = free;
lnum              476 fs/ubifs/lpt.c 	c->ltab[lnum - c->lpt_first].dirty = dirty;
lnum              489 fs/ubifs/lpt.c 		ubifs_add_lpt_dirt(c, np->nbranch[nnode->iip].lnum,
lnum              507 fs/ubifs/lpt.c 	ubifs_add_lpt_dirt(c, pnode->parent->nbranch[pnode->iip].lnum,
lnum              602 fs/ubifs/lpt.c 	int lnum, err = 0, node_sz, iopos, i, j, cnt, len, alen, row;
lnum              649 fs/ubifs/lpt.c 	lnum = lpt_first;
lnum              694 fs/ubifs/lpt.c 	blnum = lnum; /* LEB number of level below */
lnum              703 fs/ubifs/lpt.c 			set_ltab(c, lnum, c->leb_size - alen, alen - len);
lnum              705 fs/ubifs/lpt.c 			err = ubifs_leb_change(c, lnum++, buf, alen);
lnum              736 fs/ubifs/lpt.c 				set_ltab(c, lnum, c->leb_size - alen,
lnum              739 fs/ubifs/lpt.c 				err = ubifs_leb_change(c, lnum++, buf, alen);
lnum              747 fs/ubifs/lpt.c 				c->lpt_lnum = lnum;
lnum              757 fs/ubifs/lpt.c 					nnode->nbranch[j].lnum = blnum;
lnum              762 fs/ubifs/lpt.c 					nnode->nbranch[j].lnum = 0;
lnum              784 fs/ubifs/lpt.c 			set_ltab(c, lnum, c->leb_size - alen, alen - len);
lnum              786 fs/ubifs/lpt.c 			err = ubifs_leb_change(c, lnum++, buf, alen);
lnum              793 fs/ubifs/lpt.c 		c->lsave_lnum = lnum;
lnum              809 fs/ubifs/lpt.c 		set_ltab(c, lnum, c->leb_size - alen, alen - len);
lnum              811 fs/ubifs/lpt.c 		err = ubifs_leb_change(c, lnum++, buf, alen);
lnum              818 fs/ubifs/lpt.c 	c->ltab_lnum = lnum;
lnum              824 fs/ubifs/lpt.c 	set_ltab(c, lnum, c->leb_size - alen, alen - len);
lnum              831 fs/ubifs/lpt.c 	err = ubifs_leb_change(c, lnum, buf, alen);
lnum              839 fs/ubifs/lpt.c 	c->nhead_lnum = lnum;
lnum              885 fs/ubifs/lpt.c 		int lnum = pnode->lprops[i].lnum;
lnum              887 fs/ubifs/lpt.c 		if (!lnum)
lnum              909 fs/ubifs/lpt.c 		if (!new_pnode->lprops[i].lnum)
lnum             1023 fs/ubifs/lpt.c 		int lnum;
lnum             1025 fs/ubifs/lpt.c 		lnum = ubifs_unpack_bits(c, &addr, &pos, c->lpt_lnum_bits) +
lnum             1027 fs/ubifs/lpt.c 		if (lnum == c->lpt_last + 1)
lnum             1028 fs/ubifs/lpt.c 			lnum = 0;
lnum             1029 fs/ubifs/lpt.c 		nnode->nbranch[i].lnum = lnum;
lnum             1085 fs/ubifs/lpt.c 		int lnum = ubifs_unpack_bits(c, &addr, &pos, c->lnum_bits);
lnum             1087 fs/ubifs/lpt.c 		if (lnum < c->main_first || lnum >= c->leb_cnt)
lnum             1089 fs/ubifs/lpt.c 		c->lsave[i] = lnum;
lnum             1123 fs/ubifs/lpt.c 		int lnum = nnode->nbranch[i].lnum;
lnum             1126 fs/ubifs/lpt.c 		if (lnum == 0) {
lnum             1131 fs/ubifs/lpt.c 		if (lnum < c->lpt_first || lnum > c->lpt_last)
lnum             1185 fs/ubifs/lpt.c 	int i, lnum;
lnum             1187 fs/ubifs/lpt.c 	lnum = (pnode->num << UBIFS_LPT_FANOUT_SHIFT) + c->main_first;
lnum             1189 fs/ubifs/lpt.c 		if (lnum >= c->leb_cnt)
lnum             1191 fs/ubifs/lpt.c 		pnode->lprops[i].lnum = lnum++;
lnum             1208 fs/ubifs/lpt.c 	int err, lnum, offs;
lnum             1212 fs/ubifs/lpt.c 		lnum = branch->lnum;
lnum             1215 fs/ubifs/lpt.c 		lnum = c->lpt_lnum;
lnum             1223 fs/ubifs/lpt.c 	if (lnum == 0) {
lnum             1233 fs/ubifs/lpt.c 		err = ubifs_leb_read(c, lnum, buf, offs, c->nnode_sz, 1);
lnum             1257 fs/ubifs/lpt.c 	ubifs_err(c, "error %d reading nnode at %d:%d", err, lnum, offs);
lnum             1276 fs/ubifs/lpt.c 	int err, lnum, offs;
lnum             1279 fs/ubifs/lpt.c 	lnum = branch->lnum;
lnum             1285 fs/ubifs/lpt.c 	if (lnum == 0) {
lnum             1302 fs/ubifs/lpt.c 		err = ubifs_leb_read(c, lnum, buf, offs, c->pnode_sz, 1);
lnum             1322 fs/ubifs/lpt.c 	ubifs_err(c, "error %d reading pnode at %d:%d", err, lnum, offs);
lnum             1375 fs/ubifs/lpt.c 		int lnum = c->lsave[i];
lnum             1382 fs/ubifs/lpt.c 		if (lnum >= c->leb_cnt)
lnum             1384 fs/ubifs/lpt.c 		lprops = ubifs_lpt_lookup(c, lnum);
lnum             1488 fs/ubifs/lpt.c struct ubifs_lprops *ubifs_lpt_lookup(struct ubifs_info *c, int lnum)
lnum             1493 fs/ubifs/lpt.c 	i = lnum - c->main_first;
lnum             1498 fs/ubifs/lpt.c 	dbg_lp("LEB %d, free %d, dirty %d, flags %d", lnum,
lnum             1603 fs/ubifs/lpt.c struct ubifs_lprops *ubifs_lpt_lookup_dirty(struct ubifs_info *c, int lnum)
lnum             1618 fs/ubifs/lpt.c 	i = lnum - c->main_first;
lnum             1638 fs/ubifs/lpt.c 	dbg_lp("LEB %d, free %d, dirty %d, flags %d", lnum,
lnum             1689 fs/ubifs/lpt.c 				if (nn->nbranch[iip].lnum == 0) {
lnum             1712 fs/ubifs/lpt.c 				if (nn->nbranch[i].lnum == 0)
lnum             1970 fs/ubifs/lpt.c 	if (branch->lnum == 0) {
lnum             1980 fs/ubifs/lpt.c 		err = ubifs_leb_read(c, branch->lnum, buf, branch->offs,
lnum             2029 fs/ubifs/lpt.c 	if (branch->lnum == 0) {
lnum             2046 fs/ubifs/lpt.c 		ubifs_assert(c, branch->lnum >= c->lpt_first &&
lnum             2047 fs/ubifs/lpt.c 			     branch->lnum <= c->lpt_last);
lnum             2049 fs/ubifs/lpt.c 		err = ubifs_leb_read(c, branch->lnum, buf, branch->offs,
lnum             2133 fs/ubifs/lpt.c 		int ret, lnum = lprops->lnum;
lnum             2190 fs/ubifs/lpt.c 		if (lnum == end_lnum) {
lnum             2198 fs/ubifs/lpt.c 		if (lnum + 1 >= c->leb_cnt) {
lnum             2262 fs/ubifs/lpt.c 		int lnum = (pnode->num << UBIFS_LPT_FANOUT_SHIFT) + i +
lnum             2268 fs/ubifs/lpt.c 		if (lnum >= c->leb_cnt)
lnum             2270 fs/ubifs/lpt.c 		if (lprops->lnum != lnum) {
lnum             2272 fs/ubifs/lpt.c 				  lprops->lnum, lnum);
lnum             2278 fs/ubifs/lpt.c 					  lprops->lnum, cat);
lnum             2291 fs/ubifs/lpt.c 					  lprops->lnum, cat);
lnum             2304 fs/ubifs/lpt.c 					  lprops->lnum, cat);
lnum             2345 fs/ubifs/lpt.c 				  lprops->lnum, cat);
lnum             2352 fs/ubifs/lpt.c 					  lprops->lnum, cat, lprops->free,
lnum             2361 fs/ubifs/lpt.c 					  lprops->lnum, cat, lprops->free,
lnum              129 fs/ubifs/lpt_commit.c static void upd_ltab(struct ubifs_info *c, int lnum, int free, int dirty)
lnum              132 fs/ubifs/lpt_commit.c 	       lnum, c->ltab[lnum - c->lpt_first].free,
lnum              133 fs/ubifs/lpt_commit.c 	       c->ltab[lnum - c->lpt_first].dirty, free, dirty);
lnum              134 fs/ubifs/lpt_commit.c 	ubifs_assert(c, lnum >= c->lpt_first && lnum <= c->lpt_last);
lnum              135 fs/ubifs/lpt_commit.c 	c->ltab[lnum - c->lpt_first].free = free;
lnum              136 fs/ubifs/lpt_commit.c 	c->ltab[lnum - c->lpt_first].dirty += dirty;
lnum              149 fs/ubifs/lpt_commit.c static int alloc_lpt_leb(struct ubifs_info *c, int *lnum)
lnum              153 fs/ubifs/lpt_commit.c 	n = *lnum - c->lpt_first + 1;
lnum              159 fs/ubifs/lpt_commit.c 			*lnum = i + c->lpt_first;
lnum              169 fs/ubifs/lpt_commit.c 			*lnum = i + c->lpt_first;
lnum              184 fs/ubifs/lpt_commit.c 	int lnum, offs, len, alen, done_lsave, done_ltab, err;
lnum              193 fs/ubifs/lpt_commit.c 	lnum = c->nhead_lnum;
lnum              200 fs/ubifs/lpt_commit.c 		c->lsave_lnum = lnum;
lnum              208 fs/ubifs/lpt_commit.c 		c->ltab_lnum = lnum;
lnum              224 fs/ubifs/lpt_commit.c 			upd_ltab(c, lnum, c->leb_size - alen, alen - offs);
lnum              226 fs/ubifs/lpt_commit.c 			err = alloc_lpt_leb(c, &lnum);
lnum              230 fs/ubifs/lpt_commit.c 			ubifs_assert(c, lnum >= c->lpt_first &&
lnum              231 fs/ubifs/lpt_commit.c 				     lnum <= c->lpt_last);
lnum              235 fs/ubifs/lpt_commit.c 				c->lsave_lnum = lnum;
lnum              243 fs/ubifs/lpt_commit.c 				c->ltab_lnum = lnum;
lnum              252 fs/ubifs/lpt_commit.c 			cnode->parent->nbranch[cnode->iip].lnum = lnum;
lnum              255 fs/ubifs/lpt_commit.c 			c->lpt_lnum = lnum;
lnum              267 fs/ubifs/lpt_commit.c 			upd_ltab(c, lnum, c->leb_size - alen, alen - offs);
lnum              269 fs/ubifs/lpt_commit.c 			err = alloc_lpt_leb(c, &lnum);
lnum              273 fs/ubifs/lpt_commit.c 			ubifs_assert(c, lnum >= c->lpt_first &&
lnum              274 fs/ubifs/lpt_commit.c 				     lnum <= c->lpt_last);
lnum              277 fs/ubifs/lpt_commit.c 		c->lsave_lnum = lnum;
lnum              287 fs/ubifs/lpt_commit.c 			upd_ltab(c, lnum, c->leb_size - alen, alen - offs);
lnum              289 fs/ubifs/lpt_commit.c 			err = alloc_lpt_leb(c, &lnum);
lnum              293 fs/ubifs/lpt_commit.c 			ubifs_assert(c, lnum >= c->lpt_first &&
lnum              294 fs/ubifs/lpt_commit.c 				     lnum <= c->lpt_last);
lnum              296 fs/ubifs/lpt_commit.c 		c->ltab_lnum = lnum;
lnum              303 fs/ubifs/lpt_commit.c 	upd_ltab(c, lnum, c->leb_size - alen, alen - offs);
lnum              312 fs/ubifs/lpt_commit.c 		  lnum, offs, len, done_ltab, done_lsave);
lnum              333 fs/ubifs/lpt_commit.c static int realloc_lpt_leb(struct ubifs_info *c, int *lnum)
lnum              337 fs/ubifs/lpt_commit.c 	n = *lnum - c->lpt_first + 1;
lnum              341 fs/ubifs/lpt_commit.c 			*lnum = i + c->lpt_first;
lnum              348 fs/ubifs/lpt_commit.c 			*lnum = i + c->lpt_first;
lnum              362 fs/ubifs/lpt_commit.c 	int lnum, offs, len, from, err, wlen, alen, done_ltab, done_lsave;
lnum              369 fs/ubifs/lpt_commit.c 	lnum = c->nhead_lnum;
lnum              374 fs/ubifs/lpt_commit.c 		err = ubifs_leb_unmap(c, lnum);
lnum              406 fs/ubifs/lpt_commit.c 				err = ubifs_leb_write(c, lnum, buf + from, from,
lnum              412 fs/ubifs/lpt_commit.c 			err = realloc_lpt_leb(c, &lnum);
lnum              416 fs/ubifs/lpt_commit.c 			ubifs_assert(c, lnum >= c->lpt_first &&
lnum              417 fs/ubifs/lpt_commit.c 				     lnum <= c->lpt_last);
lnum              418 fs/ubifs/lpt_commit.c 			err = ubifs_leb_unmap(c, lnum);
lnum              465 fs/ubifs/lpt_commit.c 			err = ubifs_leb_write(c, lnum, buf + from, from, alen);
lnum              469 fs/ubifs/lpt_commit.c 			err = realloc_lpt_leb(c, &lnum);
lnum              473 fs/ubifs/lpt_commit.c 			ubifs_assert(c, lnum >= c->lpt_first &&
lnum              474 fs/ubifs/lpt_commit.c 				     lnum <= c->lpt_last);
lnum              475 fs/ubifs/lpt_commit.c 			err = ubifs_leb_unmap(c, lnum);
lnum              491 fs/ubifs/lpt_commit.c 			err = ubifs_leb_write(c, lnum, buf + from, from, alen);
lnum              495 fs/ubifs/lpt_commit.c 			err = realloc_lpt_leb(c, &lnum);
lnum              499 fs/ubifs/lpt_commit.c 			ubifs_assert(c, lnum >= c->lpt_first &&
lnum              500 fs/ubifs/lpt_commit.c 				     lnum <= c->lpt_last);
lnum              501 fs/ubifs/lpt_commit.c 			err = ubifs_leb_unmap(c, lnum);
lnum              514 fs/ubifs/lpt_commit.c 	err = ubifs_leb_write(c, lnum, buf + from, from, alen);
lnum              523 fs/ubifs/lpt_commit.c 	c->nhead_lnum = lnum;
lnum              536 fs/ubifs/lpt_commit.c 		  lnum, offs, len, done_ltab, done_lsave);
lnum              561 fs/ubifs/lpt_commit.c 		if (nnode->nbranch[iip].lnum)
lnum              572 fs/ubifs/lpt_commit.c 			if (nnode->nbranch[iip].lnum)
lnum              585 fs/ubifs/lpt_commit.c 			if (nnode->nbranch[iip].lnum)
lnum              601 fs/ubifs/lpt_commit.c 		if (nnode->nbranch[iip].lnum)
lnum              616 fs/ubifs/lpt_commit.c 	ubifs_add_lpt_dirt(c, pnode->parent->nbranch[pnode->iip].lnum,
lnum              777 fs/ubifs/lpt_commit.c 		c->lsave[cnt++] = lprops->lnum;
lnum              782 fs/ubifs/lpt_commit.c 		c->lsave[cnt++] = lprops->lnum;
lnum              787 fs/ubifs/lpt_commit.c 		c->lsave[cnt++] = lprops->lnum;
lnum              793 fs/ubifs/lpt_commit.c 		c->lsave[cnt++] = heap->arr[i]->lnum;
lnum              799 fs/ubifs/lpt_commit.c 		c->lsave[cnt++] = heap->arr[i]->lnum;
lnum              805 fs/ubifs/lpt_commit.c 		c->lsave[cnt++] = heap->arr[i]->lnum;
lnum              860 fs/ubifs/lpt_commit.c static int make_nnode_dirty(struct ubifs_info *c, int node_num, int lnum,
lnum              872 fs/ubifs/lpt_commit.c 		if (branch->lnum != lnum || branch->offs != offs)
lnum              874 fs/ubifs/lpt_commit.c 	} else if (c->lpt_lnum != lnum || c->lpt_offs != offs)
lnum              909 fs/ubifs/lpt_commit.c static int make_pnode_dirty(struct ubifs_info *c, int node_num, int lnum,
lnum              919 fs/ubifs/lpt_commit.c 	if (branch->lnum != lnum || branch->offs != offs)
lnum              939 fs/ubifs/lpt_commit.c static int make_ltab_dirty(struct ubifs_info *c, int lnum, int offs)
lnum              941 fs/ubifs/lpt_commit.c 	if (lnum != c->ltab_lnum || offs != c->ltab_offs)
lnum              964 fs/ubifs/lpt_commit.c static int make_lsave_dirty(struct ubifs_info *c, int lnum, int offs)
lnum              966 fs/ubifs/lpt_commit.c 	if (lnum != c->lsave_lnum || offs != c->lsave_offs)
lnum              992 fs/ubifs/lpt_commit.c 			   int lnum, int offs)
lnum              996 fs/ubifs/lpt_commit.c 		return make_nnode_dirty(c, node_num, lnum, offs);
lnum              998 fs/ubifs/lpt_commit.c 		return make_pnode_dirty(c, node_num, lnum, offs);
lnum             1000 fs/ubifs/lpt_commit.c 		return make_ltab_dirty(c, lnum, offs);
lnum             1002 fs/ubifs/lpt_commit.c 		return make_lsave_dirty(c, lnum, offs);
lnum             1105 fs/ubifs/lpt_commit.c static int lpt_gc_lnum(struct ubifs_info *c, int lnum)
lnum             1110 fs/ubifs/lpt_commit.c 	dbg_lp("LEB %d", lnum);
lnum             1112 fs/ubifs/lpt_commit.c 	err = ubifs_leb_read(c, lnum, buf, 0, c->leb_size, 1);
lnum             1133 fs/ubifs/lpt_commit.c 		err = make_node_dirty(c, node_type, node_num, lnum, offs);
lnum             1152 fs/ubifs/lpt_commit.c 	int i, lnum = -1, dirty = 0;
lnum             1162 fs/ubifs/lpt_commit.c 			lnum = i + c->lpt_first;
lnum             1166 fs/ubifs/lpt_commit.c 	if (lnum == -1)
lnum             1168 fs/ubifs/lpt_commit.c 	return lpt_gc_lnum(c, lnum);
lnum             1476 fs/ubifs/lpt_commit.c static int dbg_is_nnode_dirty(struct ubifs_info *c, int lnum, int offs)
lnum             1489 fs/ubifs/lpt_commit.c 			if (branch->lnum != lnum || branch->offs != offs)
lnum             1495 fs/ubifs/lpt_commit.c 			if (c->lpt_lnum != lnum || c->lpt_offs != offs)
lnum             1511 fs/ubifs/lpt_commit.c static int dbg_is_pnode_dirty(struct ubifs_info *c, int lnum, int offs)
lnum             1525 fs/ubifs/lpt_commit.c 		if (branch->lnum != lnum || branch->offs != offs)
lnum             1540 fs/ubifs/lpt_commit.c static int dbg_is_ltab_dirty(struct ubifs_info *c, int lnum, int offs)
lnum             1542 fs/ubifs/lpt_commit.c 	if (lnum != c->ltab_lnum || offs != c->ltab_offs)
lnum             1553 fs/ubifs/lpt_commit.c static int dbg_is_lsave_dirty(struct ubifs_info *c, int lnum, int offs)
lnum             1555 fs/ubifs/lpt_commit.c 	if (lnum != c->lsave_lnum || offs != c->lsave_offs)
lnum             1567 fs/ubifs/lpt_commit.c static int dbg_is_node_dirty(struct ubifs_info *c, int node_type, int lnum,
lnum             1572 fs/ubifs/lpt_commit.c 		return dbg_is_nnode_dirty(c, lnum, offs);
lnum             1574 fs/ubifs/lpt_commit.c 		return dbg_is_pnode_dirty(c, lnum, offs);
lnum             1576 fs/ubifs/lpt_commit.c 		return dbg_is_ltab_dirty(c, lnum, offs);
lnum             1578 fs/ubifs/lpt_commit.c 		return dbg_is_lsave_dirty(c, lnum, offs);
lnum             1590 fs/ubifs/lpt_commit.c static int dbg_check_ltab_lnum(struct ubifs_info *c, int lnum)
lnum             1605 fs/ubifs/lpt_commit.c 	dbg_lp("LEB %d", lnum);
lnum             1607 fs/ubifs/lpt_commit.c 	err = ubifs_leb_read(c, lnum, buf, 0, c->leb_size, 1);
lnum             1624 fs/ubifs/lpt_commit.c 					  lnum, c->leb_size - len);
lnum             1627 fs/ubifs/lpt_commit.c 			i = lnum - c->lpt_first;
lnum             1630 fs/ubifs/lpt_commit.c 					  lnum, len, c->ltab[i].free);
lnum             1635 fs/ubifs/lpt_commit.c 					  lnum, dirty, c->ltab[i].dirty);
lnum             1642 fs/ubifs/lpt_commit.c 		ret = dbg_is_node_dirty(c, node_type, lnum, c->leb_size - len);
lnum             1663 fs/ubifs/lpt_commit.c 	int lnum, err, i, cnt;
lnum             1685 fs/ubifs/lpt_commit.c 	for (lnum = c->lpt_first; lnum <= c->lpt_last; lnum++) {
lnum             1686 fs/ubifs/lpt_commit.c 		err = dbg_check_ltab_lnum(c, lnum);
lnum             1688 fs/ubifs/lpt_commit.c 			ubifs_err(c, "failed at LEB %d", lnum);
lnum             1842 fs/ubifs/lpt_commit.c static void dump_lpt_leb(const struct ubifs_info *c, int lnum)
lnum             1847 fs/ubifs/lpt_commit.c 	pr_err("(pid %d) start dumping LEB %d\n", current->pid, lnum);
lnum             1854 fs/ubifs/lpt_commit.c 	err = ubifs_leb_read(c, lnum, buf, 0, c->leb_size, 1);
lnum             1866 fs/ubifs/lpt_commit.c 				       lnum, offs, pad_len);
lnum             1873 fs/ubifs/lpt_commit.c 				       lnum, offs, len);
lnum             1884 fs/ubifs/lpt_commit.c 				       lnum, offs, node_num);
lnum             1886 fs/ubifs/lpt_commit.c 				pr_err("LEB %d:%d, pnode\n", lnum, offs);
lnum             1897 fs/ubifs/lpt_commit.c 				       lnum, offs, node_num);
lnum             1900 fs/ubifs/lpt_commit.c 				       lnum, offs);
lnum             1908 fs/ubifs/lpt_commit.c 				pr_cont("%d:%d", nnode.nbranch[i].lnum,
lnum             1918 fs/ubifs/lpt_commit.c 			pr_err("LEB %d:%d, ltab\n", lnum, offs);
lnum             1922 fs/ubifs/lpt_commit.c 			pr_err("LEB %d:%d, lsave len\n", lnum, offs);
lnum             1933 fs/ubifs/lpt_commit.c 	pr_err("(pid %d) finish dumping LEB %d\n", current->pid, lnum);
lnum             1980 fs/ubifs/lpt_commit.c 		c->lsave[prandom_u32() % c->lsave_cnt] = lprops->lnum;
lnum             1982 fs/ubifs/lpt_commit.c 		c->lsave[prandom_u32() % c->lsave_cnt] = lprops->lnum;
lnum             1984 fs/ubifs/lpt_commit.c 		c->lsave[prandom_u32() % c->lsave_cnt] = lprops->lnum;
lnum             1988 fs/ubifs/lpt_commit.c 		c->lsave[prandom_u32() % c->lsave_cnt] = heap->arr[i]->lnum;
lnum             1991 fs/ubifs/lpt_commit.c 		c->lsave[prandom_u32() % c->lsave_cnt] = heap->arr[i]->lnum;
lnum             1994 fs/ubifs/lpt_commit.c 		c->lsave[prandom_u32() % c->lsave_cnt] = heap->arr[i]->lnum;
lnum               97 fs/ubifs/master.c 	int lnum, offs = 0, nodes_cnt, err;
lnum               99 fs/ubifs/master.c 	lnum = UBIFS_MST_LNUM;
lnum              101 fs/ubifs/master.c 	sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1);
lnum              115 fs/ubifs/master.c 	lnum += 1;
lnum              117 fs/ubifs/master.c 	sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1);
lnum              162 fs/ubifs/master.c 		  snod->type, lnum, snod->offs);
lnum              202 fs/ubifs/master.c 	if (c->zroot.lnum >= c->leb_cnt || c->zroot.lnum < c->main_first ||
lnum              358 fs/ubifs/master.c 	c->zroot.lnum      = le32_to_cpu(c->mst_node->root_lnum);
lnum              439 fs/ubifs/master.c 	int err, lnum, offs, len;
lnum              445 fs/ubifs/master.c 	lnum = UBIFS_MST_LNUM;
lnum              450 fs/ubifs/master.c 		err = ubifs_leb_unmap(c, lnum);
lnum              460 fs/ubifs/master.c 	err = ubifs_write_node_hmac(c, c->mst_node, len, lnum, offs,
lnum              465 fs/ubifs/master.c 	lnum += 1;
lnum              468 fs/ubifs/master.c 		err = ubifs_leb_unmap(c, lnum);
lnum              472 fs/ubifs/master.c 	err = ubifs_write_node_hmac(c, c->mst_node, len, lnum, offs,
lnum              161 fs/ubifs/misc.h static inline int ubifs_add_dirt(struct ubifs_info *c, int lnum, int dirty)
lnum              163 fs/ubifs/misc.h 	return ubifs_update_one_lp(c, lnum, LPROPS_NC, dirty, 0, 0);
lnum              175 fs/ubifs/misc.h static inline int ubifs_return_leb(struct ubifs_info *c, int lnum)
lnum              177 fs/ubifs/misc.h 	return ubifs_change_one_lp(c, lnum, LPROPS_NC, LPROPS_NC, 0,
lnum              270 fs/ubifs/misc.h static inline int ubifs_next_log_lnum(const struct ubifs_info *c, int lnum)
lnum              272 fs/ubifs/misc.h 	lnum += 1;
lnum              273 fs/ubifs/misc.h 	if (lnum > c->log_last)
lnum              274 fs/ubifs/misc.h 		lnum = UBIFS_LOG_LNUM;
lnum              276 fs/ubifs/misc.h 	return lnum;
lnum              409 fs/ubifs/orphan.c 		int lnum;
lnum              412 fs/ubifs/orphan.c 		for (lnum = c->ohead_lnum + 1; lnum <= c->orph_last; lnum++) {
lnum              413 fs/ubifs/orphan.c 			err = ubifs_leb_unmap(c, lnum);
lnum              554 fs/ubifs/orphan.c 	int lnum, err;
lnum              556 fs/ubifs/orphan.c 	for (lnum = c->orph_first; lnum <= c->orph_last; lnum++) {
lnum              557 fs/ubifs/orphan.c 		err = ubifs_leb_unmap(c, lnum);
lnum              641 fs/ubifs/orphan.c 				  snod->type, sleb->lnum, snod->offs);
lnum              669 fs/ubifs/orphan.c 					  cmt_no, sleb->lnum, snod->offs);
lnum              674 fs/ubifs/orphan.c 			dbg_rcvry("out of date LEB %d", sleb->lnum);
lnum              718 fs/ubifs/orphan.c 				  cmt_no, sleb->lnum, snod->offs);
lnum              748 fs/ubifs/orphan.c 	int lnum, err = 0, outofdate = 0, last_flagged = 0;
lnum              768 fs/ubifs/orphan.c 	for (lnum = c->orph_first; lnum <= c->orph_last; lnum++) {
lnum              771 fs/ubifs/orphan.c 		dbg_rcvry("LEB %d", lnum);
lnum              772 fs/ubifs/orphan.c 		sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1);
lnum              775 fs/ubifs/orphan.c 				sleb = ubifs_recover_leb(c, lnum, 0,
lnum              789 fs/ubifs/orphan.c 			c->ohead_lnum = lnum;
lnum              968 fs/ubifs/orphan.c 	int lnum, err = 0;
lnum              981 fs/ubifs/orphan.c 	for (lnum = c->orph_first; lnum <= c->orph_last; lnum++) {
lnum              984 fs/ubifs/orphan.c 		sleb = ubifs_scan(c, lnum, 0, buf, 0);
lnum               97 fs/ubifs/recovery.c static int get_master_node(const struct ubifs_info *c, int lnum, void **pbuf,
lnum              108 fs/ubifs/recovery.c 	err = ubifs_leb_read(c, lnum, sbuf, 0, c->leb_size, 0);
lnum              132 fs/ubifs/recovery.c 		ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1);
lnum              138 fs/ubifs/recovery.c 			ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1);
lnum              152 fs/ubifs/recovery.c 			dbg_rcvry("found a master node at %d:%d", lnum, offs);
lnum              163 fs/ubifs/recovery.c 			dbg_rcvry("found corruption at %d:%d", lnum, offs);
lnum              195 fs/ubifs/recovery.c 	int err = 0, lnum = UBIFS_MST_LNUM, sz = c->mst_node_alsz;
lnum              207 fs/ubifs/recovery.c 	err = ubifs_leb_change(c, lnum, mst, sz);
lnum              210 fs/ubifs/recovery.c 	err = ubifs_leb_change(c, lnum + 1, mst, sz);
lnum              429 fs/ubifs/recovery.c static void clean_buf(const struct ubifs_info *c, void **buf, int lnum,
lnum              434 fs/ubifs/recovery.c 	dbg_rcvry("cleaning corruption at %d:%d", lnum, *offs);
lnum              459 fs/ubifs/recovery.c 			int lnum, int offs)
lnum              472 fs/ubifs/recovery.c 	if (ubifs_check_node(c, buf, lnum, offs, 1, 0) != -EUCLEAN) {
lnum              473 fs/ubifs/recovery.c 		dbg_rcvry("unexpected bad common header at %d:%d", lnum, offs);
lnum              481 fs/ubifs/recovery.c 	dbg_rcvry("unexpected data at %d:%d", lnum, offs + skip);
lnum              494 fs/ubifs/recovery.c 	int lnum = sleb->lnum, endpt = start;
lnum              510 fs/ubifs/recovery.c 			  lnum, start, sleb->endpt);
lnum              514 fs/ubifs/recovery.c 		ucleb->lnum = lnum;
lnum              522 fs/ubifs/recovery.c 			  lnum, start, sleb->endpt);
lnum              524 fs/ubifs/recovery.c 			err = ubifs_leb_unmap(c, lnum);
lnum              531 fs/ubifs/recovery.c 				err = ubifs_leb_read(c, lnum, sleb->buf, 0,
lnum              546 fs/ubifs/recovery.c 			err = ubifs_leb_change(c, lnum, sleb->buf, len);
lnum              575 fs/ubifs/recovery.c 			  sleb->lnum, snod->offs);
lnum              600 fs/ubifs/recovery.c 			  sleb->lnum, snod->offs);
lnum              622 fs/ubifs/recovery.c struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum,
lnum              630 fs/ubifs/recovery.c 	dbg_rcvry("%d:%d, jhead %d, grouped %d", lnum, offs, jhead, grouped);
lnum              632 fs/ubifs/recovery.c 	sleb = ubifs_start_scan(c, lnum, offs, sbuf);
lnum              639 fs/ubifs/recovery.c 			 lnum, offs, len);
lnum              647 fs/ubifs/recovery.c 		ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1);
lnum              670 fs/ubifs/recovery.c 				  ret, lnum, offs);
lnum              683 fs/ubifs/recovery.c 		if (!no_more_nodes(c, buf, len, lnum, offs))
lnum              694 fs/ubifs/recovery.c 				  lnum, offs, corruption);
lnum              768 fs/ubifs/recovery.c 	clean_buf(c, &buf, lnum, &offs, &len);
lnum              769 fs/ubifs/recovery.c 	ubifs_end_scan(c, sleb, lnum, offs);
lnum              780 fs/ubifs/recovery.c 	ubifs_scan_a_node(c, buf, len, lnum, offs, 0);
lnum              782 fs/ubifs/recovery.c 	ubifs_scanned_corruption(c, lnum, offs, buf);
lnum              785 fs/ubifs/recovery.c 	ubifs_err(c, "LEB %d scanning failed", lnum);
lnum              799 fs/ubifs/recovery.c static int get_cs_sqnum(struct ubifs_info *c, int lnum, int offs,
lnum              805 fs/ubifs/recovery.c 	dbg_rcvry("at %d:%d", lnum, offs);
lnum              811 fs/ubifs/recovery.c 	err = ubifs_leb_read(c, lnum, (void *)cs_node, offs,
lnum              815 fs/ubifs/recovery.c 	ret = ubifs_scan_a_node(c, cs_node, UBIFS_CS_NODE_SZ, lnum, offs, 0);
lnum              856 fs/ubifs/recovery.c struct ubifs_scan_leb *ubifs_recover_log_leb(struct ubifs_info *c, int lnum,
lnum              862 fs/ubifs/recovery.c 	dbg_rcvry("LEB %d", lnum);
lnum              863 fs/ubifs/recovery.c 	next_lnum = lnum + 1;
lnum              883 fs/ubifs/recovery.c 				err = get_cs_sqnum(c, lnum, offs, &cs_sqnum);
lnum              891 fs/ubifs/recovery.c 					  lnum);
lnum              898 fs/ubifs/recovery.c 	return ubifs_recover_leb(c, lnum, offs, sbuf, -1);
lnum              912 fs/ubifs/recovery.c static int recover_head(struct ubifs_info *c, int lnum, int offs, void *sbuf)
lnum              923 fs/ubifs/recovery.c 	err = ubifs_leb_read(c, lnum, sbuf, offs, len, 1);
lnum              925 fs/ubifs/recovery.c 		dbg_rcvry("cleaning head at %d:%d", lnum, offs);
lnum              927 fs/ubifs/recovery.c 			return ubifs_leb_unmap(c, lnum);
lnum              928 fs/ubifs/recovery.c 		err = ubifs_leb_read(c, lnum, sbuf, 0, offs, 1);
lnum              931 fs/ubifs/recovery.c 		return ubifs_leb_change(c, lnum, sbuf, offs);
lnum              985 fs/ubifs/recovery.c 	int err, lnum = ucleb->lnum, offs = 0, len = ucleb->endpt, quiet = 1;
lnum              988 fs/ubifs/recovery.c 	dbg_rcvry("LEB %d len %d", lnum, len);
lnum              992 fs/ubifs/recovery.c 		return ubifs_leb_unmap(c, lnum);
lnum              995 fs/ubifs/recovery.c 	err = ubifs_leb_read(c, lnum, buf, offs, len, 0);
lnum             1005 fs/ubifs/recovery.c 		ret = ubifs_scan_a_node(c, buf, len, lnum, offs, quiet);
lnum             1029 fs/ubifs/recovery.c 				  lnum, offs);
lnum             1039 fs/ubifs/recovery.c 		ubifs_scanned_corruption(c, lnum, offs, buf);
lnum             1055 fs/ubifs/recovery.c 	err = ubifs_leb_change(c, lnum, sbuf, len);
lnum             1059 fs/ubifs/recovery.c 	dbg_rcvry("cleaned LEB %d", lnum);
lnum             1103 fs/ubifs/recovery.c 	int lnum, err;
lnum             1120 fs/ubifs/recovery.c 	lnum = ubifs_find_free_leb_for_idx(c);
lnum             1121 fs/ubifs/recovery.c 	if (lnum < 0) {
lnum             1125 fs/ubifs/recovery.c 		return lnum;
lnum             1129 fs/ubifs/recovery.c 	err = ubifs_change_one_lp(c, lnum, LPROPS_NC, LPROPS_NC, 0,
lnum             1134 fs/ubifs/recovery.c 	c->gc_lnum = lnum;
lnum             1135 fs/ubifs/recovery.c 	dbg_rcvry("found empty LEB %d, run commit", lnum);
lnum             1164 fs/ubifs/recovery.c 	dbg_rcvry("GC head LEB %d, offs %d", wbuf->lnum, wbuf->offs);
lnum             1167 fs/ubifs/recovery.c 	if (wbuf->lnum == -1 || wbuf->offs == c->leb_size)
lnum             1191 fs/ubifs/recovery.c 	dbg_rcvry("GC'ing LEB %d", lp.lnum);
lnum             1216 fs/ubifs/recovery.c 	dbg_rcvry("allocated LEB %d for GC", lp.lnum);
lnum             1407 fs/ubifs/recovery.c 	int err, lnum, offs, len;
lnum             1413 fs/ubifs/recovery.c 	err = ubifs_tnc_locate(c, &key, ino, &lnum, &offs);
lnum             1424 fs/ubifs/recovery.c 	err = ubifs_leb_read(c, lnum, c->sbuf, 0, c->leb_size, 1);
lnum             1440 fs/ubifs/recovery.c 	err = ubifs_leb_change(c, lnum, c->sbuf, len);
lnum             1444 fs/ubifs/recovery.c 		  (unsigned long)e->inum, lnum, offs, i_size, e->d_size);
lnum               46 fs/ubifs/replay.c 	int lnum;
lnum               95 fs/ubifs/replay.c 	lp = ubifs_lpt_lookup_dirty(c, b->bud->lnum);
lnum              122 fs/ubifs/replay.c 		dbg_mnt("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum,
lnum              124 fs/ubifs/replay.c 		dbg_gc("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum,
lnum              136 fs/ubifs/replay.c 				b->bud->lnum, lp->free, lp->dirty, b->free,
lnum              148 fs/ubifs/replay.c 				     b->bud->lnum, c->leb_size - b->free);
lnum              247 fs/ubifs/replay.c 		 r->lnum, r->offs, r->len, r->deletion, r->sqnum);
lnum              253 fs/ubifs/replay.c 			err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs,
lnum              278 fs/ubifs/replay.c 			err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs,
lnum              382 fs/ubifs/replay.c static int insert_node(struct ubifs_info *c, int lnum, int offs, int len,
lnum              389 fs/ubifs/replay.c 	dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs);
lnum              400 fs/ubifs/replay.c 	r->lnum = lnum;
lnum              431 fs/ubifs/replay.c static int insert_dent(struct ubifs_info *c, int lnum, int offs, int len,
lnum              439 fs/ubifs/replay.c 	dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs);
lnum              455 fs/ubifs/replay.c 	r->lnum = lnum;
lnum              554 fs/ubifs/replay.c 	err = ubifs_leb_read(c, next->lnum, (char *)&data, next->start, 4, 1);
lnum              648 fs/ubifs/replay.c 				n_not_auth, sleb->lnum);
lnum              652 fs/ubifs/replay.c 				n_not_auth, sleb->lnum);
lnum              674 fs/ubifs/replay.c 	int err = 0, used = 0, lnum = b->bud->lnum, offs = b->bud->start;
lnum              680 fs/ubifs/replay.c 		lnum, b->bud->jhead, offs, is_last);
lnum              689 fs/ubifs/replay.c 		sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead);
lnum              691 fs/ubifs/replay.c 		sleb = ubifs_scan(c, lnum, offs, c->sbuf, 0);
lnum              750 fs/ubifs/replay.c 			err = insert_node(c, lnum, snod->offs, snod->len, hash,
lnum              762 fs/ubifs/replay.c 			err = insert_node(c, lnum, snod->offs, snod->len, hash,
lnum              776 fs/ubifs/replay.c 			err = insert_dent(c, lnum, snod->offs, snod->len, hash,
lnum              802 fs/ubifs/replay.c 			err = insert_node(c, lnum, snod->offs, snod->len, hash,
lnum              811 fs/ubifs/replay.c 				  snod->type, lnum, snod->offs);
lnum              823 fs/ubifs/replay.c 	ubifs_assert(c, ubifs_search_bud(c, lnum));
lnum              830 fs/ubifs/replay.c 		lnum, b->dirty, b->free);
lnum              837 fs/ubifs/replay.c 	ubifs_err(c, "bad node is at LEB %d:%d", lnum, snod->offs);
lnum              894 fs/ubifs/replay.c static int add_replay_bud(struct ubifs_info *c, int lnum, int offs, int jhead,
lnum              901 fs/ubifs/replay.c 	dbg_mnt("add replay bud LEB %d:%d, head %d", lnum, offs, jhead);
lnum              913 fs/ubifs/replay.c 	bud->lnum = lnum;
lnum              952 fs/ubifs/replay.c 	int lnum = le32_to_cpu(ref->lnum);
lnum              961 fs/ubifs/replay.c 	if (jhead >= c->jhead_cnt || lnum >= c->leb_cnt ||
lnum              962 fs/ubifs/replay.c 	    lnum < c->main_first || offs > c->leb_size ||
lnum              967 fs/ubifs/replay.c 	bud = ubifs_search_bud(c, lnum);
lnum              971 fs/ubifs/replay.c 		ubifs_err(c, "bud at LEB %d:%d was already referred", lnum, offs);
lnum              989 fs/ubifs/replay.c static int replay_log_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf)
lnum              996 fs/ubifs/replay.c 	dbg_mnt("replay log LEB %d:%d", lnum, offs);
lnum              997 fs/ubifs/replay.c 	sleb = ubifs_scan(c, lnum, offs, sbuf, c->need_recovery);
lnum             1006 fs/ubifs/replay.c 		sleb = ubifs_recover_log_leb(c, lnum, offs, sbuf);
lnum             1028 fs/ubifs/replay.c 				  lnum, offs);
lnum             1033 fs/ubifs/replay.c 				  lnum, offs,
lnum             1101 fs/ubifs/replay.c 			err = add_replay_bud(c, le32_to_cpu(ref->lnum),
lnum             1124 fs/ubifs/replay.c 		c->lhead_lnum = lnum;
lnum             1135 fs/ubifs/replay.c 		  lnum, offs + snod->offs);
lnum             1186 fs/ubifs/replay.c 	int err, lnum, free;
lnum             1203 fs/ubifs/replay.c 	lnum = c->ltail_lnum = c->lhead_lnum;
lnum             1206 fs/ubifs/replay.c 		err = replay_log_leb(c, lnum, 0, c->sbuf);
lnum             1208 fs/ubifs/replay.c 			if (lnum != c->lhead_lnum)
lnum             1220 fs/ubifs/replay.c 				  lnum, 0);
lnum             1225 fs/ubifs/replay.c 		lnum = ubifs_next_log_lnum(c, lnum);
lnum             1226 fs/ubifs/replay.c 	} while (lnum != c->ltail_lnum);
lnum              281 fs/ubifs/sb.c  	br->lnum = cpu_to_le32(main_first + DEFAULT_DATA_LEB);
lnum              794 fs/ubifs/sb.c  static int fixup_leb(struct ubifs_info *c, int lnum, int len)
lnum              803 fs/ubifs/sb.c  		dbg_mnt("unmap empty LEB %d", lnum);
lnum              804 fs/ubifs/sb.c  		return ubifs_leb_unmap(c, lnum);
lnum              807 fs/ubifs/sb.c  	dbg_mnt("fixup LEB %d, data len %d", lnum, len);
lnum              808 fs/ubifs/sb.c  	err = ubifs_leb_read(c, lnum, c->sbuf, 0, len, 1);
lnum              812 fs/ubifs/sb.c  	return ubifs_leb_change(c, lnum, c->sbuf, len);
lnum              824 fs/ubifs/sb.c  	int lnum, err = 0;
lnum              830 fs/ubifs/sb.c  	for (lnum = UBIFS_MST_LNUM; lnum < UBIFS_LOG_LNUM; lnum++) {
lnum              831 fs/ubifs/sb.c  		err = fixup_leb(c, lnum, c->mst_offs + c->mst_node_alsz);
lnum              837 fs/ubifs/sb.c  	lnum = ubifs_next_log_lnum(c, c->lhead_lnum);
lnum              838 fs/ubifs/sb.c  	while (lnum != c->ltail_lnum) {
lnum              839 fs/ubifs/sb.c  		err = fixup_leb(c, lnum, 0);
lnum              842 fs/ubifs/sb.c  		lnum = ubifs_next_log_lnum(c, lnum);
lnum              855 fs/ubifs/sb.c  	for (lnum = c->lpt_first; lnum <= c->lpt_last; lnum++) {
lnum              856 fs/ubifs/sb.c  		int free = c->ltab[lnum - c->lpt_first].free;
lnum              859 fs/ubifs/sb.c  			err = fixup_leb(c, lnum, c->leb_size - free);
lnum              866 fs/ubifs/sb.c  	for (lnum = c->orph_first; lnum <= c->orph_last; lnum++) {
lnum              867 fs/ubifs/sb.c  		err = fixup_leb(c, lnum, 0);
lnum              873 fs/ubifs/sb.c  	for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) {
lnum              874 fs/ubifs/sb.c  		lprops = ubifs_lpt_lookup(c, lnum);
lnum              881 fs/ubifs/sb.c  			err = fixup_leb(c, lnum, c->leb_size - lprops->free);
lnum               57 fs/ubifs/scan.c int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum,
lnum               66 fs/ubifs/scan.c 		dbg_scan("hit empty space at LEB %d:%d", lnum, offs);
lnum               77 fs/ubifs/scan.c 		 dbg_ntype(ch->node_type), lnum, offs);
lnum               79 fs/ubifs/scan.c 	if (ubifs_check_node(c, buf, lnum, offs, quiet, 1))
lnum               92 fs/ubifs/scan.c 					  lnum, offs);
lnum              107 fs/ubifs/scan.c 			 lnum, offs, ALIGN(offs + node_len + pad_len, 8));
lnum              125 fs/ubifs/scan.c struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum,
lnum              131 fs/ubifs/scan.c 	dbg_scan("scan LEB %d:%d", lnum, offs);
lnum              137 fs/ubifs/scan.c 	sleb->lnum = lnum;
lnum              141 fs/ubifs/scan.c 	err = ubifs_leb_read(c, lnum, sbuf + offs, offs, c->leb_size - offs, 0);
lnum              144 fs/ubifs/scan.c 			  c->leb_size - offs, lnum, offs, err);
lnum              164 fs/ubifs/scan.c 		    int lnum, int offs)
lnum              166 fs/ubifs/scan.c 	dbg_scan("stop scanning LEB %d at offset %d", lnum, offs);
lnum              225 fs/ubifs/scan.c void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs,
lnum              230 fs/ubifs/scan.c 	ubifs_err(c, "corruption at LEB %d:%d", lnum, offs);
lnum              234 fs/ubifs/scan.c 	ubifs_err(c, "first %d bytes from LEB %d:%d", len, lnum, offs);
lnum              254 fs/ubifs/scan.c struct ubifs_scan_leb *ubifs_scan(const struct ubifs_info *c, int lnum,
lnum              261 fs/ubifs/scan.c 	sleb = ubifs_start_scan(c, lnum, offs, sbuf);
lnum              270 fs/ubifs/scan.c 			 lnum, offs, len);
lnum              274 fs/ubifs/scan.c 		ret = ubifs_scan_a_node(c, buf, len, lnum, offs, quiet);
lnum              320 fs/ubifs/scan.c 	ubifs_end_scan(c, sleb, lnum, offs);
lnum              329 fs/ubifs/scan.c 					  lnum, offs);
lnum              337 fs/ubifs/scan.c 		ubifs_scanned_corruption(c, lnum, offs, buf);
lnum              338 fs/ubifs/scan.c 		ubifs_err(c, "LEB %d scanning failed", lnum);
lnum              345 fs/ubifs/scan.c 	ubifs_err(c, "LEB %d scanning failed, error %d", lnum, err);
lnum              644 fs/ubifs/super.c static int bud_wbuf_callback(struct ubifs_info *c, int lnum, int free, int pad)
lnum              646 fs/ubifs/super.c 	return ubifs_update_one_lp(c, lnum, free, pad, 0, 0);
lnum              911 fs/ubifs/super.c 	int lnum, err;
lnum              914 fs/ubifs/super.c 	for (lnum = 0; lnum < c->leb_cnt; lnum++) {
lnum              915 fs/ubifs/super.c 		err = ubifs_is_mapped(c, lnum);
lnum             1416 fs/ubifs/super.c 		int lnum;
lnum             1423 fs/ubifs/super.c 		lnum = c->lhead_lnum + 1;
lnum             1424 fs/ubifs/super.c 		if (lnum >= UBIFS_LOG_LNUM + c->log_lebs)
lnum             1425 fs/ubifs/super.c 			lnum = UBIFS_LOG_LNUM;
lnum             1426 fs/ubifs/super.c 		if (lnum == c->ltail_lnum) {
lnum             1659 fs/ubifs/super.c 	int err, lnum;
lnum             1760 fs/ubifs/super.c 	lnum = c->lhead_lnum + 1;
lnum             1761 fs/ubifs/super.c 	if (lnum >= UBIFS_LOG_LNUM + c->log_lebs)
lnum             1762 fs/ubifs/super.c 		lnum = UBIFS_LOG_LNUM;
lnum             1763 fs/ubifs/super.c 	if (lnum == c->ltail_lnum) {
lnum               70 fs/ubifs/tnc.c static int insert_old_idx(struct ubifs_info *c, int lnum, int offs)
lnum               78 fs/ubifs/tnc.c 	old_idx->lnum = lnum;
lnum               85 fs/ubifs/tnc.c 		if (lnum < o->lnum)
lnum               87 fs/ubifs/tnc.c 		else if (lnum > o->lnum)
lnum              118 fs/ubifs/tnc.c 			return insert_old_idx(c, zbr->lnum, zbr->offs);
lnum              121 fs/ubifs/tnc.c 			return insert_old_idx(c, c->zroot.lnum,
lnum              143 fs/ubifs/tnc.c 			err = insert_old_idx(c, zbr->lnum, zbr->offs);
lnum              146 fs/ubifs/tnc.c 			zbr->lnum = 0;
lnum              152 fs/ubifs/tnc.c 			err = insert_old_idx(c, c->zroot.lnum, c->zroot.offs);
lnum              155 fs/ubifs/tnc.c 			c->zroot.lnum = 0;
lnum              230 fs/ubifs/tnc.c static int add_idx_dirt(struct ubifs_info *c, int lnum, int dirt)
lnum              233 fs/ubifs/tnc.c 	return ubifs_add_dirt(c, lnum, dirt);
lnum              256 fs/ubifs/tnc.c 			err = add_idx_dirt(c, zbr->lnum, zbr->len);
lnum              268 fs/ubifs/tnc.c 		err = insert_old_idx(c, zbr->lnum, zbr->offs);
lnum              271 fs/ubifs/tnc.c 		err = add_idx_dirt(c, zbr->lnum, zbr->len);
lnum              276 fs/ubifs/tnc.c 	zbr->lnum = 0;
lnum              445 fs/ubifs/tnc.c 	int lnum = zbr->lnum;
lnum              451 fs/ubifs/tnc.c 	dbg_io("LEB %d:%d, %s, length %d", lnum, offs, dbg_ntype(type), len);
lnum              453 fs/ubifs/tnc.c 	err = ubifs_leb_read(c, lnum, buf, offs, len, 1);
lnum              456 fs/ubifs/tnc.c 			  type, lnum, offs, err);
lnum              480 fs/ubifs/tnc.c 		ubifs_bad_hash(c, buf, zbr->hash, lnum, offs);
lnum              502 fs/ubifs/tnc.c 	dbg_tnck(key, "LEB %d:%d, key ", zbr->lnum, zbr->offs);
lnum              516 fs/ubifs/tnc.c 			zbr->lnum, zbr->offs, zbr->len);
lnum              993 fs/ubifs/tnc.c 		o_znode->zbranch[o_n].lnum, o_znode->zbranch[o_n].offs,
lnum             1008 fs/ubifs/tnc.c static int matches_position(struct ubifs_zbranch *zbr, int lnum, int offs)
lnum             1010 fs/ubifs/tnc.c 	if (zbr->lnum == lnum && zbr->offs == offs)
lnum             1036 fs/ubifs/tnc.c 				      int lnum, int offs)
lnum             1043 fs/ubifs/tnc.c 	if (matches_position(&znode->zbranch[nn], lnum, offs))
lnum             1055 fs/ubifs/tnc.c 		if (matches_position(&znode->zbranch[nn], lnum, offs)) {
lnum             1075 fs/ubifs/tnc.c 		if (matches_position(&znode->zbranch[nn], lnum, offs))
lnum             1402 fs/ubifs/tnc.c static int maybe_leb_gced(struct ubifs_info *c, int lnum, int gc_seq1)
lnum             1423 fs/ubifs/tnc.c 	if (gced_lnum == lnum)
lnum             1442 fs/ubifs/tnc.c 		     void *node, int *lnum, int *offs)
lnum             1459 fs/ubifs/tnc.c 	if (lnum) {
lnum             1460 fs/ubifs/tnc.c 		*lnum = zt->lnum;
lnum             1480 fs/ubifs/tnc.c 	if (ubifs_get_wbuf(c, zbr.lnum)) {
lnum             1487 fs/ubifs/tnc.c 	if (err <= 0 || maybe_leb_gced(c, zbr.lnum, gc_seq1)) {
lnum             1517 fs/ubifs/tnc.c 	int n, err = 0, lnum = -1, uninitialized_var(offs);
lnum             1542 fs/ubifs/tnc.c 		lnum = znode->zbranch[n].lnum;
lnum             1562 fs/ubifs/tnc.c 		if (lnum < 0) {
lnum             1564 fs/ubifs/tnc.c 			lnum = zbr->lnum;
lnum             1576 fs/ubifs/tnc.c 			if (zbr->lnum != lnum || zbr->offs != offs)
lnum             1647 fs/ubifs/tnc.c static int read_wbuf(struct ubifs_wbuf *wbuf, void *buf, int len, int lnum,
lnum             1653 fs/ubifs/tnc.c 	dbg_io("LEB %d:%d, length %d", lnum, offs, len);
lnum             1654 fs/ubifs/tnc.c 	ubifs_assert(c, wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0);
lnum             1659 fs/ubifs/tnc.c 	overlap = (lnum == wbuf->lnum && offs + len > wbuf->offs);
lnum             1663 fs/ubifs/tnc.c 		return ubifs_leb_read(c, lnum, buf, offs, len, 0);
lnum             1677 fs/ubifs/tnc.c 		return ubifs_leb_read(c, lnum, buf, offs, rlen, 0);
lnum             1703 fs/ubifs/tnc.c 	err = ubifs_check_node(c, buf, zbr->lnum, zbr->offs, 0, 0);
lnum             1711 fs/ubifs/tnc.c 		ubifs_bad_hash(c, buf, zbr->hash, zbr->lnum, zbr->offs);
lnum             1725 fs/ubifs/tnc.c 			  zbr->lnum, zbr->offs);
lnum             1736 fs/ubifs/tnc.c 	ubifs_err(c, "bad node at LEB %d:%d", zbr->lnum, zbr->offs);
lnum             1754 fs/ubifs/tnc.c 	int lnum = bu->zbranch[0].lnum, offs = bu->zbranch[0].offs, len, err, i;
lnum             1766 fs/ubifs/tnc.c 	wbuf = ubifs_get_wbuf(c, lnum);
lnum             1768 fs/ubifs/tnc.c 		err = read_wbuf(wbuf, bu->buf, len, lnum, offs);
lnum             1770 fs/ubifs/tnc.c 		err = ubifs_leb_read(c, lnum, bu->buf, offs, len, 0);
lnum             1773 fs/ubifs/tnc.c 	if (maybe_leb_gced(c, lnum, bu->gc_seq))
lnum             1778 fs/ubifs/tnc.c 			  lnum, offs, err);
lnum             2219 fs/ubifs/tnc.c 		zbr->lnum = 0;
lnum             2242 fs/ubifs/tnc.c 	zi->zbranch[0].lnum = c->zroot.lnum;
lnum             2248 fs/ubifs/tnc.c 	c->zroot.lnum = 0;
lnum             2274 fs/ubifs/tnc.c int ubifs_tnc_add(struct ubifs_info *c, const union ubifs_key *key, int lnum,
lnum             2281 fs/ubifs/tnc.c 	dbg_tnck(key, "%d:%d, len %d, key ", lnum, offs, len);
lnum             2287 fs/ubifs/tnc.c 		zbr.lnum = lnum;
lnum             2297 fs/ubifs/tnc.c 		err = ubifs_add_dirt(c, zbr->lnum, zbr->len);
lnum             2298 fs/ubifs/tnc.c 		zbr->lnum = lnum;
lnum             2326 fs/ubifs/tnc.c 		      int old_lnum, int old_offs, int lnum, int offs, int len)
lnum             2333 fs/ubifs/tnc.c 		 old_offs, lnum, offs, len);
lnum             2344 fs/ubifs/tnc.c 		if (zbr->lnum == old_lnum && zbr->offs == old_offs) {
lnum             2346 fs/ubifs/tnc.c 			err = ubifs_add_dirt(c, zbr->lnum, zbr->len);
lnum             2349 fs/ubifs/tnc.c 			zbr->lnum = lnum;
lnum             2374 fs/ubifs/tnc.c 				err = ubifs_add_dirt(c, zbr->lnum,
lnum             2378 fs/ubifs/tnc.c 				zbr->lnum = lnum;
lnum             2386 fs/ubifs/tnc.c 		err = ubifs_add_dirt(c, lnum, len);
lnum             2410 fs/ubifs/tnc.c 		     int lnum, int offs, int len, const u8 *hash,
lnum             2417 fs/ubifs/tnc.c 	dbg_tnck(key, "LEB %d:%d, key ", lnum, offs);
lnum             2449 fs/ubifs/tnc.c 			err = ubifs_add_dirt(c, zbr->lnum, zbr->len);
lnum             2450 fs/ubifs/tnc.c 			zbr->lnum = lnum;
lnum             2462 fs/ubifs/tnc.c 		zbr.lnum = lnum;
lnum             2517 fs/ubifs/tnc.c 	err = ubifs_add_dirt(c, zbr->lnum, zbr->len);
lnum             2584 fs/ubifs/tnc.c 				err = insert_old_idx(c, c->zroot.lnum,
lnum             2589 fs/ubifs/tnc.c 			c->zroot.lnum = zbr->lnum;
lnum             2830 fs/ubifs/tnc.c 			err = ubifs_add_dirt(c, znode->zbranch[i].lnum,
lnum             3177 fs/ubifs/tnc.c 					int lnum, int offs)
lnum             3199 fs/ubifs/tnc.c 	if (c->zroot.lnum == lnum && c->zroot.offs == offs)
lnum             3230 fs/ubifs/tnc.c 	if (znode->zbranch[n].lnum == lnum && znode->zbranch[n].offs == offs)
lnum             3255 fs/ubifs/tnc.c 		if (znode->zbranch[n].lnum == lnum &&
lnum             3277 fs/ubifs/tnc.c 		if (znode->zbranch[n].lnum == lnum &&
lnum             3305 fs/ubifs/tnc.c 		       int lnum, int offs)
lnum             3309 fs/ubifs/tnc.c 	znode = lookup_znode(c, key, level, lnum, offs);
lnum             3332 fs/ubifs/tnc.c 			       int lnum, int offs)
lnum             3345 fs/ubifs/tnc.c 	if (lnum == zbr->lnum && offs == zbr->offs)
lnum             3365 fs/ubifs/tnc.c 		if (lnum == zbr->lnum && offs == zbr->offs)
lnum             3381 fs/ubifs/tnc.c 		if (lnum == zbr->lnum && offs == zbr->offs)
lnum             3402 fs/ubifs/tnc.c 		       int lnum, int offs, int is_idx)
lnum             3408 fs/ubifs/tnc.c 		err = is_idx_node_in_tnc(c, key, level, lnum, offs);
lnum             3420 fs/ubifs/tnc.c 		err = is_leaf_node_in_tnc(c, key, lnum, offs);
lnum             3442 fs/ubifs/tnc.c 			 int lnum, int offs)
lnum             3448 fs/ubifs/tnc.c 	znode = lookup_znode(c, key, level, lnum, offs);
lnum               26 fs/ubifs/tnc_commit.c 			 struct ubifs_znode *znode, int lnum, int offs, int len)
lnum               41 fs/ubifs/tnc_commit.c 		br->lnum = cpu_to_le32(zbr->lnum);
lnum               45 fs/ubifs/tnc_commit.c 		if (!zbr->lnum || !zbr->len) {
lnum               57 fs/ubifs/tnc_commit.c 	znode->lnum = lnum;
lnum               69 fs/ubifs/tnc_commit.c 		zbr->lnum = lnum;
lnum               74 fs/ubifs/tnc_commit.c 		c->zroot.lnum = lnum;
lnum              106 fs/ubifs/tnc_commit.c static int fill_gap(struct ubifs_info *c, int lnum, int gap_start, int gap_end,
lnum              129 fs/ubifs/tnc_commit.c 					    lnum, gap_pos, len);
lnum              149 fs/ubifs/tnc_commit.c 	       lnum, gap_start, gap_end, gap_end - gap_start, written, pad_len);
lnum              163 fs/ubifs/tnc_commit.c static int find_old_idx(struct ubifs_info *c, int lnum, int offs)
lnum              171 fs/ubifs/tnc_commit.c 		if (lnum < o->lnum)
lnum              173 fs/ubifs/tnc_commit.c 		else if (lnum > o->lnum)
lnum              199 fs/ubifs/tnc_commit.c 			      int level, int lnum, int offs)
lnum              203 fs/ubifs/tnc_commit.c 	ret = is_idx_node_in_tnc(c, key, level, lnum, offs);
lnum              207 fs/ubifs/tnc_commit.c 		if (find_old_idx(c, lnum, offs))
lnum              228 fs/ubifs/tnc_commit.c 	int lnum, dirt = 0, gap_start, gap_end, err, written, tot_written;
lnum              232 fs/ubifs/tnc_commit.c 	lnum = ubifs_find_dirty_idx_leb(c);
lnum              233 fs/ubifs/tnc_commit.c 	if (lnum < 0)
lnum              238 fs/ubifs/tnc_commit.c 		return lnum; /* Error code */
lnum              239 fs/ubifs/tnc_commit.c 	c->gap_lebs[p] = lnum;
lnum              240 fs/ubifs/tnc_commit.c 	dbg_gc("LEB %d", lnum);
lnum              246 fs/ubifs/tnc_commit.c 	sleb = ubifs_scan(c, lnum, 0, c->ileb_buf, 0);
lnum              260 fs/ubifs/tnc_commit.c 		in_use = is_idx_node_in_use(c, &snod->key, level, lnum,
lnum              277 fs/ubifs/tnc_commit.c 			written = fill_gap(c, lnum, gap_start, gap_end, &dirt);
lnum              290 fs/ubifs/tnc_commit.c 	written = fill_gap(c, lnum, gap_start, gap_end, &dirt);
lnum              297 fs/ubifs/tnc_commit.c 		dbg_gc("LEB %d wrote %d index nodes", lnum, tot_written);
lnum              298 fs/ubifs/tnc_commit.c 		err = ubifs_read_one_lp(c, lnum, &lp);
lnum              306 fs/ubifs/tnc_commit.c 			err = ubifs_change_one_lp(c, lnum,
lnum              314 fs/ubifs/tnc_commit.c 	err = ubifs_change_one_lp(c, lnum, c->leb_size - c->ileb_len, dirt,
lnum              318 fs/ubifs/tnc_commit.c 	err = ubifs_leb_change(c, lnum, c->ileb_buf, c->ileb_len);
lnum              321 fs/ubifs/tnc_commit.c 	dbg_gc("LEB %d wrote %d index nodes", lnum, tot_written);
lnum              432 fs/ubifs/tnc_commit.c 	int lnum, offs, len, next_len, buf_len, buf_offs, used, avail;
lnum              439 fs/ubifs/tnc_commit.c 	lnum = c->ihead_lnum;
lnum              450 fs/ubifs/tnc_commit.c 		lnum = -1;
lnum              458 fs/ubifs/tnc_commit.c 		if (lnum == -1) {
lnum              463 fs/ubifs/tnc_commit.c 			lnum = c->ilebs[c->ileb_nxt++];
lnum              471 fs/ubifs/tnc_commit.c 		znode->lnum = lnum;
lnum              483 fs/ubifs/tnc_commit.c 			zbr->lnum = lnum;
lnum              487 fs/ubifs/tnc_commit.c 			c->zroot.lnum = lnum;
lnum              529 fs/ubifs/tnc_commit.c 				err = ubifs_update_one_lp(c, lnum,
lnum              534 fs/ubifs/tnc_commit.c 				lnum = -1;
lnum              542 fs/ubifs/tnc_commit.c 		err = ubifs_update_one_lp(c, lnum, c->leb_size - buf_offs,
lnum              549 fs/ubifs/tnc_commit.c 	c->dbg->new_ihead_lnum = lnum;
lnum              685 fs/ubifs/tnc_commit.c 	int i, leb_cnt, lnum;
lnum              697 fs/ubifs/tnc_commit.c 		lnum = ubifs_find_free_leb_for_idx(c);
lnum              698 fs/ubifs/tnc_commit.c 		if (lnum < 0)
lnum              699 fs/ubifs/tnc_commit.c 			return lnum;
lnum              700 fs/ubifs/tnc_commit.c 		c->ilebs[c->ileb_cnt++] = lnum;
lnum              701 fs/ubifs/tnc_commit.c 		dbg_cmt("LEB %d", lnum);
lnum              719 fs/ubifs/tnc_commit.c 	int i, err = 0, lnum, er;
lnum              722 fs/ubifs/tnc_commit.c 		lnum = c->ilebs[i];
lnum              723 fs/ubifs/tnc_commit.c 		dbg_cmt("LEB %d", lnum);
lnum              724 fs/ubifs/tnc_commit.c 		er = ubifs_change_one_lp(c, lnum, LPROPS_NC, LPROPS_NC, 0,
lnum              828 fs/ubifs/tnc_commit.c 	int i, lnum, offs, len, next_len, buf_len, buf_offs, used;
lnum              839 fs/ubifs/tnc_commit.c 	lnum = c->ihead_lnum;
lnum              850 fs/ubifs/tnc_commit.c 		err = ubifs_update_one_lp(c, lnum, LPROPS_NC, 0, 0,
lnum              854 fs/ubifs/tnc_commit.c 		lnum = -1;
lnum              874 fs/ubifs/tnc_commit.c 			br->lnum = cpu_to_le32(zbr->lnum);
lnum              878 fs/ubifs/tnc_commit.c 			if (!zbr->lnum || !zbr->len) {
lnum              908 fs/ubifs/tnc_commit.c 		if (lnum == -1) {
lnum              909 fs/ubifs/tnc_commit.c 			lnum = c->ilebs[lnum_pos++];
lnum              916 fs/ubifs/tnc_commit.c 		if (lnum != znode->lnum || offs != znode->offs ||
lnum              992 fs/ubifs/tnc_commit.c 		err = ubifs_leb_write(c, lnum, c->cbuf, buf_offs, blen);
lnum              998 fs/ubifs/tnc_commit.c 				err = ubifs_update_one_lp(c, lnum, LPROPS_NC, 0,
lnum             1002 fs/ubifs/tnc_commit.c 				lnum = -1;
lnum             1014 fs/ubifs/tnc_commit.c 	if (lnum != c->dbg->new_ihead_lnum ||
lnum             1020 fs/ubifs/tnc_commit.c 	c->ihead_lnum = lnum;
lnum              268 fs/ubifs/tnc_misc.c 	int lnum = zzbr->lnum;
lnum              278 fs/ubifs/tnc_misc.c 	err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs);
lnum              286 fs/ubifs/tnc_misc.c 		ubifs_bad_hash(c, idx, zzbr->hash, lnum, offs);
lnum              295 fs/ubifs/tnc_misc.c 		lnum, offs, znode->level, znode->child_cnt);
lnum              311 fs/ubifs/tnc_misc.c 		zbr->lnum = le32_to_cpu(br->lnum);
lnum              319 fs/ubifs/tnc_misc.c 		if (zbr->lnum < c->main_first ||
lnum              320 fs/ubifs/tnc_misc.c 		    zbr->lnum >= c->leb_cnt || zbr->offs < 0 ||
lnum              392 fs/ubifs/tnc_misc.c 	ubifs_err(c, "bad indexing node at LEB %d:%d, error %d", lnum, offs, err);
lnum              472 fs/ubifs/tnc_misc.c 	wbuf = ubifs_get_wbuf(c, zbr->lnum);
lnum              475 fs/ubifs/tnc_misc.c 					   zbr->lnum, zbr->offs);
lnum              477 fs/ubifs/tnc_misc.c 		err = ubifs_read_node(c, node, type, zbr->len, zbr->lnum,
lnum              489 fs/ubifs/tnc_misc.c 			  zbr->lnum, zbr->offs);
lnum              498 fs/ubifs/tnc_misc.c 		ubifs_bad_hash(c, node, zbr->hash, zbr->lnum, zbr->offs);
lnum              768 fs/ubifs/ubifs-media.h 	__le32 lnum;
lnum              813 fs/ubifs/ubifs-media.h 	__le32 lnum;
lnum              279 fs/ubifs/ubifs.h 	int lnum;
lnum              320 fs/ubifs/ubifs.h 	int lnum;
lnum              339 fs/ubifs/ubifs.h 	int lnum;
lnum              434 fs/ubifs/ubifs.h 	int lnum;
lnum              480 fs/ubifs/ubifs.h 	int lnum;
lnum              587 fs/ubifs/ubifs.h 	int lnum;
lnum              684 fs/ubifs/ubifs.h 	int lnum;
lnum              690 fs/ubifs/ubifs.h 	int (*sync_callback)(struct ubifs_info *c, int lnum, int free, int pad);
lnum              710 fs/ubifs/ubifs.h 	int lnum;
lnum              749 fs/ubifs/ubifs.h 	int lnum;
lnum              786 fs/ubifs/ubifs.h 	int lnum;
lnum             1595 fs/ubifs/ubifs.h 		    const u8 *hash, int lnum, int offs);
lnum             1702 fs/ubifs/ubifs.h int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs,
lnum             1704 fs/ubifs/ubifs.h int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs,
lnum             1706 fs/ubifs/ubifs.h int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len);
lnum             1707 fs/ubifs/ubifs.h int ubifs_leb_unmap(struct ubifs_info *c, int lnum);
lnum             1708 fs/ubifs/ubifs.h int ubifs_leb_map(struct ubifs_info *c, int lnum);
lnum             1709 fs/ubifs/ubifs.h int ubifs_is_mapped(const struct ubifs_info *c, int lnum);
lnum             1711 fs/ubifs/ubifs.h int ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs);
lnum             1714 fs/ubifs/ubifs.h 		    int lnum, int offs);
lnum             1716 fs/ubifs/ubifs.h 			 int lnum, int offs);
lnum             1717 fs/ubifs/ubifs.h int ubifs_write_node(struct ubifs_info *c, void *node, int len, int lnum,
lnum             1719 fs/ubifs/ubifs.h int ubifs_write_node_hmac(struct ubifs_info *c, void *buf, int len, int lnum,
lnum             1721 fs/ubifs/ubifs.h int ubifs_check_node(const struct ubifs_info *c, const void *buf, int lnum,
lnum             1737 fs/ubifs/ubifs.h struct ubifs_scan_leb *ubifs_scan(const struct ubifs_info *c, int lnum,
lnum             1740 fs/ubifs/ubifs.h int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum,
lnum             1742 fs/ubifs/ubifs.h struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum,
lnum             1745 fs/ubifs/ubifs.h 		    int lnum, int offs);
lnum             1748 fs/ubifs/ubifs.h void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs,
lnum             1754 fs/ubifs/ubifs.h int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs);
lnum             1755 fs/ubifs/ubifs.h struct ubifs_bud *ubifs_search_bud(struct ubifs_info *c, int lnum);
lnum             1756 fs/ubifs/ubifs.h struct ubifs_wbuf *ubifs_get_wbuf(struct ubifs_info *c, int lnum);
lnum             1825 fs/ubifs/ubifs.h 		     void *node, int *lnum, int *offs);
lnum             1826 fs/ubifs/ubifs.h int ubifs_tnc_add(struct ubifs_info *c, const union ubifs_key *key, int lnum,
lnum             1829 fs/ubifs/ubifs.h 		      int old_lnum, int old_offs, int lnum, int offs, int len);
lnum             1831 fs/ubifs/ubifs.h 		     int lnum, int offs, int len, const u8 *hash,
lnum             1846 fs/ubifs/ubifs.h 		       int lnum, int offs, int is_idx);
lnum             1848 fs/ubifs/ubifs.h 			 int lnum, int offs);
lnum             1852 fs/ubifs/ubifs.h 		       int lnum, int offs);
lnum             1931 fs/ubifs/ubifs.h struct ubifs_lprops *ubifs_lpt_lookup(struct ubifs_info *c, int lnum);
lnum             1932 fs/ubifs/ubifs.h struct ubifs_lprops *ubifs_lpt_lookup_dirty(struct ubifs_info *c, int lnum);
lnum             1950 fs/ubifs/ubifs.h void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty);
lnum             1978 fs/ubifs/ubifs.h int ubifs_change_one_lp(struct ubifs_info *c, int lnum, int free, int dirty,
lnum             1980 fs/ubifs/ubifs.h int ubifs_update_one_lp(struct ubifs_info *c, int lnum, int free, int dirty,
lnum             1982 fs/ubifs/ubifs.h int ubifs_read_one_lp(struct ubifs_info *c, int lnum, struct ubifs_lprops *lp);
lnum             2039 fs/ubifs/ubifs.h struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum,
lnum             2041 fs/ubifs/ubifs.h struct ubifs_scan_leb *ubifs_recover_log_leb(struct ubifs_info *c, int lnum,
lnum              237 include/linux/mtd/ubi.h int ubi_leb_read(struct ubi_volume_desc *desc, int lnum, char *buf, int offset,
lnum              239 include/linux/mtd/ubi.h int ubi_leb_read_sg(struct ubi_volume_desc *desc, int lnum, struct ubi_sgl *sgl,
lnum              241 include/linux/mtd/ubi.h int ubi_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf,
lnum              243 include/linux/mtd/ubi.h int ubi_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf,
lnum              245 include/linux/mtd/ubi.h int ubi_leb_erase(struct ubi_volume_desc *desc, int lnum);
lnum              246 include/linux/mtd/ubi.h int ubi_leb_unmap(struct ubi_volume_desc *desc, int lnum);
lnum              247 include/linux/mtd/ubi.h int ubi_leb_map(struct ubi_volume_desc *desc, int lnum);
lnum              248 include/linux/mtd/ubi.h int ubi_is_mapped(struct ubi_volume_desc *desc, int lnum);
lnum              250 include/linux/mtd/ubi.h int ubi_flush(int ubi_num, int vol_id, int lnum);
lnum              256 include/linux/mtd/ubi.h static inline int ubi_read(struct ubi_volume_desc *desc, int lnum, char *buf,
lnum              259 include/linux/mtd/ubi.h 	return ubi_leb_read(desc, lnum, buf, offset, len, 0);
lnum              266 include/linux/mtd/ubi.h static inline int ubi_read_sg(struct ubi_volume_desc *desc, int lnum,
lnum              269 include/linux/mtd/ubi.h 	return ubi_leb_read_sg(desc, lnum, sgl, offset, len, 0);
lnum              300 include/media/davinci/isif.h 	__u8 lnum;
lnum              425 include/uapi/mtd/ubi-user.h 	__s32 lnum;
lnum              438 include/uapi/mtd/ubi-user.h 	__s32 lnum;
lnum              911 security/integrity/ima/ima_policy.c 		unsigned long lnum;
lnum             1094 security/integrity/ima/ima_policy.c 			result = kstrtoul(args[0].from, 10, &lnum);
lnum             1097 security/integrity/ima/ima_policy.c 						       (uid_t) lnum);
lnum             1099 security/integrity/ima/ima_policy.c 				    (uid_t)lnum != lnum)
lnum             1122 security/integrity/ima/ima_policy.c 			result = kstrtoul(args[0].from, 10, &lnum);
lnum             1124 security/integrity/ima/ima_policy.c 				entry->fowner = make_kuid(current_user_ns(), (uid_t)lnum);
lnum             1125 security/integrity/ima/ima_policy.c 				if (!uid_valid(entry->fowner) || (((uid_t)lnum) != lnum))