Lines Matching refs:pad
328 void ubifs_pad(const struct ubifs_info *c, void *buf, int pad) in ubifs_pad() argument
332 ubifs_assert(c, pad >= 0); in ubifs_pad()
334 if (pad >= UBIFS_PAD_NODE_SZ) { in ubifs_pad()
344 pad -= UBIFS_PAD_NODE_SZ; in ubifs_pad()
345 pad_node->pad_len = cpu_to_le32(pad); in ubifs_pad()
348 memset(buf + UBIFS_PAD_NODE_SZ, 0, pad); in ubifs_pad()
349 } else if (pad > 0) in ubifs_pad()
351 memset(buf, UBIFS_PADDING_BYTE, pad); in ubifs_pad()
378 void ubifs_init_node(struct ubifs_info *c, void *node, int len, int pad) in ubifs_init_node() argument
391 if (pad) { in ubifs_init_node()
393 pad = ALIGN(len, c->min_io_size) - len; in ubifs_init_node()
394 ubifs_pad(c, node + len, pad); in ubifs_init_node()
423 int hmac_offs, int pad) in ubifs_prepare_node_hmac() argument
427 ubifs_init_node(c, node, len, pad); in ubifs_prepare_node_hmac()
451 void ubifs_prepare_node(struct ubifs_info *c, void *node, int len, int pad) in ubifs_prepare_node() argument
457 ubifs_prepare_node_hmac(c, node, len, 0, pad); in ubifs_prepare_node()