Lines Matching refs:bi
32 struct blk_integrity bi; in sd_dif_config_host() local
45 memset(&bi, 0, sizeof(bi)); in sd_dif_config_host()
50 bi.profile = &t10_pi_type3_ip; in sd_dif_config_host()
52 bi.profile = &t10_pi_type1_ip; in sd_dif_config_host()
54 bi.flags |= BLK_INTEGRITY_IP_CHECKSUM; in sd_dif_config_host()
57 bi.profile = &t10_pi_type3_crc; in sd_dif_config_host()
59 bi.profile = &t10_pi_type1_crc; in sd_dif_config_host()
61 bi.tuple_size = sizeof(struct t10_pi_tuple); in sd_dif_config_host()
63 "Enabling DIX %s protection\n", bi.profile->name); in sd_dif_config_host()
66 bi.flags |= BLK_INTEGRITY_DEVICE_CAPABLE; in sd_dif_config_host()
72 bi.tag_size = sizeof(u16) + sizeof(u32); in sd_dif_config_host()
74 bi.tag_size = sizeof(u16); in sd_dif_config_host()
77 bi.tag_size); in sd_dif_config_host()
81 blk_integrity_register(disk, &bi); in sd_dif_config_host()