Lines Matching defs:hw_inuse
578 u32 hw_inuse;
709 * Scale @abs_cost to the inverse of @hw_inuse. The lower the hierarchical
712 static u64 abs_cost_to_cost(u64 abs_cost, u32 hw_inuse)
714 return DIV64_U64_ROUND_UP(abs_cost * WEIGHT_ONE, hw_inuse);
720 static u64 cost_to_abs_cost(u64 cost, u32 hw_inuse)
722 return DIV64_U64_ROUND_UP(cost * hw_inuse, WEIGHT_ONE);
1405 u64 cost = abs_cost_to_cost(wait->abs_cost, ctx->hw_inuse);
1476 * the next one. As paying off debt restores hw_inuse, it must be read
1480 current_hweight(iocg, NULL, &ctx.hw_inuse);
2201 u32 usage, hw_active, hw_inuse;
2209 current_hweight(iocg, &hw_active, &hw_inuse);
2234 cost_to_abs_cost(vtime - vdone, hw_inuse),
2252 if (hw_inuse < hw_active ||
2632 * would incorrectly use the current hw_inuse for the entire amount
2634 * long time even with substantially raised hw_inuse.