Searched refs:total_weight (Results 1 – 6 of 6) sorted by relevance
50 int overhead2, total_weight = 0, weight; in ip_vs_twos_schedule() local59 total_weight += 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()
72 int total_weight = 0; in fair_share_throttle() local82 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()
394 int i, num_actors, total_weight, ret = 0; in allocate_power() local397 total_weight = 0; in allocate_power()402 total_weight += instance->weight; in allocate_power()447 if (!total_weight) in allocate_power()
104 int total_weight = 0; in gvt_balance_timeslice() local109 total_weight += vgpu_data->sched_ctl.weight; in gvt_balance_timeslice()115 total_weight) * vgpu_data->sched_ctl.weight; in gvt_balance_timeslice()
2771 unsigned int total_weight, min_weight, weight; in xgbe_config_dcb_tc() local2784 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()
2605 __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()