Lines Matching refs:shost
252 struct Scsi_Host *shost = urb->context; in uas_stat_cmplt() local
253 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; in uas_stat_cmplt()
908 struct Scsi_Host *shost = NULL; in uas_probe() local
919 shost = scsi_host_alloc(&uas_host_template, in uas_probe()
921 if (!shost) in uas_probe()
924 shost->max_cmd_len = 16 + 252; in uas_probe()
925 shost->max_id = 1; in uas_probe()
926 shost->max_lun = 256; in uas_probe()
927 shost->max_channel = 0; in uas_probe()
928 shost->sg_tablesize = udev->bus->sg_tablesize; in uas_probe()
930 devinfo = (struct uas_dev_info *)shost->hostdata; in uas_probe()
950 shost->can_queue = devinfo->qdepth - 2; in uas_probe()
952 usb_set_intfdata(intf, shost); in uas_probe()
953 result = scsi_add_host(shost, &intf->dev); in uas_probe()
957 scsi_scan_host(shost); in uas_probe()
965 if (shost) in uas_probe()
966 scsi_host_put(shost); in uas_probe()
1020 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_pre_reset() local
1021 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; in uas_pre_reset()
1028 spin_lock_irqsave(shost->host_lock, flags); in uas_pre_reset()
1029 scsi_block_requests(shost); in uas_pre_reset()
1030 spin_unlock_irqrestore(shost->host_lock, flags); in uas_pre_reset()
1033 shost_printk(KERN_ERR, shost, "%s: timed out\n", __func__); in uas_pre_reset()
1034 scsi_unblock_requests(shost); in uas_pre_reset()
1045 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_post_reset() local
1046 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; in uas_post_reset()
1055 shost_printk(KERN_ERR, shost, in uas_post_reset()
1061 spin_lock_irqsave(shost->host_lock, flags); in uas_post_reset()
1062 scsi_report_bus_reset(shost, 0); in uas_post_reset()
1063 spin_unlock_irqrestore(shost->host_lock, flags); in uas_post_reset()
1065 scsi_unblock_requests(shost); in uas_post_reset()
1072 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_suspend() local
1073 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; in uas_suspend()
1076 shost_printk(KERN_ERR, shost, "%s: timed out\n", __func__); in uas_suspend()
1090 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_reset_resume() local
1091 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; in uas_reset_resume()
1097 shost_printk(KERN_ERR, shost, in uas_reset_resume()
1103 spin_lock_irqsave(shost->host_lock, flags); in uas_reset_resume()
1104 scsi_report_bus_reset(shost, 0); in uas_reset_resume()
1105 spin_unlock_irqrestore(shost->host_lock, flags); in uas_reset_resume()
1112 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_disconnect() local
1113 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; in uas_disconnect()
1126 scsi_remove_host(shost); in uas_disconnect()
1128 scsi_host_put(shost); in uas_disconnect()
1140 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_shutdown() local
1141 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; in uas_shutdown()