Lines Matching refs:WEIGHT_ONE
234 WEIGHT_ONE = 1 << 16, enumerator
710 return DIV64_U64_ROUND_UP(abs_cost * WEIGHT_ONE, hw_inuse); in abs_cost_to_cost()
718 return DIV64_U64_ROUND_UP(cost * hw_inuse, WEIGHT_ONE); in cost_to_abs_cost()
1124 hwa = hwi = WEIGHT_ONE; in current_hweight()
1160 u32 hwm = WEIGHT_ONE; in current_hweight_max()
1694 ioc->vtime_err -= div64_u64(excess * old_hwi, WEIGHT_ONE); in hweight_after_donation()
1713 delta = div64_s64(WEIGHT_ONE * (now->vnow - vtime), in hweight_after_donation()
1715 target = WEIGHT_ONE * MARGIN_TARGET_PCT / 100; in hweight_after_donation()
1716 new_hwi = div64_s64(WEIGHT_ONE * usage, WEIGHT_ONE - target + delta); in hweight_after_donation()
1806 if (after_sum >= WEIGHT_ONE) { in transfer_surpluses()
1811 u32 over_delta = after_sum - (WEIGHT_ONE - 1); in transfer_surpluses()
1908 (WEIGHT_ONE - root_iocg->hweight_after_donation) * WEIGHT_ONE, in transfer_surpluses()
1909 WEIGHT_ONE - min_t(u32, root_iocg->hweight_donating, WEIGHT_ONE - 1)); in transfer_surpluses()
1923 iocg->child_active_sum * (WEIGHT_ONE - iocg->hweight_donating), in transfer_surpluses()
1924 WEIGHT_ONE - iocg->hweight_after_donation); in transfer_surpluses()
1933 WEIGHT_ONE) + iocg->hweight_after_donation; in transfer_surpluses()
2165 WEIGHT_ONE); in ioc_timer_fn()
2230 DIV64_U64_ROUND_UP(usage_us * WEIGHT_ONE, in ioc_timer_fn()
2232 1, WEIGHT_ONE); in ioc_timer_fn()
2893 iocc->dfl_weight = CGROUP_WEIGHT_DFL * WEIGHT_ONE; in ioc_cpd_alloc()
2939 iocg->hweight_active = WEIGHT_ONE; in ioc_pd_init()
2940 iocg->hweight_inuse = WEIGHT_ONE; in ioc_pd_init()
3023 seq_printf(sf, "%s %u\n", dname, iocg->cfg_weight / WEIGHT_ONE); in ioc_weight_prfill()
3033 seq_printf(sf, "default %u\n", iocc->dfl_weight / WEIGHT_ONE); in ioc_weight_show()
3060 iocc->dfl_weight = v * WEIGHT_ONE; in ioc_weight_write()
3092 iocg->cfg_weight = v * WEIGHT_ONE; in ioc_weight_write()