Lines Matching refs:host

35  *  Jiffies wrap fixes (host->resetting), 3 Dec 1998 Andrea Arcangeli
174 * @shost: host to free the command for
193 * @shost: SCSI host whose pool to allocate from
232 * @shost: host to transmit command
235 * Description: allocate a struct scsi_cmd from host's slab, recycling from the
236 * host's free_list if necessary.
279 struct scsi_cmnd *cmd = __scsi_get_command(dev->host, gfp_mask);
297 * @shost: dev->host
337 __scsi_put_command(cmd->device->host, cmd);
395 * Select a command slab for this host and create it if not
462 * scsi_setup_command_freelist - Setup the command freelist for a scsi host.
463 * @shost: host to allocate the freelist for.
466 * deadlock by preallocating one SCSI command structure for each host, so the
467 * system can always write to a swap file on a device associated with that host.
484 * Get one backup command for this host.
497 * scsi_destroy_command_freelist - Release the command freelist for a scsi host.
498 * @shost: host whose freelist is going to be destroyed
549 cmd->device->host->hostt->queuecommand);
612 "scsi host busy %d failed %d\n",
613 atomic_read(&cmd->device->host->host_busy),
614 cmd->device->host->host_failed);
622 * @host: the scsi host
626 * and debugging purposes. Protected by the Host_Lock of host.
628 void scsi_cmd_get_serial(struct Scsi_Host *host, struct scsi_cmnd *cmd)
630 cmd->serial_number = host->cmd_serial_number++;
632 cmd->serial_number = host->cmd_serial_number++;
645 struct Scsi_Host *host = cmd->device->host;
682 * length exceeds what the host adapter can handle.
684 if (cmd->cmd_len > cmd->device->host->max_cmd_len) {
687 "cdb_size=%d host->max_cmd_len=%d\n",
688 cmd->cmd_len, cmd->device->host->max_cmd_len));
693 if (unlikely(host->shost_state == SHOST_DEL)) {
700 rtn = host->hostt->queuecommand(host, cmd);
729 struct Scsi_Host *shost = sdev->host;
736 * Clear the flags that say that the device/target/host is no longer
809 * Do not resize the tag map if it is a host wide share bqt,
812 * tags) request_fn's host queue ready check will handle it.
814 if (!shost_use_blk_mq(sdev->host) && !sdev->host->bqt) {
857 * -1 - Drop back to untagged operation using host->cmd_per_lun
888 scsi_adjust_queue_depth(sdev, 0, sdev->host->cmd_per_lun);
1144 try_module_get(sdev->host->hostt->module);
1161 struct module *module = sdev->host->hostt->module;
1256 * reference. You must hold the host's host_lock over this call and
1307 * __scsi_device_lookup - find a device given the host (UNLOCKED)
1308 * @shost: SCSI host pointer
1314 * for a given host. The returned scsi_device does not have an additional
1315 * reference. You must hold the host's host_lock over this call and any access
1338 * scsi_device_lookup - find a device given the host
1339 * @shost: SCSI host pointer
1345 * for a given host. The returned scsi_device has an additional reference that