Searched refs:sdt (Results 1 – 4 of 4) sorted by relevance
/drivers/target/ |
D | target_core_sbc.c | 1259 struct t10_pi_tuple *sdt; in sbc_dif_generate() local 1271 j += sizeof(*sdt)) { in sbc_dif_generate() 1286 sdt = paddr + j; in sbc_dif_generate() 1303 sdt->guard_tag = cpu_to_be16(crc); in sbc_dif_generate() 1305 sdt->ref_tag = cpu_to_be32(sector & 0xffffffff); in sbc_dif_generate() 1306 sdt->app_tag = 0; in sbc_dif_generate() 1312 sdt->guard_tag, sdt->app_tag, in sbc_dif_generate() 1313 be32_to_cpu(sdt->ref_tag)); in sbc_dif_generate() 1324 sbc_dif_v1_verify(struct se_cmd *cmd, struct t10_pi_tuple *sdt, in sbc_dif_v1_verify() argument 1334 if (sdt->guard_tag != csum) { in sbc_dif_v1_verify() [all …]
|
/drivers/scsi/ |
D | ipr.c | 3092 struct ipr_sdt *sdt; in ipr_get_ioa_dump() local 3150 sdt = &ioa_dump->sdt; in ipr_get_ioa_dump() 3162 rc = ipr_get_ldump_data_section(ioa_cfg, start_addr, (__be32 *)sdt, in ipr_get_ioa_dump() 3166 if (rc || ((be32_to_cpu(sdt->hdr.state) != IPR_FMT3_SDT_READY_TO_USE) && in ipr_get_ioa_dump() 3167 (be32_to_cpu(sdt->hdr.state) != IPR_FMT2_SDT_READY_TO_USE))) { in ipr_get_ioa_dump() 3170 rc, be32_to_cpu(sdt->hdr.state)); in ipr_get_ioa_dump() 3177 num_entries = be32_to_cpu(sdt->hdr.num_entries_used); in ipr_get_ioa_dump() 3197 if (sdt->entry[i].flags & IPR_SDT_VALID_ENTRY) { in ipr_get_ioa_dump() 3198 sdt_word = be32_to_cpu(sdt->entry[i].start_token); in ipr_get_ioa_dump() 3200 bytes_to_copy = be32_to_cpu(sdt->entry[i].end_token); in ipr_get_ioa_dump() [all …]
|
D | scsi_debug.c | 2434 static int dif_verify(struct t10_pi_tuple *sdt, const void *data, in dif_verify() argument 2439 if (sdt->guard_tag != csum) { in dif_verify() 2442 be16_to_cpu(sdt->guard_tag), in dif_verify() 2447 be32_to_cpu(sdt->ref_tag) != (sector & 0xffffffff)) { in dif_verify() 2453 be32_to_cpu(sdt->ref_tag) != ei_lba) { in dif_verify() 2508 struct t10_pi_tuple *sdt; in prot_verify_read() local 2515 sdt = dif_store(sector); in prot_verify_read() 2517 if (sdt->app_tag == cpu_to_be16(0xffff)) in prot_verify_read() 2520 ret = dif_verify(sdt, fake_store(sector), sector, ei_lba); in prot_verify_read() 2700 struct t10_pi_tuple *sdt; in prot_verify_write() local [all …]
|
D | ipr.h | 1722 struct ipr_sdt sdt; member
|