Lines Matching refs:pad_len
30 int pad_len = 0, max_pad_len = min_t(int, UBIFS_PAD_NODE_SZ, len); in scan_padding_bytes() local
35 while (pad_len < max_pad_len && *p++ == UBIFS_PADDING_BYTE) in scan_padding_bytes()
36 pad_len += 1; in scan_padding_bytes()
38 if (!pad_len || (pad_len & 7)) in scan_padding_bytes()
41 dbg_scan("%d padding bytes", pad_len); in scan_padding_bytes()
43 return pad_len; in scan_padding_bytes()
84 int pad_len = le32_to_cpu(pad->pad_len); in ubifs_scan_a_node() local
88 if (pad_len < 0 || in ubifs_scan_a_node()
89 offs + node_len + pad_len > c->leb_size) { in ubifs_scan_a_node()
99 if ((node_len + pad_len) & 7) { in ubifs_scan_a_node()
102 offs, offs + node_len + pad_len); in ubifs_scan_a_node()
106 dbg_scan("%d bytes padded at LEB %d:%d, offset now %d", pad_len, in ubifs_scan_a_node()
107 lnum, offs, ALIGN(offs + node_len + pad_len, 8)); in ubifs_scan_a_node()
109 return node_len + pad_len; in ubifs_scan_a_node()