Lines Matching refs:depth
211 * scsi_change_queue_depth - change a device's queue depth
213 * @depth: number of commands allowed to be queued to the driver
215 * Sets the device queue depth and returns the new value.
217 int scsi_change_queue_depth(struct scsi_device *sdev, int depth)
219 depth = min_t(int, depth, scsi_device_max_queue_depth(sdev));
221 if (depth > 0) {
222 sdev->queue_depth = depth;
227 blk_set_queue_depth(sdev->request_queue, depth);
236 * scsi_track_queue_full - track QUEUE_FULL events to adjust queue depth
238 * @depth: Current number of outstanding SCSI commands on this device,
243 * need to adjust the queue depth on the device.
245 * Returns: 0 - No change needed, >0 - Adjust queue depth to this new depth,
247 * as the untagged command depth
254 int scsi_track_queue_full(struct scsi_device *sdev, int depth)
266 if (sdev->last_queue_full_depth != depth) {
268 sdev->last_queue_full_depth = depth;
276 return scsi_change_queue_depth(sdev, depth);