Home
last modified time | relevance | path

Searched refs:total_weight (Results 1 - 11 of 11) sorted by relevance

/kernel/linux/linux-6.6/net/netfilter/ipvs/
H A Dip_vs_twos.c23 * - total_weight = sum of all weights
24 * - rweight1 = random number between [0,total_weight]
25 * - rweight2 = random number between [0,total_weight]
50 int overhead2, total_weight = 0, weight; in ip_vs_twos_schedule() local
59 total_weight += weight; in ip_vs_twos_schedule()
70 /* Add 1 to total_weight so that the random weights are inclusive in ip_vs_twos_schedule()
71 * from 0 to total_weight in ip_vs_twos_schedule()
73 total_weight += 1; in ip_vs_twos_schedule()
74 rweight1 = get_random_u32_below(total_weight); in ip_vs_twos_schedule()
75 rweight2 = get_random_u32_below(total_weight); in ip_vs_twos_schedule()
[all...]
/kernel/linux/linux-5.10/drivers/thermal/
H A 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()
H A 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()
/kernel/linux/linux-6.6/drivers/thermal/
H A Dgov_fair_share.c72 int total_weight = 0; in fair_share_throttle() local
82 total_weight += instance->weight; in fair_share_throttle()
93 if (!total_weight) in fair_share_throttle()
96 percentage = (instance->weight * 100) / total_weight; in fair_share_throttle()
H A Dgov_power_allocator.c394 int i, num_actors, total_weight, ret = 0; in allocate_power() local
397 total_weight = 0; in allocate_power()
402 total_weight += instance->weight; in allocate_power()
447 if (!total_weight) in allocate_power()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/
H A 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()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gvt/
H A 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()
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
H A Dpci-ioda.c1663 unsigned int weight, total_weight = 0; in pnv_pci_ioda1_setup_dma_pe() local
1676 &total_weight); in pnv_pci_ioda1_setup_dma_pe()
1677 segs = (weight * phb->ioda.dma32_count) / total_weight; in pnv_pci_ioda1_setup_dma_pe()
1716 weight, total_weight, base, segs); in pnv_pci_ioda1_setup_dma_pe()
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
H A 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()
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-dev.c2771 unsigned int total_weight, min_weight, weight; in xgbe_config_dcb_tc() local
2784 total_weight = pdata->netdev->mtu * pdata->hw_feat.tc_cnt; in xgbe_config_dcb_tc()
2785 min_weight = total_weight / 100; in xgbe_config_dcb_tc()
2817 weight = total_weight * ets->tc_tx_bw[i] / 100; in xgbe_config_dcb_tc()
2818 weight = clamp(weight, min_weight, total_weight); in xgbe_config_dcb_tc()
/kernel/linux/linux-6.6/net/core/
H A Dpktgen.c2605 __u64 total_weight = 0; in fill_imix_distribution() local
2609 total_weight += pkt_dev->imix_entries[i].weight; in fill_imix_distribution()
2615 total_weight); in fill_imix_distribution()

Completed in 20 milliseconds