Lines Matching defs:abs_cost

568 	u64				abs_cost;
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);
718 u64 abs_cost, u64 cost)
726 local64_add(abs_cost, &gcs->abs_vusage);
1410 static void iocg_incur_debt(struct ioc_gq *iocg, u64 abs_cost,
1423 if (!iocg->abs_vdebt && abs_cost) {
1428 iocg->abs_vdebt += abs_cost;
1431 local64_add(abs_cost, &gcs->abs_vusage);
1462 u64 cost = abs_cost_to_cost(wait->abs_cost, ctx->hw_inuse);
1469 iocg_commit_bio(ctx->iocg, wait->bio, wait->abs_cost, cost);
2457 u64 abs_cost, struct ioc_now *now)
2469 cost = abs_cost_to_cost(abs_cost, hwi);
2493 * Bump up inuse till @abs_cost fits in the existing budget.
2505 cost = abs_cost_to_cost(abs_cost, hwi);
2602 u64 abs_cost, cost, vtime;
2611 abs_cost = calc_vtime_cost(bio, iocg, false);
2612 if (!abs_cost)
2620 cost = adjust_inuse_and_calc_cost(iocg, vtime, abs_cost, &now);
2629 iocg_commit_bio(iocg, bio, abs_cost, cost);
2654 iocg_commit_bio(iocg, bio, abs_cost, cost);
2660 * the abs_cost instead of advancing vtime. iocg_kick_waitq() will pay
2676 iocg_incur_debt(iocg, abs_cost, &now);
2711 wait.abs_cost = abs_cost;
2737 u64 vtime, abs_cost, cost;
2744 abs_cost = calc_vtime_cost(bio, iocg, true);
2745 if (!abs_cost)
2751 cost = adjust_inuse_and_calc_cost(iocg, vtime, abs_cost, &now);
2764 iocg_commit_bio(iocg, bio, abs_cost, cost);
2777 iocg_incur_debt(iocg, abs_cost, &now);
2782 iocg_commit_bio(iocg, bio, abs_cost, cost);