Lines Matching refs:tl
602 struct ext4_fc_tl *tl; in ext4_fc_reserve_space() local
631 tl = (struct ext4_fc_tl *)(sbi->s_fc_bh->b_data + off); in ext4_fc_reserve_space()
632 tl->fc_tag = cpu_to_le16(EXT4_FC_TAG_PAD); in ext4_fc_reserve_space()
634 tl->fc_len = cpu_to_le16(pad_len); in ext4_fc_reserve_space()
636 *crc = ext4_chksum(sbi, *crc, tl, sizeof(*tl)); 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()
672 struct ext4_fc_tl tl; in ext4_fc_write_tail() local
681 dst = ext4_fc_reserve_space(sb, sizeof(tl) + sizeof(tail), &crc); in ext4_fc_write_tail()
687 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_TAIL); in ext4_fc_write_tail()
688 tl.fc_len = cpu_to_le16(bsize - off - 1 + sizeof(struct ext4_fc_tail)); in ext4_fc_write_tail()
691 ext4_fc_memcpy(sb, dst, &tl, sizeof(tl), &crc); in ext4_fc_write_tail()
692 dst += sizeof(tl); in ext4_fc_write_tail()
713 struct ext4_fc_tl tl; in ext4_fc_add_tlv() local
716 dst = ext4_fc_reserve_space(sb, sizeof(tl) + len, crc); in ext4_fc_add_tlv()
720 tl.fc_tag = cpu_to_le16(tag); in ext4_fc_add_tlv()
721 tl.fc_len = cpu_to_le16(len); in ext4_fc_add_tlv()
723 ext4_fc_memcpy(sb, dst, &tl, sizeof(tl), crc); in ext4_fc_add_tlv()
724 ext4_fc_memcpy(sb, dst + sizeof(tl), val, len, crc); in ext4_fc_add_tlv()
736 struct ext4_fc_tl tl; in ext4_fc_add_dentry_tlv() local
737 u8 *dst = ext4_fc_reserve_space(sb, sizeof(tl) + sizeof(fcd) + dlen, in ext4_fc_add_dentry_tlv()
745 tl.fc_tag = cpu_to_le16(tag); in ext4_fc_add_dentry_tlv()
746 tl.fc_len = cpu_to_le16(sizeof(fcd) + dlen); in ext4_fc_add_dentry_tlv()
747 ext4_fc_memcpy(sb, dst, &tl, sizeof(tl), crc); in ext4_fc_add_dentry_tlv()
748 dst += sizeof(tl); in ext4_fc_add_dentry_tlv()
768 struct ext4_fc_tl tl; in ext4_fc_write_inode() local
779 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_INODE); in ext4_fc_write_inode()
780 tl.fc_len = cpu_to_le16(inode_len + sizeof(fc_inode.fc_ino)); in ext4_fc_write_inode()
784 sizeof(tl) + inode_len + sizeof(fc_inode.fc_ino), crc); in ext4_fc_write_inode()
788 if (!ext4_fc_memcpy(inode->i_sb, dst, &tl, sizeof(tl), crc)) in ext4_fc_write_inode()
790 dst += sizeof(tl); in ext4_fc_write_inode()
1259 struct ext4_fc_tl *tl, u8 *val) in tl_to_darg() argument
1268 darg->dname_len = le16_to_cpu(tl->fc_len) - in tl_to_darg()
1273 static int ext4_fc_replay_unlink(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_unlink() argument
1281 tl_to_darg(&darg, tl, val); in ext4_fc_replay_unlink()
1371 static int ext4_fc_replay_link(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_link() argument
1378 tl_to_darg(&darg, tl, val); in ext4_fc_replay_link()
1426 static int ext4_fc_replay_inode(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_inode() argument
1434 int inode_len, ino, ret, tag = le16_to_cpu(tl->fc_tag); in ext4_fc_replay_inode()
1459 inode_len = le16_to_cpu(tl->fc_len) - sizeof(struct ext4_fc_inode); in ext4_fc_replay_inode()
1527 static int ext4_fc_replay_create(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_create() argument
1535 tl_to_darg(&darg, tl, val); in ext4_fc_replay_create()
1627 struct ext4_fc_tl *tl, u8 *val) in ext4_fc_replay_add_range() argument
1748 ext4_fc_replay_del_range(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_del_range() argument
1941 struct ext4_fc_tl tl; in ext4_fc_replay_scan() local
1971 for (cur = start; cur < end; cur = cur + sizeof(tl) + le16_to_cpu(tl.fc_len)) { in ext4_fc_replay_scan()
1972 memcpy(&tl, cur, sizeof(tl)); in ext4_fc_replay_scan()
1973 val = cur + sizeof(tl); in ext4_fc_replay_scan()
1975 tag2str(le16_to_cpu(tl.fc_tag)), bh->b_blocknr); in ext4_fc_replay_scan()
1976 switch (le16_to_cpu(tl.fc_tag)) { in ext4_fc_replay_scan()
1996 sizeof(tl) + le16_to_cpu(tl.fc_len)); in ext4_fc_replay_scan()
2002 sizeof(tl) + in ext4_fc_replay_scan()
2029 sizeof(tl) + le16_to_cpu(tl.fc_len)); in ext4_fc_replay_scan()
2053 struct ext4_fc_tl tl; in ext4_fc_replay() local
2084 for (cur = start; cur < end; cur = cur + sizeof(tl) + le16_to_cpu(tl.fc_len)) { in ext4_fc_replay()
2085 memcpy(&tl, cur, sizeof(tl)); in ext4_fc_replay()
2086 val = cur + sizeof(tl); in ext4_fc_replay()
2094 tag2str(le16_to_cpu(tl.fc_tag))); in ext4_fc_replay()
2096 switch (le16_to_cpu(tl.fc_tag)) { in ext4_fc_replay()
2098 ret = ext4_fc_replay_link(sb, &tl, val); in ext4_fc_replay()
2101 ret = ext4_fc_replay_unlink(sb, &tl, val); in ext4_fc_replay()
2104 ret = ext4_fc_replay_add_range(sb, &tl, val); in ext4_fc_replay()
2107 ret = ext4_fc_replay_create(sb, &tl, val); in ext4_fc_replay()
2110 ret = ext4_fc_replay_del_range(sb, &tl, val); in ext4_fc_replay()
2113 ret = ext4_fc_replay_inode(sb, &tl, val); in ext4_fc_replay()
2117 le16_to_cpu(tl.fc_len), 0); in ext4_fc_replay()
2121 le16_to_cpu(tl.fc_len), 0); in ext4_fc_replay()
2128 trace_ext4_fc_replay(sb, le16_to_cpu(tl.fc_tag), 0, in ext4_fc_replay()
2129 le16_to_cpu(tl.fc_len), 0); in ext4_fc_replay()