Lines Matching refs:numa_distance
11 static u8 *numa_distance; variable
40 size_t size = numa_distance_cnt * numa_distance_cnt * sizeof(numa_distance[0]); in numa_reset_distance()
44 memblock_free(numa_distance, size); in numa_reset_distance()
46 numa_distance = NULL; /* enable table creation */ in numa_reset_distance()
62 size = cnt * cnt * sizeof(numa_distance[0]); in numa_alloc_distance()
64 numa_distance = memblock_alloc(size, PAGE_SIZE); in numa_alloc_distance()
65 if (!numa_distance) { in numa_alloc_distance()
68 numa_distance = (void *)1LU; in numa_alloc_distance()
77 numa_distance[i * cnt + j] = i == j ? in numa_alloc_distance()
105 if (!numa_distance && numa_alloc_distance() < 0) in numa_set_distance()
122 numa_distance[from * numa_distance_cnt + to] = distance; in numa_set_distance()
129 return numa_distance[from * numa_distance_cnt + to]; in __node_distance()