Lines Matching refs:sc_cmd

1026 	struct scsi_cmnd *sc_cmd;  in fc_fcp_cleanup_each_cmd()  local
1032 sc_cmd = fsp->cmd; in fc_fcp_cleanup_each_cmd()
1033 if (id != -1 && scmd_id(sc_cmd) != id) in fc_fcp_cleanup_each_cmd()
1036 if (lun != -1 && sc_cmd->device->lun != lun) in fc_fcp_cleanup_each_cmd()
1805 int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd) in fc_queuecommand() argument
1808 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in fc_queuecommand()
1817 sc_cmd->result = rval; in fc_queuecommand()
1818 sc_cmd->scsi_done(sc_cmd); in fc_queuecommand()
1827 sc_cmd->result = DID_IMM_RETRY << 16; in fc_queuecommand()
1828 sc_cmd->scsi_done(sc_cmd); in fc_queuecommand()
1850 fsp->cmd = sc_cmd; /* save the cmd */ in fc_queuecommand()
1856 fsp->data_len = scsi_bufflen(sc_cmd); in fc_queuecommand()
1863 if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) { in fc_queuecommand()
1867 } else if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { in fc_queuecommand()
1903 struct scsi_cmnd *sc_cmd; in fc_io_compl() local
1927 sc_cmd = fsp->cmd; in fc_io_compl()
1928 CMD_SCSI_STATUS(sc_cmd) = fsp->cdb_status; in fc_io_compl()
1935 sc_cmd->result = DID_OK << 16; in fc_io_compl()
1937 CMD_RESID_LEN(sc_cmd) = fsp->scsi_resid; in fc_io_compl()
1943 sc_cmd->result = (DID_OK << 16) | fsp->cdb_status; in fc_io_compl()
1949 sc_cmd->result = DID_ERROR << 16; in fc_io_compl()
1958 sc_cmd->result = DID_OK << 16; in fc_io_compl()
1962 sc_cmd->result = DID_ERROR << 16; in fc_io_compl()
1970 CMD_RESID_LEN(sc_cmd) = fsp->scsi_resid; in fc_io_compl()
1971 sc_cmd->result = (DID_ERROR << 16) | fsp->cdb_status; in fc_io_compl()
1980 sc_cmd->result = (DID_ERROR << 16) | fsp->cdb_status; in fc_io_compl()
1985 sc_cmd->result = (DID_ERROR << 16) | fsp->io_status; in fc_io_compl()
1990 sc_cmd->result = (DID_RESET << 16); in fc_io_compl()
1995 sc_cmd->result = (DID_NO_CONNECT << 16); in fc_io_compl()
2000 sc_cmd->result = (DID_PARITY << 16); in fc_io_compl()
2005 sc_cmd->result = (DID_BUS_BUSY << 16) | fsp->io_status; in fc_io_compl()
2010 sc_cmd->result = (DID_ERROR << 16); in fc_io_compl()
2015 sc_cmd->result = (DID_TRANSPORT_DISRUPTED << 16); in fc_io_compl()
2019 sc_cmd->SCp.ptr = NULL; in fc_io_compl()
2021 sc_cmd->scsi_done(sc_cmd); in fc_io_compl()
2034 int fc_eh_abort(struct scsi_cmnd *sc_cmd) in fc_eh_abort() argument
2043 rval = fc_block_scsi_eh(sc_cmd); in fc_eh_abort()
2047 lport = shost_priv(sc_cmd->device->host); in fc_eh_abort()
2055 fsp = CMD_SP(sc_cmd); in fc_eh_abort()
2087 int fc_eh_device_reset(struct scsi_cmnd *sc_cmd) in fc_eh_device_reset() argument
2091 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in fc_eh_device_reset()
2095 rval = fc_block_scsi_eh(sc_cmd); in fc_eh_device_reset()
2099 lport = shost_priv(sc_cmd->device->host); in fc_eh_device_reset()
2122 rc = fc_lun_reset(lport, fsp, scmd_id(sc_cmd), sc_cmd->device->lun); in fc_eh_device_reset()
2135 int fc_eh_host_reset(struct scsi_cmnd *sc_cmd) in fc_eh_host_reset() argument
2137 struct Scsi_Host *shost = sc_cmd->device->host; in fc_eh_host_reset()
2143 fc_block_scsi_eh(sc_cmd); in fc_eh_host_reset()