Lines Matching refs:qdepth
5402 int k, num_in_q, qdepth; in schedule_resp() local
5427 qdepth = cmnd->device->queue_depth; in schedule_resp()
5428 if (unlikely((qdepth > 0) && (num_in_q >= qdepth))) { in schedule_resp()
5437 if ((num_in_q == (qdepth - 1)) && in schedule_resp()
7187 static int sdebug_change_qdepth(struct scsi_device *sdev, int qdepth) in sdebug_change_qdepth() argument
7200 if (qdepth > SDEBUG_CANQUEUE) { in sdebug_change_qdepth()
7201 qdepth = SDEBUG_CANQUEUE; in sdebug_change_qdepth()
7203 qdepth, SDEBUG_CANQUEUE); in sdebug_change_qdepth()
7205 if (qdepth < 1) in sdebug_change_qdepth()
7206 qdepth = 1; in sdebug_change_qdepth()
7207 if (qdepth != sdev->queue_depth) in sdebug_change_qdepth()
7208 scsi_change_queue_depth(sdev, qdepth); in sdebug_change_qdepth()
7212 __func__, qdepth, num_in_q); in sdebug_change_qdepth()