| /linux/fs/btrfs/ |
| H A D | fs.c | 33 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()
|
| H A D | fs.h | 897 u32 csum_type; member 1101 const char *btrfs_super_csum_name(u16 csum_type); 1104 u16 csum_type; member 1112 void btrfs_csum(u16 csum_type, const u8 *data, size_t len, u8 *out); 1113 void btrfs_csum_init(struct btrfs_csum_ctx *ctx, u16 csum_type);
|
| H A D | disk-io.c | 76 btrfs_csum_init(&csum, fs_info->csum_type); in csum_tree_block() 139 static bool btrfs_supported_super_csum(u16 csum_type) in btrfs_supported_super_csum() argument 141 switch (csum_type) { in btrfs_supported_super_csum() 166 btrfs_csum(fs_info->csum_type, (const u8 *)disk_sb + BTRFS_CSUM_SIZE, in btrfs_check_super_csum() 2009 static void btrfs_init_csum_hash(struct btrfs_fs_info *fs_info, u16 csum_type) in btrfs_init_csum_hash() argument 2012 switch (csum_type) { in btrfs_init_csum_hash() 2025 btrfs_super_csum_name(csum_type)); in btrfs_init_csum_hash() 3371 u16 csum_type; in open_ctree() local 3416 csum_type = btrfs_super_csum_type(disk_super); in open_ctree() 3417 if (!btrfs_supported_super_csum(csum_type)) { in open_ctree() [all …]
|
| H A D | super.c | 2330 u16 csum_type; in check_dev_super() local 2346 csum_type = btrfs_super_csum_type(sb); in check_dev_super() 2347 if (unlikely(csum_type != btrfs_super_csum_type(fs_info->super_copy))) { in check_dev_super() 2349 csum_type, btrfs_super_csum_type(fs_info->super_copy)); in check_dev_super()
|
| H A D | sysfs.c | 1257 u16 csum_type = btrfs_super_csum_type(fs_info->super_copy); in btrfs_checksum_show() local 1258 const char *csum_name = btrfs_super_csum_name(csum_type); in btrfs_checksum_show()
|
| H A D | scrub.c | 680 btrfs_csum_init(&csum, fs_info->csum_type); in scrub_calc_vaddr_csum()
|
| H A D | ioctl.c | 2716 fi_args->csum_type = btrfs_super_csum_type(fs_info->super_copy); in btrfs_ioctl_fs_info()
|
| /linux/drivers/net/ethernet/qualcomm/rmnet/ |
| H A D | rmnet_handlers.c | 140 int required_headroom, additional_header_len, csum_type = 0; in rmnet_map_egress_handler() local 148 csum_type = RMNET_FLAGS_EGRESS_MAP_CKSUMV4; in rmnet_map_egress_handler() 151 csum_type = RMNET_FLAGS_EGRESS_MAP_CKSUMV5; in rmnet_map_egress_handler() 159 if (csum_type) in rmnet_map_egress_handler() 161 csum_type); in rmnet_map_egress_handler()
|
| H A D | rmnet_map.h | 54 int csum_type);
|
| H A D | rmnet_map_data.c | 485 int csum_type) in rmnet_map_checksum_uplink_packet() argument 487 switch (csum_type) { in rmnet_map_checksum_uplink_packet()
|
| /linux/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/block/ |
| H A D | blk-integrity.c | 84 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 D | bio-integrity.c | 110 if (bi->csum_type) { in bio_integrity_setup_default() 112 if (bi->csum_type == BLK_INTEGRITY_CSUM_IP) in bio_integrity_setup_default()
|
| /linux/net/netfilter/ |
| H A D | nft_payload.c | 776 u8 csum_type; member 1123 if ((priv->csum_type == NFT_PAYLOAD_CSUM_INET || priv->csum_flags) && in nft_payload_set_eval() 1133 if (priv->csum_type == NFT_PAYLOAD_CSUM_INET && in nft_payload_set_eval() 1147 if (priv->csum_type == NFT_PAYLOAD_CSUM_SCTP && in nft_payload_set_eval() 1164 u32 csum_offset, offset, csum_type = NFT_PAYLOAD_CSUM_NONE; in nft_payload_set_init() local 1180 csum_type = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_CSUM_TYPE])); in nft_payload_set_init() 1199 switch (csum_type) { in nft_payload_set_init() 1235 priv->csum_type = csum_type; in nft_payload_set_init() 1250 nla_put_be32(skb, NFTA_PAYLOAD_CSUM_TYPE, htonl(priv->csum_type)) || in nft_payload_set_dump()
|
| /linux/tools/testing/selftests/ublk/ |
| H A D | kublk.h | 105 __u8 csum_type; member 330 .csum_type = ctx->csum_type, in ublk_set_integrity_params()
|
| H A D | kublk.c | 2290 .csum_type = LBMD_PI_CSUM_NONE, in main() 2394 ctx.csum_type = LBMD_PI_CSUM_IP; in main() 2396 ctx.csum_type = LBMD_PI_CSUM_CRC16_T10DIF; in main() 2398 ctx.csum_type = LBMD_PI_CSUM_CRC64_NVME; in main() 2504 ctx.csum_type != LBMD_PI_CSUM_NONE || in main()
|
| /linux/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()
|
| /linux/include/uapi/linux/ |
| H A D | ublk_cmd.h | 771 __u8 csum_type; /* LBMD_PI_CSUM_* from linux/fs.h */ member
|
| H A D | btrfs.h | 284 __u16 csum_type; /* out */ member
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | sge.c | 1146 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 D | blkdev.h | 121 enum blk_integrity_checksum csum_type; member 1407 lim->integrity.csum_type != BLK_INTEGRITY_CSUM_NONE; in bdev_has_integrity_csum()
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net.h | 259 u8 csum_type; member
|
| /linux/drivers/nvme/host/ |
| H A D | core.c | 1876 bi->csum_type = BLK_INTEGRITY_CSUM_CRC; in nvme_init_integrity() 1881 bi->csum_type = BLK_INTEGRITY_CSUM_CRC64; in nvme_init_integrity() 1893 bi->csum_type = BLK_INTEGRITY_CSUM_CRC; in nvme_init_integrity() 1899 bi->csum_type = BLK_INTEGRITY_CSUM_CRC64; in nvme_init_integrity() 1914 if (bi->csum_type) { in nvme_init_integrity()
|
| /linux/drivers/target/ |
| H A D | target_core_iblock.c | 160 switch (bi->csum_type) { in iblock_configure_device()
|
| /linux/drivers/net/ethernet/microsoft/mana/ |
| H A D | mana_en.c | 362 unsigned int csum_type; in mana_start_xmit() local 480 csum_type = mana_checksum_info(skb); in mana_start_xmit() 486 if (csum_type == IPPROTO_TCP) { in mana_start_xmit() 493 } else if (csum_type == IPPROTO_UDP) { in mana_start_xmit()
|