Searched refs:portid (Results 1 - 25 of 32) sorted by relevance

12

/freebsd-10.1-release/contrib/ofed/management/libibmad/src/
H A Dsmp.c52 smp_set_via(void *data, ib_portid_t *portid, unsigned attrid, unsigned mod, unsigned timeout, const void *srcport) argument
56 DEBUG("attr 0x%x mod 0x%x route %s", attrid, mod, portid2str(portid));
57 if ((portid->lid <= 0) ||
58 (portid->drpath.drslid == 0xffff) ||
59 (portid->drpath.drdlid == 0xffff))
71 portid->sl = 0;
72 portid->qp = 0;
75 return mad_rpc(srcport, &rpc, portid, data, data);
77 return madrpc(&rpc, portid, data, data);
82 smp_set(void *data, ib_portid_t *portid, unsigne argument
88 smp_query_via(void *rcvbuf, ib_portid_t *portid, unsigned attrid, unsigned mod, unsigned timeout, const void *srcport) argument
119 smp_query(void *rcvbuf, ib_portid_t *portid, unsigned attrid, unsigned mod, unsigned timeout) argument
[all...]
H A Dresolve.c77 ib_resolve_guid_via(ib_portid_t *portid, uint64_t *guid, ib_portid_t *sm_id, int timeout, const void *srcport) argument
87 if (*(uint64_t*)&portid->gid == 0)
88 mad_set_field64(portid->gid, 0, IB_GID_PREFIX_F, IB_DEFAULT_SUBN_PREFIX);
90 mad_set_field64(portid->gid, 0, IB_GID_GUID_F, *guid);
92 if ((portid->lid = ib_path_query_via(srcport, portid->gid, portid->gid, sm_id, buf)) < 0)
99 ib_resolve_portid_str_via(ib_portid_t *portid, char *addr_str, int dest_type, ib_portid_t *sm_id, const void *srcport) argument
112 return ib_portid_set(portid, lid, 0, 0);
115 if (str2drpath(&portid
148 ib_resolve_portid_str(ib_portid_t *portid, char *addr_str, int dest_type, ib_portid_t *sm_id) argument
155 ib_resolve_self_via(ib_portid_t *portid, int *portnum, ibmad_gid_t *gid, const void *srcport) argument
183 ib_resolve_self(ib_portid_t *portid, int *portnum, ibmad_gid_t *gid) argument
[all...]
H A Dportid.c54 portid2portnum(ib_portid_t *portid) argument
56 if (portid->lid > 0)
59 if (portid->drpath.cnt == 0)
62 return portid->drpath.p[(portid->drpath.cnt-1)];
66 portid2str(ib_portid_t *portid) argument
71 if (portid->lid > 0) {
72 n += sprintf(buf + n, "Lid %d", portid->lid);
73 if (portid->grh_present) {
75 if (inet_ntop(AF_INET6, portid
[all...]
H A Dvendor.c60 ib_vendor_call(void *data, ib_portid_t *portid, ib_vendor_call_t *call) argument
65 DEBUG("route %s data %p", portid2str(portid), data);
66 if (portid->lid <= 0)
91 portid->qp = 1;
92 if (!portid->qkey)
93 portid->qkey = IB_DEFAULT_QP1_QKEY;
96 return madrpc_rmpp(&rpc, portid, 0, data); /* FIXME: no RMPP for now */
98 return mad_send(&rpc, portid, 0, data) < 0 ? 0 : data; /* FIXME: no RMPP for now */
H A Dserv.c82 mad_respond(void *umad, ib_portid_t *portid, uint32_t rstatus) argument
90 if (!portid) {
101 portid = &rport;
104 DEBUG("dest %s", portid2str(portid));
129 portid->qp = 0;
130 else if (!portid->qp)
131 portid->qp = 1;
133 if (!portid->qkey && portid->qp == 1)
134 portid
[all...]
H A Dsa.c52 sa_rpc_call(const void *ibmad_port, void *rcvbuf, ib_portid_t *portid, argument
59 portid2str(portid));
61 if (portid->lid <= 0) {
76 portid->qp = 1;
77 if (!portid->qkey)
78 portid->qkey = IB_DEFAULT_QP1_QKEY;
80 p = mad_rpc_rmpp(ibmad_port, &rpc, portid, 0/*&sa->rmpp*/, rcvbuf); /* TODO: RMPP */
H A Drpc.c395 sa_call(void *rcvbuf, ib_portid_t *portid, ib_sa_call_t *sa, unsigned timeout) argument
401 return sa_rpc_call(&port, rcvbuf, portid, sa, timeout);
/freebsd-10.1-release/contrib/ofed/management/infiniband-diags/src/
H A Dibaddr.c56 ib_resolve_addr(ib_portid_t *portid, int portnum, int show_lid, int show_gid) argument
65 if (!smp_query(nodeinfo, portid, IB_ATTR_NODE_INFO, 0, 0))
68 if (!smp_query(portinfo, portid, IB_ATTR_PORT_INFO, portnum, 0))
71 mad_decode_field(portinfo, IB_PORT_LID_F, &portid->lid);
85 printf("LID start 0x%x end 0x%x", portid->lid, portid->lid + (1 << lmc) - 1);
87 printf("LID start %d end %d", portid->lid, portid->lid + (1 << lmc) - 1);
120 ib_portid_t portid = {0}; local
207 if (ib_resolve_portid_str(&portid, arg
[all...]
H A Dsminfo.c88 ib_portid_t portid = {0}; local
176 if (ib_resolve_portid_str(&portid, argv[0], dest_type, 0) < 0)
179 if (ib_resolve_smlid(&portid, timeout) < 0)
190 if (!(p = smp_set(sminfo, &portid, IB_ATTR_SMINFO, mod, timeout)))
193 if (!(p = smp_query(sminfo, &portid, IB_ATTR_SMINFO, 0, timeout)))
203 portid.lid, guid, act, prio, state, STATESTR(state));
H A Dibroute.c66 check_switch(ib_portid_t *portid, int *nports, uint64_t *guid, argument
73 if (!smp_query(ni, portid, IB_ATTR_NODE_INFO, 0, 0)) {
78 if (!smp_query(nd, portid, IB_ATTR_NODE_DESC, 0, 0))
89 if (!smp_query(sw, portid, IB_ATTR_SWITCH_INFO, 0, 0))
144 dump_multicast_tables(ib_portid_t *portid, int startlid, int endlid) argument
155 if ((s = check_switch(portid, &nports, &nodeguid, sw, nd)))
177 startlid, endlid, portid2str(portid), nodeguid, clean_nodedesc(nd));
207 if (!smp_query(mft + j, portid, IB_ATTR_MULTICASTFORWTBL, mod, 0))
294 dump_unicast_tables(ib_portid_t *portid, int startlid, int endlid) argument
304 if ((s = check_switch(portid,
386 ib_portid_t portid = {0}; local
[all...]
H A Dibping.c114 ibping(ib_portid_t *portid, int quiet) argument
132 if (!ib_vendor_call(data, portid, &call))
142 data, portid2str(portid), rtt/1000, rtt%1000);
165 static ib_portid_t portid = {0}; variable
174 printf("\n--- %s (%s) ibping statistics ---\n", last_host, portid2str(&portid));
295 IBERROR("ibping to %s: %s", portid2str(&portid), err);
302 if (ib_resolve_portid_str(&portid, argv[0], dest_type, sm_id) < 0)
312 if ((rtt = ibping(&portid, flood)) == ~0ull) {
313 DEBUG("ibping to %s failed", portid2str(&portid));
H A Dperfquery.c215 static void output_aggregate_perfcounters(ib_portid_t *portid) argument
242 printf("# Port counters: %s port %d\n%s", portid2str(portid), ALL_PORTS, buf);
272 static void output_aggregate_perfcounters_ext(ib_portid_t *portid) argument
291 printf("# Port counters: %s port %d\n%s", portid2str(portid), ALL_PORTS, buf);
294 static void dump_perfcounters(int extended, int timeout, uint16_t cap_mask, ib_portid_t *portid, argument
300 if (!port_performance_query(pc, portid, port, timeout))
310 if (!port_performance_ext_query(pc, portid, port, timeout))
319 printf("# Port counters: %s port %d\n%s", portid2str(portid), port, buf);
322 static void reset_counters(int extended, int timeout, int mask, ib_portid_t *portid, int port) argument
325 if (!port_performance_reset(pc, portid, por
338 ib_portid_t portid = {0}; local
[all...]
H A Dibsysstat.c159 ibsystat(ib_portid_t *portid, int attr) argument
174 if (!ib_vendor_call(data, portid, &call))
244 ib_portid_t portid = {0}; local
340 IBERROR("ibssystat to %s: %s", portid2str(&portid), err);
347 if (ib_resolve_portid_str(&portid, argv[0], dest_type, sm_id) < 0)
350 if ((err = ibsystat(&portid, attr)))
351 IBERROR("ibsystat to %s: %s", portid2str(&portid), err);
H A Dvendstat.c134 ib_portid_t portid = {0}; local
220 if (ib_resolve_portid_str(&portid, argv[0], dest_type, sm_id) < 0)
223 if (ib_resolve_self(&portid, &port, 0) < 0)
245 if (!ib_vendor_call(&buf, &portid, &call))
250 if (!ib_vendor_call(&buf, &portid, &call))
282 if (!ib_vendor_call(&buf, &portid, &call))
297 if (!ib_vendor_call(&buf, &portid, &call))
H A Dibportstate.c226 ib_portid_t portid = {0}; local
318 if (ib_resolve_portid_str(&portid, argv[0], dest_type, sm_id) < 0)
340 err = get_node_info(&portid, data);
357 err = get_port_info(&portid, data, portnum, port_op);
374 err = set_port_info(&portid, data, portnum, port_op);
380 err = set_port_info(&portid, data, portnum, port_op);
401 /* Setup portid for peer port */
402 memcpy(&peerportid, &portid, sizeof(peerportid));
H A Dsmpdump.c237 int i, portid, mod = 0, attr; local
311 if ((portid = umad_open_port(dev_name, dev_port)) < 0)
314 if ((mad_agent = umad_register(portid, mgmt_class, 1, 0, 0)) < 0)
331 if (umad_send(portid, mad_agent, umad, length, timeout_ms, 0) < 0)
334 if (umad_recv(portid, umad, &length, -1) != mad_agent)
H A Dibtracert.c120 get_node(Node *node, Port *port, ib_portid_t *portid) argument
125 if (!smp_query(ni, portid, IB_ATTR_NODE_INFO, 0, timeout))
128 if (!smp_query(nd, portid, IB_ATTR_NODE_DESC, 0, timeout))
138 if (!smp_query(pi, portid, IB_ATTR_PORT_INFO, 0, timeout))
151 DEBUG("portid %s: got node %" PRIx64 " '%s'", portid2str(portid), node->nodeguid, node->nodedesc);
156 switch_lookup(Switch *sw, ib_portid_t *portid, int lid) argument
160 if (!smp_query(si, portid, IB_ATTR_SWITCH_INFO, 0, timeout))
169 if (!smp_query(fdb, portid, IB_ATTR_LINEARFORWTBL, lid / 64, timeout))
172 DEBUG("portid
384 get_port(Port *port, int portnum, ib_portid_t *portid) argument
438 switch_mclookup(Node *node, ib_portid_t *portid, int mlid, char *map) argument
676 resolve_lid(ib_portid_t *portid, const void *srcport) argument
[all...]
H A Dsmpquery.c427 ib_portid_t portid = {0}; local
522 if (ib_resolve_portid_str(&portid, argv[1], dest_type, sm_id) < 0)
524 if ((err = fn(&portid, argv+2, argc-2)))
531 if (ib_resolve_portid_str(&portid, concat, dest_type, sm_id) < 0)
533 if ((err = fn(&portid, argv+3, argc-3)))
H A Dibnetdiscover.c145 get_port(Port *port, int portnum, ib_portid_t *portid) argument
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));
164 get_node(Node *node, Port *port, ib_portid_t *portid) argument
171 if (!smp_query(ni, portid, IB_ATTR_NODE_INFO, 0, timeout))
185 if (!smp_query(nd, portid, IB_ATTR_NODE_DESC, 0, timeout))
188 if (!smp_query(pi, portid, IB_ATTR_PORT_INFO, 0, timeout))
199 if (!smp_query(pi, portid, IB_ATTR_PORT_INFO, node->localport, timeout))
203 if (!smp_query(si, portid, IB_ATTR_SWITCH_INF
[all...]
/freebsd-10.1-release/contrib/ofed/management/libibumad/include/infiniband/
H A Dumad.h165 int umad_close_port(int portid);
179 int umad_send(int portid, int agentid, void *umad, int length,
181 int umad_recv(int portid, void *umad, int *length, int timeout_ms);
182 int umad_poll(int portid, int timeout_ms);
183 int umad_get_fd(int portid);
185 int umad_register(int portid, int mgmt_class, int mgmt_version,
187 int umad_register_oui(int portid, int mgmt_class, uint8_t rmpp_version,
189 int umad_unregister(int portid, int agentid);
/freebsd-10.1-release/contrib/ofed/management/libibmad/include/infiniband/
H A Dmad.h192 typedef struct portid { struct
622 /* portid.c */
623 char * portid2str(ib_portid_t *portid);
624 int portid2portnum(ib_portid_t *portid);
629 ib_portid_set(ib_portid_t *portid, int lid, int qp, int qkey) argument
631 portid->lid = lid;
632 portid->qp = qp;
633 portid->qkey = qkey;
634 portid->grh_present = 0;
706 int mad_respond(void *umad, ib_portid_t *portid, uint32_
759 safe_smp_query(void *rcvbuf, ib_portid_t *portid, unsigned attrid, unsigned mod, unsigned timeout) argument
772 safe_smp_set(void *rcvbuf, ib_portid_t *portid, unsigned attrid, unsigned mod, unsigned timeout) argument
795 safe_sa_call(void *rcvbuf, ib_portid_t *portid, ib_sa_call_t *sa, unsigned timeout) argument
[all...]
/freebsd-10.1-release/contrib/ofed/usr.lib/libibmad/
H A DMakefile16 SRCS= dump.c fields.c gs.c mad.c portid.c register.c resolve.c rpc.c sa.c \
/freebsd-10.1-release/sys/sparc64/sparc64/
H A Dupa.c193 uint32_t portid; local
281 if (OF_getprop(node, "portid", &sc->sc_ign, sizeof(sc->sc_ign)) == -1) {
342 * The `upa-portid' properties of the children are used as
344 * The `upa-portid' properties are also used to make up the
348 if (OF_getprop(child, "upa-portid", &portid,
349 sizeof(portid)) == -1) {
351 "could not determine upa-portid of child 0x%lx\n",
355 if (portid > 1) {
357 "upa-portid
539 upa_setup_dinfo(device_t dev, struct upa_softc *sc, phandle_t node, uint32_t portid) argument
[all...]
/freebsd-10.1-release/sys/dev/isp/
H A Disp_ioctl.h117 portid : 24; /* 24 bit Port ID */ member in struct:isp_fc_device
H A Disp.c2234 fcp->portdb[i].handle, fcp->portdb[i].portid);
2266 isp_plogx(ispsoftc_t *isp, int chan, uint16_t handle, uint32_t portid, int flags, int gs) argument
2281 return (isp_port_login(isp, handle, portid));
2283 return (isp_port_logout(isp, handle, portid));
2296 plp->plogx_portlo = portid;
2297 plp->plogx_rspsz_porthi = (portid >> 16) & 0xff;
2411 isp_prt(isp, ISP_LOGERR, "Chan %d PLOGX PortID 0x%06x to N-Port handle 0x%x: %s", chan, portid, handle, msg);
2421 isp_port_login(ispsoftc_t *isp, uint16_t handle, uint32_t portid) argument
2432 mbs.param[2] = portid >> 16;
2433 mbs.param[3] = portid;
2470 isp_port_logout(ispsoftc_t *isp, uint16_t handle, uint32_t portid) argument
3498 uint32_t portid; local
4014 isp_login_device(ispsoftc_t *isp, int chan, uint32_t portid, isp_pdb_t *p, uint16_t *ohp) argument
[all...]

Completed in 143 milliseconds

12