Lines Matching refs:nid

94 						unsigned int *nid)
106 *nid = fake_nid;
133 *nid = fake_nid;
177 int nid;
186 nid = of_read_number(&associativity[index], 1);
189 if (nid == 0xffff || nid >= nr_node_ids)
190 nid = NUMA_NO_NODE;
191 return nid;
194 * Returns nid in the range [0..nr_node_ids], or -1 if no useful NUMA
275 /* Returns the nid associated with the given device tree node,
280 int nid = NUMA_NO_NODE;
285 nid = associativity_to_nid(tmp);
286 return nid;
292 int nid = NUMA_NO_NODE;
296 nid = of_node_to_nid_single(device);
297 if (nid != -1)
304 return nid;
311 int i, nid;
316 nid = __associativity_to_nid(associativity, max_array_sz);
317 if (nid != NUMA_NO_NODE) {
329 distance_lookup_table[nid][i] = of_read_number(entry, 1);
348 int nid;
364 nid = of_node_to_nid_single(node);
365 if (nid == NUMA_NO_NODE)
372 WARN(numa_distance_table[nid][nid] == -1,
373 "NUMA distance details for node %d not provided\n", nid);
599 int nid = default_nid;
615 nid = __associativity_to_nid(associativity, aa.array_sz);
616 if (nid > 0 && affinity_form == FORM1_AFFINITY) {
624 return nid;
635 int nid = default_nid;
651 nid = __associativity_to_nid(associativity, aa.array_sz);
653 return nid;
717 int nid = NUMA_NO_NODE;
732 nid = numa_cpu_lookup_table[fcpu];
733 if (nid >= 0) {
734 map_cpu_to_node(lcpu, nid);
735 return nid;
738 nid = vphn_get_nid(lcpu);
739 if (nid != NUMA_NO_NODE)
752 nid = of_node_to_nid_single(cpu);
756 if (nid < 0 || !node_possible(nid))
757 nid = first_online_node;
764 * of a core to be associated with different nid. However if first
769 map_cpu_to_node(fcpu, nid);
772 map_cpu_to_node(lcpu, nid);
774 return nid;
801 int nid;
803 nid = numa_setup_cpu(cpu);
804 verify_cpu_node_mapping(cpu, nid);
865 int nid;
894 nid = get_nid_and_numa_distance(lmb);
896 &nid);
897 node_set_online(nid);
900 memblock_set_node(base, sz, &memblock.memory, nid);
945 int nid = NUMA_NO_NODE;
950 nid = associativity_to_nid(vphn_assoc);
964 nid = associativity_to_nid(associativity);
970 /* node_set_online() is an UB if 'nid' is negative */
971 if (likely(nid >= 0))
972 node_set_online(nid);
980 int nid;
1006 nid = associativity_to_nid(associativity);
1009 nid = default_nid;
1011 fake_numa_create_new_node(((start + size) >> PAGE_SHIFT), &nid);
1012 node_set_online(nid);
1016 memblock_set_node(start, size, &memblock.memory, nid);
1041 unsigned int nid = 0;
1050 fake_numa_create_new_node(end_pfn, &nid);
1053 &memblock.memory, nid);
1054 node_set_online(nid);
1094 static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn)
1102 nd_pa = memblock_phys_alloc_try_nid(nd_size, SMP_CACHE_BYTES, nid);
1105 nd_size, nid);
1113 if (tnid != nid)
1114 pr_info(" NODE_DATA(%d) on node %d\n", nid, tnid);
1116 node_data[nid] = nd;
1117 memset(NODE_DATA(nid), 0, sizeof(pg_data_t));
1118 NODE_DATA(nid)->node_id = nid;
1119 NODE_DATA(nid)->node_start_pfn = start_pfn;
1120 NODE_DATA(nid)->node_spanned_pages = spanned_pages;
1219 int nid;
1226 for_each_online_node(nid) {
1229 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn);
1230 setup_node_data(nid, start_pfn, end_pfn);
1275 int nid = NUMA_NO_NODE;
1290 nid = of_drconf_to_nid_single(lmb);
1294 return nid;
1305 int nid = NUMA_NO_NODE;
1327 nid = of_node_to_nid_single(memory);
1331 if (nid >= 0)
1337 return nid;
1348 int nid;
1355 nid = hot_add_drconf_scn_to_nid(scn_addr);
1358 nid = hot_add_node_scn_to_nid(scn_addr);
1361 if (nid < 0 || !node_possible(nid))
1362 nid = first_online_node;
1364 return nid;
1476 pr_debug("%s:%d cpu %d nid %d\n", __FUNCTION__, __LINE__,