Searched refs:total_weight (Results 1 – 5 of 5) sorted by relevance
/Linux-v4.19/drivers/thermal/ |
D | fair_share.c | 93 int total_weight = 0; in fair_share_throttle() local 101 total_weight += instance->weight; in fair_share_throttle() 112 if (!total_weight) in fair_share_throttle() 115 percentage = (instance->weight * 100) / total_weight; in fair_share_throttle()
|
D | power_allocator.c | 341 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()
|
/Linux-v4.19/drivers/gpu/drm/i915/gvt/ |
D | sched_policy.c | 104 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()
|
/Linux-v4.19/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-dev.c | 2704 unsigned int total_weight, min_weight, weight; in xgbe_config_dcb_tc() local 2717 total_weight = pdata->netdev->mtu * pdata->hw_feat.tc_cnt; in xgbe_config_dcb_tc() 2718 min_weight = total_weight / 100; in xgbe_config_dcb_tc() 2750 weight = total_weight * ets->tc_tx_bw[i] / 100; in xgbe_config_dcb_tc() 2751 weight = clamp(weight, min_weight, total_weight); in xgbe_config_dcb_tc()
|
/Linux-v4.19/arch/powerpc/platforms/powernv/ |
D | pci-ioda.c | 2266 unsigned int weight, total_weight = 0; in pnv_pci_ioda1_setup_dma_pe() local 2279 &total_weight); in pnv_pci_ioda1_setup_dma_pe() 2280 segs = (weight * phb->ioda.dma32_count) / total_weight; in pnv_pci_ioda1_setup_dma_pe() 2319 weight, total_weight, base, segs); in pnv_pci_ioda1_setup_dma_pe()
|