Lines Matching refs:qdepth
5594 int k, num_in_q, qdepth; in schedule_resp() local
5619 qdepth = cmnd->device->queue_depth; in schedule_resp()
5620 if (unlikely((qdepth > 0) && (num_in_q >= qdepth))) { in schedule_resp()
5629 if ((num_in_q == (qdepth - 1)) && in schedule_resp()
7401 static int sdebug_change_qdepth(struct scsi_device *sdev, int qdepth) in sdebug_change_qdepth() argument
7414 if (qdepth > SDEBUG_CANQUEUE) { in sdebug_change_qdepth()
7415 qdepth = SDEBUG_CANQUEUE; in sdebug_change_qdepth()
7417 qdepth, SDEBUG_CANQUEUE); in sdebug_change_qdepth()
7419 if (qdepth < 1) in sdebug_change_qdepth()
7420 qdepth = 1; in sdebug_change_qdepth()
7421 if (qdepth != sdev->queue_depth) in sdebug_change_qdepth()
7422 scsi_change_queue_depth(sdev, qdepth); in sdebug_change_qdepth()
7426 __func__, qdepth, num_in_q); in sdebug_change_qdepth()