Lines Matching refs:calculated
52 __u32 calculated; in ext2fs_mmp_csum_verify() local
57 calculated = ext2fs_mmp_csum(fs, mmp); in ext2fs_mmp_csum_verify()
59 return ext2fs_le32_to_cpu(mmp->mmp_checksum) == calculated; in ext2fs_mmp_csum_verify()
94 __u32 flag, calculated; in ext2fs_superblock_csum_verify() local
104 calculated = ext2fs_superblock_csum(fs, sb); in ext2fs_superblock_csum_verify()
106 return ext2fs_le32_to_cpu(sb->s_checksum) == calculated; in ext2fs_superblock_csum_verify()
152 __u32 calculated; in ext2fs_ext_attr_block_csum_verify() local
158 retval = ext2fs_ext_attr_block_csum(fs, inum, block, hdr, &calculated); in ext2fs_ext_attr_block_csum_verify()
162 return ext2fs_le32_to_cpu(hdr->h_checksum) == calculated; in ext2fs_ext_attr_block_csum_verify()
328 __u32 calculated; in ext2fs_dirent_csum_verify() local
339 retval = ext2fs_dirent_csum(fs, inum, dirent, &calculated, in ext2fs_dirent_csum_verify()
343 return ext2fs_le32_to_cpu(t->det_checksum) == calculated; in ext2fs_dirent_csum_verify()
413 __u32 calculated; in ext2fs_dx_csum_verify() local
417 retval = ext2fs_dx_csum(fs, inum, dirent, &calculated, &t); in ext2fs_dx_csum_verify()
421 return ext2fs_le32_to_cpu(t->dt_checksum) == calculated; in ext2fs_dx_csum_verify()
506 __u32 provided, calculated; in ext2fs_extent_block_csum_verify() local
517 retval = ext2fs_extent_block_csum(fs, inum, eh, &calculated); in ext2fs_extent_block_csum_verify()
521 return provided == calculated; in ext2fs_extent_block_csum_verify()
550 __u32 provided, calculated; in ext2fs_inode_bitmap_csum_verify() local
555 calculated = ext2fs_crc32c_le(fs->csum_seed, (unsigned char *)bitmap, in ext2fs_inode_bitmap_csum_verify()
560 calculated &= 0xFFFF; in ext2fs_inode_bitmap_csum_verify()
562 return provided == calculated; in ext2fs_inode_bitmap_csum_verify()
588 __u32 provided, calculated; in ext2fs_block_bitmap_csum_verify() local
593 calculated = ext2fs_crc32c_le(fs->csum_seed, (unsigned char *)bitmap, in ext2fs_block_bitmap_csum_verify()
598 calculated &= 0xFFFF; in ext2fs_block_bitmap_csum_verify()
600 return provided == calculated; in ext2fs_block_bitmap_csum_verify()
655 __u32 provided, calculated; in ext2fs_inode_csum_verify() local
666 retval = ext2fs_inode_csum(fs, inum, inode, &calculated, has_hi); in ext2fs_inode_csum_verify()
673 calculated &= 0xFFFF; in ext2fs_inode_csum_verify()
675 if (provided == calculated) in ext2fs_inode_csum_verify()