Lines Matching refs:qdepth
5366 int k, num_in_q, qdepth; in schedule_resp() local
5391 qdepth = cmnd->device->queue_depth; in schedule_resp()
5392 if (unlikely((qdepth > 0) && (num_in_q >= qdepth))) { in schedule_resp()
5401 if ((num_in_q == (qdepth - 1)) && in schedule_resp()
7118 static int sdebug_change_qdepth(struct scsi_device *sdev, int qdepth) in sdebug_change_qdepth() argument
7131 if (qdepth < 1) in sdebug_change_qdepth()
7132 qdepth = 1; in sdebug_change_qdepth()
7134 if (qdepth > SDEBUG_CANQUEUE + 10) in sdebug_change_qdepth()
7135 qdepth = SDEBUG_CANQUEUE + 10; in sdebug_change_qdepth()
7136 scsi_change_queue_depth(sdev, qdepth); in sdebug_change_qdepth()
7140 __func__, qdepth, num_in_q); in sdebug_change_qdepth()