Lines Matching refs:shost

325 	struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev);  in virtscsi_handle_transport_reset()  local
331 scsi_add_device(shost, 0, target, lun); in virtscsi_handle_transport_reset()
334 sdev = scsi_device_lookup(shost, 0, target, lun); in virtscsi_handle_transport_reset()
340 shost->host_no, target, lun); in virtscsi_handle_transport_reset()
352 struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev); in virtscsi_handle_param_change() local
358 sdev = scsi_device_lookup(shost, 0, target, lun); in virtscsi_handle_param_change()
361 shost->host_no, target, lun); in virtscsi_handle_param_change()
534 struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev); in virtscsi_queuecommand() local
538 BUG_ON(scsi_sg_count(sc) > shost->sg_tablesize); in virtscsi_queuecommand()
705 struct Scsi_Host *shost = sdev->host; in virtscsi_change_queue_depth() local
706 int max_depth = shost->cmd_per_lun; in virtscsi_change_queue_depth()
950 struct Scsi_Host *shost; in virtscsi_probe() local
974 shost = scsi_host_alloc(hostt, in virtscsi_probe()
976 if (!shost) in virtscsi_probe()
980 shost->sg_tablesize = sg_elems; in virtscsi_probe()
981 vscsi = shost_priv(shost); in virtscsi_probe()
984 vdev->priv = shost; in virtscsi_probe()
998 shost->cmd_per_lun = min_t(u32, cmd_per_lun, shost->can_queue); in virtscsi_probe()
999 shost->max_sectors = virtscsi_config_get(vdev, max_sectors) ?: 0xFFFF; in virtscsi_probe()
1004 shost->max_lun = virtscsi_config_get(vdev, max_lun) + 1 + 0x4000; in virtscsi_probe()
1005 shost->max_id = num_targets; in virtscsi_probe()
1006 shost->max_channel = 0; in virtscsi_probe()
1007 shost->max_cmd_len = VIRTIO_SCSI_CDB_SIZE; in virtscsi_probe()
1008 shost->nr_hw_queues = num_queues; in virtscsi_probe()
1018 scsi_host_set_prot(shost, host_prot); in virtscsi_probe()
1019 scsi_host_set_guard(shost, SHOST_DIX_GUARD_CRC); in virtscsi_probe()
1023 err = scsi_add_host(shost, &vdev->dev); in virtscsi_probe()
1032 scsi_scan_host(shost); in virtscsi_probe()
1038 scsi_host_put(shost); in virtscsi_probe()
1044 struct Scsi_Host *shost = virtio_scsi_host(vdev); in virtscsi_remove() local
1045 struct virtio_scsi *vscsi = shost_priv(shost); in virtscsi_remove()
1050 scsi_remove_host(shost); in virtscsi_remove()
1055 scsi_host_put(shost); in virtscsi_remove()