Lines Matching defs:lnum
51 * @lnum: logical eraseblock number
57 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum,
66 dbg_scan("hit empty space at LEB %d:%d", lnum, offs);
77 dbg_ntype(ch->node_type), lnum, offs);
79 if (ubifs_check_node(c, buf, len, lnum, offs, quiet, 1))
92 lnum, offs);
107 lnum, offs, ALIGN(offs + node_len + pad_len, 8));
118 * @lnum: logical eraseblock number
125 struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum,
131 dbg_scan("scan LEB %d:%d", lnum, offs);
137 sleb->lnum = lnum;
141 err = ubifs_leb_read(c, lnum, sbuf + offs, offs, c->leb_size - offs, 0);
144 c->leb_size - offs, lnum, offs, err);
160 * @lnum: logical eraseblock number
164 int lnum, int offs)
166 dbg_scan("stop scanning LEB %d at offset %d", lnum, offs);
221 * @lnum: LEB number of corruption
225 void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs,
230 ubifs_err(c, "corruption at LEB %d:%d", lnum, offs);
234 ubifs_err(c, "first %d bytes from LEB %d:%d", len, lnum, offs);
241 * @lnum: logical eraseblock number
246 * This function scans LEB number @lnum and returns complete information about
254 struct ubifs_scan_leb *ubifs_scan(const struct ubifs_info *c, int lnum,
261 sleb = ubifs_start_scan(c, lnum, offs, sbuf);
270 lnum, offs, len);
274 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, quiet);
320 ubifs_end_scan(c, sleb, lnum, offs);
329 lnum, offs);
337 ubifs_scanned_corruption(c, lnum, offs, buf);
338 ubifs_err(c, "LEB %d scanning failed", lnum);
345 ubifs_err(c, "LEB %d scanning failed, error %d", lnum, err);