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()
911 struct Scsi_Host *shost = NULL; in uas_probe() local
922 shost = scsi_host_alloc(&uas_host_template, in uas_probe()
924 if (!shost) in uas_probe()
927 shost->max_cmd_len = 16 + 252; in uas_probe()
928 shost->max_id = 1; in uas_probe()
929 shost->max_lun = 256; in uas_probe()
930 shost->max_channel = 0; in uas_probe()
931 shost->sg_tablesize = udev->bus->sg_tablesize; in uas_probe()
933 devinfo = (struct uas_dev_info *)shost->hostdata; in uas_probe()
949 result = scsi_init_shared_tag_map(shost, devinfo->qdepth - 2); in uas_probe()
953 usb_set_intfdata(intf, shost); in uas_probe()
954 result = scsi_add_host(shost, &intf->dev); in uas_probe()
958 scsi_scan_host(shost); in uas_probe()
966 if (shost) in uas_probe()
967 scsi_host_put(shost); in uas_probe()
1021 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_pre_reset() local
1022 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; in uas_pre_reset()
1029 spin_lock_irqsave(shost->host_lock, flags); in uas_pre_reset()
1030 scsi_block_requests(shost); in uas_pre_reset()
1031 spin_unlock_irqrestore(shost->host_lock, flags); in uas_pre_reset()
1034 shost_printk(KERN_ERR, shost, "%s: timed out\n", __func__); in uas_pre_reset()
1035 scsi_unblock_requests(shost); in uas_pre_reset()
1046 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_post_reset() local
1047 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; in uas_post_reset()
1056 shost_printk(KERN_ERR, shost, in uas_post_reset()
1062 spin_lock_irqsave(shost->host_lock, flags); in uas_post_reset()
1063 scsi_report_bus_reset(shost, 0); in uas_post_reset()
1064 spin_unlock_irqrestore(shost->host_lock, flags); in uas_post_reset()
1066 scsi_unblock_requests(shost); in uas_post_reset()
1073 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_suspend() local
1074 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; in uas_suspend()
1077 shost_printk(KERN_ERR, shost, "%s: timed out\n", __func__); in uas_suspend()
1091 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_reset_resume() local
1092 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; in uas_reset_resume()
1098 shost_printk(KERN_ERR, shost, in uas_reset_resume()
1104 spin_lock_irqsave(shost->host_lock, flags); in uas_reset_resume()
1105 scsi_report_bus_reset(shost, 0); in uas_reset_resume()
1106 spin_unlock_irqrestore(shost->host_lock, flags); in uas_reset_resume()
1113 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_disconnect() local
1114 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; in uas_disconnect()
1127 scsi_remove_host(shost); in uas_disconnect()
1129 scsi_host_put(shost); in uas_disconnect()
1141 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_shutdown() local
1142 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; in uas_shutdown()