Lines Matching refs:host

420 	struct Scsi_Host *host;  member
451 struct Scsi_Host *host; member
464 sdev = scsi_device_lookup(wrk->host, 0, 0, lun); in storvsc_device_scan()
477 struct Scsi_Host *host; in storvsc_host_scan() local
481 host = wrk->host; in storvsc_host_scan()
494 mutex_lock(&host->scan_mutex); in storvsc_host_scan()
495 shost_for_each_device(sdev, host) in storvsc_host_scan()
497 mutex_unlock(&host->scan_mutex); in storvsc_host_scan()
501 scsi_scan_host(host); in storvsc_host_scan()
512 if (!scsi_host_get(wrk->host)) in storvsc_remove_lun()
515 sdev = scsi_device_lookup(wrk->host, 0, 0, wrk->lun); in storvsc_remove_lun()
521 scsi_host_put(wrk->host); in storvsc_remove_lun()
857 struct Scsi_Host *host, in storvsc_handle_error() argument
917 wrk->host = host; in storvsc_handle_error()
927 struct hv_host_device *host_dev = shost_priv(scmnd->device->host); in storvsc_command_completion()
930 struct Scsi_Host *host; in storvsc_command_completion() local
937 host = stor_dev->host; in storvsc_command_completion()
951 storvsc_handle_error(vm_srb, scmnd, host, sense_hdr.asc, in storvsc_command_completion()
1045 work->host = stor_device->host; in storvsc_on_receive()
1292 struct hv_host_device *host_dev = shost_priv(scmnd->device->host); in storvsc_host_reset_handler()
1373 static int storvsc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *scmnd) in storvsc_queuecommand() argument
1376 struct hv_host_device *host_dev = shost_priv(host); in storvsc_queuecommand()
1543 struct Scsi_Host *host; in storvsc_probe() local
1577 host = scsi_host_alloc(&scsi_driver, in storvsc_probe()
1579 if (!host) in storvsc_probe()
1582 host_dev = shost_priv(host); in storvsc_probe()
1585 host_dev->port = host->host_no; in storvsc_probe()
1599 stor_device->host = host; in storvsc_probe()
1602 stor_device->port_number = host->host_no; in storvsc_probe()
1612 host->max_lun = STORVSC_FC_MAX_LUNS_PER_TARGET; in storvsc_probe()
1613 host->max_id = STORVSC_FC_MAX_TARGETS; in storvsc_probe()
1614 host->max_channel = STORVSC_FC_MAX_CHANNELS - 1; in storvsc_probe()
1618 host->max_lun = max_luns_per_target; in storvsc_probe()
1619 host->max_id = max_targets; in storvsc_probe()
1620 host->max_channel = max_channels - 1; in storvsc_probe()
1624 host->max_lun = STORVSC_IDE_MAX_LUNS_PER_TARGET; in storvsc_probe()
1625 host->max_id = STORVSC_IDE_MAX_TARGETS; in storvsc_probe()
1626 host->max_channel = STORVSC_IDE_MAX_CHANNELS - 1; in storvsc_probe()
1630 host->max_cmd_len = STORVSC_MAX_CMD_LEN; in storvsc_probe()
1636 host->sg_tablesize = (stor_device->max_transfer_bytes >> PAGE_SHIFT); in storvsc_probe()
1639 ret = scsi_add_host(host, &device->device); in storvsc_probe()
1644 scsi_scan_host(host); in storvsc_probe()
1648 ret = scsi_add_device(host, 0, target, 0); in storvsc_probe()
1650 scsi_remove_host(host); in storvsc_probe()
1670 scsi_host_put(host); in storvsc_probe()
1677 struct Scsi_Host *host = stor_device->host; in storvsc_remove() local
1679 scsi_remove_host(host); in storvsc_remove()
1681 scsi_host_put(host); in storvsc_remove()