Searched refs:csum_type (Results 1 - 25 of 38) sorted by relevance

12

/linux-master/fs/bcachefs/
H A Dec_format.h13 __u8 csum_type; member in struct:bch_stripe
H A Dextents_format.h99 csum_type:4, member in struct:bch_extent_crc32
105 csum_type:4,
124 csum_type:4, member in struct:bch_extent_crc64
130 csum_type:4,
150 csum_type:4, member in struct:bch_extent_crc128
154 csum_type:4,
H A Dextents_types.h12 u8 csum_type; member in struct:bch_extent_crc_unpacked
H A Dio_write.c690 if (crc.csum_type ||
760 if (bch2_csum_type_is_encryption(op->crc.csum_type) !=
762 new_csum_type = op->crc.csum_type;
784 if (!bch2_csum_type_is_encryption(op->crc.csum_type))
793 csum = bch2_checksum_bio(c, op->crc.csum_type, nonce, &op->wbio.bio);
797 ret = bch2_encrypt_bio(c, op->crc.csum_type, nonce, &op->wbio.bio);
798 op->crc.csum_type = 0;
825 op->csum_type != op->crc.csum_type &&
826 bch2_write_rechecksum(c, op, op->csum_type)
[all...]
H A Dio_write_types.h50 unsigned csum_type:4; member in struct:bch_write_op
H A Dec.h35 EBUG_ON(s->csum_type >= BCH_CSUM_NR);
37 unsigned csum_bytes = bch_crc_bytes[s->csum_type];
85 memcpy(&csum, stripe_csum(s, block, csum_idx), bch_crc_bytes[s->csum_type]);
93 memcpy(stripe_csum(s, block, csum_idx), &csum, bch_crc_bytes[s->csum_type]);
H A Dextents.c303 if (lp.crc.csum_type != rp.crc.csum_type ||
306 !bch2_checksum_mergeable(lp.crc.csum_type))
313 if (lp.crc.csum_type &&
365 crc_l.csum = bch2_checksum_merge(crc_l.csum_type,
430 return (l.csum_type != r.csum_type ||
444 u.csum_type &&
446 bch2_csum_type_is_encryption(u.csum_type) ==
447 bch2_csum_type_is_encryption(n.csum_type);
[all...]
H A Dio_write.h73 op->csum_type = bch2_data_checksum_type(c, opts);
H A Dio_read.c506 rbio->pick.crc.csum_type)) {
565 csum = bch2_checksum_bio(c, crc.csum_type, nonce, src);
587 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src);
602 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src);
618 ret = bch2_encrypt_bio(c, crc.csum_type, nonce, src);
648 bch2_csum_err_msg(&buf, crc.csum_type, rbio->pick.crc.csum, csum);
713 bch2_csum_type_is_encryption(rbio->pick.crc.csum_type))
715 else if (rbio->pick.crc.csum_type)
882 (pick.crc.csum_type != BCH_CSUM_none &&
884 (bch2_csum_type_is_encryption(pick.crc.csum_type)
[all...]
H A Dchecksum.c396 unsigned csum_type; member in struct:crc_split
403 bool mergeable = crc_old.csum_type == new_csum_type &&
410 BUG_ON(bch2_csum_type_is_encryption(crc_old.csum_type) !=
416 i->csum = __bch2_checksum_bio(c, i->csum_type,
428 merged = bch2_checksum_bio(c, crc_old.csum_type,
440 bch2_prt_csum_type(&buf, crc_old.csum_type);
452 .csum_type = i->csum_type,
H A Dextents.h155 .csum_type = _crc.csum_type, \
212 return crc.csum_type != BCH_CSUM_none || crc_is_compressed(crc);
H A Ddata_update.c566 * op->csum_type is normally initialized from the fs/file's
570 if (bch2_csum_type_is_encryption(p.crc.csum_type)) {
572 m->op.csum_type = p.crc.csum_type;
H A Dec.c146 bch2_prt_csum_type(out, s.csum_type);
157 if (s.csum_type < BCH_CSUM_NR &&
565 return bch2_checksum(NULL, v->csum_type,
576 if (!v->csum_type)
594 if (!v->csum_type)
615 bch2_csum_err_msg(&err, v->csum_type, want, got);
1595 s->v.csum_type = BCH_CSUM_crc32c;
H A Dsuper-io.c665 enum bch_csum_type csum_type = BCH_SB_CSUM_TYPE(sb->sb); local
666 if (csum_type >= BCH_CSUM_NR) {
672 struct bch_csum csum = csum_vstruct(NULL, csum_type, null_nonce(), sb->sb);
674 bch2_csum_err_msg(err, csum_type, sb->sb->csum, csum);
H A Dopts.c116 PRT_STR_OPT_BOUNDSCHECKED(csum_type, enum bch_csum_type);
H A Dbackpointers.c458 if (!p.crc.csum_type)
487 struct bch_csum csum = bch2_checksum(c, p.crc.csum_type, nonce, data_buf, bytes);
/linux-master/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_handlers.c137 int required_headroom, additional_header_len, csum_type = 0; local
145 csum_type = RMNET_FLAGS_EGRESS_MAP_CKSUMV4;
148 csum_type = RMNET_FLAGS_EGRESS_MAP_CKSUMV5;
156 if (csum_type)
158 csum_type);
H A Drmnet_map.h54 int csum_type);
H A Drmnet_map_data.c477 int csum_type)
479 switch (csum_type) {
474 rmnet_map_checksum_uplink_packet(struct sk_buff *skb, struct rmnet_port *port, struct net_device *orig_dev, int csum_type) argument
/linux-master/net/netfilter/
H A Dnft_payload.c808 u8 csum_type; member in struct:nft_payload_set
850 if ((priv->csum_type == NFT_PAYLOAD_CSUM_INET || priv->csum_flags) &&
857 if (priv->csum_type == NFT_PAYLOAD_CSUM_INET &&
870 if (priv->csum_type == NFT_PAYLOAD_CSUM_SCTP &&
888 u32 csum_offset, csum_type = NFT_PAYLOAD_CSUM_NONE; local
896 csum_type = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_CSUM_TYPE]));
915 switch (csum_type) {
929 priv->csum_type = csum_type;
944 nla_put_be32(skb, NFTA_PAYLOAD_CSUM_TYPE, htonl(priv->csum_type)) ||
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dsge.c1082 int csum_type; local
1087 csum_type = TX_CSUM_TCPIP;
1089 csum_type = TX_CSUM_UDPIP;
1105 csum_type = TX_CSUM_TCPIP6;
1107 csum_type = TX_CSUM_UDPIP6;
1112 if (likely(csum_type >= TX_CSUM_TCPIP)) {
1120 return TXPKT_CSUM_TYPE_V(csum_type) | hdr_len;
1124 return TXPKT_CSUM_TYPE_V(csum_type) |
/linux-master/fs/btrfs/
H A Dctree.h723 const char *btrfs_super_csum_name(u16 csum_type);
724 const char *btrfs_super_csum_driver(u16 csum_type);
H A Ddisk-io.c142 static bool btrfs_supported_super_csum(u16 csum_type) argument
144 switch (csum_type) {
2034 static int btrfs_init_csum_hash(struct btrfs_fs_info *fs_info, u16 csum_type) argument
2037 const char *csum_driver = btrfs_super_csum_driver(csum_type);
2054 switch (csum_type) {
2067 btrfs_super_csum_name(csum_type),
3203 u16 csum_type; local
3247 csum_type = btrfs_super_csum_type(disk_super);
3248 if (!btrfs_supported_super_csum(csum_type)) {
3250 csum_type);
[all...]
/linux-master/drivers/net/ethernet/netronome/nfp/nfd3/
H A Ddp.c671 if (meta->csum_type) {
672 skb->ip_summed = meta->csum_type;
780 meta->csum_type = CHECKSUM_COMPLETE;
/linux-master/drivers/net/ethernet/netronome/nfp/nfdk/
H A Ddp.c684 if (meta->csum_type) {
685 skb->ip_summed = meta->csum_type;
780 meta->csum_type = CHECKSUM_COMPLETE;

Completed in 1222 milliseconds

12