Lines Matching defs:len
23 * @len: length of buffer
28 static int scan_padding_bytes(void *buf, int len)
30 int pad_len = 0, max_pad_len = min_t(int, UBIFS_PAD_NODE_SZ, len);
50 * @len: length of buffer
57 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum,
71 return scan_padding_bytes(buf, len);
73 if (len < UBIFS_CH_SZ)
79 if (ubifs_check_node(c, buf, len, lnum, offs, quiet, 1))
85 int node_len = le32_to_cpu(ch->len);
93 ubifs_dump_node(c, pad, len);
195 snod->len = le32_to_cpu(ch->len);
228 int len;
231 len = c->leb_size - offs;
232 if (len > 8192)
233 len = 8192;
234 ubifs_err(c, "first %d bytes from LEB %d:%d", len, lnum, offs);
235 print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 32, 4, buf, len, 1);
258 int err, len = c->leb_size - offs;
265 while (len >= 8) {
270 lnum, offs, len);
274 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, quiet);
279 len -= ret;
307 node_len = ALIGN(le32_to_cpu(ch->len), 8);
310 len -= node_len;
322 for (; len > 4; offs += 4, buf = buf + 4, len -= 4)
325 for (; len; offs++, buf++, len--)