Lines Matching refs:hwa
1145 u32 hwa, hwi; in current_hweight() local
1165 hwa = hwi = WEIGHT_ONE; in current_hweight()
1179 hwa = div64_u64((u64)hwa * active, active_sum); in current_hweight()
1185 iocg->hweight_active = max_t(u32, hwa, 1); in current_hweight()
1327 u32 hwa; in iocg_kick_delay() local
1339 current_hweight(iocg, &hwa, NULL); in iocg_kick_delay()
1341 abs_cost_to_cost(iocg->abs_vdebt, hwa) - now->vnow; in iocg_kick_delay()
1464 u32 hwa; in iocg_kick_waitq() local
1468 current_hweight(iocg, &hwa, NULL); in iocg_kick_waitq()
1473 u64 abs_vbudget = cost_to_abs_cost(vbudget, hwa); in iocg_kick_waitq()
1475 u64 vpay = abs_cost_to_cost(abs_vpay, hwa); in iocg_kick_waitq()
1495 s64 vdebt = abs_cost_to_cost(iocg->abs_vdebt, hwa); in iocg_kick_waitq()
1830 u32 hwa; in transfer_surpluses() local
1832 current_hweight(iocg, &hwa, NULL); in transfer_surpluses()
1835 if (iocg->hweight_after_donation > hwa) { in transfer_surpluses()
2273 u32 hwa, old_hwi, hwm, new_hwi, usage; in ioc_timer_fn() local
2299 current_hweight(iocg, &hwa, &old_hwi); in ioc_timer_fn()
2310 if (new_hwi < hwm && hwa >= 2) { in ioc_timer_fn()
2311 iocg->hweight_donating = hwa; in ioc_timer_fn()