Lines Matching defs:nid
176 static int __init alloc_node_page_ext(int nid)
182 nr_pages = NODE_DATA(nid)->node_spanned_pages;
191 if (!IS_ALIGNED(node_start_pfn(nid), MAX_ORDER_NR_PAGES) ||
192 !IS_ALIGNED(node_end_pfn(nid), MAX_ORDER_NR_PAGES))
199 MEMBLOCK_ALLOC_ACCESSIBLE, nid);
202 NODE_DATA(nid)->node_page_ext = base;
210 int nid, fail;
215 for_each_online_node(nid) {
216 fail = alloc_node_page_ext(nid);
252 static void *__meminit alloc_page_ext(size_t size, int nid)
257 addr = alloc_pages_exact_nid(nid, size, flags);
263 addr = vzalloc_node(size, nid);
268 static int __meminit init_section_page_ext(unsigned long pfn, int nid)
280 base = alloc_page_ext(table_size, nid);
356 int nid)
364 if (nid == NUMA_NO_NODE) {
366 * In this case, "nid" already exists and contains valid memory.
370 nid = pfn_to_nid(start_pfn);
371 VM_BUG_ON(!node_online(nid));
375 fail = init_section_page_ext(pfn, nid);
445 int nid;
450 for_each_node_state(nid, N_MEMORY) {
453 start_pfn = node_start_pfn(nid);
454 end_pfn = node_end_pfn(nid);
471 if (pfn_to_nid(pfn) != nid)
473 if (init_section_page_ext(pfn, nid))