Lines Matching refs:sdt
1162 struct t10_pi_tuple *sdt; in sbc_dif_generate() local
1174 j += sizeof(*sdt)) { in sbc_dif_generate()
1189 sdt = paddr + j; in sbc_dif_generate()
1206 sdt->guard_tag = cpu_to_be16(crc); in sbc_dif_generate()
1208 sdt->ref_tag = cpu_to_be32(sector & 0xffffffff); in sbc_dif_generate()
1209 sdt->app_tag = 0; in sbc_dif_generate()
1215 sdt->guard_tag, sdt->app_tag, in sbc_dif_generate()
1216 be32_to_cpu(sdt->ref_tag)); in sbc_dif_generate()
1227 sbc_dif_v1_verify(struct se_cmd *cmd, struct t10_pi_tuple *sdt, in sbc_dif_v1_verify() argument
1237 if (sdt->guard_tag != csum) { in sbc_dif_v1_verify()
1240 be16_to_cpu(sdt->guard_tag), be16_to_cpu(csum)); in sbc_dif_v1_verify()
1249 be32_to_cpu(sdt->ref_tag) != (sector & 0xffffffff)) { in sbc_dif_v1_verify()
1252 be32_to_cpu(sdt->ref_tag), (u32)(sector & 0xffffffff)); in sbc_dif_v1_verify()
1257 be32_to_cpu(sdt->ref_tag) != ei_lba) { in sbc_dif_v1_verify()
1260 be32_to_cpu(sdt->ref_tag), ei_lba); in sbc_dif_v1_verify()
1317 struct t10_pi_tuple *sdt; in sbc_dif_verify() local
1332 i += sizeof(*sdt)) { in sbc_dif_verify()
1347 sdt = paddr + i; in sbc_dif_verify()
1351 (unsigned long long)sector, sdt->guard_tag, in sbc_dif_verify()
1352 sdt->app_tag, be32_to_cpu(sdt->ref_tag)); in sbc_dif_verify()
1354 if (sdt->app_tag == T10_PI_APP_ESCAPE) { in sbc_dif_verify()
1375 rc = sbc_dif_v1_verify(cmd, sdt, crc, sector, ei_lba); in sbc_dif_verify()