• Home
  • Raw
  • Download

Lines Matching refs:bits

49 		const unsigned long *bitmap2, unsigned int bits)  in __bitmap_equal()  argument
51 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal()
56 if (bits % BITS_PER_LONG) in __bitmap_equal()
57 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()
67 unsigned int bits) in __bitmap_or_equal() argument
69 unsigned int k, lim = bits / BITS_PER_LONG; in __bitmap_or_equal()
77 if (!(bits % BITS_PER_LONG)) in __bitmap_or_equal()
81 return (tmp & BITMAP_LAST_WORD_MASK(bits)) == 0; in __bitmap_or_equal()
84 void __bitmap_complement(unsigned long *dst, const unsigned long *src, unsigned int bits) in __bitmap_complement() argument
86 unsigned int k, lim = BITS_TO_LONGS(bits); in __bitmap_complement()
241 const unsigned long *bitmap2, unsigned int bits) in __bitmap_and() argument
244 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_and()
249 if (bits % BITS_PER_LONG) in __bitmap_and()
251 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()
257 const unsigned long *bitmap2, unsigned int bits) in __bitmap_or() argument
260 unsigned int nr = BITS_TO_LONGS(bits); in __bitmap_or()
268 const unsigned long *bitmap2, unsigned int bits) in __bitmap_xor() argument
271 unsigned int nr = BITS_TO_LONGS(bits); in __bitmap_xor()
279 const unsigned long *bitmap2, unsigned int bits) in __bitmap_andnot() argument
282 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_andnot()
287 if (bits % BITS_PER_LONG) in __bitmap_andnot()
289 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_andnot()
307 const unsigned long *bitmap2, unsigned int bits) in __bitmap_intersects() argument
309 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_intersects()
314 if (bits % BITS_PER_LONG) in __bitmap_intersects()
315 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()
322 const unsigned long *bitmap2, unsigned int bits) in __bitmap_subset() argument
324 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_subset()
329 if (bits % BITS_PER_LONG) in __bitmap_subset()
330 if ((bitmap1[k] & ~bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_subset()
336 int __bitmap_weight(const unsigned long *bitmap, unsigned int bits) in __bitmap_weight() argument
338 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_weight()
344 if (bits % BITS_PER_LONG) in __bitmap_weight()
345 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
916 const unsigned long *new, int bits) in bitmap_bitremap() argument
918 int w = bitmap_weight(new, bits); in bitmap_bitremap()
919 int n = bitmap_pos_to_ord(old, oldbit, bits); in bitmap_bitremap()
923 return bitmap_ord_to_pos(new, n % w, bits); in bitmap_bitremap()
1033 const unsigned long *relmap, unsigned int bits) in bitmap_onto() argument
1039 bitmap_zero(dst, bits); in bitmap_onto()
1052 for_each_set_bit(n, relmap, bits) { in bitmap_onto()
1175 int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order) in bitmap_find_free_region() argument
1179 for (pos = 0 ; (end = pos + (1U << order)) <= bits; pos = end) { in bitmap_find_free_region()