Lines Matching defs:WEIGHT_ONE
71 * upto 1 (WEIGHT_ONE).
234 WEIGHT_ONE = 1 << 16,
706 return DIV64_U64_ROUND_UP(abs_cost * WEIGHT_ONE, hw_inuse);
714 return DIV64_U64_ROUND_UP(cost * hw_inuse, WEIGHT_ONE);
1190 hwa = hwi = WEIGHT_ONE;
1226 u32 hwm = WEIGHT_ONE;
1761 ioc->vtime_err -= div64_u64(excess * old_hwi, WEIGHT_ONE);
1780 delta = div64_s64(WEIGHT_ONE * (now->vnow - vtime),
1782 target = WEIGHT_ONE * MARGIN_TARGET_PCT / 100;
1783 new_hwi = div64_s64(WEIGHT_ONE * usage, WEIGHT_ONE - target + delta);
1854 * hweight_after_donation's to be higher than WEIGHT_ONE, which will
1857 * WEIGHT_ONE.
1873 if (after_sum >= WEIGHT_ONE) {
1878 u32 over_delta = after_sum - (WEIGHT_ONE - 1);
1965 * guaranteed to be smaller than WEIGHT_ONE (1<<16).
1975 (WEIGHT_ONE - root_iocg->hweight_after_donation) * WEIGHT_ONE,
1976 WEIGHT_ONE - min_t(u32, root_iocg->hweight_donating, WEIGHT_ONE - 1));
1990 iocg->child_active_sum * (WEIGHT_ONE - iocg->hweight_donating),
1991 WEIGHT_ONE - iocg->hweight_after_donation);
2000 WEIGHT_ONE) + iocg->hweight_after_donation;
2213 WEIGHT_ONE);
2325 DIV64_U64_ROUND_UP(usage_us * WEIGHT_ONE,
2327 1, WEIGHT_ONE);
2943 iocc->dfl_weight = CGROUP_WEIGHT_DFL * WEIGHT_ONE;
2990 iocg->hweight_active = WEIGHT_ONE;
2991 iocg->hweight_inuse = WEIGHT_ONE;
3068 seq_printf(sf, "%s %u\n", dname, iocg->cfg_weight / WEIGHT_ONE);
3078 seq_printf(sf, "default %u\n", iocc->dfl_weight / WEIGHT_ONE);
3105 iocc->dfl_weight = v * WEIGHT_ONE;
3139 iocg->cfg_weight = v * WEIGHT_ONE;