• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/libfc/

Lines Matching refs:sc_cmd

994 	struct scsi_cmnd *sc_cmd;
1000 sc_cmd = fsp->cmd;
1001 if (id != -1 && scmd_id(sc_cmd) != id)
1004 if (lun != -1 && sc_cmd->device->lun != lun)
1752 int fc_queuecommand(struct scsi_cmnd *sc_cmd, void (*done)(struct scsi_cmnd *))
1755 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device));
1762 lport = shost_priv(sc_cmd->device->host);
1766 sc_cmd->result = rval;
1767 done(sc_cmd);
1777 sc_cmd->result = DID_IMM_RETRY << 16;
1778 done(sc_cmd);
1800 fsp->cmd = sc_cmd; /* save the cmd */
1804 sc_cmd->scsi_done = done;
1809 fsp->data_len = scsi_bufflen(sc_cmd);
1816 if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) {
1820 } else if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) {
1862 struct scsi_cmnd *sc_cmd;
1888 sc_cmd = fsp->cmd;
1891 if (!sc_cmd->SCp.ptr)
1894 CMD_SCSI_STATUS(sc_cmd) = fsp->cdb_status;
1901 sc_cmd->result = DID_OK << 16;
1903 CMD_RESID_LEN(sc_cmd) = fsp->scsi_resid;
1909 sc_cmd->result = (DID_OK << 16) | fsp->cdb_status;
1915 sc_cmd->result = DID_ERROR << 16;
1924 sc_cmd->result = DID_OK << 16;
1928 sc_cmd->result = DID_ERROR << 16;
1936 CMD_RESID_LEN(sc_cmd) = fsp->scsi_resid;
1937 sc_cmd->result = (DID_ERROR << 16) | fsp->cdb_status;
1946 sc_cmd->result = (DID_ERROR << 16) | fsp->cdb_status;
1951 sc_cmd->result = (DID_ERROR << 16) | fsp->io_status;
1954 sc_cmd->result = (DID_BUS_BUSY << 16) | fsp->io_status;
1957 sc_cmd->result = (DID_RESET << 16);
1960 sc_cmd->result = (DID_NO_CONNECT << 16);
1965 sc_cmd->result = (DID_ERROR << 16);
1970 sc_cmd->result = (DID_REQUEUE << 16);
1977 sc_cmd->SCp.ptr = NULL;
1978 sc_cmd->scsi_done(sc_cmd);
1986 * @sc_cmd: The SCSI command to abort
1991 int fc_eh_abort(struct scsi_cmnd *sc_cmd)
1998 lport = shost_priv(sc_cmd->device->host);
2005 fsp = CMD_SP(sc_cmd);
2011 /* grab a ref so the fsp and sc_cmd cannot be relased from under us */
2032 * @sc_cmd: The SCSI command which identifies the device whose
2037 int fc_eh_device_reset(struct scsi_cmnd *sc_cmd)
2041 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device));
2049 lport = shost_priv(sc_cmd->device->host);
2073 rc = fc_lun_reset(lport, fsp, scmd_id(sc_cmd), sc_cmd->device->lun);
2084 * @sc_cmd: The SCSI command that identifies the SCSI host to be reset
2086 int fc_eh_host_reset(struct scsi_cmnd *sc_cmd)
2088 struct Scsi_Host *shost = sc_cmd->device->host;