Lines Matching defs:dist
106 int dist;
461 static int new_node(Node * node, Port * port, ib_portid_t * path, int dist)
464 node->dist = -1; /* tag as target */
474 VERBOSE("insert dist %d node %p port %d lid %d", dist, node,
479 node->dist = dist;
481 node->dnext = nodesdist[dist];
482 nodesdist[dist] = node;
543 int dist = 0, leafport = 0;
571 for (dist = 0; dist < MAXHOPS; dist++) {
573 for (node = nodesdist[dist]; node; node = node->dnext) {
577 VERBOSE("dist %d node %p", dist, node);
584 if (dist)
596 if (dist == 1 && leafport)
610 if (dist == 0 && leafport) {
660 dist + 1)) > 0)
702 if (!node->dist) {
712 if (node->dist) {
728 if (node->dist < 0)