Lines Matching refs:sdev

156 	struct scsi_device *sdev = cmnd->device;  in uas_sense()  local
164 sdev_printk(KERN_INFO, sdev, "%s: urb length %d " in uas_sense()
454 struct scsi_device *sdev = cmnd->device; in uas_alloc_cmd_urb() local
475 int_to_scsilun(sdev->lun, &iu->lun); in uas_alloc_cmd_urb()
595 struct scsi_device *sdev = cmnd->device; in uas_queuecommand_lck() local
596 struct uas_dev_info *devinfo = sdev->hostdata; in uas_queuecommand_lck()
718 struct scsi_device *sdev = cmnd->device; in uas_eh_bus_reset_handler() local
719 struct uas_dev_info *devinfo = sdev->hostdata; in uas_eh_bus_reset_handler()
726 shost_printk(KERN_ERR, sdev->host, in uas_eh_bus_reset_handler()
731 shost_printk(KERN_INFO, sdev->host, "%s start\n", __func__); in uas_eh_bus_reset_handler()
751 shost_printk(KERN_INFO, sdev->host, "%s FAILED err %d\n", in uas_eh_bus_reset_handler()
756 shost_printk(KERN_INFO, sdev->host, "%s success\n", __func__); in uas_eh_bus_reset_handler()
771 static int uas_slave_alloc(struct scsi_device *sdev) in uas_slave_alloc() argument
774 (struct uas_dev_info *)sdev->host->hostdata; in uas_slave_alloc()
776 sdev->hostdata = devinfo; in uas_slave_alloc()
793 blk_queue_update_dma_alignment(sdev->request_queue, (512 - 1)); in uas_slave_alloc()
796 blk_queue_max_hw_sectors(sdev->request_queue, 64); in uas_slave_alloc()
798 blk_queue_max_hw_sectors(sdev->request_queue, 240); in uas_slave_alloc()
803 static int uas_slave_configure(struct scsi_device *sdev) in uas_slave_configure() argument
805 struct uas_dev_info *devinfo = sdev->hostdata; in uas_slave_configure()
808 sdev->no_report_opcodes = 1; in uas_slave_configure()
812 sdev->broken_fua = 1; in uas_slave_configure()
814 scsi_change_queue_depth(sdev, devinfo->qdepth - 2); in uas_slave_configure()