Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/include/linux/
Dbitmap.h24 #define BITMAP_LAST_WORD_MASK(nbits) \ macro
50 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits); in bitmap_fill()
56 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty()
64 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full()
72 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
158 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_and()
174 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()
/kernel/linux/linux-5.10/include/linux/
Dbitmap.h225 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) macro
262 dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits); in bitmap_copy_clear_tail()
287 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_and()
313 return (*dst = *src1 & ~(*src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_andnot()
337 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()
361 return !(((*src1 | *src2) ^ *src3) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_or_equal()
368 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_intersects()
377 return ! ((*src1 & ~(*src2)) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_subset()
385 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty()
393 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full()
[all …]
Dcpumask.h931 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
939 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
963 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
969 [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)
/kernel/linux/linux-5.10/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()
84 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()
/kernel/linux/linux-5.10/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()
249 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()
287 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_andnot()
313 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()
328 if ((bitmap1[k] & ~bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_subset()
343 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
364 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in __bitmap_set()
385 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in __bitmap_clear()
[all …]
Dfind_bit.c143 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()
136 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_clear_ll()
/kernel/liteos_a/kernel/base/core/
Dlos_bitmap.c97 maskToSet &= BITMAP_LAST_WORD_MASK(size); in LOS_BitmapSetNBits()
117 maskToClear &= BITMAP_LAST_WORD_MASK(size); in LOS_BitmapClrNBits()
/kernel/linux/linux-5.10/tools/testing/radix-tree/
Dbitmap.c20 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_clear()
/kernel/liteos_a/kernel/include/
Dlos_bitmap.h61 #define BITMAP_LAST_WORD_MASK(nbits) \ macro