Home
last modified time | relevance | path

Searched refs:csum_type (Results 1 – 25 of 49) sorted by relevance

12

/linux-6.12.1/fs/bcachefs/
Dextents_format.h99 csum_type:4, member
105 csum_type:4,
124 csum_type:4, member
130 csum_type:4,
150 csum_type:4, member
154 csum_type:4,
Dio_write.c702 if (crc.csum_type || in init_append_extent()
772 if (bch2_csum_type_is_encryption(op->crc.csum_type) != in bch2_write_rechecksum()
774 new_csum_type = op->crc.csum_type; in bch2_write_rechecksum()
796 if (!bch2_csum_type_is_encryption(op->crc.csum_type)) in bch2_write_decrypt()
805 csum = bch2_checksum_bio(c, op->crc.csum_type, nonce, &op->wbio.bio); in bch2_write_decrypt()
809 ret = bch2_encrypt_bio(c, op->crc.csum_type, nonce, &op->wbio.bio); in bch2_write_decrypt()
810 op->crc.csum_type = 0; in bch2_write_decrypt()
837 op->csum_type != op->crc.csum_type && in bch2_write_prep_encoded_data()
838 bch2_write_rechecksum(c, op, op->csum_type) && in bch2_write_prep_encoded_data()
856 csum = bch2_checksum_bio(c, op->crc.csum_type, in bch2_write_prep_encoded_data()
[all …]
Dextents.c313 if (lp.crc.csum_type != rp.crc.csum_type || in bch2_extent_merge()
316 !bch2_checksum_mergeable(lp.crc.csum_type)) in bch2_extent_merge()
323 if (lp.crc.csum_type && in bch2_extent_merge()
375 crc_l.csum = bch2_checksum_merge(crc_l.csum_type, in bch2_extent_merge()
439 return (l.csum_type != r.csum_type || in bch2_crc_unpacked_cmp()
453 u.csum_type && in can_narrow_crc()
455 bch2_csum_type_is_encryption(u.csum_type) == in can_narrow_crc()
456 bch2_csum_type_is_encryption(n.csum_type); in can_narrow_crc()
466 if (!n.csum_type) in bch2_can_narrow_extent_crcs()
494 if (!n.csum_type) { in bch2_bkey_narrow_crcs()
[all …]
Dec.h35 EBUG_ON(s->csum_type >= BCH_CSUM_NR); in stripe_csum_offset()
37 unsigned csum_bytes = bch_crc_bytes[s->csum_type]; in stripe_csum_offset()
85 memcpy(&csum, stripe_csum(s, block, csum_idx), bch_crc_bytes[s->csum_type]); in stripe_csum_get()
93 memcpy(stripe_csum(s, block, csum_idx), &csum, bch_crc_bytes[s->csum_type]); in stripe_csum_set()
Dchecksum.c413 unsigned csum_type; in bch2_rechecksum_bio() member
420 bool mergeable = crc_old.csum_type == new_csum_type && in bch2_rechecksum_bio()
427 BUG_ON(bch2_csum_type_is_encryption(crc_old.csum_type) != in bch2_rechecksum_bio()
433 i->csum = __bch2_checksum_bio(c, i->csum_type, in bch2_rechecksum_bio()
445 merged = bch2_checksum_bio(c, crc_old.csum_type, in bch2_rechecksum_bio()
457 bch2_prt_csum_type(&buf, crc_old.csum_type); in bch2_rechecksum_bio()
469 .csum_type = i->csum_type, in bch2_rechecksum_bio()
Dio_read.c533 rbio->pick.crc.csum_type)) { in __bch2_rbio_narrow_crcs()
591 csum = bch2_checksum_bio(c, crc.csum_type, nonce, src); in __bch2_read_endio()
613 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src); in __bch2_read_endio()
628 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src); in __bch2_read_endio()
644 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src); in __bch2_read_endio()
674 bch2_csum_err_msg(&buf, crc.csum_type, rbio->pick.crc.csum, csum); in __bch2_read_endio()
745 bch2_csum_type_is_encryption(rbio->pick.crc.csum_type)) in bch2_read_endio()
747 else if (rbio->pick.crc.csum_type) in bch2_read_endio()
936 (pick.crc.csum_type != BCH_CSUM_none && in __bch2_read_extent()
938 (bch2_csum_type_is_encryption(pick.crc.csum_type) && in __bch2_read_extent()
[all …]
Dec_format.h13 __u8 csum_type; member
Dextents_types.h12 u8 csum_type; member
Dio_write_types.h51 unsigned csum_type:4; member
Dio_write.h73 op->csum_type = bch2_data_checksum_type(c, opts); in bch2_write_op_init()
Dextents.h155 .csum_type = _crc.csum_type, \ in bch2_extent_crc_unpack()
212 return crc.csum_type != BCH_CSUM_none || crc_is_compressed(crc); in crc_is_encoded()
Ddata_update.c682 if (bch2_csum_type_is_encryption(p.crc.csum_type)) { in bch2_data_update_init()
684 m->op.csum_type = p.crc.csum_type; in bch2_data_update_init()
Dsuper-io.c678 enum bch_csum_type csum_type = BCH_SB_CSUM_TYPE(sb->sb); in read_one_super() local
679 if (csum_type >= BCH_CSUM_NR) { in read_one_super()
685 struct bch_csum csum = csum_vstruct(NULL, csum_type, null_nonce(), sb->sb); in read_one_super()
687 bch2_csum_err_msg(err, csum_type, sb->sb->csum, csum); in read_one_super()
/linux-6.12.1/block/
Dt10-pi.c25 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()
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()
Dblk-settings.c113 if (bi->csum_type != BLK_INTEGRITY_CSUM_NONE || in blk_validate_integrity_limits()
126 if (bi->csum_type == BLK_INTEGRITY_CSUM_NONE && in blk_validate_integrity_limits()
699 ti->csum_type = bi->csum_type; in queue_limits_stack_integrity()
716 if (ti->csum_type != bi->csum_type) in queue_limits_stack_integrity()
Dbio-integrity.c415 if (bi->csum_type == BLK_INTEGRITY_CSUM_NONE) in bio_integrity_prep()
438 if (bi->csum_type == BLK_INTEGRITY_CSUM_IP) in bio_integrity_prep()
498 if (bio_op(bio) == REQ_OP_READ && !bio->bi_status && bi->csum_type) { in __bio_integrity_endio()
Dblk-integrity.c181 switch (bi->csum_type) { in blk_integrity_profile_name()
/linux-6.12.1/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_handlers.c137 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()
Drmnet_map.h54 int csum_type);
Drmnet_map_data.c477 int csum_type) in rmnet_map_checksum_uplink_packet() argument
479 switch (csum_type) { in rmnet_map_checksum_uplink_packet()
/linux-6.12.1/drivers/scsi/
Dsd_dif.c48 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.12.1/net/netfilter/
Dnft_payload.c803 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.12.1/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c1082 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()
/linux-6.12.1/fs/btrfs/
Dctree.h742 const char *btrfs_super_csum_name(u16 csum_type);
743 const char *btrfs_super_csum_driver(u16 csum_type);
Ddisk-io.c142 static bool btrfs_supported_super_csum(u16 csum_type) in btrfs_supported_super_csum() argument
144 switch (csum_type) { in btrfs_supported_super_csum()
2026 static int btrfs_init_csum_hash(struct btrfs_fs_info *fs_info, u16 csum_type) in btrfs_init_csum_hash() argument
2029 const char *csum_driver = btrfs_super_csum_driver(csum_type); in btrfs_init_csum_hash()
2046 switch (csum_type) { in btrfs_init_csum_hash()
2059 btrfs_super_csum_name(csum_type), in btrfs_init_csum_hash()
3212 u16 csum_type; in open_ctree() local
3256 csum_type = btrfs_super_csum_type(disk_super); in open_ctree()
3257 if (!btrfs_supported_super_csum(csum_type)) { in open_ctree()
3259 csum_type); in open_ctree()
[all …]

12