Lines Matching refs:bits
116 return m ? m->bits : NULL; in __nodemask_pr_bits()
131 set_bit(node, dstp->bits); in __node_set()
137 clear_bit(node, dstp->bits); in __node_clear()
143 bitmap_fill(dstp->bits, nbits); in __nodes_setall()
149 bitmap_zero(dstp->bits, nbits); in __nodes_clear()
153 #define node_isset(node, nodemask) test_bit((node), (nodemask).bits)
159 return test_and_set_bit(node, addr->bits); in __node_test_and_set()
167 bitmap_and(dstp->bits, src1p->bits, src2p->bits, nbits); in __nodes_and()
175 bitmap_or(dstp->bits, src1p->bits, src2p->bits, nbits); in __nodes_or()
183 bitmap_xor(dstp->bits, src1p->bits, src2p->bits, nbits); in __nodes_xor()
191 bitmap_andnot(dstp->bits, src1p->bits, src2p->bits, nbits); in __nodes_andnot()
199 bitmap_complement(dstp->bits, srcp->bits, nbits); in __nodes_complement()
207 return bitmap_equal(src1p->bits, src2p->bits, nbits); in __nodes_equal()
215 return bitmap_intersects(src1p->bits, src2p->bits, nbits); in __nodes_intersects()
223 return bitmap_subset(src1p->bits, src2p->bits, nbits); in __nodes_subset()
229 return bitmap_empty(srcp->bits, nbits); in __nodes_empty()
235 return bitmap_full(srcp->bits, nbits); in __nodes_full()
241 return bitmap_weight(srcp->bits, nbits); in __nodes_weight()
249 bitmap_shift_right(dstp->bits, srcp->bits, n, nbits); in __nodes_shift_right()
257 bitmap_shift_left(dstp->bits, srcp->bits, n, nbits); in __nodes_shift_left()
266 return min_t(unsigned int, MAX_NUMNODES, find_first_bit(srcp->bits, MAX_NUMNODES)); in __first_node()
272 return min_t(unsigned int, MAX_NUMNODES, find_next_bit(srcp->bits, MAX_NUMNODES, n+1)); in __next_node()
299 m.bits[0] = 1UL << (node); \
310 find_first_zero_bit(maskp->bits, MAX_NUMNODES)); in __first_unset_node()
337 #define nodes_addr(src) ((src).bits)
344 return bitmap_parse_user(buf, len, dstp->bits, nbits); in __nodemask_parse_user()
350 return bitmap_parselist(buf, dstp->bits, nbits); in __nodelist_parse()
358 return bitmap_bitremap(oldbit, oldp->bits, newp->bits, nbits); in __node_remap()
366 bitmap_remap(dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits); in __nodes_remap()
374 bitmap_onto(dstp->bits, origp->bits, relmapp->bits, nbits); in __nodes_onto()
382 bitmap_fold(dstp->bits, origp->bits, sz, nbits); in __nodes_fold()
519 bit = find_nth_bit(maskp->bits, MAX_NUMNODES, get_random_u32_below(w)); in node_random()