Lines Matching full:distance
341 * numa_reset_distance - Reset NUMA distance table
376 pr_warn("Warning: can't allocate distance table!\n"); in numa_alloc_distance()
391 printk(KERN_DEBUG "NUMA: Initialized distance table, cnt=%d\n", cnt); in numa_alloc_distance()
397 * numa_set_distance - Set NUMA distance from one NUMA to another
398 * @from: the 'from' node to set distance
399 * @to: the 'to' node to set distance
400 * @distance: NUMA distance
402 * Set the distance from node @from to @to to @distance. If distance table
407 * calls are ignored until the distance table is reset with
411 * at the time of table creation or @distance doesn't make sense, the call
415 void __init numa_set_distance(int from, int to, int distance) in numa_set_distance() argument
422 pr_warn_once("Warning: node ids are out of bound, from=%d to=%d distance=%d\n", in numa_set_distance()
423 from, to, distance); in numa_set_distance()
427 if ((u8)distance != distance || in numa_set_distance()
428 (from == to && distance != LOCAL_DISTANCE)) { in numa_set_distance()
429 pr_warn_once("Warning: invalid distance parameter, from=%d to=%d distance=%d\n", in numa_set_distance()
430 from, to, distance); in numa_set_distance()
434 numa_distance[from * numa_distance_cnt + to] = distance; in numa_set_distance()