Lines Matching defs:dist
258 create_node(Node *temp, ib_portid_t *path, int dist)
268 node->dist = dist;
275 dist = MAXHOPS; /* special Ca list */
277 node->dnext = nodesdist[dist];
278 nodesdist[dist] = node;
327 handle_port(Node *node, Port *port, ib_portid_t *path, int portnum, int dist)
337 DEBUG("handle node %p port %p:%d dist %d", node, port, portnum, dist);
354 else if (!(remotenode = create_node(&node_buf, path, dist + 1)))
385 int dist = 0;
412 for (dist = 0; dist < MAXHOPS; dist++) {
414 for (node = nodesdist[dist]; node; node = node->dnext) {
418 DEBUG("dist %d node %p", dist, node);
442 handle_port(node, port, path, i, dist);
690 int i = 0, dist = 0;
753 for (dist = 0; dist <= maxhops_discovered; dist++) {
755 for (node = nodesdist[dist]; node; node = node->dnext) {
795 for (dist = 0; dist <= maxhops_discovered; dist++) {
797 for (node = nodesdist[dist]; node; node = node->dnext) {
799 DEBUG("SWITCH: dist %d node %p", dist, node);
822 for (dist = 0; dist <= maxhops_discovered; dist++) {
824 for (node = nodesdist[dist]; node; node = node->dnext) {
826 DEBUG("SWITCH: dist %d node %p", dist, node);
845 DEBUG("CA: dist %d node %p", dist, node);