Lines Matching refs:bi
46 struct blk_integrity bi; in sd_dif_config_host() local
59 memset(&bi, 0, sizeof(bi)); in sd_dif_config_host()
64 bi.profile = &t10_pi_type3_ip; in sd_dif_config_host()
66 bi.profile = &t10_pi_type1_ip; in sd_dif_config_host()
68 bi.flags |= BLK_INTEGRITY_IP_CHECKSUM; in sd_dif_config_host()
71 bi.profile = &t10_pi_type3_crc; in sd_dif_config_host()
73 bi.profile = &t10_pi_type1_crc; in sd_dif_config_host()
75 bi.tuple_size = sizeof(struct t10_pi_tuple); in sd_dif_config_host()
77 "Enabling DIX %s protection\n", bi.profile->name); in sd_dif_config_host()
80 bi.flags |= BLK_INTEGRITY_DEVICE_CAPABLE; in sd_dif_config_host()
86 bi.tag_size = sizeof(u16) + sizeof(u32); in sd_dif_config_host()
88 bi.tag_size = sizeof(u16); in sd_dif_config_host()
91 bi.tag_size); in sd_dif_config_host()
95 blk_integrity_register(disk, &bi); in sd_dif_config_host()