Lines Matching defs:node
264 static pfn_t __init slot_psize_compute(cnodeid_t node, int slot)
271 nasid = COMPACT_TO_NASID_NODEID(node);
272 /* Find the node board */
330 * Always have node 0 in the region mask, otherwise
332 * thinks it is a node 0 address.
357 cnodeid_t node;
361 for_each_online_node(node) {
364 slot_psize = slot_psize_compute(node, slot);
378 printk("Ignoring slot %d onwards on node %d\n",
379 slot, node);
384 add_active_range(node, slot_getbasepfn(node, slot),
385 slot_getbasepfn(node, slot) + slot_psize);
390 static void __init node_mem_init(cnodeid_t node)
392 pfn_t slot_firstpfn = slot_getbasepfn(node, 0);
393 pfn_t slot_freepfn = node_getfirstfree(node);
397 get_pfn_range_for_nid(node, &start_pfn, &end_pfn);
400 * Allocate the node data structures on the node first.
402 __node_data[node] = __va(slot_freepfn << PAGE_SHIFT);
404 NODE_DATA(node)->bdata = &bootmem_node_data[node];
405 NODE_DATA(node)->node_start_pfn = start_pfn;
406 NODE_DATA(node)->node_spanned_pages = end_pfn - start_pfn;
408 cpus_clear(hub_data(node)->h_cpus);
413 bootmap_size = init_bootmem_node(NODE_DATA(node), slot_freepfn,
415 free_bootmem_with_active_regions(node, end_pfn);
416 reserve_bootmem_node(NODE_DATA(node), slot_firstpfn << PAGE_SHIFT,
419 sparse_memory_present_with_active_regions(node);
423 * A node with nothing. We use it to avoid any special casing in
439 cnodeid_t node;
444 for (node = 0; node < MAX_COMPACT_NODES; node++) {
445 if (node_online(node)) {
446 node_mem_init(node);
449 __node_data[node] = &null_node;
463 unsigned node;
467 for_each_online_node(node) {
470 get_pfn_range_for_nid(node, &start_pfn, &end_pfn);
482 unsigned node;
486 for_each_online_node(node) {
490 totalram_pages += free_all_bootmem_node(NODE_DATA(node));
493 totalram_pages -= setup_zero_pages(); /* This comes from node 0 */