Lines Matching refs:crc
274 void btrfs_csum_final(u32 crc, u8 *result) in btrfs_csum_final() argument
276 put_unaligned_le32(~crc, result); in btrfs_csum_final()
296 u32 crc = ~(u32)0; in csum_tree_block() local
306 crc = btrfs_csum_data(kaddr + offset - map_start, in csum_tree_block()
307 crc, cur_len); in csum_tree_block()
319 btrfs_csum_final(crc, result); in csum_tree_block()
413 u32 crc = ~(u32)0; in btrfs_check_super_csum() local
414 const int csum_size = sizeof(crc); in btrfs_check_super_csum()
422 crc = btrfs_csum_data(raw_disk_sb + BTRFS_CSUM_SIZE, in btrfs_check_super_csum()
423 crc, BTRFS_SUPER_INFO_SIZE - BTRFS_CSUM_SIZE); in btrfs_check_super_csum()
424 btrfs_csum_final(crc, result); in btrfs_check_super_csum()
3220 u32 crc; in write_dev_supers() local
3235 crc = ~(u32)0; in write_dev_supers()
3236 crc = btrfs_csum_data((const char *)sb + BTRFS_CSUM_SIZE, crc, in write_dev_supers()
3238 btrfs_csum_final(crc, sb->csum); in write_dev_supers()