Searched refs:nlongs (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/tools/include/linux/ |
H A D | bitmap.h | 42 unsigned int nlongs = BITS_TO_LONGS(nbits); in bitmap_fill() local 44 unsigned int len = (nlongs - 1) * sizeof(unsigned long); in bitmap_fill() 47 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits); in bitmap_fill()
|
/openbmc/qemu/include/qemu/ |
H A D | bitmap.h | 125 size_t nlongs = BITS_TO_LONGS(nbits); in bitmap_fill() local 127 long len = (nlongs - 1) * sizeof(unsigned long); in bitmap_fill() 130 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits); in bitmap_fill()
|
/openbmc/linux/lib/ |
H A D | test_bitmap.c | 338 unsigned int nlongs = DIV_ROUND_UP(nbits, BITS_PER_LONG); in test_replace() local 344 bitmap_replace(bmap, &exp2[0 * nlongs], &exp2[1 * nlongs], exp2_to_exp3_mask, nbits); in test_replace() 348 bitmap_replace(bmap, &exp2[1 * nlongs], &exp2[0 * nlongs], exp2_to_exp3_mask, nbits); in test_replace() 352 bitmap_replace(bmap, &exp2[0 * nlongs], &exp2[1 * nlongs], exp2_to_exp3_mask, nbits); in test_replace() 356 bitmap_replace(bmap, &exp2[1 * nlongs], &exp2[0 * nlongs], exp2_to_exp3_mask, nbits); in test_replace()
|
/openbmc/linux/mm/ |
H A D | mempolicy.c | 1370 unsigned long nlongs = BITS_TO_LONGS(maxnode); in get_bitmap() local 1379 nlongs * sizeof(unsigned long)); in get_bitmap() 1385 mask[nlongs - 1] &= (1UL << (maxnode % BITS_PER_LONG)) - 1; in get_bitmap()
|