Lines Matching refs:WEIGHT_ONE
71 * upto 1 (WEIGHT_ONE).
234 WEIGHT_ONE = 1 << 16,
714 return DIV64_U64_ROUND_UP(abs_cost * WEIGHT_ONE, hw_inuse);
722 return DIV64_U64_ROUND_UP(cost * hw_inuse, WEIGHT_ONE);
1133 hwa = hwi = WEIGHT_ONE;
1169 u32 hwm = WEIGHT_ONE;
1710 ioc->vtime_err -= div64_u64(excess * old_hwi, WEIGHT_ONE);
1729 delta = div64_s64(WEIGHT_ONE * (now->vnow - vtime),
1731 target = WEIGHT_ONE * MARGIN_TARGET_PCT / 100;
1732 new_hwi = div64_s64(WEIGHT_ONE * usage, WEIGHT_ONE - target + delta);
1803 * hweight_after_donation's to be higher than WEIGHT_ONE, which will
1806 * WEIGHT_ONE.
1822 if (after_sum >= WEIGHT_ONE) {
1827 u32 over_delta = after_sum - (WEIGHT_ONE - 1);
1914 * guaranteed to be smaller than WEIGHT_ONE (1<<16).
1924 (WEIGHT_ONE - root_iocg->hweight_after_donation) * WEIGHT_ONE,
1925 WEIGHT_ONE - min_t(u32, root_iocg->hweight_donating, WEIGHT_ONE - 1));
1939 iocg->child_active_sum * (WEIGHT_ONE - iocg->hweight_donating),
1940 WEIGHT_ONE - iocg->hweight_after_donation);
1949 WEIGHT_ONE) + iocg->hweight_after_donation;
2181 WEIGHT_ONE);
2246 DIV64_U64_ROUND_UP(usage_us * WEIGHT_ONE,
2248 1, WEIGHT_ONE);
2910 iocc->dfl_weight = CGROUP_WEIGHT_DFL * WEIGHT_ONE;
2956 iocg->hweight_active = WEIGHT_ONE;
2957 iocg->hweight_inuse = WEIGHT_ONE;
3040 seq_printf(sf, "%s %u\n", dname, iocg->cfg_weight / WEIGHT_ONE);
3050 seq_printf(sf, "default %u\n", iocc->dfl_weight / WEIGHT_ONE);
3077 iocc->dfl_weight = v * WEIGHT_ONE;
3109 iocg->cfg_weight = v * WEIGHT_ONE;