• 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()
62 void __bitmap_complement(unsigned long *dst, const unsigned long *src, unsigned int bits) in __bitmap_complement() argument
64 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_complement()
68 if (bits % BITS_PER_LONG) in __bitmap_complement()
155 const unsigned long *bitmap2, unsigned int bits) in __bitmap_and() argument
158 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_and()
163 if (bits % BITS_PER_LONG) in __bitmap_and()
165 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()
171 const unsigned long *bitmap2, unsigned int bits) in __bitmap_or() argument
174 unsigned int nr = BITS_TO_LONGS(bits); in __bitmap_or()
182 const unsigned long *bitmap2, unsigned int bits) in __bitmap_xor() argument
185 unsigned int nr = BITS_TO_LONGS(bits); in __bitmap_xor()
193 const unsigned long *bitmap2, unsigned int bits) in __bitmap_andnot() argument
196 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_andnot()
201 if (bits % BITS_PER_LONG) in __bitmap_andnot()
203 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_andnot()
209 const unsigned long *bitmap2, unsigned int bits) in __bitmap_intersects() argument
211 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_intersects()
216 if (bits % BITS_PER_LONG) in __bitmap_intersects()
217 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()
224 const unsigned long *bitmap2, unsigned int bits) in __bitmap_subset() argument
226 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_subset()
231 if (bits % BITS_PER_LONG) in __bitmap_subset()
232 if ((bitmap1[k] & ~bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_subset()
238 int __bitmap_weight(const unsigned long *bitmap, unsigned int bits) in __bitmap_weight() argument
240 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_weight()
246 if (bits % BITS_PER_LONG) in __bitmap_weight()
247 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
758 const unsigned long *new, int bits) in bitmap_bitremap() argument
760 int w = bitmap_weight(new, bits); in bitmap_bitremap()
761 int n = bitmap_pos_to_ord(old, oldbit, bits); in bitmap_bitremap()
765 return bitmap_ord_to_pos(new, n % w, bits); in bitmap_bitremap()
870 const unsigned long *relmap, unsigned int bits) in bitmap_onto() argument
876 bitmap_zero(dst, bits); in bitmap_onto()
889 for_each_set_bit(n, relmap, bits) { in bitmap_onto()
1013 int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order) in bitmap_find_free_region() argument
1017 for (pos = 0 ; (end = pos + (1U << order)) <= bits; pos = end) { in bitmap_find_free_region()