Lines Matching defs:sdev
63 snic_slave_alloc(struct scsi_device *sdev)
65 struct snic_tgt *tgt = starget_to_tgt(scsi_target(sdev));
78 snic_slave_configure(struct scsi_device *sdev)
80 struct snic *snic = shost_priv(sdev->host);
87 scsi_change_queue_depth(sdev, qdepth);
93 blk_queue_rq_timeout(sdev->request_queue, tmo);
99 snic_change_queue_depth(struct scsi_device *sdev, int qdepth)
101 struct snic *snic = shost_priv(sdev->host);
105 if (qsz < sdev->queue_depth)
107 else if (qsz > sdev->queue_depth)
110 atomic64_set(&snic->s_stats.misc.last_qsz, sdev->queue_depth);
112 scsi_change_queue_depth(sdev, qsz);
114 return sdev->queue_depth;