Lines Matching defs:host

81 	struct Scsi_Host *host = cmd->device->host;
86 * Set the appropriate busy bit for the device/host.
88 * If the host/device isn't busy, assume that something actually
91 * Note that the prior mid-layer assumption that any host could
96 * either for the device or for the host.
100 atomic_set(&host->host_blocked, host->max_host_blocked);
126 if (!scsi_host_in_recovery(cmd->device->host))
153 * active on the host/device.
167 !scsi_host_in_recovery(cmd->device->host));
175 * We do this for one of two cases. Either the host is busy and it cannot accept
359 * handler is not woken up if host in-flight requests number ==
385 struct Scsi_Host *shost = sdev->host;
418 struct Scsi_Host *shost = current_sdev->host;
506 * Once we drop the host lock, a racing scsi_remove_device()
510 * host lock. Note: if __scsi_remove_device() invokes
542 if (!list_empty(&sdev->host->starved_list))
543 scsi_starved_list_run(sdev->host);
596 if (scsi_host_in_recovery(sdev->host))
600 !list_empty(&sdev->host->starved_list)) {
682 * Check the scsi-ml byte first in case we converted a host or status
1095 sdev->host->hostt->dma_need_drain(rq);
1445 "unblocking host at zero depth\n"));
1493 shost = sdev->host;
1496 * Ignore host/starget busy state.
1498 * multiple queues, congestion of host/starget needs to be handled
1553 struct Scsi_Host *host = cmd->device->host;
1591 * length exceeds what the host adapter can handle.
1593 if (cmd->cmd_len > cmd->device->host->max_cmd_len) {
1596 "cdb_size=%d host->max_cmd_len=%d\n",
1597 cmd->cmd_len, cmd->device->host->max_cmd_len));
1602 if (unlikely(host->shost_state == SHOST_DEL)) {
1609 rtn = host->hostt->queuecommand(host, cmd);
1638 struct Scsi_Host *shost = sdev->host;
1803 struct Scsi_Host *shost = sdev->host;
2120 * @shost: host in question
2134 * @shost: host in question
3045 * host and wait until pending scsi_queue_rq() calls have finished.