Lines Matching refs:pad_len
42 int pad_len = 0, max_pad_len = min_t(int, UBIFS_PAD_NODE_SZ, len); in scan_padding_bytes() local
47 while (pad_len < max_pad_len && *p++ == UBIFS_PADDING_BYTE) in scan_padding_bytes()
48 pad_len += 1; in scan_padding_bytes()
50 if (!pad_len || (pad_len & 7)) in scan_padding_bytes()
53 dbg_scan("%d padding bytes", pad_len); in scan_padding_bytes()
55 return pad_len; in scan_padding_bytes()
95 int pad_len = le32_to_cpu(pad->pad_len); in ubifs_scan_a_node() local
99 if (pad_len < 0 || in ubifs_scan_a_node()
100 offs + node_len + pad_len > c->leb_size) { in ubifs_scan_a_node()
110 if ((node_len + pad_len) & 7) { in ubifs_scan_a_node()
113 offs, offs + node_len + pad_len); in ubifs_scan_a_node()
118 pad_len, ALIGN(offs + node_len + pad_len, 8)); in ubifs_scan_a_node()
120 return node_len + pad_len; in ubifs_scan_a_node()