Lines Matching refs:pxm
37 int pxm_to_node(int pxm) in pxm_to_node() argument
39 if (pxm < 0 || pxm >= MAX_PXM_DOMAINS || numa_off) in pxm_to_node()
41 return pxm_to_node_map[pxm]; in pxm_to_node()
52 static void __acpi_map_pxm_to_node(int pxm, int node) in __acpi_map_pxm_to_node() argument
54 if (pxm_to_node_map[pxm] == NUMA_NO_NODE || node < pxm_to_node_map[pxm]) in __acpi_map_pxm_to_node()
55 pxm_to_node_map[pxm] = node; in __acpi_map_pxm_to_node()
56 if (node_to_pxm_map[node] == PXM_INVAL || pxm < node_to_pxm_map[node]) in __acpi_map_pxm_to_node()
57 node_to_pxm_map[node] = pxm; in __acpi_map_pxm_to_node()
60 int acpi_map_pxm_to_node(int pxm) in acpi_map_pxm_to_node() argument
64 if (pxm < 0 || pxm >= MAX_PXM_DOMAINS || numa_off) in acpi_map_pxm_to_node()
67 node = pxm_to_node_map[pxm]; in acpi_map_pxm_to_node()
73 __acpi_map_pxm_to_node(pxm, node); in acpi_map_pxm_to_node()
246 int node, pxm; in acpi_numa_memory_affinity_init() local
262 pxm = ma->proximity_domain; in acpi_numa_memory_affinity_init()
264 pxm &= 0xff; in acpi_numa_memory_affinity_init()
266 node = acpi_map_pxm_to_node(pxm); in acpi_numa_memory_affinity_init()
282 node, pxm, in acpi_numa_memory_affinity_init()
547 unsigned long long pxm; in acpi_get_pxm() local
554 status = acpi_evaluate_integer(handle, "_PXM", NULL, &pxm); in acpi_get_pxm()
556 return pxm; in acpi_get_pxm()
564 int pxm; in acpi_get_node() local
566 pxm = acpi_get_pxm(handle); in acpi_get_node()
568 return pxm_to_node(pxm); in acpi_get_node()