Lines Matching refs:tl
641 struct ext4_fc_tl tl; in ext4_fc_reserve_space() local
679 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_PAD); in ext4_fc_reserve_space()
680 tl.fc_len = cpu_to_le16(remaining); in ext4_fc_reserve_space()
681 ext4_fc_memcpy(sb, dst, &tl, EXT4_FC_TAG_BASE_LEN, crc); in ext4_fc_reserve_space()
705 struct ext4_fc_tl tl; in ext4_fc_write_tail() local
720 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_TAIL); in ext4_fc_write_tail()
721 tl.fc_len = cpu_to_le16(bsize - off + sizeof(struct ext4_fc_tail)); in ext4_fc_write_tail()
724 ext4_fc_memcpy(sb, dst, &tl, EXT4_FC_TAG_BASE_LEN, &crc); in ext4_fc_write_tail()
746 struct ext4_fc_tl tl; in ext4_fc_add_tlv() local
753 tl.fc_tag = cpu_to_le16(tag); in ext4_fc_add_tlv()
754 tl.fc_len = cpu_to_le16(len); in ext4_fc_add_tlv()
756 ext4_fc_memcpy(sb, dst, &tl, EXT4_FC_TAG_BASE_LEN, crc); in ext4_fc_add_tlv()
767 struct ext4_fc_tl tl; in ext4_fc_add_dentry_tlv() local
777 tl.fc_tag = cpu_to_le16(fc_dentry->fcd_op); in ext4_fc_add_dentry_tlv()
778 tl.fc_len = cpu_to_le16(sizeof(fcd) + dlen); in ext4_fc_add_dentry_tlv()
779 ext4_fc_memcpy(sb, dst, &tl, EXT4_FC_TAG_BASE_LEN, crc); in ext4_fc_add_dentry_tlv()
800 struct ext4_fc_tl tl; in ext4_fc_write_inode() local
811 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_INODE); in ext4_fc_write_inode()
812 tl.fc_len = cpu_to_le16(inode_len + sizeof(fc_inode.fc_ino)); in ext4_fc_write_inode()
820 if (!ext4_fc_memcpy(inode->i_sb, dst, &tl, EXT4_FC_TAG_BASE_LEN, crc)) in ext4_fc_write_inode()
1292 struct ext4_fc_tl_mem *tl, u8 *val) in tl_to_darg() argument
1301 darg->dname_len = tl->fc_len - sizeof(struct ext4_fc_dentry_info); in tl_to_darg()
1304 static inline void ext4_fc_get_tl(struct ext4_fc_tl_mem *tl, u8 *val) in ext4_fc_get_tl() argument
1309 tl->fc_len = le16_to_cpu(tl_disk.fc_len); in ext4_fc_get_tl()
1310 tl->fc_tag = le16_to_cpu(tl_disk.fc_tag); in ext4_fc_get_tl()
1315 struct ext4_fc_tl_mem *tl, u8 *val) in ext4_fc_replay_unlink() argument
1322 tl_to_darg(&darg, tl, val); in ext4_fc_replay_unlink()
1413 struct ext4_fc_tl_mem *tl, u8 *val) in ext4_fc_replay_link() argument
1419 tl_to_darg(&darg, tl, val); in ext4_fc_replay_link()
1468 struct ext4_fc_tl_mem *tl, u8 *val) in ext4_fc_replay_inode() argument
1475 int inode_len, ino, ret, tag = tl->fc_tag; in ext4_fc_replay_inode()
1500 inode_len = tl->fc_len - sizeof(struct ext4_fc_inode); in ext4_fc_replay_inode()
1569 struct ext4_fc_tl_mem *tl, u8 *val) in ext4_fc_replay_create() argument
1576 tl_to_darg(&darg, tl, val); in ext4_fc_replay_create()
1668 struct ext4_fc_tl_mem *tl, u8 *val) in ext4_fc_replay_add_range() argument
1790 struct ext4_fc_tl_mem *tl, u8 *val) in ext4_fc_replay_del_range() argument
1983 struct ext4_fc_tl_mem tl; in ext4_fc_replay_scan() local
2014 cur = cur + EXT4_FC_TAG_BASE_LEN + tl.fc_len) { in ext4_fc_replay_scan()
2015 ext4_fc_get_tl(&tl, cur); in ext4_fc_replay_scan()
2017 if (tl.fc_len > end - val || in ext4_fc_replay_scan()
2018 !ext4_fc_value_len_isvalid(sbi, tl.fc_tag, tl.fc_len)) { in ext4_fc_replay_scan()
2024 tag2str(tl.fc_tag), bh->b_blocknr); in ext4_fc_replay_scan()
2025 switch (tl.fc_tag) { in ext4_fc_replay_scan()
2045 EXT4_FC_TAG_BASE_LEN + tl.fc_len); in ext4_fc_replay_scan()
2078 EXT4_FC_TAG_BASE_LEN + tl.fc_len); in ext4_fc_replay_scan()
2102 struct ext4_fc_tl_mem tl; in ext4_fc_replay() local
2134 cur = cur + EXT4_FC_TAG_BASE_LEN + tl.fc_len) { in ext4_fc_replay()
2135 ext4_fc_get_tl(&tl, cur); in ext4_fc_replay()
2144 ext4_debug("Replay phase, tag:%s\n", tag2str(tl.fc_tag)); in ext4_fc_replay()
2146 switch (tl.fc_tag) { in ext4_fc_replay()
2148 ret = ext4_fc_replay_link(sb, &tl, val); in ext4_fc_replay()
2151 ret = ext4_fc_replay_unlink(sb, &tl, val); in ext4_fc_replay()
2154 ret = ext4_fc_replay_add_range(sb, &tl, val); in ext4_fc_replay()
2157 ret = ext4_fc_replay_create(sb, &tl, val); in ext4_fc_replay()
2160 ret = ext4_fc_replay_del_range(sb, &tl, val); in ext4_fc_replay()
2163 ret = ext4_fc_replay_inode(sb, &tl, val); in ext4_fc_replay()
2167 tl.fc_len, 0); in ext4_fc_replay()
2171 0, tl.fc_len, 0); in ext4_fc_replay()
2178 trace_ext4_fc_replay(sb, tl.fc_tag, 0, tl.fc_len, 0); in ext4_fc_replay()