hw_inuse 525 block/blk-iocost.c u32 hw_inuse; hw_inuse 659 block/blk-iocost.c static u64 abs_cost_to_cost(u64 abs_cost, u32 hw_inuse) hw_inuse 661 block/blk-iocost.c return DIV64_U64_ROUND_UP(abs_cost * HWEIGHT_WHOLE, hw_inuse); hw_inuse 667 block/blk-iocost.c static u64 cost_to_abs_cost(u64 cost, u32 hw_inuse) hw_inuse 669 block/blk-iocost.c return DIV64_U64_ROUND_UP(cost * hw_inuse, HWEIGHT_WHOLE); hw_inuse 1121 block/blk-iocost.c u64 cost = abs_cost_to_cost(wait->abs_cost, ctx->hw_inuse); hw_inuse 1150 block/blk-iocost.c u32 hw_inuse; hw_inuse 1154 block/blk-iocost.c current_hweight(iocg, NULL, &hw_inuse); hw_inuse 1158 block/blk-iocost.c vdebt = abs_cost_to_cost(iocg->abs_vdebt, hw_inuse); hw_inuse 1161 block/blk-iocost.c u64 abs_delta = min(cost_to_abs_cost(delta, hw_inuse), hw_inuse 1173 block/blk-iocost.c ctx.hw_inuse = hw_inuse; hw_inuse 1220 block/blk-iocost.c u32 hw_inuse; hw_inuse 1225 block/blk-iocost.c current_hweight(iocg, NULL, &hw_inuse); hw_inuse 1226 block/blk-iocost.c vtime += abs_cost_to_cost(iocg->abs_vdebt, hw_inuse); hw_inuse 1334 block/blk-iocost.c static u32 surplus_adjusted_hweight_inuse(u32 usage, u32 hw_inuse) hw_inuse 1341 block/blk-iocost.c if (usage + SURPLUS_MIN_ADJ_DELTA > hw_inuse) hw_inuse 1404 block/blk-iocost.c u32 hw_active, hw_inuse, usage; hw_inuse 1412 block/blk-iocost.c current_hweight(iocg, &hw_active, &hw_inuse); hw_inuse 1445 block/blk-iocost.c usage = DIV64_U64_ROUND_UP(vusage * hw_inuse, hw_inuse 1468 block/blk-iocost.c if (surplus_adjusted_hweight_inuse(usage, hw_inuse)) { hw_inuse 1472 block/blk-iocost.c } else if (hw_inuse < hw_active) { hw_inuse 1479 block/blk-iocost.c new_hwi = max(hw_inuse, hw_inuse 1485 block/blk-iocost.c hw_inuse); hw_inuse 1491 block/blk-iocost.c hw_inuse, new_hwi); hw_inuse 1506 block/blk-iocost.c u32 usage, hw_active, hw_inuse, new_hwi, new_inuse; hw_inuse 1522 block/blk-iocost.c current_hweight(iocg, &hw_active, &hw_inuse); hw_inuse 1523 block/blk-iocost.c new_hwi = surplus_adjusted_hweight_inuse(usage, hw_inuse); hw_inuse 1528 block/blk-iocost.c hw_inuse); hw_inuse 1532 block/blk-iocost.c hw_inuse, new_hwi); hw_inuse 1691 block/blk-iocost.c u32 hw_active, hw_inuse; hw_inuse 1710 block/blk-iocost.c current_hweight(iocg, &hw_active, &hw_inuse); hw_inuse 1712 block/blk-iocost.c if (hw_inuse < hw_active && hw_inuse 1715 block/blk-iocost.c iocg->inuse, iocg->weight, hw_inuse, hw_active); hw_inuse 1719 block/blk-iocost.c current_hweight(iocg, &hw_active, &hw_inuse); hw_inuse 1722 block/blk-iocost.c cost = abs_cost_to_cost(abs_cost, hw_inuse); hw_inuse 1817 block/blk-iocost.c u32 hw_inuse; hw_inuse 1830 block/blk-iocost.c current_hweight(iocg, NULL, &hw_inuse); hw_inuse 1831 block/blk-iocost.c cost = abs_cost_to_cost(abs_cost, hw_inuse);