Home
last modified time | relevance | path

Searched refs:total_weight (Results 1 – 4 of 4) sorted by relevance

/drivers/thermal/
Dgov_fair_share.c81 int total_weight = 0; in fair_share_throttle() local
91 total_weight += instance->weight; in fair_share_throttle()
102 if (!total_weight) in fair_share_throttle()
105 percentage = (instance->weight * 100) / total_weight; in fair_share_throttle()
Dgov_power_allocator.c334 int i, num_actors, total_weight, ret = 0; in allocate_power() local
340 total_weight = 0; in allocate_power()
345 total_weight += instance->weight; in allocate_power()
394 if (!total_weight) in allocate_power()
/drivers/gpu/drm/i915/gvt/
Dsched_policy.c104 int total_weight = 0; in gvt_balance_timeslice() local
109 total_weight += vgpu_data->sched_ctl.weight; in gvt_balance_timeslice()
115 total_weight) * vgpu_data->sched_ctl.weight; in gvt_balance_timeslice()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-dev.c2721 unsigned int total_weight, min_weight, weight; in xgbe_config_dcb_tc() local
2734 total_weight = pdata->netdev->mtu * pdata->hw_feat.tc_cnt; in xgbe_config_dcb_tc()
2735 min_weight = total_weight / 100; in xgbe_config_dcb_tc()
2767 weight = total_weight * ets->tc_tx_bw[i] / 100; in xgbe_config_dcb_tc()
2768 weight = clamp(weight, min_weight, total_weight); in xgbe_config_dcb_tc()