Lines Matching defs:qdepth
5565 int qdepth = cmnd->device->queue_depth;
5567 if ((num_in_q == qdepth) &&
7302 static int sdebug_change_qdepth(struct scsi_device *sdev, int qdepth)
7312 if (qdepth > SDEBUG_CANQUEUE) {
7313 qdepth = SDEBUG_CANQUEUE;
7314 pr_warn("%s: requested qdepth [%d] exceeds canqueue [%d], trim\n", __func__,
7315 qdepth, SDEBUG_CANQUEUE);
7317 if (qdepth < 1)
7318 qdepth = 1;
7319 if (qdepth != sdev->queue_depth)
7320 scsi_change_queue_depth(sdev, qdepth);
7326 sdev_printk(KERN_INFO, sdev, "%s: qdepth=%d\n", __func__, qdepth);