Lines Matching defs:numa_distance
24 static u8 *numa_distance;
259 if (!numa_distance)
263 sizeof(numa_distance[0]);
265 memblock_free(numa_distance, size);
267 numa_distance = NULL;
278 size = nr_node_ids * nr_node_ids * sizeof(numa_distance[0]);
279 numa_distance = memblock_alloc(size, PAGE_SIZE);
280 if (WARN_ON(!numa_distance))
288 numa_distance[i * numa_distance_cnt + j] = i == j ?
310 if (!numa_distance) {
329 numa_distance[from * numa_distance_cnt + to] = distance;
339 return numa_distance[from * numa_distance_cnt + to];