Lines Matching refs:nr_bits
1341 unsigned long nr_bits, alloc_size;
1344 nr_bits = min_t(unsigned long, maxnode-1, MAX_NUMNODES);
1345 alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8;
1350 err = sys_get_mempolicy(policy, nm, nr_bits+1, addr, flags);
1356 err |= compat_put_bitmap(nmask, bm, nr_bits);
1367 unsigned long nr_bits, alloc_size;
1370 nr_bits = min_t(unsigned long, maxnode-1, MAX_NUMNODES);
1371 alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8;
1374 err = compat_get_bitmap(bm, nmask, nr_bits);
1382 return sys_set_mempolicy(mode, nm, nr_bits+1);
1391 unsigned long nr_bits, alloc_size;
1394 nr_bits = min_t(unsigned long, maxnode-1, MAX_NUMNODES);
1395 alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8;
1398 err = compat_get_bitmap(nodes_addr(bm), nmask, nr_bits);
1406 return sys_mbind(start, len, mode, nm, nr_bits+1, flags);