Lines Matching defs:nid
142 static int __init alloc_node_page_ext(int nid)
148 nr_pages = NODE_DATA(nid)->node_spanned_pages;
157 if (!IS_ALIGNED(node_start_pfn(nid), MAX_ORDER_NR_PAGES) ||
158 !IS_ALIGNED(node_end_pfn(nid), MAX_ORDER_NR_PAGES))
165 MEMBLOCK_ALLOC_ACCESSIBLE, nid);
168 NODE_DATA(nid)->node_page_ext = base;
176 int nid, fail;
181 for_each_online_node(nid) {
182 fail = alloc_node_page_ext(nid);
211 static void *__meminit alloc_page_ext(size_t size, int nid)
216 addr = alloc_pages_exact_nid(nid, size, flags);
222 addr = vzalloc_node(size, nid);
227 static int __meminit init_section_page_ext(unsigned long pfn, int nid)
239 base = alloc_page_ext(table_size, nid);
294 int nid)
302 if (nid == NUMA_NO_NODE) {
304 * In this case, "nid" already exists and contains valid memory.
308 nid = pfn_to_nid(start_pfn);
309 VM_BUG_ON(!node_state(nid, N_ONLINE));
313 fail = init_section_page_ext(pfn, nid);
325 unsigned long nr_pages, int nid)
372 int nid;
377 for_each_node_state(nid, N_MEMORY) {
380 start_pfn = node_start_pfn(nid);
381 end_pfn = node_end_pfn(nid);
398 if (pfn_to_nid(pfn) != nid)
400 if (init_section_page_ext(pfn, nid))