Lines Matching refs:csum_offset
197 u64 csum_offset = 0; in btrfs_lookup_csum() local
217 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum()
222 if (csum_offset == csums_in_item) { in btrfs_lookup_csum()
225 } else if (csum_offset > csums_in_item) { in btrfs_lookup_csum()
231 csum_offset * csum_size); in btrfs_lookup_csum()
997 u64 csum_offset; in btrfs_csum_file_blocks() local
1061 csum_offset = (bytenr - found_key.offset) >> in btrfs_csum_file_blocks()
1082 csum_offset = (bytenr - found_key.offset) >> fs_info->sectorsize_bits; in btrfs_csum_file_blocks()
1086 csum_offset >= MAX_CSUM_ITEMS(fs_info, csum_size)) { in btrfs_csum_file_blocks()
1091 if (csum_offset == btrfs_item_size(leaf, path->slots[0]) / in btrfs_csum_file_blocks()
1142 diff = (csum_offset + extend_nr) * csum_size; in btrfs_csum_file_blocks()
1158 csum_offset = 0; in btrfs_csum_file_blocks()
1185 csum_offset * csum_size); in btrfs_csum_file_blocks()