Lines Matching defs:host
56 * These should *probably* be handled by the host itself.
79 * scsi_schedule_eh - schedule EH for SCSI host
80 * @shost: SCSI host to invoke error handling on.
145 if (scsi_host_eh_past_deadline(sdev->host)) {
153 rtn = scsi_try_to_abort_cmd(sdev->host->hostt, scmd);
156 if (scsi_host_eh_past_deadline(sdev->host)) {
197 struct Scsi_Host *shost = sdev->host;
243 struct Scsi_Host *shost = scmd->device->host;
259 struct Scsi_Host *shost = scmd->device->host;
277 * Ensure that all tasks observe the host state change before the
297 struct Scsi_Host *host = scmd->device->host;
302 if (host->eh_deadline != -1 && !host->last_reset)
303 host->last_reset = jiffies;
305 if (host->hostt->eh_timed_out)
306 rtn = host->hostt->eh_timed_out(scmd);
329 * We block until the host is out of error recovery, and then check to
330 * see whether the host or the device is offline.
339 wait_event(sdev->host->host_wait, !scsi_host_in_recovery(sdev->host));
350 * @shost: scsi host being recovered.
646 struct scsi_host_template *sht = sdev->host->hostt;
665 shost_for_each_device(tmp_sdev, sdev->host) {
678 struct scsi_host_template *sht = sdev->host->hostt;
684 shost_for_each_device(tmp_sdev, sdev->host) {
710 * first check the host byte, to see if there is anything in there
779 eh_action = scmd->device->host->eh_action;
785 * scsi_try_host_reset - ask host adapter to reset itself
786 * @scmd: SCSI cmd to send host reset.
792 struct Scsi_Host *host = scmd->device->host;
793 struct scsi_host_template *hostt = host->hostt;
796 shost_printk(KERN_INFO, host, "Snd Host RST\n"));
806 spin_lock_irqsave(host->host_lock, flags);
807 scsi_report_bus_reset(host, scmd_channel(scmd));
808 spin_unlock_irqrestore(host->host_lock, flags);
815 * scsi_try_bus_reset - ask host to perform a bus reset
822 struct Scsi_Host *host = scmd->device->host;
823 struct scsi_host_template *hostt = host->hostt;
836 spin_lock_irqsave(host->host_lock, flags);
837 scsi_report_bus_reset(host, scmd_channel(scmd));
838 spin_unlock_irqrestore(host->host_lock, flags);
851 * scsi_try_target_reset - Ask host to perform a target reset
856 * unreliable for a given host, then the host itself needs to put a
857 * timer on it, and set the host back to a consistent state prior to
864 struct Scsi_Host *host = scmd->device->host;
865 struct scsi_host_template *hostt = host->hostt;
872 spin_lock_irqsave(host->host_lock, flags);
875 spin_unlock_irqrestore(host->host_lock, flags);
882 * scsi_try_bus_device_reset - Ask host to perform a BDR on a dev
887 * unreliable for a given host, then the host itself needs to put a
888 * timer on it, and set the host back to a consistent state prior to
894 struct scsi_host_template *hostt = scmd->device->host->hostt;
906 * scsi_try_to_abort_cmd - Ask host to abort a SCSI command
907 * @hostt: SCSI driver host template
933 if (scsi_try_to_abort_cmd(scmd->device->host->hostt, scmd) != SUCCESS)
1060 struct Scsi_Host *shost = sdev->host;
1235 shost = scmd->device->host;
1350 if (scsi_host_eh_past_deadline(sdev->host)) {
1406 * @shost: &scsi host being recovered.
1470 * @shost: scsi host being recovered.
1535 * @shost: scsi host being recovered.
1600 * @shost: &scsi host being recovered.
1671 * scsi_eh_host_reset - send a host reset
1672 * @shost: host to be reset.
1803 * first check the host byte, to see if there is anything in there
2011 * scsi_restart_operations - restart io operations to the specified host.
2036 * next free up anything directly waiting upon the host. this
2041 shost_printk(KERN_INFO, shost, "waking up host to restart\n"));
2076 * @shost: host to be recovered.
2130 * scsi_unjam_host - Attempt to fix a host which has a cmd that failed.
2136 * commands are being sent to the host, so things are relatively quiet
2149 * here, so when we restart the host after we return it should have an
2180 * for every SCSI host and handles all error handling activity.
2222 * We have a host that is failing for some reason. Figure out
2335 * scsi_ioctl_reset: explicitly reset a host/bus/target/device
2343 struct Scsi_Host *shost = dev->host;
2424 "waking up host to restart after TMF\n"));