Home
last modified time | relevance | path

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

/Linux-v6.1/net/netfilter/ipvs/
Dip_vs_twos.c50 int overhead2, total_weight = 0, weight; in ip_vs_twos_schedule() local
59 total_weight += weight; in ip_vs_twos_schedule()
73 total_weight += 1; in ip_vs_twos_schedule()
74 rweight1 = prandom_u32_max(total_weight); in ip_vs_twos_schedule()
75 rweight2 = prandom_u32_max(total_weight); in ip_vs_twos_schedule()
/Linux-v6.1/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.c392 int i, num_actors, total_weight, ret = 0; in allocate_power() local
396 total_weight = 0; in allocate_power()
401 total_weight += instance->weight; in allocate_power()
446 if (!total_weight) in allocate_power()
/Linux-v6.1/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()
/Linux-v6.1/drivers/net/ethernet/amd/xgbe/
Dxgbe-dev.c2714 unsigned int total_weight, min_weight, weight; in xgbe_config_dcb_tc() local
2727 total_weight = pdata->netdev->mtu * pdata->hw_feat.tc_cnt; in xgbe_config_dcb_tc()
2728 min_weight = total_weight / 100; in xgbe_config_dcb_tc()
2760 weight = total_weight * ets->tc_tx_bw[i] / 100; in xgbe_config_dcb_tc()
2761 weight = clamp(weight, min_weight, total_weight); in xgbe_config_dcb_tc()
/Linux-v6.1/arch/powerpc/platforms/powernv/
Dpci-ioda.c1510 unsigned int weight, total_weight = 0; in pnv_pci_ioda1_setup_dma_pe() local
1523 &total_weight); in pnv_pci_ioda1_setup_dma_pe()
1524 segs = (weight * phb->ioda.dma32_count) / total_weight; in pnv_pci_ioda1_setup_dma_pe()
1563 weight, total_weight, base, segs); in pnv_pci_ioda1_setup_dma_pe()
/Linux-v6.1/net/core/
Dpktgen.c2610 __u64 total_weight = 0; in fill_imix_distribution() local
2614 total_weight += pkt_dev->imix_entries[i].weight; in fill_imix_distribution()
2620 total_weight); in fill_imix_distribution()