Lines Matching refs:depths
143 * the hop count is the sum of the two biggest child depths plus 2.
150 int depths[2] = { -1, -1 };
161 if (node->ports[i]->max_depth > depths[0]) {
162 depths[1] = depths[0];
163 depths[0] = node->ports[i]->max_depth;
164 } else if (node->ports[i]->max_depth > depths[1])
165 depths[1] = node->ports[i]->max_depth;
168 node->max_depth = depths[0] + 1;
169 node->max_hops = max(max_child_hops, depths[0] + depths[1] + 2);