Lines Matching full:distance
332 * numa_reset_distance - Reset NUMA distance table
367 pr_warn("Warning: can't allocate distance table!\n"); in numa_alloc_distance()
382 printk(KERN_DEBUG "NUMA: Initialized distance table, cnt=%d\n", cnt); in numa_alloc_distance()
388 * numa_set_distance - Set NUMA distance from one NUMA to another
389 * @from: the 'from' node to set distance
390 * @to: the 'to' node to set distance
391 * @distance: NUMA distance
393 * Set the distance from node @from to @to to @distance. If distance table
398 * calls are ignored until the distance table is reset with
402 * at the time of table creation or @distance doesn't make sense, the call
406 void __init numa_set_distance(int from, int to, int distance) in numa_set_distance() argument
413 pr_warn_once("Warning: node ids are out of bound, from=%d to=%d distance=%d\n", in numa_set_distance()
414 from, to, distance); in numa_set_distance()
418 if ((u8)distance != distance || in numa_set_distance()
419 (from == to && distance != LOCAL_DISTANCE)) { in numa_set_distance()
420 pr_warn_once("Warning: invalid distance parameter, from=%d to=%d distance=%d\n", in numa_set_distance()
421 from, to, distance); in numa_set_distance()
425 numa_distance[from * numa_distance_cnt + to] = distance; in numa_set_distance()