Searched refs:BITMAP_LAST_WORD_MASK (Results 1 – 11 of 11) sorted by relevance
26 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) macro45 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits); in bitmap_fill()51 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty()59 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full()67 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()119 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_and()135 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()147 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_intersects()
238 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) macro279 dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits); in bitmap_copy_clear_tail()322 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_and()348 return (*dst = *src1 & ~(*src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_andnot()372 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()396 return !(((*src1 | *src2) ^ *src3) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_or_equal()404 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_intersects()413 return ! ((*src1 & ~(*src2)) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_subset()421 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_empty()429 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_full()[all …]
542 cpumask_bits(dstp)[0] = BITMAP_LAST_WORD_MASK(nr_cpumask_bits); in cpumask_setall()1144 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \1152 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \1219 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \1225 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
313 #define NODE_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(MAX_NUMNODES)
16 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()
57 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()81 return (tmp & BITMAP_LAST_WORD_MASK(bits)) == 0; in __bitmap_or_equal()108 unsigned long mask = BITMAP_LAST_WORD_MASK(nbits); in __bitmap_shift_right()251 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()289 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_andnot()315 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_intersects()330 if ((bitmap1[k] & ~bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_subset()344 w += hweight_long((FETCH) & BITMAP_LAST_WORD_MASK(__bits)); \377 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in __bitmap_set()398 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in __bitmap_clear()[all …]
88 tmp = (FETCH) & BITMAP_LAST_WORD_MASK(sz); \207 unsigned long val = BITMAP_LAST_WORD_MASK(size); in _find_last_bit()
101 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()
18 mask_to_set &= BITMAP_LAST_WORD_MASK(size); in __bitmap_set()38 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in __bitmap_clear()
20 mask_to_clear &= BITMAP_LAST_WORD_MASK(size); in bitmap_clear()
1534 mask_to_set &= cpu_to_ul(BITMAP_LAST_WORD_MASK(size)); in ntfs_bitmap_set_le()1554 mask_to_clear &= cpu_to_ul(BITMAP_LAST_WORD_MASK(size)); in ntfs_bitmap_clear_le()1570 BITMAP_LAST_WORD_MASK(bits)); in ntfs_bitmap_weight_le()