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