Lines Matching refs:tl

655 	struct ext4_fc_tl *tl;  in ext4_fc_reserve_space()  local
684 tl = (struct ext4_fc_tl *)(sbi->s_fc_bh->b_data + off); in ext4_fc_reserve_space()
685 tl->fc_tag = cpu_to_le16(EXT4_FC_TAG_PAD); in ext4_fc_reserve_space()
687 tl->fc_len = cpu_to_le16(pad_len); in ext4_fc_reserve_space()
689 *crc = ext4_chksum(sbi, *crc, tl, sizeof(*tl)); in ext4_fc_reserve_space()
691 ext4_fc_memzero(sb, tl + 1, pad_len, crc); in ext4_fc_reserve_space()
722 struct ext4_fc_tl tl; in ext4_fc_write_tail() local
731 dst = ext4_fc_reserve_space(sb, sizeof(tl) + sizeof(tail), &crc); in ext4_fc_write_tail()
737 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_TAIL); in ext4_fc_write_tail()
738 tl.fc_len = cpu_to_le16(bsize - off - 1 + sizeof(struct ext4_fc_tail)); in ext4_fc_write_tail()
741 ext4_fc_memcpy(sb, dst, &tl, sizeof(tl), &crc); in ext4_fc_write_tail()
742 dst += sizeof(tl); in ext4_fc_write_tail()
761 struct ext4_fc_tl tl; in ext4_fc_add_tlv() local
764 dst = ext4_fc_reserve_space(sb, sizeof(tl) + len, crc); in ext4_fc_add_tlv()
768 tl.fc_tag = cpu_to_le16(tag); in ext4_fc_add_tlv()
769 tl.fc_len = cpu_to_le16(len); in ext4_fc_add_tlv()
771 ext4_fc_memcpy(sb, dst, &tl, sizeof(tl), crc); in ext4_fc_add_tlv()
772 ext4_fc_memcpy(sb, dst + sizeof(tl), val, len, crc); in ext4_fc_add_tlv()
782 struct ext4_fc_tl tl; in ext4_fc_add_dentry_tlv() local
784 u8 *dst = ext4_fc_reserve_space(sb, sizeof(tl) + sizeof(fcd) + dlen, in ext4_fc_add_dentry_tlv()
792 tl.fc_tag = cpu_to_le16(fc_dentry->fcd_op); in ext4_fc_add_dentry_tlv()
793 tl.fc_len = cpu_to_le16(sizeof(fcd) + dlen); in ext4_fc_add_dentry_tlv()
794 ext4_fc_memcpy(sb, dst, &tl, sizeof(tl), crc); in ext4_fc_add_dentry_tlv()
795 dst += sizeof(tl); in ext4_fc_add_dentry_tlv()
815 struct ext4_fc_tl tl; in ext4_fc_write_inode() local
826 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_INODE); in ext4_fc_write_inode()
827 tl.fc_len = cpu_to_le16(inode_len + sizeof(fc_inode.fc_ino)); in ext4_fc_write_inode()
830 sizeof(tl) + inode_len + sizeof(fc_inode.fc_ino), crc); in ext4_fc_write_inode()
834 if (!ext4_fc_memcpy(inode->i_sb, dst, &tl, sizeof(tl), crc)) in ext4_fc_write_inode()
836 dst += sizeof(tl); in ext4_fc_write_inode()
1288 struct ext4_fc_tl *tl, u8 *val) in tl_to_darg() argument
1297 darg->dname_len = le16_to_cpu(tl->fc_len) - in tl_to_darg()
1302 static int ext4_fc_replay_unlink(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_unlink() argument
1310 tl_to_darg(&darg, tl, val); in ext4_fc_replay_unlink()
1400 static int ext4_fc_replay_link(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_link() argument
1407 tl_to_darg(&darg, tl, val); in ext4_fc_replay_link()
1452 static int ext4_fc_replay_inode(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_inode() argument
1460 int inode_len, ino, ret, tag = le16_to_cpu(tl->fc_tag); in ext4_fc_replay_inode()
1483 inode_len = le16_to_cpu(tl->fc_len) - sizeof(struct ext4_fc_inode); in ext4_fc_replay_inode()
1551 static int ext4_fc_replay_create(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_create() argument
1559 tl_to_darg(&darg, tl, val); in ext4_fc_replay_create()
1638 struct ext4_fc_tl *tl, u8 *val) in ext4_fc_replay_add_range() argument
1766 ext4_fc_replay_del_range(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_del_range() argument
1931 struct ext4_fc_tl tl; in ext4_fc_replay_scan() local
1961 for (cur = start; cur < end; cur = cur + sizeof(tl) + le16_to_cpu(tl.fc_len)) { in ext4_fc_replay_scan()
1962 memcpy(&tl, cur, sizeof(tl)); in ext4_fc_replay_scan()
1963 val = cur + sizeof(tl); in ext4_fc_replay_scan()
1965 tag2str(le16_to_cpu(tl.fc_tag)), bh->b_blocknr); in ext4_fc_replay_scan()
1966 switch (le16_to_cpu(tl.fc_tag)) { in ext4_fc_replay_scan()
1986 sizeof(tl) + le16_to_cpu(tl.fc_len)); in ext4_fc_replay_scan()
1992 sizeof(tl) + in ext4_fc_replay_scan()
2019 sizeof(tl) + le16_to_cpu(tl.fc_len)); in ext4_fc_replay_scan()
2043 struct ext4_fc_tl tl; in ext4_fc_replay() local
2074 for (cur = start; cur < end; cur = cur + sizeof(tl) + le16_to_cpu(tl.fc_len)) { in ext4_fc_replay()
2075 memcpy(&tl, cur, sizeof(tl)); in ext4_fc_replay()
2076 val = cur + sizeof(tl); in ext4_fc_replay()
2084 tag2str(le16_to_cpu(tl.fc_tag))); in ext4_fc_replay()
2086 switch (le16_to_cpu(tl.fc_tag)) { in ext4_fc_replay()
2088 ret = ext4_fc_replay_link(sb, &tl, val); in ext4_fc_replay()
2091 ret = ext4_fc_replay_unlink(sb, &tl, val); in ext4_fc_replay()
2094 ret = ext4_fc_replay_add_range(sb, &tl, val); in ext4_fc_replay()
2097 ret = ext4_fc_replay_create(sb, &tl, val); in ext4_fc_replay()
2100 ret = ext4_fc_replay_del_range(sb, &tl, val); in ext4_fc_replay()
2103 ret = ext4_fc_replay_inode(sb, &tl, val); in ext4_fc_replay()
2107 le16_to_cpu(tl.fc_len), 0); in ext4_fc_replay()
2111 le16_to_cpu(tl.fc_len), 0); in ext4_fc_replay()
2118 trace_ext4_fc_replay(sb, le16_to_cpu(tl.fc_tag), 0, in ext4_fc_replay()
2119 le16_to_cpu(tl.fc_len), 0); in ext4_fc_replay()