Lines Matching defs:sdev
998 static void config_cdb_len(struct scsi_device *sdev)
1002 sdev->use_10_for_rw = false;
1003 sdev->use_16_for_rw = false;
1004 sdev->use_10_for_ms = false;
1007 sdev->use_10_for_rw = true;
1008 sdev->use_16_for_rw = false;
1009 sdev->use_10_for_ms = false;
1012 sdev->use_10_for_rw = true;
1013 sdev->use_16_for_rw = false;
1014 sdev->use_10_for_ms = true;
1017 sdev->use_10_for_rw = false;
1018 sdev->use_16_for_rw = true;
1019 sdev->use_10_for_ms = true;
1022 sdev->use_10_for_rw = false;
1023 sdev->use_16_for_rw = true;
1024 sdev->use_10_for_ms = true;
1029 sdev->use_10_for_rw = true;
1030 sdev->use_16_for_rw = false;
1031 sdev->use_10_for_ms = false;
1041 struct scsi_device *sdev;
1046 shost_for_each_device(sdev, shost) {
1047 config_cdb_len(sdev);
4975 static struct sdebug_dev_info *find_build_dev_info(struct scsi_device *sdev)
4981 sdbg_host = *(struct sdebug_host_info **)shost_priv(sdev->host);
4988 if ((devip->used) && (devip->channel == sdev->channel) &&
4989 (devip->target == sdev->id) &&
4990 (devip->lun == sdev->lun))
5005 open_devip->channel = sdev->channel;
5006 open_devip->target = sdev->id;
5007 open_devip->lun = sdev->lun;
7166 static int sdebug_change_qdepth(struct scsi_device *sdev, int qdepth)
7172 devip = (struct sdebug_dev_info *)sdev->hostdata;
7184 scsi_change_queue_depth(sdev, qdepth);
7187 sdev_printk(KERN_INFO, sdev, "%s: qdepth=%d, num_in_q=%d\n",
7191 return sdev->queue_depth;