Lines Matching refs:bits
8 unsigned int __bitmap_weight(const unsigned long *bitmap, int bits) in __bitmap_weight() argument
10 unsigned int k, w = 0, lim = bits/BITS_PER_LONG; in __bitmap_weight()
15 if (bits % BITS_PER_LONG) in __bitmap_weight()
16 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
22 const unsigned long *bitmap2, int bits) in __bitmap_or() argument
25 int nr = BITS_TO_LONGS(bits); in __bitmap_or()
61 const unsigned long *bitmap2, unsigned int bits) in __bitmap_and() argument
64 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_and()
69 if (bits % BITS_PER_LONG) in __bitmap_and()
71 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()
76 const unsigned long *bitmap2, unsigned int bits) in __bitmap_equal() argument
78 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal()
83 if (bits % BITS_PER_LONG) in __bitmap_equal()
84 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()
91 const unsigned long *bitmap2, unsigned int bits) in __bitmap_intersects() argument
93 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_intersects()
98 if (bits % BITS_PER_LONG) in __bitmap_intersects()
99 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()