Lines Matching full:depth
114 * Return true, if we can't increase the depth further by scaling
118 unsigned int depth; in rq_depth_calc_max_depth() local
123 * to have one request ready when one completes, so force a depth of in rq_depth_calc_max_depth()
124 * 2 for those devices. On the backend, it'll be a depth of 1 anyway, in rq_depth_calc_max_depth()
140 * writes, and we allow a temporarily higher depth to in rq_depth_calc_max_depth()
143 depth = min_t(unsigned int, rqd->default_depth, in rq_depth_calc_max_depth()
146 depth = 1 + ((depth - 1) >> min(31, rqd->scale_step)); in rq_depth_calc_max_depth()
150 depth = 1 + ((depth - 1) << -rqd->scale_step); in rq_depth_calc_max_depth()
151 if (depth > maxd) { in rq_depth_calc_max_depth()
152 depth = maxd; in rq_depth_calc_max_depth()
157 rqd->max_depth = depth; in rq_depth_calc_max_depth()