Lines Matching defs:from
153 * numa_remove_memblk_from - Remove one numa_memblk from a numa_meminfo
155 * @mi: numa_meminfo to remove memblk from
157 * Remove @idx'th numa_memblk from @mi by shifting @mi->blk[] and
168 * numa_move_tail_memblk - Move a numa_memblk from one numa_meminfo to another
171 * @src: numa_meminfo to remove memblk from
403 * numa_set_distance - Set NUMA distance from one NUMA to another
404 * @from: the 'from' node to set distance
408 * Set the distance from node @from to @to to @distance. If distance table
416 * If @from or @to is higher than the highest known node or lower than zero
421 void __init numa_set_distance(int from, int to, int distance)
426 if (from >= numa_distance_cnt || to >= numa_distance_cnt ||
427 from < 0 || to < 0) {
428 pr_warn_once("Warning: node ids are out of bound, from=%d to=%d distance=%d\n",
429 from, to, distance);
434 (from == to && distance != LOCAL_DISTANCE)) {
435 pr_warn_once("Warning: invalid distance parameter, from=%d to=%d distance=%d\n",
436 from, to, distance);
440 numa_distance[from * numa_distance_cnt + to] = distance;
443 int __node_distance(int from, int to)
445 if (from >= numa_distance_cnt || to >= numa_distance_cnt)
446 return from == to ? LOCAL_DISTANCE : REMOTE_DISTANCE;
447 return numa_distance[from * numa_distance_cnt + to];
753 * Exclude this node from
794 * Exclude this node from