Lines Matching defs:hw_inuse
574 u32 hw_inuse;
701 * Scale @abs_cost to the inverse of @hw_inuse. The lower the hierarchical
704 static u64 abs_cost_to_cost(u64 abs_cost, u32 hw_inuse)
706 return DIV64_U64_ROUND_UP(abs_cost * WEIGHT_ONE, hw_inuse);
712 static u64 cost_to_abs_cost(u64 cost, u32 hw_inuse)
714 return DIV64_U64_ROUND_UP(cost * hw_inuse, WEIGHT_ONE);
1462 u64 cost = abs_cost_to_cost(wait->abs_cost, ctx->hw_inuse);
1533 * the next one. As paying off debt restores hw_inuse, it must be read
1537 current_hweight(iocg, NULL, &ctx.hw_inuse);
2271 u32 hw_active, hw_inuse;
2279 current_hweight(iocg, &hw_active, &hw_inuse);
2304 if (hw_inuse < hw_active ||
2312 cost_to_abs_cost(vtime - vdone, hw_inuse),
2665 * would incorrectly use the current hw_inuse for the entire amount
2667 * long time even with substantially raised hw_inuse.