Lines Matching refs:portnum
145 get_port(Port *port, int portnum, ib_portid_t *portid)
150 port->portnum = portnum;
152 if (!smp_query(pi, portid, IB_ATTR_PORT_INFO, portnum, timeout))
156 DEBUG("portid %s portnum %d: lid %d state %d physstate %d %s %s",
157 portid2str(portid), portnum, port->lid, port->state, port->physstate, get_linkwidth_str(port->linkwidth), get_linkspeed_str(port->linkspeed));
182 port->portnum = node->localport;
231 fprintf(f, "%s -> %s %s {%016" PRIx64 "} portnum %d lid %d-%d\"%s\"\n",
234 node->nodeguid, node->type == SWITCH_NODE ? 0 : port->portnum,
289 if (old->portnum == port->portnum)
316 node->nodeguid, node, port, port->portnum,
317 remotenode->nodeguid, remotenode, remoteport, remoteport->portnum);
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);
341 if (extend_dpath(&path->drpath, portnum) < 0)
515 fprintf(f, " slot %d", node->ports->remoteport->portnum);
621 DEBUG("port %p:%d remoteport %p", port, port->portnum, port->remoteport);
622 fprintf(f, "[%d]", port->portnum);
635 port->remoteport->portnum,
646 fprintf(f, " slot %d", port->portnum);
660 fprintf(f, "[%d]", port->portnum);
665 port->remoteport->portnum);
901 port->portnum,
911 port->remoteport->portnum,