Lines Matching refs:sc_cmd

715 static int qedf_eh_abort(struct scsi_cmnd *sc_cmd)  in qedf_eh_abort()  argument
717 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in qedf_eh_abort()
730 lport = shost_priv(sc_cmd->device->host); in qedf_eh_abort()
737 QEDF_ERR(&qedf->dbg_ctx, "stale rport, sc_cmd=%p\n", sc_cmd); in qedf_eh_abort()
743 io_req = (struct qedf_ioreq *)sc_cmd->SCp.ptr; in qedf_eh_abort()
747 sc_cmd, sc_cmd->cmnd[0], in qedf_eh_abort()
758 if (!rval || io_req->sc_cmd != sc_cmd) { in qedf_eh_abort()
761 io_req->sc_cmd, sc_cmd, rdata->ids.port_id); in qedf_eh_abort()
770 io_req, io_req->xid, sc_cmd, sc_cmd->cmnd[0], in qedf_eh_abort()
776 rc = fc_block_scsi_eh(sc_cmd); in qedf_eh_abort()
784 while (io_req->sc_cmd && (wait_count != 0)) { in qedf_eh_abort()
805 io_req, sc_cmd, io_req->xid, io_req->fp_idx, in qedf_eh_abort()
858 static int qedf_eh_target_reset(struct scsi_cmnd *sc_cmd) in qedf_eh_target_reset() argument
861 sc_cmd->device->host->host_no, sc_cmd->device->id, in qedf_eh_target_reset()
862 sc_cmd->device->lun); in qedf_eh_target_reset()
863 return qedf_initiate_tmf(sc_cmd, FCP_TMF_TGT_RESET); in qedf_eh_target_reset()
866 static int qedf_eh_device_reset(struct scsi_cmnd *sc_cmd) in qedf_eh_device_reset() argument
869 sc_cmd->device->host->host_no, sc_cmd->device->id, in qedf_eh_device_reset()
870 sc_cmd->device->lun); in qedf_eh_device_reset()
871 return qedf_initiate_tmf(sc_cmd, FCP_TMF_LUN_RESET); in qedf_eh_device_reset()
954 static int qedf_eh_host_reset(struct scsi_cmnd *sc_cmd) in qedf_eh_host_reset() argument
959 lport = shost_priv(sc_cmd->device->host); in qedf_eh_host_reset()