Lines Matching refs:vrate
562 u64 vrate; member
761 u64 vrate = ioc->vtime_base_rate; in ioc_refresh_margins() local
763 margins->min = (period_us * MARGIN_MIN_PCT / 100) * vrate; in ioc_refresh_margins()
764 margins->low = (period_us * MARGIN_LOW_PCT / 100) * vrate; in ioc_refresh_margins()
765 margins->target = (period_us * MARGIN_TARGET_PCT / 100) * vrate; in ioc_refresh_margins()
983 now->vrate = atomic64_read(&ioc->vtime_rate); in ioc_now()
996 (now->now - ioc->period_at) * now->vrate; in ioc_now()
2341 u64 vrate = ioc->vtime_base_rate; in ioc_timer_fn() local
2353 if (vrate < vrate_min) { in ioc_timer_fn()
2354 vrate = div64_u64(vrate * (100 + VRATE_CLAMP_ADJ_PCT), in ioc_timer_fn()
2356 vrate = min(vrate, vrate_min); in ioc_timer_fn()
2357 } else if (vrate > vrate_max) { in ioc_timer_fn()
2358 vrate = div64_u64(vrate * (100 - VRATE_CLAMP_ADJ_PCT), in ioc_timer_fn()
2360 vrate = max(vrate, vrate_max); in ioc_timer_fn()
2371 vrate = clamp(DIV64_U64_ROUND_UP(vrate * adj_pct, 100), in ioc_timer_fn()
2375 trace_iocost_ioc_vrate_adj(ioc, vrate, missed_ppm, rq_wait_pct, in ioc_timer_fn()
2378 ioc->vtime_base_rate = vrate; in ioc_timer_fn()