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
828 tl.fc_tag = cpu_to_le16(EXT4_FC_TAG_INODE); in ext4_fc_write_inode()
829 tl.fc_len = cpu_to_le16(inode_len + sizeof(fc_inode.fc_ino)); in ext4_fc_write_inode()
832 sizeof(tl) + inode_len + sizeof(fc_inode.fc_ino), crc); in ext4_fc_write_inode()
836 if (!ext4_fc_memcpy(inode->i_sb, dst, &tl, sizeof(tl), crc)) in ext4_fc_write_inode()
838 dst += sizeof(tl); in ext4_fc_write_inode()
1290 struct ext4_fc_tl *tl, u8 *val) in tl_to_darg() argument
1299 darg->dname_len = le16_to_cpu(tl->fc_len) - in tl_to_darg()
1304 static int ext4_fc_replay_unlink(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_unlink() argument
1312 tl_to_darg(&darg, tl, val); in ext4_fc_replay_unlink()
1402 static int ext4_fc_replay_link(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_link() argument
1409 tl_to_darg(&darg, tl, val); in ext4_fc_replay_link()
1454 static int ext4_fc_replay_inode(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_inode() argument
1462 int inode_len, ino, ret, tag = le16_to_cpu(tl->fc_tag); in ext4_fc_replay_inode()
1485 inode_len = le16_to_cpu(tl->fc_len) - sizeof(struct ext4_fc_inode); in ext4_fc_replay_inode()
1554 static int ext4_fc_replay_create(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_create() argument
1562 tl_to_darg(&darg, tl, val); in ext4_fc_replay_create()
1641 struct ext4_fc_tl *tl, u8 *val) in ext4_fc_replay_add_range() argument
1769 ext4_fc_replay_del_range(struct super_block *sb, struct ext4_fc_tl *tl, in ext4_fc_replay_del_range() argument
1938 struct ext4_fc_tl tl; in ext4_fc_replay_scan() local
1968 for (cur = start; cur < end; cur = cur + sizeof(tl) + le16_to_cpu(tl.fc_len)) { in ext4_fc_replay_scan()
1969 memcpy(&tl, cur, sizeof(tl)); in ext4_fc_replay_scan()
1970 val = cur + sizeof(tl); in ext4_fc_replay_scan()
1972 tag2str(le16_to_cpu(tl.fc_tag)), bh->b_blocknr); in ext4_fc_replay_scan()
1973 switch (le16_to_cpu(tl.fc_tag)) { in ext4_fc_replay_scan()
1993 sizeof(tl) + le16_to_cpu(tl.fc_len)); in ext4_fc_replay_scan()
1999 sizeof(tl) + in ext4_fc_replay_scan()
2026 sizeof(tl) + le16_to_cpu(tl.fc_len)); in ext4_fc_replay_scan()
2050 struct ext4_fc_tl tl; in ext4_fc_replay() local
2081 for (cur = start; cur < end; cur = cur + sizeof(tl) + le16_to_cpu(tl.fc_len)) { in ext4_fc_replay()
2082 memcpy(&tl, cur, sizeof(tl)); in ext4_fc_replay()
2083 val = cur + sizeof(tl); in ext4_fc_replay()
2091 tag2str(le16_to_cpu(tl.fc_tag))); in ext4_fc_replay()
2093 switch (le16_to_cpu(tl.fc_tag)) { in ext4_fc_replay()
2095 ret = ext4_fc_replay_link(sb, &tl, val); in ext4_fc_replay()
2098 ret = ext4_fc_replay_unlink(sb, &tl, val); in ext4_fc_replay()
2101 ret = ext4_fc_replay_add_range(sb, &tl, val); in ext4_fc_replay()
2104 ret = ext4_fc_replay_create(sb, &tl, val); in ext4_fc_replay()
2107 ret = ext4_fc_replay_del_range(sb, &tl, val); in ext4_fc_replay()
2110 ret = ext4_fc_replay_inode(sb, &tl, val); in ext4_fc_replay()
2114 le16_to_cpu(tl.fc_len), 0); in ext4_fc_replay()
2118 le16_to_cpu(tl.fc_len), 0); in ext4_fc_replay()
2125 trace_ext4_fc_replay(sb, le16_to_cpu(tl.fc_tag), 0, in ext4_fc_replay()
2126 le16_to_cpu(tl.fc_len), 0); in ext4_fc_replay()