Lines Matching refs:cmd
29 static sense_reason_t sbc_execute_unmap(struct se_cmd *cmd);
32 sbc_emulate_readcapacity(struct se_cmd *cmd) in sbc_emulate_readcapacity() argument
34 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity()
35 unsigned char *cdb = cmd->t_task_cdb; in sbc_emulate_readcapacity()
64 rbuf = transport_kmap_data_sg(cmd); in sbc_emulate_readcapacity()
66 memcpy(rbuf, buf, min_t(u32, sizeof(buf), cmd->data_length)); in sbc_emulate_readcapacity()
67 transport_kunmap_data_sg(cmd); in sbc_emulate_readcapacity()
70 target_complete_cmd_with_length(cmd, SAM_STAT_GOOD, 8); in sbc_emulate_readcapacity()
75 sbc_emulate_readcapacity_16(struct se_cmd *cmd) in sbc_emulate_readcapacity_16() argument
77 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity_16()
78 struct se_session *sess = cmd->se_sess; in sbc_emulate_readcapacity_16()
127 rbuf = transport_kmap_data_sg(cmd); in sbc_emulate_readcapacity_16()
129 memcpy(rbuf, buf, min_t(u32, sizeof(buf), cmd->data_length)); in sbc_emulate_readcapacity_16()
130 transport_kunmap_data_sg(cmd); in sbc_emulate_readcapacity_16()
133 target_complete_cmd_with_length(cmd, SAM_STAT_GOOD, 32); in sbc_emulate_readcapacity_16()
138 sbc_emulate_startstop(struct se_cmd *cmd) in sbc_emulate_startstop() argument
140 unsigned char *cdb = cmd->t_task_cdb; in sbc_emulate_startstop()
165 target_complete_cmd(cmd, SAM_STAT_GOOD); in sbc_emulate_startstop()
169 sector_t sbc_get_write_same_sectors(struct se_cmd *cmd) in sbc_get_write_same_sectors() argument
173 if (cmd->t_task_cdb[0] == WRITE_SAME) in sbc_get_write_same_sectors()
174 num_blocks = get_unaligned_be16(&cmd->t_task_cdb[7]); in sbc_get_write_same_sectors()
175 else if (cmd->t_task_cdb[0] == WRITE_SAME_16) in sbc_get_write_same_sectors()
176 num_blocks = get_unaligned_be32(&cmd->t_task_cdb[10]); in sbc_get_write_same_sectors()
178 num_blocks = get_unaligned_be32(&cmd->t_task_cdb[28]); in sbc_get_write_same_sectors()
187 return cmd->se_dev->transport->get_blocks(cmd->se_dev) - in sbc_get_write_same_sectors()
188 cmd->t_task_lba + 1; in sbc_get_write_same_sectors()
193 sbc_execute_write_same_unmap(struct se_cmd *cmd) in sbc_execute_write_same_unmap() argument
195 struct sbc_ops *ops = cmd->protocol_data; in sbc_execute_write_same_unmap()
196 sector_t nolb = sbc_get_write_same_sectors(cmd); in sbc_execute_write_same_unmap()
200 ret = ops->execute_unmap(cmd, cmd->t_task_lba, nolb); in sbc_execute_write_same_unmap()
205 target_complete_cmd(cmd, SAM_STAT_GOOD); in sbc_execute_write_same_unmap()
210 sbc_emulate_noop(struct se_cmd *cmd) in sbc_emulate_noop() argument
212 target_complete_cmd(cmd, SAM_STAT_GOOD); in sbc_emulate_noop()
216 static inline u32 sbc_get_size(struct se_cmd *cmd, u32 sectors) in sbc_get_size() argument
218 return cmd->se_dev->dev_attrib.block_size * sectors; in sbc_get_size()
282 sbc_setup_write_same(struct se_cmd *cmd, unsigned char flags, struct sbc_ops *ops) in sbc_setup_write_same() argument
284 struct se_device *dev = cmd->se_dev; in sbc_setup_write_same()
286 unsigned int sectors = sbc_get_write_same_sectors(cmd); in sbc_setup_write_same()
295 if (sectors > cmd->se_dev->dev_attrib.max_write_same_len) { in sbc_setup_write_same()
297 sectors, cmd->se_dev->dev_attrib.max_write_same_len); in sbc_setup_write_same()
303 if (((cmd->t_task_lba + sectors) < cmd->t_task_lba) || in sbc_setup_write_same()
304 ((cmd->t_task_lba + sectors) > end_lba)) { in sbc_setup_write_same()
306 (unsigned long long)end_lba, cmd->t_task_lba, sectors); in sbc_setup_write_same()
328 cmd->execute_cmd = sbc_execute_write_same_unmap; in sbc_setup_write_same()
334 ret = sbc_check_prot(dev, cmd, flags >> 5, sectors, true); in sbc_setup_write_same()
338 cmd->execute_cmd = ops->execute_write_same; in sbc_setup_write_same()
342 static sense_reason_t xdreadwrite_callback(struct se_cmd *cmd, bool success, in xdreadwrite_callback() argument
365 buf = kmalloc(cmd->data_length, GFP_KERNEL); in xdreadwrite_callback()
374 sg_copy_to_buffer(cmd->t_data_sg, in xdreadwrite_callback()
375 cmd->t_data_nents, in xdreadwrite_callback()
377 cmd->data_length); in xdreadwrite_callback()
385 for_each_sg(cmd->t_bidi_data_sg, sg, cmd->t_bidi_data_nents, count) { in xdreadwrite_callback()
405 sbc_execute_rw(struct se_cmd *cmd) in sbc_execute_rw() argument
407 struct sbc_ops *ops = cmd->protocol_data; in sbc_execute_rw()
409 return ops->execute_rw(cmd, cmd->t_data_sg, cmd->t_data_nents, in sbc_execute_rw()
410 cmd->data_direction); in sbc_execute_rw()
413 static sense_reason_t compare_and_write_post(struct se_cmd *cmd, bool success, in compare_and_write_post() argument
416 struct se_device *dev = cmd->se_dev; in compare_and_write_post()
419 spin_lock_irq(&cmd->t_state_lock); in compare_and_write_post()
423 if (cmd->scsi_status == SAM_STAT_CHECK_CONDITION) in compare_and_write_post()
426 spin_unlock_irq(&cmd->t_state_lock); in compare_and_write_post()
499 static sense_reason_t compare_and_write_callback(struct se_cmd *cmd, bool success, in compare_and_write_callback() argument
502 struct se_device *dev = cmd->se_dev; in compare_and_write_callback()
508 unsigned int compare_len = (cmd->t_task_nolb * block_size); in compare_and_write_callback()
517 if (!success && (!cmd->t_data_sg || !cmd->t_bidi_data_sg)) in compare_and_write_callback()
522 if (!cmd->data_length) in compare_and_write_callback()
528 if (cmd->scsi_status) { in compare_and_write_callback()
530 " 0x%02x\n", cmd->scsi_status); in compare_and_write_callback()
532 if (cmd->scsi_status == SAM_STAT_CHECK_CONDITION) in compare_and_write_callback()
537 ret = compare_and_write_do_cmp(cmd->t_bidi_data_sg, in compare_and_write_callback()
538 cmd->t_bidi_data_nents, in compare_and_write_callback()
539 cmd->t_data_sg, in compare_and_write_callback()
540 cmd->t_data_nents, in compare_and_write_callback()
550 cmd->sense_info = miscmp_off; in compare_and_write_callback()
555 if (sg_alloc_table(&write_tbl, cmd->t_data_nents, GFP_KERNEL) < 0) { in compare_and_write_callback()
564 sg_miter_start(&m, cmd->t_data_sg, cmd->t_data_nents, SG_MITER_TO_SG); in compare_and_write_callback()
588 cmd->t_data_sg_orig = cmd->t_data_sg; in compare_and_write_callback()
589 cmd->t_data_sg = write_sg; in compare_and_write_callback()
590 cmd->t_data_nents_orig = cmd->t_data_nents; in compare_and_write_callback()
591 cmd->t_data_nents = 1; in compare_and_write_callback()
593 cmd->sam_task_attr = TCM_HEAD_TAG; in compare_and_write_callback()
594 cmd->transport_complete_callback = compare_and_write_post; in compare_and_write_callback()
599 cmd->execute_cmd = sbc_execute_rw; in compare_and_write_callback()
601 spin_lock_irq(&cmd->t_state_lock); in compare_and_write_callback()
602 cmd->t_state = TRANSPORT_PROCESSING; in compare_and_write_callback()
603 cmd->transport_state |= CMD_T_ACTIVE | CMD_T_SENT; in compare_and_write_callback()
604 spin_unlock_irq(&cmd->t_state_lock); in compare_and_write_callback()
606 __target_execute_cmd(cmd, false); in compare_and_write_callback()
621 sbc_compare_and_write(struct se_cmd *cmd) in sbc_compare_and_write() argument
623 struct sbc_ops *ops = cmd->protocol_data; in sbc_compare_and_write()
624 struct se_device *dev = cmd->se_dev; in sbc_compare_and_write()
633 cmd->transport_complete_callback = NULL; in sbc_compare_and_write()
641 cmd->data_length = cmd->t_task_nolb * dev->dev_attrib.block_size; in sbc_compare_and_write()
643 ret = ops->execute_rw(cmd, cmd->t_bidi_data_sg, cmd->t_bidi_data_nents, in sbc_compare_and_write()
646 cmd->transport_complete_callback = NULL; in sbc_compare_and_write()
660 bool is_write, struct se_cmd *cmd) in sbc_set_prot_op_checks() argument
663 cmd->prot_op = fabric_prot ? TARGET_PROT_DOUT_STRIP : in sbc_set_prot_op_checks()
669 cmd->prot_checks = 0; in sbc_set_prot_op_checks()
673 cmd->prot_checks = TARGET_DIF_CHECK_GUARD; in sbc_set_prot_op_checks()
675 cmd->prot_checks |= TARGET_DIF_CHECK_REFTAG; in sbc_set_prot_op_checks()
679 cmd->prot_checks = TARGET_DIF_CHECK_REFTAG; in sbc_set_prot_op_checks()
682 cmd->prot_checks = TARGET_DIF_CHECK_GUARD; in sbc_set_prot_op_checks()
689 cmd->prot_op = fabric_prot ? TARGET_PROT_DIN_INSERT : in sbc_set_prot_op_checks()
696 cmd->prot_checks = TARGET_DIF_CHECK_GUARD; in sbc_set_prot_op_checks()
698 cmd->prot_checks |= TARGET_DIF_CHECK_REFTAG; in sbc_set_prot_op_checks()
702 cmd->prot_checks = TARGET_DIF_CHECK_REFTAG; in sbc_set_prot_op_checks()
705 cmd->prot_checks = 0; in sbc_set_prot_op_checks()
708 cmd->prot_checks = TARGET_DIF_CHECK_GUARD; in sbc_set_prot_op_checks()
720 sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char protect, in sbc_check_prot() argument
723 int sp_ops = cmd->se_sess->sup_prot_ops; in sbc_check_prot()
727 if (!cmd->t_prot_sg || !cmd->t_prot_nents) { in sbc_check_prot()
729 !dev->dev_attrib.pi_prot_type && !cmd->se_sess->sess_prot_type)) { in sbc_check_prot()
734 if (cmd->prot_pto) in sbc_check_prot()
740 cmd->reftag_seed = 0xffffffff; in sbc_check_prot()
746 cmd->reftag_seed = cmd->t_task_lba; in sbc_check_prot()
749 cmd->reftag_seed = cmd->t_task_lba; in sbc_check_prot()
761 if (fabric_prot && cmd->se_sess->sess_prot_type) { in sbc_check_prot()
762 pi_prot_type = cmd->se_sess->sess_prot_type; in sbc_check_prot()
770 "PROTECT: 0x%02x\n", cmd->t_task_cdb[0], protect); in sbc_check_prot()
774 if (sbc_set_prot_op_checks(protect, fabric_prot, pi_prot_type, is_write, cmd)) in sbc_check_prot()
777 cmd->prot_type = pi_prot_type; in sbc_check_prot()
778 cmd->prot_length = dev->prot_length * sectors; in sbc_check_prot()
787 cmd->data_length = sectors * dev->dev_attrib.block_size; in sbc_check_prot()
791 __func__, cmd->prot_type, cmd->data_length, cmd->prot_length, in sbc_check_prot()
792 cmd->prot_op, cmd->prot_checks); in sbc_check_prot()
798 sbc_check_dpofua(struct se_device *dev, struct se_cmd *cmd, unsigned char *cdb) in sbc_check_dpofua() argument
815 cmd->se_cmd_flags |= SCF_FUA; in sbc_check_dpofua()
821 sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops) in sbc_parse_cdb() argument
823 struct se_device *dev = cmd->se_dev; in sbc_parse_cdb()
824 unsigned char *cdb = cmd->t_task_cdb; in sbc_parse_cdb()
829 cmd->protocol_data = ops; in sbc_parse_cdb()
834 cmd->t_task_lba = transport_lba_21(cdb); in sbc_parse_cdb()
835 cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB; in sbc_parse_cdb()
836 cmd->execute_cmd = sbc_execute_rw; in sbc_parse_cdb()
840 cmd->t_task_lba = transport_lba_32(cdb); in sbc_parse_cdb()
842 if (sbc_check_dpofua(dev, cmd, cdb)) in sbc_parse_cdb()
845 ret = sbc_check_prot(dev, cmd, cdb[1] >> 5, sectors, false); in sbc_parse_cdb()
849 cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB; in sbc_parse_cdb()
850 cmd->execute_cmd = sbc_execute_rw; in sbc_parse_cdb()
854 cmd->t_task_lba = transport_lba_32(cdb); in sbc_parse_cdb()
856 if (sbc_check_dpofua(dev, cmd, cdb)) in sbc_parse_cdb()
859 ret = sbc_check_prot(dev, cmd, cdb[1] >> 5, sectors, false); in sbc_parse_cdb()
863 cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB; in sbc_parse_cdb()
864 cmd->execute_cmd = sbc_execute_rw; in sbc_parse_cdb()
868 cmd->t_task_lba = transport_lba_64(cdb); in sbc_parse_cdb()
870 if (sbc_check_dpofua(dev, cmd, cdb)) in sbc_parse_cdb()
873 ret = sbc_check_prot(dev, cmd, cdb[1] >> 5, sectors, false); in sbc_parse_cdb()
877 cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB; in sbc_parse_cdb()
878 cmd->execute_cmd = sbc_execute_rw; in sbc_parse_cdb()
882 cmd->t_task_lba = transport_lba_21(cdb); in sbc_parse_cdb()
883 cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB; in sbc_parse_cdb()
884 cmd->execute_cmd = sbc_execute_rw; in sbc_parse_cdb()
889 cmd->t_task_lba = transport_lba_32(cdb); in sbc_parse_cdb()
891 if (sbc_check_dpofua(dev, cmd, cdb)) in sbc_parse_cdb()
894 ret = sbc_check_prot(dev, cmd, cdb[1] >> 5, sectors, true); in sbc_parse_cdb()
898 cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB; in sbc_parse_cdb()
899 cmd->execute_cmd = sbc_execute_rw; in sbc_parse_cdb()
903 cmd->t_task_lba = transport_lba_32(cdb); in sbc_parse_cdb()
905 if (sbc_check_dpofua(dev, cmd, cdb)) in sbc_parse_cdb()
908 ret = sbc_check_prot(dev, cmd, cdb[1] >> 5, sectors, true); in sbc_parse_cdb()
912 cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB; in sbc_parse_cdb()
913 cmd->execute_cmd = sbc_execute_rw; in sbc_parse_cdb()
918 cmd->t_task_lba = transport_lba_64(cdb); in sbc_parse_cdb()
920 if (sbc_check_dpofua(dev, cmd, cdb)) in sbc_parse_cdb()
923 ret = sbc_check_prot(dev, cmd, cdb[1] >> 5, sectors, true); in sbc_parse_cdb()
927 cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB; in sbc_parse_cdb()
928 cmd->execute_cmd = sbc_execute_rw; in sbc_parse_cdb()
931 if (cmd->data_direction != DMA_TO_DEVICE || in sbc_parse_cdb()
932 !(cmd->se_cmd_flags & SCF_BIDI)) in sbc_parse_cdb()
936 if (sbc_check_dpofua(dev, cmd, cdb)) in sbc_parse_cdb()
939 cmd->t_task_lba = transport_lba_32(cdb); in sbc_parse_cdb()
940 cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB; in sbc_parse_cdb()
945 cmd->execute_cmd = sbc_execute_rw; in sbc_parse_cdb()
946 cmd->transport_complete_callback = &xdreadwrite_callback; in sbc_parse_cdb()
955 if (sbc_check_dpofua(dev, cmd, cdb)) in sbc_parse_cdb()
961 cmd->t_task_lba = transport_lba_64_ext(cdb); in sbc_parse_cdb()
962 cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB; in sbc_parse_cdb()
968 cmd->execute_cmd = sbc_execute_rw; in sbc_parse_cdb()
969 cmd->transport_complete_callback = &xdreadwrite_callback; in sbc_parse_cdb()
979 size = sbc_get_size(cmd, 1); in sbc_parse_cdb()
980 cmd->t_task_lba = get_unaligned_be64(&cdb[12]); in sbc_parse_cdb()
982 ret = sbc_setup_write_same(cmd, cdb[10], ops); in sbc_parse_cdb()
1010 if (sbc_check_dpofua(dev, cmd, cdb)) in sbc_parse_cdb()
1017 size = 2 * sbc_get_size(cmd, sectors); in sbc_parse_cdb()
1018 cmd->t_task_lba = get_unaligned_be64(&cdb[2]); in sbc_parse_cdb()
1019 cmd->t_task_nolb = sectors; in sbc_parse_cdb()
1020 cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB | SCF_COMPARE_AND_WRITE; in sbc_parse_cdb()
1021 cmd->execute_cmd = sbc_compare_and_write; in sbc_parse_cdb()
1022 cmd->transport_complete_callback = compare_and_write_callback; in sbc_parse_cdb()
1026 cmd->execute_cmd = sbc_emulate_readcapacity; in sbc_parse_cdb()
1029 switch (cmd->t_task_cdb[1] & 0x1f) { in sbc_parse_cdb()
1031 cmd->execute_cmd = sbc_emulate_readcapacity_16; in sbc_parse_cdb()
1034 cmd->execute_cmd = target_emulate_report_referrals; in sbc_parse_cdb()
1038 cmd->t_task_cdb[1] & 0x1f); in sbc_parse_cdb()
1047 cmd->t_task_lba = transport_lba_32(cdb); in sbc_parse_cdb()
1050 cmd->t_task_lba = transport_lba_64(cdb); in sbc_parse_cdb()
1053 cmd->execute_cmd = ops->execute_sync_cache; in sbc_parse_cdb()
1057 cmd->execute_cmd = sbc_emulate_noop; in sbc_parse_cdb()
1069 cmd->execute_cmd = sbc_execute_unmap; in sbc_parse_cdb()
1078 size = sbc_get_size(cmd, 1); in sbc_parse_cdb()
1079 cmd->t_task_lba = get_unaligned_be64(&cdb[2]); in sbc_parse_cdb()
1081 ret = sbc_setup_write_same(cmd, cdb[1], ops); in sbc_parse_cdb()
1092 size = sbc_get_size(cmd, 1); in sbc_parse_cdb()
1093 cmd->t_task_lba = get_unaligned_be32(&cdb[2]); in sbc_parse_cdb()
1099 ret = sbc_setup_write_same(cmd, cdb[1], ops); in sbc_parse_cdb()
1108 cmd->t_task_lba = transport_lba_32(cdb); in sbc_parse_cdb()
1111 cmd->t_task_lba = transport_lba_64(cdb); in sbc_parse_cdb()
1113 cmd->execute_cmd = sbc_emulate_noop; in sbc_parse_cdb()
1125 cmd->execute_cmd = sbc_emulate_noop; in sbc_parse_cdb()
1129 cmd->execute_cmd = sbc_emulate_startstop; in sbc_parse_cdb()
1132 ret = spc_parse_cdb(cmd, &size); in sbc_parse_cdb()
1138 if (!cmd->execute_cmd) in sbc_parse_cdb()
1141 if (cmd->se_cmd_flags & SCF_SCSI_DATA_CDB) { in sbc_parse_cdb()
1145 if (((cmd->t_task_lba + sectors) < cmd->t_task_lba) || in sbc_parse_cdb()
1146 ((cmd->t_task_lba + sectors) > end_lba)) { in sbc_parse_cdb()
1149 end_lba, cmd->t_task_lba, sectors); in sbc_parse_cdb()
1153 if (!(cmd->se_cmd_flags & SCF_COMPARE_AND_WRITE)) in sbc_parse_cdb()
1154 size = sbc_get_size(cmd, sectors); in sbc_parse_cdb()
1157 return target_cmd_size_check(cmd, size); in sbc_parse_cdb()
1168 sbc_execute_unmap(struct se_cmd *cmd) in sbc_execute_unmap() argument
1170 struct sbc_ops *ops = cmd->protocol_data; in sbc_execute_unmap()
1171 struct se_device *dev = cmd->se_dev; in sbc_execute_unmap()
1180 if (cmd->t_task_cdb[1]) in sbc_execute_unmap()
1183 if (cmd->data_length == 0) { in sbc_execute_unmap()
1184 target_complete_cmd(cmd, SAM_STAT_GOOD); in sbc_execute_unmap()
1188 if (cmd->data_length < 8) { in sbc_execute_unmap()
1190 cmd->data_length); in sbc_execute_unmap()
1194 buf = transport_kmap_data_sg(cmd); in sbc_execute_unmap()
1201 size = cmd->data_length - 8; in sbc_execute_unmap()
1204 cmd->data_length, bd_dl); in sbc_execute_unmap()
1235 ret = ops->execute_unmap(cmd, lba, range); in sbc_execute_unmap()
1245 transport_kunmap_data_sg(cmd); in sbc_execute_unmap()
1247 target_complete_cmd(cmd, SAM_STAT_GOOD); in sbc_execute_unmap()
1252 sbc_dif_generate(struct se_cmd *cmd) in sbc_dif_generate() argument
1254 struct se_device *dev = cmd->se_dev; in sbc_dif_generate()
1256 struct scatterlist *dsg = cmd->t_data_sg, *psg; in sbc_dif_generate()
1257 sector_t sector = cmd->t_task_lba; in sbc_dif_generate()
1262 for_each_sg(cmd->t_prot_sg, psg, cmd->t_prot_nents, i) { in sbc_dif_generate()
1300 if (cmd->prot_type == TARGET_DIF_TYPE1_PROT) in sbc_dif_generate()
1306 (cmd->data_direction == DMA_TO_DEVICE) ? in sbc_dif_generate()
1320 sbc_dif_v1_verify(struct se_cmd *cmd, struct t10_pi_tuple *sdt, in sbc_dif_v1_verify() argument
1325 if (!(cmd->prot_checks & TARGET_DIF_CHECK_GUARD)) in sbc_dif_v1_verify()
1338 if (!(cmd->prot_checks & TARGET_DIF_CHECK_REFTAG)) in sbc_dif_v1_verify()
1341 if (cmd->prot_type == TARGET_DIF_TYPE1_PROT && in sbc_dif_v1_verify()
1349 if (cmd->prot_type == TARGET_DIF_TYPE2_PROT && in sbc_dif_v1_verify()
1360 void sbc_dif_copy_prot(struct se_cmd *cmd, unsigned int sectors, bool read, in sbc_dif_copy_prot() argument
1363 struct se_device *dev = cmd->se_dev; in sbc_dif_copy_prot()
1374 for_each_sg(cmd->t_prot_sg, psg, cmd->t_prot_nents, i) { in sbc_dif_copy_prot()
1406 sbc_dif_verify(struct se_cmd *cmd, sector_t start, unsigned int sectors, in sbc_dif_verify() argument
1409 struct se_device *dev = cmd->se_dev; in sbc_dif_verify()
1411 struct scatterlist *dsg = cmd->t_data_sg; in sbc_dif_verify()
1468 rc = sbc_dif_v1_verify(cmd, sdt, crc, sector, ei_lba); in sbc_dif_verify()
1472 cmd->sense_info = sector; in sbc_dif_verify()