Searched refs:BITMAP_LAST_WORD_MASK (Results 1 - 12 of 12) sorted by relevance

/linux-master/tools/include/linux/
H A Dbitmap.h26 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) macro
45 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits);
51 return ! (*src & BITMAP_LAST_WORD_MASK(nbits));
59 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits));
67 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits));
119 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0;
135 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits));
147 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0;
/linux-master/drivers/firmware/efi/libstub/
H A Dbitmap.c18 mask_to_set &= BITMAP_LAST_WORD_MASK(size);
38 mask_to_clear &= BITMAP_LAST_WORD_MASK(size);
/linux-master/tools/testing/radix-tree/
H A Dbitmap.c20 mask_to_clear &= BITMAP_LAST_WORD_MASK(size);
/linux-master/tools/lib/
H A Dbitmap.c16 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits));
71 BITMAP_LAST_WORD_MASK(bits));
84 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits))
99 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits))
/linux-master/include/linux/
H A Dbitmap.h223 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) macro
264 dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits);
307 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0;
333 return (*dst = *src1 & ~(*src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0;
357 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits));
381 return !(((*src1 | *src2) ^ *src3) & BITMAP_LAST_WORD_MASK(nbits));
389 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0;
398 return ! ((*src1 & ~(*src2)) & BITMAP_LAST_WORD_MASK(nbits));
406 return ! (*src & BITMAP_LAST_WORD_MASK(nbits));
414 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbit
[all...]
H A Dcpumask.h543 cpumask_bits(dstp)[0] = BITMAP_LAST_WORD_MASK(nr_cpumask_bits);
1182 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1190 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1260 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1266 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
H A Dnodemask.h313 #define NODE_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(MAX_NUMNODES)
/linux-master/lib/
H A Dbitmap.c46 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits))
70 return (tmp & BITMAP_LAST_WORD_MASK(bits)) == 0;
97 unsigned long mask = BITMAP_LAST_WORD_MASK(nbits);
240 BITMAP_LAST_WORD_MASK(bits));
278 BITMAP_LAST_WORD_MASK(bits));
304 if ((bitmap1[k] & bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits))
319 if ((bitmap1[k] & ~bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits))
333 w += hweight_long((FETCH) & BITMAP_LAST_WORD_MASK(__bits)); \
373 mask_to_set &= BITMAP_LAST_WORD_MASK(size);
394 mask_to_clear &= BITMAP_LAST_WORD_MASK(siz
[all...]
H A Dfind_bit.c88 tmp = (FETCH) & BITMAP_LAST_WORD_MASK(sz); \
207 unsigned long val = BITMAP_LAST_WORD_MASK(size);
H A Dgenalloc.c101 mask_to_set &= BITMAP_LAST_WORD_MASK(size);
137 mask_to_clear &= BITMAP_LAST_WORD_MASK(size);
/linux-master/fs/exfat/
H A Dballoc.c248 count += hweight_long(clu_bits & BITMAP_LAST_WORD_MASK(last_mask));
/linux-master/fs/ntfs3/
H A Dbitmap.c1534 mask_to_set &= cpu_to_ul(BITMAP_LAST_WORD_MASK(size));
1554 mask_to_clear &= cpu_to_ul(BITMAP_LAST_WORD_MASK(size));
1570 BITMAP_LAST_WORD_MASK(bits));

Completed in 141 milliseconds