Lines Matching defs:node

44  * Returns a pointer to the bitmask of CPUs on Node 'node'.
46 const struct cpumask *cpumask_of_node(int node)
49 if (node == NUMA_NO_NODE)
52 if (WARN_ON(node < 0 || node >= nr_node_ids))
55 if (WARN_ON(node_to_cpumask_map[node] == NULL))
58 return node_to_cpumask_map[node];
102 int node;
109 for (node = 0; node < nr_node_ids; node++) {
110 alloc_bootmem_cpumask_var(&node_to_cpumask_map[node]);
111 cpumask_clear(node_to_cpumask_map[node]);
119 * Set the cpu to node and mem mapping
128 /* fallback to node 0 */
135 * We should set the numa node of cpu0 as soon as possible, because it
193 * numa_add_memblk() - Set node id to memblk
194 * @nid: NUMA node ID of the new memblk
207 pr_err("memblock [0x%llx - 0x%llx] failed to add on node %d\n",
217 * Initialize NODE_DATA for a node on the local memory
227 pr_info("Initmem setup node %d [<memory-less node>]\n", nid);
231 panic("Cannot allocate %zu bytes for node %d data\n",
241 pr_info("NODE_DATA(%d) on node %d\n", nid, tnid);
297 * numa_set_distance() - Set inter node NUMA distance from node to node.
298 * @from: the 'from' node to set distance
299 * @to: the 'to' node to set distance
302 * Set the distance from node @from to @to to @distance.
305 * If @from or @to is higher than the highest known node or lower than zero
317 pr_warn_once("Warning: node ids are out of bound, from=%d to=%d distance=%d\n",
355 pr_warn("Warning: invalid memblk node %d [mem %pap-%pap]\n",
416 * Must online at least one node (node 0) and add memory blocks that cover all
429 pr_info("Faking a node at [mem %pap-%pap]\n", &start, &end);
465 * last fallback is dummy single node config encompassing whole memory.