Home
last modified time | relevance | path

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

12

/linux/fs/btrfs/
H A Dfs.c33 const char *btrfs_super_csum_name(u16 csum_type) in btrfs_super_csum_name() argument
36 return btrfs_csums[csum_type].name; in btrfs_super_csum_name()
44 void btrfs_csum(u16 csum_type, const u8 *data, size_t len, u8 *out) in btrfs_csum() argument
46 switch (csum_type) { in btrfs_csum()
65 void btrfs_csum_init(struct btrfs_csum_ctx *ctx, u16 csum_type) in btrfs_csum_init() argument
67 ctx->csum_type = csum_type; in btrfs_csum_init()
68 switch (ctx->csum_type) { in btrfs_csum_init()
89 switch (ctx->csum_type) { in btrfs_csum_update()
110 switch (ctx->csum_type) { in btrfs_csum_final()
[all...]
H A Dfs.h896 u32 csum_type;
1100 const char *btrfs_super_csum_name(u16 csum_type);
1103 u16 csum_type;
1111 void btrfs_csum(u16 csum_type, const u8 *data, size_t len, u8 *out);
1112 void btrfs_csum_init(struct btrfs_csum_ctx *ctx, u16 csum_type);
897 u32 csum_type; global() member
1104 u16 csum_type; global() member
H A Ddisk-io.c76 btrfs_csum_init(&csum, fs_info->csum_type); in csum_tree_block()
137 static bool btrfs_supported_super_csum(u16 csum_type) in btrfs_buffer_uptodate()
139 switch (csum_type) { in btrfs_supported_super_csum() argument
164 btrfs_csum(fs_info->csum_type, (const u8 *)disk_sb + BTRFS_CSUM_SIZE, in btrfs_check_super_csum()
2090 static void btrfs_init_csum_hash(struct btrfs_fs_info *fs_info, u16 csum_type) in load_global_roots_objectid()
2093 switch (csum_type) { in load_global_roots_objectid()
2106 btrfs_super_csum_name(csum_type)); in load_global_roots_objectid()
3424 u16 csum_type; in open_ctree()
3469 csum_type = btrfs_super_csum_type(disk_super); in open_ctree()
3470 if (!btrfs_supported_super_csum(csum_type)) { in open_ctree()
2009 btrfs_init_csum_hash(struct btrfs_fs_info * fs_info,u16 csum_type) btrfs_init_csum_hash() argument
3375 u16 csum_type; open_ctree() local
[all...]
H A Dsuper.c2325 u16 csum_type; in btrfs_freeze()
2341 csum_type = btrfs_super_csum_type(sb); in check_dev_super()
2342 if (unlikely(csum_type != btrfs_super_csum_type(fs_info->super_copy))) { in check_dev_super()
2344 csum_type, btrfs_super_csum_type(fs_info->super_copy)); in check_dev_super()
2334 u16 csum_type; check_dev_super() local
H A Dsysfs.c1141 u16 csum_type = btrfs_super_csum_type(fs_info->super_copy);
1142 const char *csum_name = btrfs_super_csum_name(csum_type);
1257 u16 csum_type = btrfs_super_csum_type(fs_info->super_copy); btrfs_checksum_show() local
/linux/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_handlers.c144 int required_headroom, additional_header_len, csum_type = 0; in rmnet_map_egress_handler()
154 csum_type = RMNET_FLAGS_EGRESS_MAP_CKSUMV4; in rmnet_map_egress_handler()
157 csum_type = RMNET_FLAGS_EGRESS_MAP_CKSUMV5; in rmnet_map_egress_handler()
165 if (csum_type) in rmnet_map_egress_handler()
167 csum_type); in rmnet_map_egress_handler()
140 int required_headroom, additional_header_len, csum_type = 0; rmnet_map_egress_handler() local
H A Drmnet_map.h55 int csum_type);
H A Drmnet_map_data.c486 int csum_type) in rmnet_map_checksum_uplink_packet() argument
488 switch (csum_type) { in rmnet_map_checksum_uplink_packet()
/linux/drivers/scsi/
H A 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/block/
H A Dblk-integrity.c84 switch (bi->csum_type) { in blk_get_meta_cap()
99 if (bi->csum_type != BLK_INTEGRITY_CSUM_NONE) in blk_get_meta_cap()
103 switch (bi->csum_type) { in blk_get_meta_cap()
205 switch (bi->csum_type) { in blk_integrity_profile_name()
H A Dblk-settings.c131 if (bi->csum_type != BLK_INTEGRITY_CSUM_NONE || in blk_validate_integrity_limits()
145 if (bi->csum_type == BLK_INTEGRITY_CSUM_NONE && in blk_validate_integrity_limits()
157 switch (bi->csum_type) { in blk_validate_integrity_limits()
196 if (!(bi->flags & BLK_SPLIT_INTERVAL_CAPABLE) && bi->csum_type) { in blk_validate_integrity_limits()
998 if (ti->csum_type != bi->csum_type) in queue_limits_stack_integrity()
1013 ti->csum_type = bi->csum_type; in queue_limits_stack_integrity()
H A Dbio-integrity.c111 if (bi->csum_type) { in bio_integrity_setup_default()
113 if (bi->csum_type == BLK_INTEGRITY_CSUM_IP) in bio_integrity_setup_default()
/linux/net/netfilter/
H A Dnft_payload.c777 u8 csum_type;
1162 if ((priv->csum_type == NFT_PAYLOAD_CSUM_INET || priv->csum_flags) && in nft_payload_set_eval()
1172 if (priv->csum_type == NFT_PAYLOAD_CSUM_INET &&
1186 if (priv->csum_type == NFT_PAYLOAD_CSUM_SCTP && in nft_payload_set_init()
1203 u32 csum_offset, offset, csum_type = NFT_PAYLOAD_CSUM_NONE; in nft_payload_set_init()
1219 csum_type = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_CSUM_TYPE])); in nft_payload_set_init()
1238 switch (csum_type) { in nft_payload_set_init()
1274 priv->csum_type = csum_type;
1289 nla_put_be32(skb, NFTA_PAYLOAD_CSUM_TYPE, htonl(priv->csum_type)) || in nft_payload_select_ops()
776 u8 csum_type; global() member
1177 u32 csum_offset, offset, csum_type = NFT_PAYLOAD_CSUM_NONE; nft_payload_set_init() local
[all...]
/linux/tools/testing/selftests/ublk/
H A Dkublk.h105 __u8 csum_type; member
362 .csum_type = ctx->csum_type,
H A Dkublk.c1911 "[--pi_offset OFFSET] [--csum_type ip|t10dif|nvme] [--tag_size SIZE]\n"); in cmd_dev_add()
1986 { "csum_type", 1, NULL, 0 }, in cmd_dev_stop()
2019 .csum_type = LBMD_PI_CSUM_NONE, in __cmd_dev_list()
2121 if (!strcmp(longopts[option_idx].name, "csum_type")) { in cmd_dev_update_size()
2123 ctx.csum_type = LBMD_PI_CSUM_IP; in cmd_dev_update_size()
2125 ctx.csum_type = LBMD_PI_CSUM_CRC16_T10DIF; in cmd_dev_update_size()
2127 ctx.csum_type = LBMD_PI_CSUM_CRC64_NVME; in cmd_dev_update_size()
2129 ublk_err("invalid csum_type: %s\n", optarg); in cmd_dev_update_size()
2233 ctx.csum_type != LBMD_PI_CSUM_NONE || in main()
/linux/drivers/net/ethernet/chelsio/cxgb4vf/
H A 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/include/uapi/linux/
H A Dublk_cmd.h771 __u8 csum_type; /* LBMD_PI_CSUM_* from linux/fs.h */ member
H A Dbtrfs.h284 __u16 csum_type; /* out */ member
/linux/drivers/block/
H A Dublk_drv.c935 static int ublk_integrity_pi_tuple_size(u8 csum_type) in ublk_integrity_csum_type()
937 switch (csum_type) { in ublk_integrity_csum_type()
950 static enum blk_integrity_checksum ublk_integrity_csum_type(u8 csum_type)
952 switch (csum_type) { in ublk_validate_params()
1052 int pi_tuple_size = ublk_integrity_pi_tuple_size(p->csum_type); in ublk_validate_params()
1063 if (p->csum_type == LBMD_PI_CSUM_NONE &&
4657 int pi_tuple_size = ublk_integrity_pi_tuple_size(p->csum_type); in ublk_dump_dev_info()
4663 .csum_type = ublk_integrity_csum_type(p->csum_type),
919 ublk_integrity_pi_tuple_size(u8 csum_type) ublk_integrity_pi_tuple_size() argument
934 ublk_integrity_csum_type(u8 csum_type) ublk_integrity_csum_type() argument
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dsge.c1146 int csum_type; in hwcsum() local
1166 csum_type = TX_CSUM_TCPIP; in hwcsum()
1168 csum_type = TX_CSUM_UDPIP; in hwcsum()
1181 csum_type = TX_CSUM_TCPIP6; in hwcsum()
1183 csum_type = TX_CSUM_UDPIP6; in hwcsum()
1188 if (likely(csum_type >= TX_CSUM_TCPIP)) { in hwcsum()
1208 return TXPKT_CSUM_TYPE_V(csum_type) | hdr_len; in hwcsum()
1212 return TXPKT_CSUM_TYPE_V(csum_type) | in hwcsum()
/linux/include/linux/
H A Dblkdev.h121 enum blk_integrity_checksum csum_type; member
1408 lim->integrity.csum_type != BLK_INTEGRITY_CSUM_NONE; in bdev_has_integrity_csum()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net.h259 u8 csum_type; member
/linux/drivers/nvme/host/
H A Dcore.c1874 bi->csum_type = BLK_INTEGRITY_CSUM_CRC; in nvme_init_integrity()
1879 bi->csum_type = BLK_INTEGRITY_CSUM_CRC64; in nvme_init_integrity()
1891 bi->csum_type = BLK_INTEGRITY_CSUM_CRC; in nvme_init_integrity()
1897 bi->csum_type = BLK_INTEGRITY_CSUM_CRC64; in nvme_init_integrity()
1912 if (bi->csum_type) { in nvme_init_integrity()
/linux/drivers/target/
H A Dtarget_core_iblock.c160 switch (bi->csum_type) { in iblock_configure_device()
/linux/drivers/net/ethernet/microsoft/mana/
H A Dmana_en.c369 unsigned int csum_type; in mana_start_xmit()
488 csum_type = mana_checksum_info(skb); in mana_start_xmit()
494 if (csum_type == IPPROTO_TCP) { in mana_start_xmit()
501 } else if (csum_type == IPPROTO_UDP) { in mana_start_xmit()
362 unsigned int csum_type; mana_start_xmit() local

12