Home
last modified time | relevance | path

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

/drivers/thermal/
Dfair_share.c92 int total_weight = 0; in fair_share_throttle() local
100 total_weight += instance->weight; in fair_share_throttle()
111 if (!total_weight) in fair_share_throttle()
114 percentage = (instance->weight * 100) / total_weight; in fair_share_throttle()
Dpower_allocator.c341 int i, num_actors, total_weight, ret = 0; in allocate_power() local
347 total_weight = 0; in allocate_power()
352 total_weight += instance->weight; in allocate_power()
401 if (!total_weight) in allocate_power()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-dev.c1363 unsigned int total_weight, min_weight, weight; in xgbe_config_dcb_tc() local
1376 total_weight = pdata->netdev->mtu * pdata->hw_feat.tc_cnt; in xgbe_config_dcb_tc()
1377 min_weight = total_weight / 100; in xgbe_config_dcb_tc()
1409 weight = total_weight * ets->tc_tx_bw[i] / 100; in xgbe_config_dcb_tc()
1410 weight = clamp(weight, min_weight, total_weight); in xgbe_config_dcb_tc()