Lines Matching full:distance
84 pr_info("parsing numa-distance-map-v1\n"); in of_numa_parse_distance_map_v1()
86 matrix = of_get_property(map, "distance-matrix", NULL); in of_numa_parse_distance_map_v1()
88 pr_err("No distance-matrix property in distance-map\n"); in of_numa_parse_distance_map_v1()
92 entry_count = of_property_count_u32_elems(map, "distance-matrix"); in of_numa_parse_distance_map_v1()
94 pr_err("Invalid distance-matrix\n"); in of_numa_parse_distance_map_v1()
99 u32 nodea, nodeb, distance; in of_numa_parse_distance_map_v1() local
105 distance = of_read_number(matrix, 1); in of_numa_parse_distance_map_v1()
108 if ((nodea == nodeb && distance != LOCAL_DISTANCE) || in of_numa_parse_distance_map_v1()
109 (nodea != nodeb && distance <= LOCAL_DISTANCE)) { in of_numa_parse_distance_map_v1()
110 pr_err("Invalid distance[node%d -> node%d] = %d\n", in of_numa_parse_distance_map_v1()
111 nodea, nodeb, distance); in of_numa_parse_distance_map_v1()
117 numa_set_distance(nodea, nodeb, distance); in of_numa_parse_distance_map_v1()
119 /* Set default distance of node B->A same as A->B */ in of_numa_parse_distance_map_v1()
121 numa_set_distance(nodeb, nodea, distance); in of_numa_parse_distance_map_v1()
133 "numa-distance-map-v1"); in of_numa_parse_distance_map()