Lines Matching full:tl
707 struct ext4_fc_tl tl; in ext4_fc_reserve_space() local
745 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_PAD); in ext4_fc_reserve_space()
746 tl.fc_len = cpu_to_le16(remaining); in ext4_fc_reserve_space()
747 memcpy(dst, &tl, EXT4_FC_TAG_BASE_LEN); in ext4_fc_reserve_space()
772 struct ext4_fc_tl tl; in ext4_fc_write_tail() local
787 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_TAIL); in ext4_fc_write_tail()
788 tl.fc_len = cpu_to_le16(bsize - off + sizeof(struct ext4_fc_tail)); in ext4_fc_write_tail()
791 memcpy(dst, &tl, EXT4_FC_TAG_BASE_LEN); in ext4_fc_write_tail()
815 struct ext4_fc_tl tl; in ext4_fc_add_tlv() local
822 tl.fc_tag = cpu_to_le16(tag); in ext4_fc_add_tlv()
823 tl.fc_len = cpu_to_le16(len); in ext4_fc_add_tlv()
825 memcpy(dst, &tl, EXT4_FC_TAG_BASE_LEN); in ext4_fc_add_tlv()
836 struct ext4_fc_tl tl; in ext4_fc_add_dentry_tlv() local
846 tl.fc_tag = cpu_to_le16(fc_dentry->fcd_op); in ext4_fc_add_dentry_tlv()
847 tl.fc_len = cpu_to_le16(sizeof(fcd) + dlen); in ext4_fc_add_dentry_tlv()
848 memcpy(dst, &tl, EXT4_FC_TAG_BASE_LEN); in ext4_fc_add_dentry_tlv()
868 struct ext4_fc_tl tl; in ext4_fc_write_inode() local
881 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_INODE); in ext4_fc_write_inode()
882 tl.fc_len = cpu_to_le16(inode_len + sizeof(fc_inode.fc_ino)); in ext4_fc_write_inode()
890 memcpy(dst, &tl, EXT4_FC_TAG_BASE_LEN); in ext4_fc_write_inode()
1371 struct ext4_fc_tl_mem *tl, u8 *val) in tl_to_darg() argument
1380 darg->dname_len = tl->fc_len - sizeof(struct ext4_fc_dentry_info); in tl_to_darg()
1383 static inline void ext4_fc_get_tl(struct ext4_fc_tl_mem *tl, u8 *val) in ext4_fc_get_tl() argument
1388 tl->fc_len = le16_to_cpu(tl_disk.fc_len); in ext4_fc_get_tl()
1389 tl->fc_tag = le16_to_cpu(tl_disk.fc_tag); in ext4_fc_get_tl()
1394 struct ext4_fc_tl_mem *tl, u8 *val) in ext4_fc_replay_unlink() argument
1401 tl_to_darg(&darg, tl, val); in ext4_fc_replay_unlink()
1492 struct ext4_fc_tl_mem *tl, u8 *val) in ext4_fc_replay_link() argument
1498 tl_to_darg(&darg, tl, val); in ext4_fc_replay_link()
1547 struct ext4_fc_tl_mem *tl, u8 *val) in ext4_fc_replay_inode() argument
1554 int inode_len, ino, ret, tag = tl->fc_tag; in ext4_fc_replay_inode()
1580 inode_len = tl->fc_len - sizeof(struct ext4_fc_inode); in ext4_fc_replay_inode()
1650 struct ext4_fc_tl_mem *tl, u8 *val) in ext4_fc_replay_create() argument
1657 tl_to_darg(&darg, tl, val); in ext4_fc_replay_create()
1748 struct ext4_fc_tl_mem *tl, u8 *val) in ext4_fc_replay_add_range() argument
1869 struct ext4_fc_tl_mem *tl, u8 *val) in ext4_fc_replay_del_range() argument
2068 struct ext4_fc_tl_mem tl; in ext4_fc_replay_scan() local
2099 cur = cur + EXT4_FC_TAG_BASE_LEN + tl.fc_len) { in ext4_fc_replay_scan()
2100 ext4_fc_get_tl(&tl, cur); in ext4_fc_replay_scan()
2102 if (tl.fc_len > end - val || in ext4_fc_replay_scan()
2103 !ext4_fc_value_len_isvalid(sbi, tl.fc_tag, tl.fc_len)) { in ext4_fc_replay_scan()
2109 tag2str(tl.fc_tag), bh->b_blocknr); in ext4_fc_replay_scan()
2110 switch (tl.fc_tag) { in ext4_fc_replay_scan()
2130 EXT4_FC_TAG_BASE_LEN + tl.fc_len); in ext4_fc_replay_scan()
2163 EXT4_FC_TAG_BASE_LEN + tl.fc_len); in ext4_fc_replay_scan()
2187 struct ext4_fc_tl_mem tl; in ext4_fc_replay() local
2219 cur = cur + EXT4_FC_TAG_BASE_LEN + tl.fc_len) { in ext4_fc_replay()
2220 ext4_fc_get_tl(&tl, cur); in ext4_fc_replay()
2229 ext4_debug("Replay phase, tag:%s\n", tag2str(tl.fc_tag)); in ext4_fc_replay()
2231 switch (tl.fc_tag) { in ext4_fc_replay()
2233 ret = ext4_fc_replay_link(sb, &tl, val); in ext4_fc_replay()
2236 ret = ext4_fc_replay_unlink(sb, &tl, val); in ext4_fc_replay()
2239 ret = ext4_fc_replay_add_range(sb, &tl, val); in ext4_fc_replay()
2242 ret = ext4_fc_replay_create(sb, &tl, val); in ext4_fc_replay()
2245 ret = ext4_fc_replay_del_range(sb, &tl, val); in ext4_fc_replay()
2248 ret = ext4_fc_replay_inode(sb, &tl, val); in ext4_fc_replay()
2252 tl.fc_len, 0); in ext4_fc_replay()
2256 0, tl.fc_len, 0); in ext4_fc_replay()
2263 trace_ext4_fc_replay(sb, tl.fc_tag, 0, tl.fc_len, 0); in ext4_fc_replay()