Lines Matching defs:node
45 * Returns a pointer to the bitmask of CPUs on Node 'node'.
47 const struct cpumask *cpumask_of_node(int node)
50 if (node == NUMA_NO_NODE)
53 if (WARN_ON(node < 0 || node >= nr_node_ids))
56 if (WARN_ON(node_to_cpumask_map[node] == NULL))
59 return node_to_cpumask_map[node];
103 int node;
110 for (node = 0; node < nr_node_ids; node++) {
111 alloc_bootmem_cpumask_var(&node_to_cpumask_map[node]);
112 cpumask_clear(node_to_cpumask_map[node]);
120 * Set the cpu to node and mem mapping
129 /* fallback to node 0 */
136 * We should set the numa node of cpu0 as soon as possible, because it
196 * numa_add_memblk() - Set node id to memblk
197 * @nid: NUMA node ID of the new memblk
210 pr_err("memblock [0x%llx - 0x%llx] failed to add on node %d\n",
220 * Initialize NODE_DATA for a node on the local memory
230 pr_info("Initmem setup node %d [<memory-less node>]\n", nid);
234 panic("Cannot allocate %zu bytes for node %d data\n",
244 pr_info("NODE_DATA(%d) on node %d\n", nid, tnid);
305 * numa_set_distance() - Set inter node NUMA distance from node to node.
306 * @from: the 'from' node to set distance
307 * @to: the 'to' node to set distance
310 * Set the distance from node @from to @to to @distance.
313 * If @from or @to is higher than the highest known node or lower than zero
325 pr_warn_once("Warning: node ids are out of bound, from=%d to=%d distance=%d\n",
361 pr_warn("Warning: invalid memblk node %d [mem %#010Lx-%#010Lx]\n",
423 * Must online at least one node (node 0) and add memory blocks that cover all
436 pr_info("Faking a node at [mem %#018Lx-%#018Lx]\n", start, end - 1);
452 * last fallback is dummy single node config encompassing whole memory.