Lines Matching defs:shost

135 	struct Scsi_Host *shost = usb_get_intfdata(devinfo->intf);
138 scsi_scan_host(shost);
302 struct Scsi_Host *shost = urb->context;
303 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata;
993 struct Scsi_Host *shost = NULL;
1004 shost = scsi_host_alloc(&uas_host_template,
1006 if (!shost)
1009 shost->max_cmd_len = 16 + 252;
1010 shost->max_id = 1;
1011 shost->max_lun = 256;
1012 shost->max_channel = 0;
1013 shost->sg_tablesize = udev->bus->sg_tablesize;
1015 devinfo = (struct uas_dev_info *)shost->hostdata;
1036 shost->can_queue = devinfo->qdepth - 2;
1038 usb_set_intfdata(intf, shost);
1039 result = scsi_add_host(shost, &intf->dev);
1053 if (shost)
1054 scsi_host_put(shost);
1108 struct Scsi_Host *shost = usb_get_intfdata(intf);
1109 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata;
1116 spin_lock_irqsave(shost->host_lock, flags);
1117 scsi_block_requests(shost);
1118 spin_unlock_irqrestore(shost->host_lock, flags);
1121 shost_printk(KERN_ERR, shost, "%s: timed out\n", __func__);
1122 scsi_unblock_requests(shost);
1133 struct Scsi_Host *shost = usb_get_intfdata(intf);
1134 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata;
1143 shost_printk(KERN_ERR, shost,
1148 spin_lock_irqsave(shost->host_lock, flags);
1149 scsi_report_bus_reset(shost, 0);
1150 spin_unlock_irqrestore(shost->host_lock, flags);
1152 scsi_unblock_requests(shost);
1159 struct Scsi_Host *shost = usb_get_intfdata(intf);
1160 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata;
1163 shost_printk(KERN_ERR, shost, "%s: timed out\n", __func__);
1177 struct Scsi_Host *shost = usb_get_intfdata(intf);
1178 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata;
1184 shost_printk(KERN_ERR, shost,
1190 spin_lock_irqsave(shost->host_lock, flags);
1191 scsi_report_bus_reset(shost, 0);
1192 spin_unlock_irqrestore(shost->host_lock, flags);
1199 struct Scsi_Host *shost = usb_get_intfdata(intf);
1200 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata;
1219 scsi_remove_host(shost);
1221 scsi_host_put(shost);
1233 struct Scsi_Host *shost = usb_get_intfdata(intf);
1234 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata;