Lines Matching refs:qdepth
5405 int k, num_in_q, qdepth; in schedule_resp() local
5430 qdepth = cmnd->device->queue_depth; in schedule_resp()
5431 if (unlikely((qdepth > 0) && (num_in_q >= qdepth))) { in schedule_resp()
5440 if ((num_in_q == (qdepth - 1)) && in schedule_resp()
7163 static int sdebug_change_qdepth(struct scsi_device *sdev, int qdepth) in sdebug_change_qdepth() argument
7176 if (qdepth < 1) in sdebug_change_qdepth()
7177 qdepth = 1; in sdebug_change_qdepth()
7179 if (qdepth > SDEBUG_CANQUEUE + 10) in sdebug_change_qdepth()
7180 qdepth = SDEBUG_CANQUEUE + 10; in sdebug_change_qdepth()
7181 scsi_change_queue_depth(sdev, qdepth); in sdebug_change_qdepth()
7185 __func__, qdepth, num_in_q); in sdebug_change_qdepth()