Lines Matching refs:sc_cmd

1080 	struct scsi_cmnd *sc_cmd;  in fc_fcp_cleanup_each_cmd()  local
1086 sc_cmd = fsp->cmd; in fc_fcp_cleanup_each_cmd()
1087 if (id != -1 && scmd_id(sc_cmd) != id) in fc_fcp_cleanup_each_cmd()
1090 if (lun != -1 && sc_cmd->device->lun != lun) in fc_fcp_cleanup_each_cmd()
1870 int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd) in fc_queuecommand() argument
1873 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in fc_queuecommand()
1882 sc_cmd->result = rval; in fc_queuecommand()
1883 sc_cmd->scsi_done(sc_cmd); in fc_queuecommand()
1892 sc_cmd->result = DID_IMM_RETRY << 16; in fc_queuecommand()
1893 sc_cmd->scsi_done(sc_cmd); in fc_queuecommand()
1920 fsp->cmd = sc_cmd; /* save the cmd */ in fc_queuecommand()
1926 fsp->data_len = scsi_bufflen(sc_cmd); in fc_queuecommand()
1933 if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) { in fc_queuecommand()
1937 } else if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { in fc_queuecommand()
1973 struct scsi_cmnd *sc_cmd; in fc_io_compl() local
1997 sc_cmd = fsp->cmd; in fc_io_compl()
1998 CMD_SCSI_STATUS(sc_cmd) = fsp->cdb_status; in fc_io_compl()
2005 sc_cmd->result = DID_OK << 16; in fc_io_compl()
2007 CMD_RESID_LEN(sc_cmd) = fsp->scsi_resid; in fc_io_compl()
2013 sc_cmd->result = (DID_OK << 16) | fsp->cdb_status; in fc_io_compl()
2019 sc_cmd->result = DID_ERROR << 16; in fc_io_compl()
2028 sc_cmd->result = DID_OK << 16; in fc_io_compl()
2032 sc_cmd->result = DID_ERROR << 16; in fc_io_compl()
2040 CMD_RESID_LEN(sc_cmd) = fsp->scsi_resid; in fc_io_compl()
2041 sc_cmd->result = (DID_ERROR << 16) | fsp->cdb_status; in fc_io_compl()
2050 sc_cmd->result = (DID_ERROR << 16) | fsp->cdb_status; in fc_io_compl()
2053 if (host_byte(sc_cmd->result) == DID_TIME_OUT) in fc_io_compl()
2059 set_host_byte(sc_cmd, DID_ERROR); in fc_io_compl()
2061 sc_cmd->result |= fsp->io_status; in fc_io_compl()
2066 sc_cmd->result = (DID_RESET << 16); in fc_io_compl()
2071 sc_cmd->result = (DID_SOFT_ERROR << 16); in fc_io_compl()
2076 sc_cmd->result = (DID_NO_CONNECT << 16); in fc_io_compl()
2081 sc_cmd->result = (DID_PARITY << 16); in fc_io_compl()
2086 sc_cmd->result = (DID_BUS_BUSY << 16) | fsp->io_status; in fc_io_compl()
2091 sc_cmd->result = (DID_ERROR << 16); in fc_io_compl()
2096 sc_cmd->result = (DID_TRANSPORT_DISRUPTED << 16); in fc_io_compl()
2100 sc_cmd->SCp.ptr = NULL; in fc_io_compl()
2102 sc_cmd->scsi_done(sc_cmd); in fc_io_compl()
2115 int fc_eh_abort(struct scsi_cmnd *sc_cmd) in fc_eh_abort() argument
2124 rval = fc_block_scsi_eh(sc_cmd); in fc_eh_abort()
2128 lport = shost_priv(sc_cmd->device->host); in fc_eh_abort()
2136 fsp = CMD_SP(sc_cmd); in fc_eh_abort()
2168 int fc_eh_device_reset(struct scsi_cmnd *sc_cmd) in fc_eh_device_reset() argument
2172 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in fc_eh_device_reset()
2176 rval = fc_block_scsi_eh(sc_cmd); in fc_eh_device_reset()
2180 lport = shost_priv(sc_cmd->device->host); in fc_eh_device_reset()
2203 rc = fc_lun_reset(lport, fsp, scmd_id(sc_cmd), sc_cmd->device->lun); in fc_eh_device_reset()
2216 int fc_eh_host_reset(struct scsi_cmnd *sc_cmd) in fc_eh_host_reset() argument
2218 struct Scsi_Host *shost = sc_cmd->device->host; in fc_eh_host_reset()