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