Lines Matching refs:ec_cmd
602 struct se_cmd *ec_cmd, in target_xcopy_read_source() argument
637 ec_cmd->scsi_status = xpt_cmd->se_cmd.scsi_status; in target_xcopy_read_source()
649 ec_cmd->scsi_status = xpt_cmd->se_cmd.scsi_status; in target_xcopy_read_source()
664 struct se_cmd *ec_cmd, in target_xcopy_write_destination() argument
700 ec_cmd->scsi_status = xpt_cmd->se_cmd.scsi_status; in target_xcopy_write_destination()
716 ec_cmd->scsi_status = xpt_cmd->se_cmd.scsi_status; in target_xcopy_write_destination()
728 struct se_cmd *ec_cmd = xop->xop_se_cmd; in target_xcopy_do_work() local
768 rc = target_xcopy_read_source(ec_cmd, xop, src_dev, src_lba, cur_nolb); in target_xcopy_do_work()
779 rc = target_xcopy_write_destination(ec_cmd, xop, dst_dev, in target_xcopy_do_work()
808 target_complete_cmd(ec_cmd, SAM_STAT_GOOD); in target_xcopy_do_work()
819 if (ec_cmd->scsi_status == SAM_STAT_GOOD) { in target_xcopy_do_work()
822 ec_cmd->scsi_status = SAM_STAT_CHECK_CONDITION; in target_xcopy_do_work()
824 target_complete_cmd(ec_cmd, ec_cmd->scsi_status); in target_xcopy_do_work()