Lines Matching refs:lnum
57 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum, in ubifs_scan_a_node() argument
66 dbg_scan("hit empty space at LEB %d:%d", lnum, offs); in ubifs_scan_a_node()
77 dbg_ntype(ch->node_type), lnum, offs); in ubifs_scan_a_node()
79 if (ubifs_check_node(c, buf, len, lnum, offs, quiet, 1)) in ubifs_scan_a_node()
92 lnum, offs); in ubifs_scan_a_node()
107 lnum, offs, ALIGN(offs + node_len + pad_len, 8)); in ubifs_scan_a_node()
125 struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum, in ubifs_start_scan() argument
131 dbg_scan("scan LEB %d:%d", lnum, offs); in ubifs_start_scan()
137 sleb->lnum = lnum; in ubifs_start_scan()
141 err = ubifs_leb_read(c, lnum, sbuf + offs, offs, c->leb_size - offs, 0); in ubifs_start_scan()
144 c->leb_size - offs, lnum, offs, err); in ubifs_start_scan()
164 int lnum, int offs) in ubifs_end_scan() argument
166 dbg_scan("stop scanning LEB %d at offset %d", lnum, offs); in ubifs_end_scan()
225 void ubifs_scanned_corruption(const struct ubifs_info *c, int lnum, int offs, in ubifs_scanned_corruption() argument
230 ubifs_err(c, "corruption at LEB %d:%d", lnum, offs); in ubifs_scanned_corruption()
234 ubifs_err(c, "first %d bytes from LEB %d:%d", len, lnum, offs); in ubifs_scanned_corruption()
254 struct ubifs_scan_leb *ubifs_scan(const struct ubifs_info *c, int lnum, in ubifs_scan() argument
261 sleb = ubifs_start_scan(c, lnum, offs, sbuf); in ubifs_scan()
270 lnum, offs, len); in ubifs_scan()
274 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, quiet); in ubifs_scan()
320 ubifs_end_scan(c, sleb, lnum, offs); in ubifs_scan()
329 lnum, offs); in ubifs_scan()
337 ubifs_scanned_corruption(c, lnum, offs, buf); in ubifs_scan()
338 ubifs_err(c, "LEB %d scanning failed", lnum); in ubifs_scan()
345 ubifs_err(c, "LEB %d scanning failed, error %d", lnum, err); in ubifs_scan()