Lines Matching defs:node
242 /* Find the node board */
296 * Always have node 0 in the region mask, otherwise
298 * thinks it is a node 0 address.
319 nasid_t node;
321 for_each_online_node(node) {
324 slot_psize = slot_psize_compute(node, slot);
338 pr_info("Ignoring slot %d onwards on node %d\n",
339 slot, node);
343 memblock_add_node(PFN_PHYS(slot_getbasepfn(node, slot)),
344 PFN_PHYS(slot_psize), node);
349 static void __init node_mem_init(nasid_t node)
351 unsigned long slot_firstpfn = slot_getbasepfn(node, 0);
352 unsigned long slot_freepfn = node_getfirstfree(node);
355 get_pfn_range_for_nid(node, &start_pfn, &end_pfn);
358 * Allocate the node data structures on the node first.
360 __node_data[node] = __va(slot_freepfn << PAGE_SHIFT);
361 memset(__node_data[node], 0, PAGE_SIZE);
363 NODE_DATA(node)->node_start_pfn = start_pfn;
364 NODE_DATA(node)->node_spanned_pages = end_pfn - start_pfn;
366 cpumask_clear(&hub_data(node)->h_cpus);
376 * A node with nothing. We use it to avoid any special casing in
392 nasid_t node;
398 for (node = 0; node < MAX_NUMNODES; node++) {
399 if (node_online(node)) {
400 node_mem_init(node);
403 __node_data[node] = &null_node;
427 setup_zero_pages(); /* This comes from node 0 */