Home
last modified time | relevance | path

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

/net/netfilter/ipvs/
Dip_vs_mh.c66 int gcd; member
134 if (s->gcd < 1) in ip_vs_mh_permutate()
152 ds->turns = ((lw / s->gcd) >> s->rshift) ? : (lw != 0); in ip_vs_mh_permutate()
172 if (s->gcd < 1) { in ip_vs_mh_populate()
333 g = gcd(weight, g); in ip_vs_mh_gcd_weight()
344 static int ip_vs_mh_shift_weight(struct ip_vs_service *svc, int gcd) in ip_vs_mh_shift_weight() argument
354 if (gcd < 1) in ip_vs_mh_shift_weight()
366 mw = weight / gcd; in ip_vs_mh_shift_weight()
400 s->gcd = ip_vs_mh_gcd_weight(svc); in ip_vs_mh_init_svc()
401 s->rshift = ip_vs_mh_shift_weight(svc, s->gcd); in ip_vs_mh_init_svc()
[all …]
Dip_vs_wrr.c79 g = gcd(weight, g); in ip_vs_wrr_gcd_weight()
/net/wireless/
Dutil.c1791 *beacon_int_gcd = gcd(*beacon_int_gcd, wdev->beacon_interval); in cfg80211_calculate_bi_data()
1797 *beacon_int_gcd = gcd(*beacon_int_gcd, new_beacon_int); in cfg80211_calculate_bi_data()