Lines Matching refs:nr_nodes
85 u64 addr, u64 max_addr, int nr_nodes) in split_nodes_interleave() argument
93 if (nr_nodes <= 0) in split_nodes_interleave()
95 if (nr_nodes > MAX_NUMNODES) { in split_nodes_interleave()
97 nr_nodes, MAX_NUMNODES); in split_nodes_interleave()
98 nr_nodes = MAX_NUMNODES; in split_nodes_interleave()
106 size = PFN_PHYS((unsigned long)(size >> PAGE_SHIFT) / nr_nodes); in split_nodes_interleave()
112 big = ((size & ~FAKE_NODE_MIN_HASH_MASK) * nr_nodes) / in split_nodes_interleave()
173 ret = emu_setup_memblk(ei, pi, nid++ % nr_nodes, in split_nodes_interleave()
201 static u64 uniform_size(u64 max_addr, u64 base, u64 hole, int nr_nodes) in uniform_size() argument
207 return PFN_PHYS((max_pfn - base_pfn - hole_pfns) / nr_nodes); in uniform_size()
219 int nr_nodes, struct numa_memblk *pblk, in split_nodes_size_interleave_uniform() argument
226 if ((!size && !nr_nodes) || (nr_nodes && !pblk)) in split_nodes_size_interleave_uniform()
239 if (!nr_nodes) in split_nodes_size_interleave_uniform()
240 nr_nodes = MAX_NUMNODES; in split_nodes_size_interleave_uniform()
248 min_size = uniform_size(max_addr, addr, 0, nr_nodes); in split_nodes_size_interleave_uniform()
259 mem_hole_size(addr, max_addr), nr_nodes); in split_nodes_size_interleave_uniform()