Lines Matching refs:node
54 int node_to_pxm(int node) in node_to_pxm() argument
56 if (node < 0) in node_to_pxm()
58 return node_to_pxm_map[node]; in node_to_pxm()
61 static void __acpi_map_pxm_to_node(int pxm, int node) in __acpi_map_pxm_to_node() argument
63 if (pxm_to_node_map[pxm] == NUMA_NO_NODE || node < pxm_to_node_map[pxm]) in __acpi_map_pxm_to_node()
64 pxm_to_node_map[pxm] = node; in __acpi_map_pxm_to_node()
65 if (node_to_pxm_map[node] == PXM_INVAL || pxm < node_to_pxm_map[node]) in __acpi_map_pxm_to_node()
66 node_to_pxm_map[node] = pxm; in __acpi_map_pxm_to_node()
71 int node; in acpi_map_pxm_to_node() local
76 node = pxm_to_node_map[pxm]; in acpi_map_pxm_to_node()
78 if (node == NUMA_NO_NODE) { in acpi_map_pxm_to_node()
81 node = first_unset_node(nodes_found_map); in acpi_map_pxm_to_node()
82 __acpi_map_pxm_to_node(pxm, node); in acpi_map_pxm_to_node()
83 node_set(node, nodes_found_map); in acpi_map_pxm_to_node()
86 return node; in acpi_map_pxm_to_node()
106 int node, n, dist, min_dist; in acpi_map_pxm_to_online_node() local
108 node = acpi_map_pxm_to_node(pxm); in acpi_map_pxm_to_online_node()
110 if (node == NUMA_NO_NODE) in acpi_map_pxm_to_online_node()
111 node = 0; in acpi_map_pxm_to_online_node()
113 if (!node_online(node)) { in acpi_map_pxm_to_online_node()
116 dist = node_distance(node, n); in acpi_map_pxm_to_online_node()
119 node = n; in acpi_map_pxm_to_online_node()
124 return node; in acpi_map_pxm_to_online_node()