Lines Matching defs:weights
24 * a set of weights (per-node), with normal fallback if it
26 * Example: nodeset(0,1) & weights (2,1) - 2 pages allocated
146 * weightiness balances the tradeoff between small weights (cycles through nodes
147 * faster, more fair/even distribution) and large weights (smaller errors
184 * Convert bandwidth values into weighted interleave weights.
215 /* 1:2 is strictly better than 16:32. Reduce by the weights' GCD. */
257 /* Manual mode; skip reducing weights and updating wi_state */
263 /* NULL wi_state assumes auto=true; reduce weights and update wi_state*/
2220 /* Uninitialized wi_state means we should assume all weights are 1 */
2641 u8 *weights, weight;
2685 /* create a local copy of node weights to operate on outside rcu */
2686 weights = kzalloc(nr_node_ids, GFP_KERNEL);
2687 if (!weights)
2693 memcpy(weights, state->iw_table, nr_node_ids * sizeof(u8));
2698 weights[i] = 1;
2703 weight_total += weights[node];
2715 resume_weight = weights[resume_node];
2718 weight = weights[node];
2744 kfree(weights);