Lines Matching defs:sc_cmd
716 static int qedf_eh_abort(struct scsi_cmnd *sc_cmd)
718 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device));
731 lport = shost_priv(sc_cmd->device->host);
738 QEDF_ERR(&qedf->dbg_ctx, "stale rport, sc_cmd=%p\n", sc_cmd);
744 io_req = qedf_priv(sc_cmd)->io_req;
747 "sc_cmd not queued with lld, sc_cmd=%p op=0x%02x, port_id=%06x\n",
748 sc_cmd, sc_cmd->cmnd[0],
758 /* If we got a valid io_req, confirm it belongs to this sc_cmd. */
759 if (!rval || io_req->sc_cmd != sc_cmd) {
761 "Freed/Incorrect io_req, io_req->sc_cmd=%p, sc_cmd=%p, port_id=%06x, bailing out.\n",
762 io_req->sc_cmd, sc_cmd, rdata->ids.port_id);
770 "rport not ready, io_req=%p, xid=0x%x sc_cmd=%p op=0x%02x, refcount=%d, port_id=%06x\n",
771 io_req, io_req->xid, sc_cmd, sc_cmd->cmnd[0],
777 rc = fc_block_scsi_eh(sc_cmd);
785 while (io_req->sc_cmd && (wait_count != 0)) {
805 "Aborting io_req=%p sc_cmd=%p xid=0x%x fp_idx=%d, port_id=%06x.\n",
806 io_req, sc_cmd, io_req->xid, io_req->fp_idx,
859 static int qedf_eh_target_reset(struct scsi_cmnd *sc_cmd)
862 sc_cmd->device->host->host_no, sc_cmd->device->id,
863 sc_cmd->device->lun);
864 return qedf_initiate_tmf(sc_cmd, FCP_TMF_TGT_RESET);
867 static int qedf_eh_device_reset(struct scsi_cmnd *sc_cmd)
870 sc_cmd->device->host->host_no, sc_cmd->device->id,
871 sc_cmd->device->lun);
872 return qedf_initiate_tmf(sc_cmd, FCP_TMF_LUN_RESET);
955 static int qedf_eh_host_reset(struct scsi_cmnd *sc_cmd)
960 lport = shost_priv(sc_cmd->device->host);