Lines Matching defs:depth
218 * scsi_change_queue_depth - change a device's queue depth
220 * @depth: number of commands allowed to be queued to the driver
222 * Sets the device queue depth and returns the new value.
224 int scsi_change_queue_depth(struct scsi_device *sdev, int depth)
226 if (depth > 0) {
227 sdev->queue_depth = depth;
232 blk_set_queue_depth(sdev->request_queue, depth);
239 * scsi_track_queue_full - track QUEUE_FULL events to adjust queue depth
241 * @depth: Current number of outstanding SCSI commands on this device,
246 * need to adjust the queue depth on the device.
248 * Returns: 0 - No change needed, >0 - Adjust queue depth to this new depth,
250 * as the untagged command depth
257 int scsi_track_queue_full(struct scsi_device *sdev, int depth)
269 if (sdev->last_queue_full_depth != depth) {
271 sdev->last_queue_full_depth = depth;
279 return scsi_change_queue_depth(sdev, depth);