Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dbitmap.h237 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) macro
280 dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits); in bitmap_copy_clear_tail()
291 to[copy - 1] &= BITMAP_LAST_WORD_MASK(count); in bitmap_copy_and_extend()
336 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_and()
356 return hweight_long(*dst & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weighted_or()
368 return hweight_long(*dst & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weighted_xor()
389 return (*dst = *src1 & ~(*src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_andnot()
413 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()
436 return !(((*src1 | *src2) ^ *src3) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_or_equal()
443 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_intersects()
[all …]
H A Dcpumask.h690 cpumask_bits(dstp)[0] = BITMAP_LAST_WORD_MASK(nr_cpumask_bits); in cpumask_setall()
1305 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1313 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1366 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1372 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
H A Dnodemask.h307 #define NODE_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(MAX_NUMNODES)
/linux/tools/include/linux/
H A Dbitmap.h35 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1)))
55 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits);
72 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
80 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_or()
88 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits));
106 return (*dst = *src1 & ~(*src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_zalloc()
154 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_equal()
169 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_intersects()
181 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0;
190 return ! ((*src1 & ~(*src2)) & BITMAP_LAST_WORD_MASK(nbit in bitmap_set()
33 #define BITMAP_LAST_WORD_MASK( global() macro
[all...]
/linux/tools/lib/
H A 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()
99 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()
119 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in __bitmap_set()
139 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in __bitmap_clear()
155 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_andnot()
168 if ((bitmap1[k] & ~bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_subset()
/linux/lib/
H A Dbitmap.c46 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()
70 return (tmp & BITMAP_LAST_WORD_MASK(bits)) == 0; in __bitmap_or_equal()
98 unsigned long mask = BITMAP_LAST_WORD_MASK(nbits); in __bitmap_shift_right()
241 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()
279 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_andnot()
305 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()
320 if ((bitmap1[k] & ~bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_subset()
334 w += hweight_long((FETCH) & BITMAP_LAST_WORD_MASK(__bits)); \
388 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in __bitmap_set()
409 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in __bitmap_clear()
[all …]
H A Dgenalloc.c101 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in bitmap_set_ll()
137 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_clear_ll()
/linux/drivers/firmware/efi/libstub/
H A Dbitmap.c18 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in __bitmap_set()
38 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in __bitmap_clear()
/linux/fs/ntfs3/
H A Dbitmap.c1524 mask_to_set &= cpu_to_ul(BITMAP_LAST_WORD_MASK(size)); in ntfs_bitmap_set_le()
1544 mask_to_clear &= cpu_to_ul(BITMAP_LAST_WORD_MASK(size)); in ntfs_bitmap_clear_le()
1560 BITMAP_LAST_WORD_MASK(bits)); in ntfs_bitmap_weight_le()