| /linux-6.15/fs/bcachefs/ |
| H A D | extents_format.h | 100 csum_type:4, member 106 csum_type:4, 125 csum_type:4, member 131 csum_type:4, 151 csum_type:4, member 155 csum_type:4,
|
| H A D | io_write.c | 779 if (crc.csum_type || in init_append_extent() 881 op->csum_type != op->crc.csum_type) { in bch2_write_prep_encoded_data() 906 op->crc.csum_type = 0; in bch2_write_prep_encoded_data() 925 op->crc.csum_type != op->csum_type) { in bch2_write_prep_encoded_data() 935 (op->compression_opt || op->crc.csum_type != op->csum_type)) { in bch2_write_prep_encoded_data() 945 op->crc.csum_type = 0; in bch2_write_prep_encoded_data() 1002 (op->csum_type && in bch2_write_extent() 1048 if (op->csum_type) in bch2_write_extent() 1094 op->csum_type); in bch2_write_extent() 1110 op->crc.csum_type))) in bch2_write_extent() [all …]
|
| H A D | extents.c | 382 if (lp.crc.csum_type != rp.crc.csum_type || in bch2_extent_merge() 392 if (lp.crc.csum_type && in bch2_extent_merge() 508 return (l.csum_type != r.csum_type || in bch2_crc_unpacked_cmp() 522 u.csum_type && in can_narrow_crc() 525 bch2_csum_type_is_encryption(n.csum_type); in can_narrow_crc() 535 if (!n.csum_type) in bch2_can_narrow_extent_crcs() 563 if (!n.csum_type) { in bch2_bkey_narrow_crcs() 566 u.csum_type && in bch2_bkey_narrow_crcs() 600 .csum_type = _src.csum_type, \ in bch2_extent_crc_pack() 641 if (bch_crc_bytes[new.csum_type] <= 4 && in bch2_extent_crc_append() [all …]
|
| H A D | checksum.c | 328 unsigned csum_type; in bch2_rechecksum_bio() member 335 bool mergeable = crc_old.csum_type == new_csum_type && in bch2_rechecksum_bio() 342 BUG_ON(bch2_csum_type_is_encryption(crc_old.csum_type) != in bch2_rechecksum_bio() 348 i->csum = __bch2_checksum_bio(c, i->csum_type, in bch2_rechecksum_bio() 360 merged = bch2_checksum_bio(c, crc_old.csum_type, in bch2_rechecksum_bio() 372 bch2_prt_csum_type(&buf, crc_old.csum_type); in bch2_rechecksum_bio() 384 .csum_type = i->csum_type, in bch2_rechecksum_bio()
|
| H A D | ec.h | 34 EBUG_ON(s->csum_type >= BCH_CSUM_NR); in stripe_csum_offset() 36 unsigned csum_bytes = bch_crc_bytes[s->csum_type]; in stripe_csum_offset() 84 memcpy(&csum, stripe_csum(s, block, csum_idx), bch_crc_bytes[s->csum_type]); in stripe_csum_get() 92 memcpy(stripe_csum(s, block, csum_idx), &csum, bch_crc_bytes[s->csum_type]); in stripe_csum_set()
|
| H A D | io_read.c | 623 rbio->pick.crc.csum_type)) { in __bch2_rbio_narrow_crcs() 750 csum = bch2_checksum_bio(c, crc.csum_type, nonce, src); in __bch2_read_endio() 786 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src); in __bch2_read_endio() 801 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src); in __bch2_read_endio() 827 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src); in __bch2_read_endio() 884 bch2_csum_type_is_encryption(rbio->pick.crc.csum_type)) in bch2_read_endio() 886 else if (rbio->pick.crc.csum_type) in bch2_read_endio() 984 if (unlikely(bch2_csum_type_is_encryption(pick.crc.csum_type)) && in __bch2_read_extent() 1029 (pick.crc.csum_type != BCH_CSUM_none && in __bch2_read_extent() 1031 (bch2_csum_type_is_encryption(pick.crc.csum_type) && in __bch2_read_extent() [all …]
|
| H A D | ec_format.h | 13 __u8 csum_type; member
|
| H A D | extents_types.h | 12 u8 csum_type; member
|
| H A D | io_write_types.h | 51 unsigned csum_type:4; member
|
| H A D | io_write.h | 69 op->csum_type = bch2_data_checksum_type(c, opts); in bch2_write_op_init()
|
| H A D | extents.h | 154 .csum_type = _crc.csum_type, \ in bch2_extent_crc_unpack() 211 return crc.csum_type != BCH_CSUM_none || crc_is_compressed(crc); in crc_is_encoded()
|
| H A D | super-io.c | 755 enum bch_csum_type csum_type = BCH_SB_CSUM_TYPE(sb->sb); in read_one_super() local 756 if (csum_type >= BCH_CSUM_NR || in read_one_super() 757 bch2_csum_type_is_encryption(csum_type)) { in read_one_super() 763 struct bch_csum csum = csum_vstruct(NULL, csum_type, null_nonce(), sb->sb); in read_one_super() 765 bch2_csum_err_msg(err, csum_type, sb->sb->csum, csum); in read_one_super()
|
| /linux-6.15/fs/btrfs/ |
| H A D | fs.c | 34 const char *btrfs_super_csum_name(u16 csum_type) in btrfs_super_csum_name() argument 37 return btrfs_csums[csum_type].name; in btrfs_super_csum_name() 44 const char *btrfs_super_csum_driver(u16 csum_type) in btrfs_super_csum_driver() argument 47 return btrfs_csums[csum_type].driver[0] ? in btrfs_super_csum_driver() 48 btrfs_csums[csum_type].driver : in btrfs_super_csum_driver() 49 btrfs_csums[csum_type].name; in btrfs_super_csum_driver()
|
| H A D | fs.h | 1018 const char *btrfs_super_csum_name(u16 csum_type); 1019 const char *btrfs_super_csum_driver(u16 csum_type);
|
| H A D | disk-io.c | 142 static bool btrfs_supported_super_csum(u16 csum_type) in btrfs_supported_super_csum() argument 144 switch (csum_type) { in btrfs_supported_super_csum() 2022 static int btrfs_init_csum_hash(struct btrfs_fs_info *fs_info, u16 csum_type) in btrfs_init_csum_hash() argument 2025 const char *csum_driver = btrfs_super_csum_driver(csum_type); in btrfs_init_csum_hash() 2042 switch (csum_type) { in btrfs_init_csum_hash() 2055 btrfs_super_csum_name(csum_type), in btrfs_init_csum_hash() 3285 u16 csum_type; in open_ctree() local 3329 csum_type = btrfs_super_csum_type(disk_super); in open_ctree() 3330 if (!btrfs_supported_super_csum(csum_type)) { in open_ctree() 3332 csum_type); in open_ctree() [all …]
|
| /linux-6.15/block/ |
| H A D | bio-integrity-auto.c | 55 switch (bi->csum_type) { in bi_offload_capable() 63 __func__, bi->csum_type); in bi_offload_capable() 145 } else if (bi->csum_type == BLK_INTEGRITY_CSUM_NONE) in bio_integrity_prep() 171 if (bi->csum_type == BLK_INTEGRITY_CSUM_IP) in bio_integrity_prep() 173 if (bi->csum_type) in bio_integrity_prep()
|
| H A D | t10-pi.c | 25 unsigned char csum_type) in t10_pi_csum() argument 27 if (csum_type == BLK_INTEGRITY_CSUM_IP) in t10_pi_csum() 47 bi->csum_type); in t10_pi_generate() 50 iter->prot_buf, offset, bi->csum_type); in t10_pi_generate() 93 bi->csum_type); in t10_pi_verify() 96 bi->csum_type); in t10_pi_verify() 392 switch (bi->csum_type) { in blk_integrity_generate() 429 switch (bi->csum_type) { in blk_integrity_verify_iter() 456 if (bi->csum_type == BLK_INTEGRITY_CSUM_CRC64) in blk_integrity_prepare() 469 if (bi->csum_type == BLK_INTEGRITY_CSUM_CRC64) in blk_integrity_complete()
|
| H A D | blk-settings.c | 118 if (bi->csum_type != BLK_INTEGRITY_CSUM_NONE || in blk_validate_integrity_limits() 137 if (bi->csum_type == BLK_INTEGRITY_CSUM_NONE && in blk_validate_integrity_limits() 889 if (ti->csum_type != bi->csum_type) in queue_limits_stack_integrity() 898 ti->csum_type = bi->csum_type; in queue_limits_stack_integrity()
|
| H A D | blk-integrity.c | 189 switch (bi->csum_type) { in blk_integrity_profile_name()
|
| /linux-6.15/drivers/net/ethernet/qualcomm/rmnet/ |
| H A D | rmnet_handlers.c | 137 int required_headroom, additional_header_len, csum_type = 0; in rmnet_map_egress_handler() local 145 csum_type = RMNET_FLAGS_EGRESS_MAP_CKSUMV4; in rmnet_map_egress_handler() 148 csum_type = RMNET_FLAGS_EGRESS_MAP_CKSUMV5; in rmnet_map_egress_handler() 156 if (csum_type) in rmnet_map_egress_handler() 158 csum_type); in rmnet_map_egress_handler()
|
| H A D | rmnet_map.h | 54 int csum_type);
|
| H A D | rmnet_map_data.c | 477 int csum_type) in rmnet_map_checksum_uplink_packet() argument 479 switch (csum_type) { in rmnet_map_checksum_uplink_packet()
|
| /linux-6.15/drivers/scsi/ |
| H A D | sd_dif.c | 48 bi->csum_type = BLK_INTEGRITY_CSUM_IP; in sd_dif_config_host() 50 bi->csum_type = BLK_INTEGRITY_CSUM_CRC; in sd_dif_config_host()
|
| /linux-6.15/net/netfilter/ |
| H A D | nft_payload.c | 803 u8 csum_type; member 903 if ((priv->csum_type == NFT_PAYLOAD_CSUM_INET || priv->csum_flags) && in nft_payload_set_eval() 913 if (priv->csum_type == NFT_PAYLOAD_CSUM_INET && in nft_payload_set_eval() 926 if (priv->csum_type == NFT_PAYLOAD_CSUM_SCTP && in nft_payload_set_eval() 944 u32 csum_offset, csum_type = NFT_PAYLOAD_CSUM_NONE; in nft_payload_set_init() local 952 csum_type = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_CSUM_TYPE])); in nft_payload_set_init() 971 switch (csum_type) { in nft_payload_set_init() 985 priv->csum_type = csum_type; in nft_payload_set_init() 1000 nla_put_be32(skb, NFTA_PAYLOAD_CSUM_TYPE, htonl(priv->csum_type)) || in nft_payload_set_dump()
|
| /linux-6.15/drivers/net/ethernet/chelsio/cxgb4vf/ |
| H A D | sge.c | 1082 int csum_type; in hwcsum() local 1087 csum_type = TX_CSUM_TCPIP; in hwcsum() 1089 csum_type = TX_CSUM_UDPIP; in hwcsum() 1105 csum_type = TX_CSUM_TCPIP6; in hwcsum() 1107 csum_type = TX_CSUM_UDPIP6; in hwcsum() 1112 if (likely(csum_type >= TX_CSUM_TCPIP)) { in hwcsum() 1120 return TXPKT_CSUM_TYPE_V(csum_type) | hdr_len; in hwcsum() 1124 return TXPKT_CSUM_TYPE_V(csum_type) | in hwcsum()
|