Lines Matching refs:portid
52 static int ib_resolve_addr(ib_portid_t * portid, int portnum, int show_lid, in ib_resolve_addr() argument
62 if (!smp_query_via(nodeinfo, portid, IB_ATTR_NODE_INFO, 0, 0, srcport)) in ib_resolve_addr()
65 if (!smp_query_via(portinfo, portid, IB_ATTR_PORT_INFO, portnum, 0, in ib_resolve_addr()
69 mad_decode_field(portinfo, IB_PORT_LID_F, &portid->lid); in ib_resolve_addr()
83 printf("LID start 0x%x end 0x%x", portid->lid, in ib_resolve_addr()
84 portid->lid + (1 << lmc) - 1); in ib_resolve_addr()
86 printf("LID start %u end %u", portid->lid, in ib_resolve_addr()
87 portid->lid + (1 << lmc) - 1); in ib_resolve_addr()
116 ib_portid_t portid = { 0 }; in main() local
155 if (resolve_portid_str(ibd_ca, ibd_ca_port, &portid, argv[0], in main()
159 if (resolve_self(ibd_ca, ibd_ca_port, &portid, &port, NULL) < 0) in main()
163 if (ib_resolve_addr(&portid, port, show_lid, show_gid) < 0) in main()