Lines Matching defs:sdev
1000 static void config_cdb_len(struct scsi_device *sdev)
1004 sdev->use_10_for_rw = false;
1005 sdev->use_16_for_rw = false;
1006 sdev->use_10_for_ms = false;
1009 sdev->use_10_for_rw = true;
1010 sdev->use_16_for_rw = false;
1011 sdev->use_10_for_ms = false;
1014 sdev->use_10_for_rw = true;
1015 sdev->use_16_for_rw = false;
1016 sdev->use_10_for_ms = true;
1019 sdev->use_10_for_rw = false;
1020 sdev->use_16_for_rw = true;
1021 sdev->use_10_for_ms = true;
1024 sdev->use_10_for_rw = false;
1025 sdev->use_16_for_rw = true;
1026 sdev->use_10_for_ms = true;
1031 sdev->use_10_for_rw = true;
1032 sdev->use_16_for_rw = false;
1033 sdev->use_10_for_ms = false;
1043 struct scsi_device *sdev;
1048 shost_for_each_device(sdev, shost) {
1049 config_cdb_len(sdev);
5104 static struct sdebug_dev_info *find_build_dev_info(struct scsi_device *sdev)
5110 sdbg_host = shost_to_sdebug_host(sdev->host);
5113 if ((devip->used) && (devip->channel == sdev->channel) &&
5114 (devip->target == sdev->id) &&
5115 (devip->lun == sdev->lun))
5130 open_devip->channel = sdev->channel;
5131 open_devip->target = sdev->id;
5132 open_devip->lun = sdev->lun;
5300 /* Deletes (stops) timers or work queues of all queued commands per sdev */
7302 static int sdebug_change_qdepth(struct scsi_device *sdev, int qdepth)
7304 struct sdebug_dev_info *devip = sdev->hostdata;
7319 if (qdepth != sdev->queue_depth)
7320 scsi_change_queue_depth(sdev, qdepth);
7326 sdev_printk(KERN_INFO, sdev, "%s: qdepth=%d\n", __func__, qdepth);
7328 return sdev->queue_depth;