• Home
  • Raw
  • Download

Lines Matching refs:bits

47 		const unsigned long *bitmap2, unsigned int bits)  in __bitmap_equal()  argument
49 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal()
54 if (bits % BITS_PER_LONG) in __bitmap_equal()
55 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()
65 unsigned int bits) in __bitmap_or_equal() argument
67 unsigned int k, lim = bits / BITS_PER_LONG; in __bitmap_or_equal()
75 if (!(bits % BITS_PER_LONG)) in __bitmap_or_equal()
79 return (tmp & BITMAP_LAST_WORD_MASK(bits)) == 0; in __bitmap_or_equal()
82 void __bitmap_complement(unsigned long *dst, const unsigned long *src, unsigned int bits) in __bitmap_complement() argument
84 unsigned int k, lim = BITS_TO_LONGS(bits); in __bitmap_complement()
172 const unsigned long *bitmap2, unsigned int bits) in __bitmap_and() argument
175 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_and()
180 if (bits % BITS_PER_LONG) in __bitmap_and()
182 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()
188 const unsigned long *bitmap2, unsigned int bits) in __bitmap_or() argument
191 unsigned int nr = BITS_TO_LONGS(bits); in __bitmap_or()
199 const unsigned long *bitmap2, unsigned int bits) in __bitmap_xor() argument
202 unsigned int nr = BITS_TO_LONGS(bits); in __bitmap_xor()
210 const unsigned long *bitmap2, unsigned int bits) in __bitmap_andnot() argument
213 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_andnot()
218 if (bits % BITS_PER_LONG) in __bitmap_andnot()
220 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_andnot()
226 const unsigned long *bitmap2, unsigned int bits) in __bitmap_intersects() argument
228 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_intersects()
233 if (bits % BITS_PER_LONG) in __bitmap_intersects()
234 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()
241 const unsigned long *bitmap2, unsigned int bits) in __bitmap_subset() argument
243 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_subset()
248 if (bits % BITS_PER_LONG) in __bitmap_subset()
249 if ((bitmap1[k] & ~bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_subset()
255 int __bitmap_weight(const unsigned long *bitmap, unsigned int bits) in __bitmap_weight() argument
257 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_weight()
263 if (bits % BITS_PER_LONG) in __bitmap_weight()
264 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
839 const unsigned long *new, int bits) in bitmap_bitremap() argument
841 int w = bitmap_weight(new, bits); in bitmap_bitremap()
842 int n = bitmap_pos_to_ord(old, oldbit, bits); in bitmap_bitremap()
846 return bitmap_ord_to_pos(new, n % w, bits); in bitmap_bitremap()
956 const unsigned long *relmap, unsigned int bits) in bitmap_onto() argument
962 bitmap_zero(dst, bits); in bitmap_onto()
975 for_each_set_bit(n, relmap, bits) { in bitmap_onto()
1098 int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order) in bitmap_find_free_region() argument
1102 for (pos = 0 ; (end = pos + (1U << order)) <= bits; pos = end) { in bitmap_find_free_region()