Lines Matching refs:numa_distance_cnt
23 static int numa_distance_cnt; variable
262 size = numa_distance_cnt * numa_distance_cnt * in numa_free_distance()
266 numa_distance_cnt = 0; in numa_free_distance()
283 numa_distance_cnt = nr_node_ids; in numa_alloc_distance()
286 for (i = 0; i < numa_distance_cnt; i++) in numa_alloc_distance()
287 for (j = 0; j < numa_distance_cnt; j++) in numa_alloc_distance()
288 numa_distance[i * numa_distance_cnt + j] = i == j ? in numa_alloc_distance()
291 pr_debug("Initialized distance table, cnt=%d\n", numa_distance_cnt); in numa_alloc_distance()
315 if (from >= numa_distance_cnt || to >= numa_distance_cnt || in numa_set_distance()
329 numa_distance[from * numa_distance_cnt + to] = distance; in numa_set_distance()
337 if (from >= numa_distance_cnt || to >= numa_distance_cnt) in __node_distance()
339 return numa_distance[from * numa_distance_cnt + to]; in __node_distance()