Home
last modified time | relevance | path

Searched refs:nlongs (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/lib/
H A Dtest_bitmap.c278 unsigned int nlongs = DIV_ROUND_UP(nbits, BITS_PER_LONG); in test_replace() local
284 bitmap_replace(bmap, &exp2[0 * nlongs], &exp2[1 * nlongs], exp2_to_exp3_mask, nbits); in test_replace()
288 bitmap_replace(bmap, &exp2[1 * nlongs], &exp2[0 * nlongs], exp2_to_exp3_mask, nbits); in test_replace()
292 bitmap_replace(bmap, &exp2[0 * nlongs], &exp2[1 * nlongs], exp2_to_exp3_mask, nbits); in test_replace()
296 bitmap_replace(bmap, &exp2[1 * nlongs], &exp2[0 * nlongs], exp2_to_exp3_mask, nbits); in test_replace()
/kernel/linux/linux-5.10/tools/include/linux/
H A Dbitmap.h45 unsigned int nlongs = BITS_TO_LONGS(nbits); in bitmap_fill() local
47 unsigned int len = (nlongs - 1) * sizeof(unsigned long); in bitmap_fill()
50 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits); in bitmap_fill()
/kernel/linux/linux-6.6/tools/include/linux/
H A Dbitmap.h40 unsigned int nlongs = BITS_TO_LONGS(nbits); in bitmap_fill() local
42 unsigned int len = (nlongs - 1) * sizeof(unsigned long); in bitmap_fill()
45 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits); in bitmap_fill()
/kernel/linux/linux-6.6/lib/
H A Dtest_bitmap.c338 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()
/kernel/linux/linux-5.10/mm/
H A Dmempolicy.c1377 unsigned long nlongs; in get_nodes() local
1387 nlongs = BITS_TO_LONGS(maxnode); in get_nodes()
1402 if (nlongs > BITS_TO_LONGS(MAX_NUMNODES)) { in get_nodes()
1403 for (k = BITS_TO_LONGS(MAX_NUMNODES); k < nlongs; k++) { in get_nodes()
1406 if (k == nlongs - 1) { in get_nodes()
1412 nlongs = BITS_TO_LONGS(MAX_NUMNODES); in get_nodes()
1420 if (get_user(t, nmask + nlongs - 1)) in get_nodes()
1426 if (copy_from_user(nodes_addr(*nodes), nmask, nlongs*sizeof(unsigned long))) in get_nodes()
1428 nodes_addr(*nodes)[nlongs-1] &= endmask; in get_nodes()
/kernel/linux/linux-6.6/mm/
H A Dmempolicy.c1386 unsigned long nlongs = BITS_TO_LONGS(maxnode); in get_bitmap() local
1395 nlongs * sizeof(unsigned long)); in get_bitmap()
1401 mask[nlongs - 1] &= (1UL << (maxnode % BITS_PER_LONG)) - 1; in get_bitmap()
/kernel/linux/linux-5.10/drivers/iommu/intel/
H A Diommu.c1802 u32 ndomains, nlongs; in iommu_init_domains() local
1808 nlongs = BITS_TO_LONGS(ndomains); in iommu_init_domains()
1812 iommu->domain_ids = kcalloc(nlongs, sizeof(unsigned long), GFP_KERNEL); in iommu_init_domains()

Completed in 18 milliseconds