| /linux/block/ |
| 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-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 | blk-settings.c | 144 if (bi->csum_type != BLK_INTEGRITY_CSUM_NONE || in blk_validate_integrity_limits() 158 if (bi->csum_type == BLK_INTEGRITY_CSUM_NONE && in blk_validate_integrity_limits() 170 switch (bi->csum_type) { in blk_validate_integrity_limits() 209 if (bi->csum_type) { in blk_validate_integrity_limits() 1001 if (ti->csum_type != bi->csum_type) in queue_limits_stack_integrity() 1012 ti->csum_type = bi->csum_type; in queue_limits_stack_integrity()
|
| H A D | bio-integrity-auto.c | 150 if (bi->csum_type == BLK_INTEGRITY_CSUM_IP) in bio_integrity_prep() 152 if (bi->csum_type) in bio_integrity_prep()
|
| /linux/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);
|
| /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/fs/btrfs/ |
| H A D | fs.h | 884 u32 csum_type; member 1086 const char *btrfs_super_csum_name(u16 csum_type); 1089 u16 csum_type; member 1097 void btrfs_csum(u16 csum_type, const u8 *data, size_t len, u8 *out); 1098 void btrfs_csum_init(struct btrfs_csum_ctx *ctx, u16 csum_type);
|
| H A D | disk-io.c | 77 btrfs_csum_init(&csum, fs_info->csum_type); in csum_tree_block() 136 static bool btrfs_supported_super_csum(u16 csum_type) in btrfs_supported_super_csum() argument 138 switch (csum_type) { in btrfs_supported_super_csum() 163 btrfs_csum(fs_info->csum_type, (const u8 *)disk_sb + BTRFS_CSUM_SIZE, in btrfs_check_super_csum() 1967 static void btrfs_init_csum_hash(struct btrfs_fs_info *fs_info, u16 csum_type) in btrfs_init_csum_hash() argument 1970 switch (csum_type) { in btrfs_init_csum_hash() 1983 btrfs_super_csum_name(csum_type)); in btrfs_init_csum_hash() 3289 u16 csum_type; in open_ctree() local 3334 csum_type = btrfs_super_csum_type(disk_super); in open_ctree() 3335 if (!btrfs_supported_super_csum(csum_type)) { in open_ctree() [all …]
|
| H A D | super.c | 2309 u16 csum_type; in check_dev_super() local 2325 csum_type = btrfs_super_csum_type(sb); in check_dev_super() 2326 if (unlikely(csum_type != btrfs_super_csum_type(fs_info->super_copy))) { in check_dev_super() 2328 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 | 761 btrfs_csum_init(&csum, fs_info->csum_type); in scrub_verify_one_metadata()
|
| H A D | ioctl.c | 2665 fi_args->csum_type = btrfs_super_csum_type(fs_info->super_copy); in btrfs_ioctl_fs_info()
|
| /linux/tools/testing/selftests/ublk/ |
| H A D | kublk.h | 86 __u8 csum_type; member 300 .csum_type = ctx->csum_type, in ublk_set_integrity_params()
|
| H A D | kublk.c | 1804 .csum_type = LBMD_PI_CSUM_NONE, in main() 1892 ctx.csum_type = LBMD_PI_CSUM_IP; in main() 1894 ctx.csum_type = LBMD_PI_CSUM_CRC16_T10DIF; in main() 1896 ctx.csum_type = LBMD_PI_CSUM_CRC64_NVME; in main() 1964 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/drivers/block/ |
| H A D | ublk_drv.c | 824 static int ublk_integrity_pi_tuple_size(u8 csum_type) in ublk_integrity_pi_tuple_size() argument 826 switch (csum_type) { in ublk_integrity_pi_tuple_size() 839 static enum blk_integrity_checksum ublk_integrity_csum_type(u8 csum_type) in ublk_integrity_csum_type() argument 841 switch (csum_type) { in ublk_integrity_csum_type() 920 int pi_tuple_size = ublk_integrity_pi_tuple_size(p->csum_type); in ublk_validate_params() 931 if (p->csum_type == LBMD_PI_CSUM_NONE && in ublk_validate_params() 4370 int pi_tuple_size = ublk_integrity_pi_tuple_size(p->csum_type); in ublk_ctrl_start_dev() 4376 .csum_type = ublk_integrity_csum_type(p->csum_type), in ublk_ctrl_start_dev()
|
| /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/uapi/linux/ |
| H A D | btrfs_tree.h | 709 __le16 csum_type; 702 __le16 csum_type; global() member
|
| H A D | btrfs.h | 284 __u16 csum_type; /* out */ member
|
| /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 | 1842 bi->csum_type = BLK_INTEGRITY_CSUM_CRC; in nvme_init_integrity() 1847 bi->csum_type = BLK_INTEGRITY_CSUM_CRC64; in nvme_init_integrity() 1859 bi->csum_type = BLK_INTEGRITY_CSUM_CRC; in nvme_init_integrity() 1865 bi->csum_type = BLK_INTEGRITY_CSUM_CRC64; in nvme_init_integrity() 1879 if (bi->csum_type) { in nvme_init_integrity()
|
| /linux/drivers/net/ethernet/microsoft/mana/ |
| H A D | mana_en.c | 348 unsigned int csum_type; in mana_start_xmit() local 466 csum_type = mana_checksum_info(skb); in mana_start_xmit() 472 if (csum_type == IPPROTO_TCP) { in mana_start_xmit() 479 } else if (csum_type == IPPROTO_UDP) { in mana_start_xmit()
|
| /linux/drivers/target/ |
| H A D | target_core_iblock.c | 160 switch (bi->csum_type) { in iblock_configure_device()
|
| /linux/drivers/md/ |
| H A D | dm-crypt.c | 1168 if (!bi || bi->csum_type != BLK_INTEGRITY_CSUM_NONE) { in crypt_integrity_ctr()
|