Lines Matching refs:portid
136 static int get_node(Node * node, Port * port, ib_portid_t * portid) in get_node() argument
142 if (!smp_query_via(ni, portid, IB_ATTR_NODE_INFO, 0, timeout, srcport)) in get_node()
146 if (!smp_query_via(nd, portid, IB_ATTR_NODE_DESC, 0, timeout, srcport)) in get_node()
157 if (!smp_query_via(pi, portid, IB_ATTR_PORT_INFO, 0, timeout, srcport)) in get_node()
170 DEBUG("portid %s: got node %" PRIx64 " '%s'", portid2str(portid), in get_node()
175 static int switch_lookup(Switch * sw, ib_portid_t * portid, int lid) in switch_lookup() argument
180 if (!smp_query_via(si, portid, IB_ATTR_SWITCH_INFO, 0, timeout, in switch_lookup()
192 if (!smp_query_via(fdb, portid, IB_ATTR_LINEARFORWTBL, lid / 64, in switch_lookup()
197 portid2str(portid), lid, sw->fdb[lid % 64]); in switch_lookup()
433 static int get_port(Port * port, int portnum, ib_portid_t * portid) in get_port() argument
440 if (!smp_query_via(pi, portid, IB_ATTR_PORT_INFO, portnum, timeout, in get_port()
450 portid2str(portid), portnum, port->lid, port->state, in get_port()
487 static int switch_mclookup(Node * node, ib_portid_t * portid, int mlid, in switch_mclookup() argument
499 if (!smp_query_via(si, portid, IB_ATTR_SWITCH_INFO, 0, timeout, in switch_mclookup()
515 if (!smp_query_via(mdb, portid, IB_ATTR_MULTICASTFORWTBL, in switch_mclookup()
741 static int resolve_lid(ib_portid_t * portid, const void *srcport) in resolve_lid() argument
746 if (!smp_query_via(portinfo, portid, IB_ATTR_PORT_INFO, 0, 0, srcport)) in resolve_lid()
750 ib_portid_set(portid, lid, 0, 0); in resolve_lid()