Lines Matching refs:weight
19 * with weight 0 when all weights are zero
33 int cw; /* current weight */
34 int mw; /* maximum weight */
56 int weight;
60 weight = atomic_read(&dest->weight);
61 if (weight > 0) {
63 g = gcd(weight, g);
65 g = weight;
73 * Get the maximum weight of the service destinations.
78 int weight = 0;
81 if (atomic_read(&dest->weight) > weight)
82 weight = atomic_read(&dest->weight);
85 return weight;
149 * and at least one server has its weight equal to max_weight.
185 atomic_read(&dest->weight) >= mark->cw) {
200 "activeconns %d refcnt %d weight %d\n",
204 atomic_read(&dest->weight));