Lines Matching full:distance
347 * numa_reset_distance - Reset NUMA distance table
382 pr_warn("Warning: can't allocate distance table!\n"); in numa_alloc_distance()
396 printk(KERN_DEBUG "NUMA: Initialized distance table, cnt=%d\n", cnt); in numa_alloc_distance()
402 * numa_set_distance - Set NUMA distance from one NUMA to another
403 * @from: the 'from' node to set distance
404 * @to: the 'to' node to set distance
405 * @distance: NUMA distance
407 * Set the distance from node @from to @to to @distance. If distance table
412 * calls are ignored until the distance table is reset with
416 * at the time of table creation or @distance doesn't make sense, the call
420 void __init numa_set_distance(int from, int to, int distance) in numa_set_distance() argument
427 pr_warn_once("Warning: node ids are out of bound, from=%d to=%d distance=%d\n", in numa_set_distance()
428 from, to, distance); in numa_set_distance()
432 if ((u8)distance != distance || in numa_set_distance()
433 (from == to && distance != LOCAL_DISTANCE)) { in numa_set_distance()
434 pr_warn_once("Warning: invalid distance parameter, from=%d to=%d distance=%d\n", in numa_set_distance()
435 from, to, distance); in numa_set_distance()
439 numa_distance[from * numa_distance_cnt + to] = distance; in numa_set_distance()