Lines Matching refs:sc_cmd

1064 	struct scsi_cmnd *sc_cmd;  in fc_fcp_cleanup_each_cmd()  local
1070 sc_cmd = fsp->cmd; in fc_fcp_cleanup_each_cmd()
1071 if (id != -1 && scmd_id(sc_cmd) != id) in fc_fcp_cleanup_each_cmd()
1074 if (lun != -1 && sc_cmd->device->lun != lun) in fc_fcp_cleanup_each_cmd()
1858 struct scsi_cmnd *sc_cmd) in fc_queuecommand() argument
1861 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in fc_queuecommand()
1868 sc_cmd->result = rval; in fc_queuecommand()
1869 scsi_done(sc_cmd); in fc_queuecommand()
1878 sc_cmd->result = DID_IMM_RETRY << 16; in fc_queuecommand()
1879 scsi_done(sc_cmd); in fc_queuecommand()
1904 fsp->cmd = sc_cmd; /* save the cmd */ in fc_queuecommand()
1910 fsp->data_len = scsi_bufflen(sc_cmd); in fc_queuecommand()
1916 if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) { in fc_queuecommand()
1920 } else if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { in fc_queuecommand()
1955 struct scsi_cmnd *sc_cmd; in fc_io_compl() local
1979 sc_cmd = fsp->cmd; in fc_io_compl()
1980 libfc_priv(sc_cmd)->status = fsp->cdb_status; in fc_io_compl()
1987 sc_cmd->result = DID_OK << 16; in fc_io_compl()
1989 libfc_priv(sc_cmd)->resid_len = fsp->scsi_resid; in fc_io_compl()
1995 sc_cmd->result = (DID_OK << 16) | fsp->cdb_status; in fc_io_compl()
2001 sc_cmd->result = DID_ERROR << 16; in fc_io_compl()
2010 sc_cmd->result = DID_OK << 16; in fc_io_compl()
2014 sc_cmd->result = DID_ERROR << 16; in fc_io_compl()
2022 libfc_priv(sc_cmd)->resid_len = fsp->scsi_resid; in fc_io_compl()
2023 sc_cmd->result = (DID_ERROR << 16) | fsp->cdb_status; in fc_io_compl()
2032 sc_cmd->result = (DID_ERROR << 16) | fsp->cdb_status; in fc_io_compl()
2035 if (host_byte(sc_cmd->result) == DID_TIME_OUT) in fc_io_compl()
2041 set_host_byte(sc_cmd, DID_ERROR); in fc_io_compl()
2043 sc_cmd->result |= fsp->io_status; in fc_io_compl()
2048 sc_cmd->result = (DID_RESET << 16); in fc_io_compl()
2053 sc_cmd->result = (DID_SOFT_ERROR << 16); in fc_io_compl()
2058 sc_cmd->result = (DID_NO_CONNECT << 16); in fc_io_compl()
2063 sc_cmd->result = (DID_PARITY << 16); in fc_io_compl()
2068 sc_cmd->result = (DID_TIME_OUT << 16); in fc_io_compl()
2073 sc_cmd->result = (DID_ERROR << 16); in fc_io_compl()
2078 sc_cmd->result = (DID_TRANSPORT_DISRUPTED << 16); in fc_io_compl()
2082 libfc_priv(sc_cmd)->fsp = NULL; in fc_io_compl()
2084 scsi_done(sc_cmd); in fc_io_compl()
2097 int fc_eh_abort(struct scsi_cmnd *sc_cmd) in fc_eh_abort() argument
2106 rval = fc_block_scsi_eh(sc_cmd); in fc_eh_abort()
2110 lport = shost_priv(sc_cmd->device->host); in fc_eh_abort()
2118 fsp = libfc_priv(sc_cmd)->fsp; in fc_eh_abort()
2150 int fc_eh_device_reset(struct scsi_cmnd *sc_cmd) in fc_eh_device_reset() argument
2154 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in fc_eh_device_reset()
2158 rval = fc_block_scsi_eh(sc_cmd); in fc_eh_device_reset()
2162 lport = shost_priv(sc_cmd->device->host); in fc_eh_device_reset()
2185 rc = fc_lun_reset(lport, fsp, scmd_id(sc_cmd), sc_cmd->device->lun); in fc_eh_device_reset()
2198 int fc_eh_host_reset(struct scsi_cmnd *sc_cmd) in fc_eh_host_reset() argument
2200 struct Scsi_Host *shost = sc_cmd->device->host; in fc_eh_host_reset()