Home | History | Annotate | Download | only in linux

Lines Matching refs:MAX_NUMNODES

43  * int first_node(mask)			Number lowest set bit, or MAX_NUMNODES
44 * int next_node(node, mask) Next node past 'node', or MAX_NUMNODES
46 * MAX_NUMNODES.
88 typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t;
103 #define nodes_setall(dst) __nodes_setall(&(dst), MAX_NUMNODES)
109 #define nodes_clear(dst) __nodes_clear(&(dst), MAX_NUMNODES)
126 __nodes_and(&(dst), &(src1), &(src2), MAX_NUMNODES)
134 __nodes_or(&(dst), &(src1), &(src2), MAX_NUMNODES)
142 __nodes_xor(&(dst), &(src1), &(src2), MAX_NUMNODES)
150 __nodes_andnot(&(dst), &(src1), &(src2), MAX_NUMNODES)
158 __nodes_complement(&(dst), &(src), MAX_NUMNODES)
166 __nodes_equal(&(src1), &(src2), MAX_NUMNODES)
174 __nodes_intersects(&(src1), &(src2), MAX_NUMNODES)
182 __nodes_subset(&(src1), &(src2), MAX_NUMNODES)
189 #define nodes_empty(src) __nodes_empty(&(src), MAX_NUMNODES)
195 #define nodes_full(nodemask) __nodes_full(&(nodemask), MAX_NUMNODES)
201 #define nodes_weight(nodemask) __nodes_weight(&(nodemask), MAX_NUMNODES)
208 __nodes_shift_right(&(dst), &(src), (n), MAX_NUMNODES)
216 __nodes_shift_left(&(dst), &(src), (n), MAX_NUMNODES)
224 > MAX_NUMNODES, then the silly min_ts could be dropped. */
229 return min_t(int, MAX_NUMNODES, find_first_bit(srcp->bits, MAX_NUMNODES));
235 return min_t(int,MAX_NUMNODES,find_next_bit(srcp->bits, MAX_NUMNODES, n+1));
253 return min_t(int,MAX_NUMNODES,
254 find_first_zero_bit(maskp->bits, MAX_NUMNODES));
257 #define NODE_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(MAX_NUMNODES)
259 #if MAX_NUMNODES <= BITS_PER_LONG
263 [BITS_TO_LONGS(MAX_NUMNODES)-1] = NODE_MASK_LAST_WORD \
270 [0 ... BITS_TO_LONGS(MAX_NUMNODES)-2] = ~0UL, \
271 [BITS_TO_LONGS(MAX_NUMNODES)-1] = NODE_MASK_LAST_WORD \
278 [0 ... BITS_TO_LONGS(MAX_NUMNODES)-1] = 0UL \
284 __nodemask_scnprintf((buf), (len), &(src), MAX_NUMNODES)
292 __nodemask_parse((ubuf), (ulen), &(dst), MAX_NUMNODES)
300 __nodelist_scnprintf((buf), (len), &(src), MAX_NUMNODES)
307 #define nodelist_parse(buf, dst) __nodelist_parse((buf), &(dst), MAX_NUMNODES)
314 __node_remap((oldbit), &(old), &(new), MAX_NUMNODES)
322 __nodes_remap(&(dst), &(src), &(old), &(new), MAX_NUMNODES)
329 #if MAX_NUMNODES > 1
332 (node) < MAX_NUMNODES; \
334 #else /* MAX_NUMNODES == 1 */
338 #endif /* MAX_NUMNODES */
348 #if MAX_NUMNODES > 1
361 #define next_online_node(nid) (MAX_NUMNODES)