Lines Matching full:distance

69  * Wrapper that returns node distance from ms->numa_state->nodes
70 * after handling edge cases where the distance might be absent.
75 int ret = numa_info[src].distance[dst]; in get_numa_distance()
84 * the distance will be absent (zero). Return local/remote in get_numa_distance()
85 * distance in this case. in get_numa_distance()
114 * (local distance), 20, 40, 80 and 160, and return the equivalent
116 * - local distance (10) returns numa_level = 0x4, meaning there is
117 * no rounding for local distance
128 static uint8_t spapr_numa_get_numa_level(uint8_t distance) in spapr_numa_get_numa_level() argument
130 if (distance == 10) { in spapr_numa_get_numa_level()
132 } else if (distance > 11 && distance <= 30) { in spapr_numa_get_numa_level()
134 } else if (distance > 31 && distance <= 60) { in spapr_numa_get_numa_level()
136 } else if (distance > 61 && distance <= 120) { in spapr_numa_get_numa_level()
166 * - get the distance D between them in spapr_numa_define_FORM1_domains()
169 * numa_ids, and we're calculating the distance in node_id in spapr_numa_define_FORM1_domains()
182 uint8_t distance = get_numa_distance(ms, src, dst); in spapr_numa_define_FORM1_domains() local
183 uint8_t n_level = spapr_numa_get_numa_level(distance); in spapr_numa_define_FORM1_domains()
187 * n_level = 0 means that the distance is greater than our last in spapr_numa_define_FORM1_domains()
191 * The Linux kernel will assume that the distance between src and in spapr_numa_define_FORM1_domains()
192 * dst, in this case of no match, is 10 (local distance) doubled in spapr_numa_define_FORM1_domains()
296 * i.e. no domain definition based on NUMA distance input. in spapr_numa_FORM1_affinity_init()
514 * ibm,numa-distance-table: contains all node distances. First in spapr_numa_FORM2_write_rtas_tables()
537 _FDT(fdt_setprop(fdt, rtas, "ibm,numa-distance-table", in spapr_numa_FORM2_write_rtas_tables()
560 * to retrieve all other attributes of the node (distance, in spapr_numa_FORM2_write_rtas_dt()