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

/linux-master/tools/testing/radix-tree/
H A Dbitmap.c20 mask_to_clear &= BITMAP_LAST_WORD_MASK(size);
/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/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));
/linux-master/include/linux/
H A Dbitmap.h227 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) macro
270 dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits);
313 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0;
339 return (*dst = *src1 & ~(*src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0;
363 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits));
387 return !(((*src1 | *src2) ^ *src3) & BITMAP_LAST_WORD_MASK(nbits));
395 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0;
404 return ! ((*src1 & ~(*src2)) & BITMAP_LAST_WORD_MASK(nbits));
412 return ! (*src & BITMAP_LAST_WORD_MASK(nbits));
420 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbit
[all...]
H A Dcpumask.h583 cpumask_bits(dstp)[0] = BITMAP_LAST_WORD_MASK(nr_cpumask_bits);
1222 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
1230 [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) \
1306 [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); \
219 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/tools/include/linux/
H A Dbitmap.h27 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) macro
47 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits);
53 return ! (*src & BITMAP_LAST_WORD_MASK(nbits));
61 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits));
69 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits));
121 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0;
136 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits));
148 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0;
/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))

Completed in 272 milliseconds