Home
last modified time | relevance | path

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

/linux-6.15/include/linux/
H A Dbitmap.h270 dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits); in bitmap_copy_clear_tail()
281 to[copy - 1] &= BITMAP_LAST_WORD_MASK(count); in bitmap_copy_and_extend()
379 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()
409 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_intersects()
418 return ! ((*src1 & ~(*src2)) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_subset()
427 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty()
436 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full()
445 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
504 *dst = (*src & BITMAP_LAST_WORD_MASK(nbits)) >> shift; in bitmap_shift_right()
514 *dst = (*src << shift) & BITMAP_LAST_WORD_MASK(nbits); in bitmap_shift_left()
[all …]
H A Dcpumask.h627 cpumask_bits(dstp)[0] = BITMAP_LAST_WORD_MASK(nr_cpumask_bits); in cpumask_setall()
1216 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1224 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1294 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1300 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
H A Dnodemask.h319 #define NODE_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(MAX_NUMNODES)
/linux-6.15/tools/include/linux/
H A Dbitmap.h28 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) 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()
127 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_and()
142 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()
154 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_intersects()
/linux-6.15/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()
/linux-6.15/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()
97 unsigned long mask = BITMAP_LAST_WORD_MASK(nbits); in __bitmap_shift_right()
240 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()
278 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_andnot()
304 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()
319 if ((bitmap1[k] & ~bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_subset()
333 w += hweight_long((FETCH) & BITMAP_LAST_WORD_MASK(__bits)); \
373 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in __bitmap_set()
394 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in __bitmap_clear()
[all …]
H A Dfind_bit.c88 tmp = (FETCH) & BITMAP_LAST_WORD_MASK(sz); \
219 unsigned long val = BITMAP_LAST_WORD_MASK(size); in _find_last_bit()
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-6.15/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-6.15/fs/exfat/
H A Dballoc.c240 count += hweight_long(clu_bits & BITMAP_LAST_WORD_MASK(last_mask)); in exfat_count_used_clusters()
/linux-6.15/fs/ntfs3/
H A Dbitmap.c1506 mask_to_set &= cpu_to_ul(BITMAP_LAST_WORD_MASK(size)); in ntfs_bitmap_set_le()
1526 mask_to_clear &= cpu_to_ul(BITMAP_LAST_WORD_MASK(size)); in ntfs_bitmap_clear_le()
1542 BITMAP_LAST_WORD_MASK(bits)); in ntfs_bitmap_weight_le()