Lines Matching defs:host
54 * These should *probably* be handled by the host itself.
77 * scsi_schedule_eh - schedule EH for SCSI host
78 * @shost: SCSI host to invoke error handling on.
128 struct Scsi_Host *host = sdev->host;
130 if (host->hostt->eh_should_retry_cmd)
131 return host->hostt->eh_should_retry_cmd(cmd);
152 struct Scsi_Host *shost = sdev->host;
231 struct Scsi_Host *shost = sdev->host;
284 struct Scsi_Host *shost = scmd->device->host;
300 struct Scsi_Host *shost = scmd->device->host;
318 * Ensure that all tasks observe the host state change before the
337 struct Scsi_Host *host = scmd->device->host;
343 if (host->eh_deadline != -1 && !host->last_reset)
344 host->last_reset = jiffies;
346 if (host->hostt->eh_timed_out) {
347 switch (host->hostt->eh_timed_out(scmd)) {
377 * We block until the host is out of error recovery, and then check to
378 * see whether the host or the device is offline.
387 wait_event(sdev->host->host_wait, !scsi_host_in_recovery(sdev->host));
398 * @shost: scsi host being recovered.
728 const struct scsi_host_template *sht = sdev->host->hostt;
747 shost_for_each_device(tmp_sdev, sdev->host) {
760 const struct scsi_host_template *sht = sdev->host->hostt;
766 shost_for_each_device(tmp_sdev, sdev->host) {
792 * first check the host byte, to see if there is anything in there
863 eh_action = scmd->device->host->eh_action;
869 * scsi_try_host_reset - ask host adapter to reset itself
870 * @scmd: SCSI cmd to send host reset.
876 struct Scsi_Host *host = scmd->device->host;
877 const struct scsi_host_template *hostt = host->hostt;
880 shost_printk(KERN_INFO, host, "Snd Host RST\n"));
890 spin_lock_irqsave(host->host_lock, flags);
891 scsi_report_bus_reset(host, scmd_channel(scmd));
892 spin_unlock_irqrestore(host->host_lock, flags);
899 * scsi_try_bus_reset - ask host to perform a bus reset
906 struct Scsi_Host *host = scmd->device->host;
907 const struct scsi_host_template *hostt = host->hostt;
920 spin_lock_irqsave(host->host_lock, flags);
921 scsi_report_bus_reset(host, scmd_channel(scmd));
922 spin_unlock_irqrestore(host->host_lock, flags);
935 * scsi_try_target_reset - Ask host to perform a target reset
940 * unreliable for a given host, then the host itself needs to put a
941 * timer on it, and set the host back to a consistent state prior to
948 struct Scsi_Host *host = scmd->device->host;
949 const struct scsi_host_template *hostt = host->hostt;
956 spin_lock_irqsave(host->host_lock, flags);
959 spin_unlock_irqrestore(host->host_lock, flags);
966 * scsi_try_bus_device_reset - Ask host to perform a BDR on a dev
971 * unreliable for a given host, then the host itself needs to put a
972 * timer on it, and set the host back to a consistent state prior to
978 const struct scsi_host_template *hostt = scmd->device->host->hostt;
990 * scsi_try_to_abort_cmd - Ask host to abort a SCSI command
991 * @hostt: SCSI driver host template
1017 if (scsi_try_to_abort_cmd(scmd->device->host->hostt, scmd) != SUCCESS)
1143 struct Scsi_Host *shost = sdev->host;
1319 shost = scmd->device->host;
1434 if (scsi_host_eh_past_deadline(sdev->host)) {
1491 * @shost: &scsi host being recovered.
1555 * @shost: scsi host being recovered.
1620 * @shost: scsi host being recovered.
1685 * @shost: &scsi host being recovered.
1756 * scsi_eh_host_reset - send a host reset
1757 * @shost: host to be reset.
1892 * first check the host byte, to see if there is anything in there
2108 * scsi_restart_operations - restart io operations to the specified host.
2133 * next free up anything directly waiting upon the host. this
2138 shost_printk(KERN_INFO, shost, "waking up host to restart\n"));
2173 * @shost: host to be recovered.
2232 * scsi_unjam_host - Attempt to fix a host which has a cmd that failed.
2238 * commands are being sent to the host, so things are relatively quiet
2251 * here, so when we restart the host after we return it should have an
2282 * for every SCSI host and handles all error handling activity.
2324 * We have a host that is failing for some reason. Figure out
2432 * scsi_ioctl_reset: explicitly reset a host/bus/target/device
2440 struct Scsi_Host *shost = dev->host;
2519 "waking up host to restart after TMF\n"));