Lines Matching defs:sdev
49 snic_slave_alloc(struct scsi_device *sdev)
51 struct snic_tgt *tgt = starget_to_tgt(scsi_target(sdev));
64 snic_slave_configure(struct scsi_device *sdev)
66 struct snic *snic = shost_priv(sdev->host);
73 scsi_change_queue_depth(sdev, qdepth);
79 blk_queue_rq_timeout(sdev->request_queue, tmo);
85 snic_change_queue_depth(struct scsi_device *sdev, int qdepth)
87 struct snic *snic = shost_priv(sdev->host);
91 if (qsz < sdev->queue_depth)
93 else if (qsz > sdev->queue_depth)
96 atomic64_set(&snic->s_stats.misc.last_qsz, sdev->queue_depth);
98 scsi_change_queue_depth(sdev, qsz);
100 return sdev->queue_depth;