Lines Matching refs:nid
152 static int __init alloc_node_page_ext(int nid) in alloc_node_page_ext() argument
158 nr_pages = NODE_DATA(nid)->node_spanned_pages; in alloc_node_page_ext()
167 if (!IS_ALIGNED(node_start_pfn(nid), MAX_ORDER_NR_PAGES) || in alloc_node_page_ext()
168 !IS_ALIGNED(node_end_pfn(nid), MAX_ORDER_NR_PAGES)) in alloc_node_page_ext()
175 MEMBLOCK_ALLOC_ACCESSIBLE, nid); in alloc_node_page_ext()
178 NODE_DATA(nid)->node_page_ext = base; in alloc_node_page_ext()
186 int nid, fail; in page_ext_init_flatmem() local
191 for_each_online_node(nid) { in page_ext_init_flatmem()
192 fail = alloc_node_page_ext(nid); in page_ext_init_flatmem()
221 static void *__meminit alloc_page_ext(size_t size, int nid) in alloc_page_ext() argument
226 addr = alloc_pages_exact_nid(nid, size, flags); in alloc_page_ext()
232 addr = vzalloc_node(size, nid); in alloc_page_ext()
237 static int __meminit init_section_page_ext(unsigned long pfn, int nid) in init_section_page_ext() argument
249 base = alloc_page_ext(table_size, nid); in init_section_page_ext()
304 int nid) in online_page_ext() argument
312 if (nid == NUMA_NO_NODE) { in online_page_ext()
318 nid = pfn_to_nid(start_pfn); in online_page_ext()
319 VM_BUG_ON(!node_state(nid, N_ONLINE)); in online_page_ext()
323 fail = init_section_page_ext(pfn, nid); in online_page_ext()
335 unsigned long nr_pages, int nid) in offline_page_ext() argument
380 int nid; in page_ext_init() local
385 for_each_node_state(nid, N_MEMORY) { in page_ext_init()
388 start_pfn = node_start_pfn(nid); in page_ext_init()
389 end_pfn = node_end_pfn(nid); in page_ext_init()
406 if (pfn_to_nid(pfn) != nid) in page_ext_init()
408 if (init_section_page_ext(pfn, nid)) in page_ext_init()