Searched refs:pad_len (Results 1 – 10 of 10) sorted by relevance
/fs/ubifs/ |
D | scan.c | 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() [all …]
|
D | crypto.c | 32 unsigned int pad_len = round_up(in_len, UBIFS_CIPHER_BLOCK_SIZE); in ubifs_encrypt() local 35 ubifs_assert(c, pad_len <= *out_len); in ubifs_encrypt() 39 if (pad_len != in_len) in ubifs_encrypt() 40 memset(p + in_len, 0, pad_len - in_len); in ubifs_encrypt() 42 err = fscrypt_encrypt_block_inplace(inode, virt_to_page(p), pad_len, in ubifs_encrypt() 48 *out_len = pad_len; in ubifs_encrypt()
|
D | recovery.c | 432 int empty_offs, pad_len; in clean_buf() local 438 pad_len = empty_offs - *offs; in clean_buf() 439 ubifs_pad(c, *buf, pad_len); in clean_buf() 440 *offs += pad_len; in clean_buf() 441 *buf += pad_len; in clean_buf() 442 *len -= pad_len; in clean_buf() 538 int pad_len = len - ALIGN(endpt, 8); in fix_unclean_leb() local 540 if (pad_len > 0) { in fix_unclean_leb() 541 void *buf = sleb->buf + len - pad_len; in fix_unclean_leb() 543 ubifs_pad(c, buf, pad_len); in fix_unclean_leb() [all …]
|
D | lpt_commit.c | 1035 int offs, pad_len; in get_pad_len() local 1040 pad_len = ALIGN(offs, c->min_io_size) - offs; in get_pad_len() 1041 return pad_len; in get_pad_len() 1118 int pad_len; in lpt_gc_lnum() local 1120 pad_len = get_pad_len(c, buf, len); in lpt_gc_lnum() 1121 if (pad_len) { in lpt_gc_lnum() 1122 buf += pad_len; in lpt_gc_lnum() 1123 len -= pad_len; in lpt_gc_lnum() 1613 int i, pad_len; in dbg_check_ltab_lnum() local 1615 pad_len = get_pad_len(c, p, len); in dbg_check_ltab_lnum() [all …]
|
D | tnc_commit.c | 109 int len, gap_remains, gap_pos, written, pad_len; in fill_gap() local 144 pad_len = c->ileb_len - gap_pos; in fill_gap() 147 pad_len = gap_remains; in fill_gap() 149 lnum, gap_start, gap_end, gap_end - gap_start, written, pad_len); in fill_gap() 150 ubifs_pad(c, c->ileb_buf + gap_pos, pad_len); in fill_gap() 151 *dirt += pad_len; in fill_gap()
|
D | ubifs-media.h | 614 __le32 pad_len; member
|
D | io.c | 335 pad_node->pad_len = cpu_to_le32(pad); in ubifs_pad()
|
D | debug.c | 317 pr_err("\tpad_len %u\n", le32_to_cpu(pad->pad_len)); in ubifs_dump_node()
|
/fs/ext4/ |
D | fast_commit.c | 607 int pad_len; in ext4_fc_reserve_space() local 633 pad_len = bsize - off - 1 - sizeof(struct ext4_fc_tl); in ext4_fc_reserve_space() 634 tl->fc_len = cpu_to_le16(pad_len); in ext4_fc_reserve_space() 637 if (pad_len > 0) in ext4_fc_reserve_space() 638 ext4_fc_memzero(sb, tl + 1, pad_len, crc); in ext4_fc_reserve_space() 640 *((u8 *)(tl + 1) + pad_len) = 0; in ext4_fc_reserve_space()
|
/fs/cifs/ |
D | smb2ops.c | 4574 unsigned int pad_len; in handle_read_data() local 4649 pad_len = data_offset - server->vals->read_rsp_size; in handle_read_data() 4653 cur_page_idx = pad_len / PAGE_SIZE; in handle_read_data() 4654 cur_off = pad_len % PAGE_SIZE; in handle_read_data() 4668 if (data_len > page_data_size - pad_len) { in handle_read_data()
|