Lines Matching refs:pad
176 void ubifs_pad(const struct ubifs_info *c, void *buf, int pad) in ubifs_pad() argument
180 ubifs_assert(pad >= 0 && !(pad & 7)); in ubifs_pad()
182 if (pad >= UBIFS_PAD_NODE_SZ) { in ubifs_pad()
192 pad -= UBIFS_PAD_NODE_SZ; in ubifs_pad()
193 pad_node->pad_len = cpu_to_le32(pad); in ubifs_pad()
196 memset(buf + UBIFS_PAD_NODE_SZ, 0, pad); in ubifs_pad()
197 } else if (pad > 0) in ubifs_pad()
199 memset(buf, UBIFS_PADDING_BYTE, pad); in ubifs_pad()
237 void ubifs_prepare_node(struct ubifs_info *c, void *node, int len, int pad) in ubifs_prepare_node() argument
253 if (pad) { in ubifs_prepare_node()
255 pad = ALIGN(len, c->min_io_size) - len; in ubifs_prepare_node()
256 ubifs_pad(c, node + len, pad); in ubifs_prepare_node()