Lines Matching refs:bits

46 		const unsigned long *bitmap2, unsigned int bits)  in __bitmap_equal()  argument
48 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal()
53 if (bits % BITS_PER_LONG) in __bitmap_equal()
54 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()
61 void __bitmap_complement(unsigned long *dst, const unsigned long *src, unsigned int bits) in __bitmap_complement() argument
63 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_complement()
67 if (bits % BITS_PER_LONG) in __bitmap_complement()
154 const unsigned long *bitmap2, unsigned int bits) in __bitmap_and() argument
157 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_and()
162 if (bits % BITS_PER_LONG) in __bitmap_and()
164 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()
170 const unsigned long *bitmap2, unsigned int bits) in __bitmap_or() argument
173 unsigned int nr = BITS_TO_LONGS(bits); in __bitmap_or()
181 const unsigned long *bitmap2, unsigned int bits) in __bitmap_xor() argument
184 unsigned int nr = BITS_TO_LONGS(bits); in __bitmap_xor()
192 const unsigned long *bitmap2, unsigned int bits) in __bitmap_andnot() argument
195 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_andnot()
200 if (bits % BITS_PER_LONG) in __bitmap_andnot()
202 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_andnot()
208 const unsigned long *bitmap2, unsigned int bits) in __bitmap_intersects() argument
210 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_intersects()
215 if (bits % BITS_PER_LONG) in __bitmap_intersects()
216 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()
223 const unsigned long *bitmap2, unsigned int bits) in __bitmap_subset() argument
225 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_subset()
230 if (bits % BITS_PER_LONG) in __bitmap_subset()
231 if ((bitmap1[k] & ~bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_subset()
237 int __bitmap_weight(const unsigned long *bitmap, unsigned int bits) in __bitmap_weight() argument
239 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_weight()
245 if (bits % BITS_PER_LONG) in __bitmap_weight()
246 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
757 const unsigned long *new, int bits) in bitmap_bitremap() argument
759 int w = bitmap_weight(new, bits); in bitmap_bitremap()
760 int n = bitmap_pos_to_ord(old, oldbit, bits); in bitmap_bitremap()
764 return bitmap_ord_to_pos(new, n % w, bits); in bitmap_bitremap()
869 const unsigned long *relmap, unsigned int bits) in bitmap_onto() argument
875 bitmap_zero(dst, bits); in bitmap_onto()
888 for_each_set_bit(n, relmap, bits) { in bitmap_onto()
1012 int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order) in bitmap_find_free_region() argument
1016 for (pos = 0 ; (end = pos + (1U << order)) <= bits; pos = end) { in bitmap_find_free_region()