Lines Matching refs:rqd
307 struct rq_depth *rqd = &rwb->rq_depth; in latency_exceeded() local
351 if (rqd->scale_step) in latency_exceeded()
360 struct rq_depth *rqd = &rwb->rq_depth; in rwb_trace_step() local
362 trace_wbt_step(bdi, msg, rqd->scale_step, rwb->cur_win_nsec, in rwb_trace_step()
363 rwb->wb_background, rwb->wb_normal, rqd->max_depth); in rwb_trace_step()
400 struct rq_depth *rqd = &rwb->rq_depth; in rwb_arm_timer() local
402 if (rqd->scale_step > 0) { in rwb_arm_timer()
410 int_sqrt((rqd->scale_step + 1) << 8)); in rwb_arm_timer()
425 struct rq_depth *rqd = &rwb->rq_depth; in wb_timer_fn() local
434 trace_wbt_timer(rwb->rqos.disk->bdi, status, rqd->scale_step, inflight); in wb_timer_fn()
464 if (rqd->scale_step > 0) in wb_timer_fn()
466 else if (rqd->scale_step < 0) in wb_timer_fn()
476 if (rqd->scale_step || inflight) in wb_timer_fn()
482 struct rq_depth *rqd = &rwb->rq_depth; in wbt_update_limits() local
484 rqd->scale_step = 0; in wbt_update_limits()
485 rqd->scaled_max = false; in wbt_update_limits()
487 rq_depth_calc_max_depth(rqd); in wbt_update_limits()