Home
last modified time | relevance | path

Searched refs:BITMAP_LAST_WORD_MASK (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/include/linux/
Dbitmap.h209 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) macro
246 dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits); in bitmap_copy_clear_tail()
271 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_and()
297 return (*dst = *src1 & ~(*src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_andnot()
321 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()
345 return !(((*src1 | *src2) ^ *src3) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_or_equal()
352 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_intersects()
361 return ! ((*src1 & ~(*src2)) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_subset()
369 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty()
377 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full()
[all …]
Dcpumask.h891 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
899 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
923 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
929 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
Dnodemask.h305 #define NODE_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(MAX_NUMNODES)
/Linux-v5.4/tools/include/linux/
Dbitmap.h22 #define BITMAP_LAST_WORD_MASK(nbits) \ macro
48 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits); in bitmap_fill()
54 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty()
62 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full()
70 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
147 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_and()
/Linux-v5.4/lib/
Dbitmap.c55 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()
79 return (tmp & BITMAP_LAST_WORD_MASK(bits)) == 0; in __bitmap_or_equal()
106 unsigned long mask = BITMAP_LAST_WORD_MASK(nbits); in __bitmap_shift_right()
182 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()
220 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_andnot()
234 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()
249 if ((bitmap1[k] & ~bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_subset()
264 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
285 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in __bitmap_set()
306 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in __bitmap_clear()
[all …]
Dfind_bit.c134 unsigned long val = BITMAP_LAST_WORD_MASK(size); in find_last_bit()
Dgenalloc.c100 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in bitmap_set_ll()
135 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_clear_ll()
/Linux-v5.4/tools/lib/
Dbitmap.c16 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
71 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()
/Linux-v5.4/tools/testing/radix-tree/
Dbitmap.c20 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_clear()