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()
532 struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev); in virtscsi_queuecommand() local
536 BUG_ON(scsi_sg_count(sc) > shost->sg_tablesize); in virtscsi_queuecommand()
700 struct Scsi_Host *shost = sdev->host; in virtscsi_change_queue_depth() local
701 int max_depth = shost->cmd_per_lun; in virtscsi_change_queue_depth()
945 struct Scsi_Host *shost; in virtscsi_probe() local
969 shost = scsi_host_alloc(hostt, in virtscsi_probe()
971 if (!shost) in virtscsi_probe()
975 shost->sg_tablesize = sg_elems; in virtscsi_probe()
976 vscsi = shost_priv(shost); in virtscsi_probe()
979 vdev->priv = shost; in virtscsi_probe()
993 shost->cmd_per_lun = min_t(u32, cmd_per_lun, shost->can_queue); in virtscsi_probe()
994 shost->max_sectors = virtscsi_config_get(vdev, max_sectors) ?: 0xFFFF; in virtscsi_probe()
999 shost->max_lun = virtscsi_config_get(vdev, max_lun) + 1 + 0x4000; in virtscsi_probe()
1000 shost->max_id = num_targets; in virtscsi_probe()
1001 shost->max_channel = 0; in virtscsi_probe()
1002 shost->max_cmd_len = VIRTIO_SCSI_CDB_SIZE; in virtscsi_probe()
1003 shost->nr_hw_queues = num_queues; in virtscsi_probe()
1010 scsi_host_set_prot(shost, host_prot); in virtscsi_probe()
1011 scsi_host_set_guard(shost, SHOST_DIX_GUARD_CRC); in virtscsi_probe()
1014 err = scsi_add_host(shost, &vdev->dev); in virtscsi_probe()
1023 scsi_scan_host(shost); in virtscsi_probe()
1029 scsi_host_put(shost); in virtscsi_probe()
1035 struct Scsi_Host *shost = virtio_scsi_host(vdev); in virtscsi_remove() local
1036 struct virtio_scsi *vscsi = shost_priv(shost); in virtscsi_remove()
1041 scsi_remove_host(shost); in virtscsi_remove()
1046 scsi_host_put(shost); in virtscsi_remove()