/freebsd-11-stable/contrib/ofed/libibmad/ |
H A D | register.c | 107 struct ibmad_port *srcport) 111 if (!srcport) 114 agent = mad_register_port_client(mad_rpc_portid(srcport), mgmt, 119 srcport->class_agents[mgmt] = agent; 132 struct ibmad_port *srcport) 144 if (!srcport) 147 if (srcport->class_agents[mgmt] >= 0) { 149 mgmt, srcport->class_agents[mgmt]); 162 umad_register_oui(srcport->port_id, mgmt, rmpp_version, 169 umad_register(srcport 106 mad_register_client_via(int mgmt, uint8_t rmpp_version, struct ibmad_port *srcport) argument 130 mad_register_server_via(int mgmt, uint8_t rmpp_version, long method_mask[], uint32_t class_oui, struct ibmad_port *srcport) argument [all...] |
H A D | smp.c | 50 void smp_mkey_set(struct ibmad_port *srcport, uint64_t mkey) argument 52 srcport->smp_mkey = mkey; 55 uint64_t smp_mkey_get(const struct ibmad_port *srcport) argument 57 return srcport->smp_mkey; 62 const struct ibmad_port *srcport) 81 rpc.mkey = srcport->smp_mkey; 86 res = mad_rpc(srcport, &rpc, portid, data, data); 94 const struct ibmad_port *srcport) 97 srcport); 108 int *rstatus, const struct ibmad_port * srcport) 60 smp_set_status_via(void *data, ib_portid_t * portid, unsigned attrid, unsigned mod, unsigned timeout, int *rstatus, const struct ibmad_port *srcport) argument 92 smp_set_via(void *data, ib_portid_t * portid, unsigned attrid, unsigned mod, unsigned timeout, const struct ibmad_port *srcport) argument 106 smp_query_status_via(void *rcvbuf, ib_portid_t * portid, unsigned attrid, unsigned mod, unsigned timeout, int *rstatus, const struct ibmad_port * srcport) argument 138 smp_query_via(void *rcvbuf, ib_portid_t * portid, unsigned attrid, unsigned mod, unsigned timeout, const struct ibmad_port * srcport) argument [all...] |
H A D | resolve.c | 53 const struct ibmad_port *srcport) 60 ret = umad_get_port(srcport->ca_name, srcport->portnum, &port); 82 const struct ibmad_port *srcport) 91 if (ib_resolve_smlid_via(sm_id, timeout, srcport) < 0) 96 ib_path_query_via(srcport, gid, gid, sm_id, buf)) < 0) 104 const struct ibmad_port *srcport) 116 if (ib_resolve_smlid_via(sm_id, timeout, srcport) < 0) 120 if (umad_get_port(srcport->ca_name, srcport 52 ib_resolve_smlid_via(ib_portid_t * sm_id, int timeout, const struct ibmad_port *srcport) argument 80 ib_resolve_gid_via(ib_portid_t * portid, ibmad_gid_t gid, ib_portid_t * sm_id, int timeout, const struct ibmad_port *srcport) argument 102 ib_resolve_guid_via(ib_portid_t * portid, uint64_t * guid, ib_portid_t * sm_id, int timeout, const struct ibmad_port *srcport) argument 142 ib_resolve_portid_str_via(ib_portid_t * portid, char *addr_str, enum MAD_DEST dest_type, ib_portid_t * sm_id, const struct ibmad_port *srcport) argument 218 ib_resolve_self_via(ib_portid_t * portid, int *portnum, ibmad_gid_t * gid, const struct ibmad_port *srcport) argument [all...] |
H A D | serv.c | 58 void *data, struct ibmad_port *srcport) 76 if (umad_send(srcport->port_id, srcport->class_agents[rpc->mgtclass & 0xff], 77 umad, IB_MAD_SIZE, mad_get_timeout(srcport, rpc->timeout), 92 struct ibmad_port *srcport) 166 (srcport->port_id, srcport->class_agents[rpc.mgtclass], umad, 167 IB_MAD_SIZE, mad_get_timeout(srcport, rpc.timeout), 0) < 0) { 180 void *mad_receive_via(void *umad, int timeout, struct ibmad_port *srcport) argument 186 if ((agent = umad_recv(srcport 57 mad_send_via(ib_rpc_t * rpc, ib_portid_t * dport, ib_rmpp_hdr_t * rmpp, void *data, struct ibmad_port *srcport) argument 91 mad_respond_via(void *umad, ib_portid_t * portid, uint32_t rstatus, struct ibmad_port *srcport) argument [all...] |
H A D | vendor.c | 65 struct ibmad_port * srcport) 106 p_ret = mad_rpc_rmpp(srcport, rpcold, portid, 0, data); /* FIXME: no RMPP for now */ 111 return mad_send_via(rpcold, portid, 0, data, srcport) < 0 ? 0 : data; /* FIXME: no RMPP for now */ 63 ib_vendor_call_via(void *data, ib_portid_t * portid, ib_vendor_call_t * call, struct ibmad_port * srcport) argument
|
H A D | bm.c | 52 struct ibmad_port * srcport) 96 if (mad_rpc(srcport, &rpc, portid, &bm_data, &bm_data)) 101 if (mad_send_via(&rpc, portid, 0, &bm_data, srcport) < 0) 51 bm_call_via(void *data, ib_portid_t * portid, ib_bm_call_t * call, struct ibmad_port * srcport) argument
|
H A D | gs.c | 52 const struct ibmad_port * srcport) 82 p_ret = mad_rpc(srcport, rpcold, dest, rcvbuf, rcvbuf); 89 unsigned id, const struct ibmad_port * srcport) 130 p_ret = mad_rpc(srcport, rpcold, dest, rcvbuf, rcvbuf); 50 pma_query_via(void *rcvbuf, ib_portid_t * dest, int port, unsigned timeout, unsigned id, const struct ibmad_port * srcport) argument 87 performance_reset_via(void *rcvbuf, ib_portid_t * dest, int port, unsigned mask, unsigned timeout, unsigned id, const struct ibmad_port * srcport) argument
|
H A D | cc.c | 51 int *rstatus, const struct ibmad_port * srcport, 77 res = mad_rpc(srcport, (ib_rpc_t *)&rpc, portid, rcvbuf, rcvbuf); 86 int *rstatus, const struct ibmad_port * srcport, 112 res = mad_rpc(srcport, (ib_rpc_t *)&rpc, portid, payload, rcvbuf); 49 cc_query_status_via(void *rcvbuf, ib_portid_t * portid, unsigned attrid, unsigned mod, unsigned timeout, int *rstatus, const struct ibmad_port * srcport, uint64_t cckey) argument 84 cc_config_status_via(void *payload, void *rcvbuf, ib_portid_t * portid, unsigned attrid, unsigned mod, unsigned timeout, int *rstatus, const struct ibmad_port * srcport, uint64_t cckey) argument
|
H A D | sa.c | 116 int ib_path_query_via(const struct ibmad_port *srcport, ibmad_gid_t srcgid, argument 134 p = sa_rpc_call(srcport, buf, sm_id, &sa, 0); 169 int ib_node_query_via(const struct ibmad_port *srcport, uint64_t guid, argument 185 p = sa_rpc_call(srcport, buf, sm_id, &sa, 0);
|
H A D | mad.h | 1588 MAD_EXPORT void mad_rpc_close_port(struct ibmad_port *srcport); 1595 MAD_EXPORT void *mad_rpc(const struct ibmad_port *srcport, ib_rpc_t * rpc, 1598 MAD_EXPORT void *mad_rpc_rmpp(const struct ibmad_port *srcport, ib_rpc_t * rpc, 1601 MAD_EXPORT int mad_rpc_portid(struct ibmad_port *srcport); 1604 MAD_EXPORT int mad_rpc_class_agent(struct ibmad_port *srcport, int cls); 1606 MAD_EXPORT int mad_get_timeout(const struct ibmad_port *srcport, 1608 MAD_EXPORT int mad_get_retries(const struct ibmad_port *srcport); 1619 struct ibmad_port *srcport); 1623 struct ibmad_port *srcport); 1636 struct ibmad_port *srcport); [all...] |
H A D | mad.c | 75 int mad_get_timeout(const struct ibmad_port *srcport, int override_ms) argument 78 srcport->timeout ? srcport->timeout : madrpc_timeout); 81 int mad_get_retries(const struct ibmad_port *srcport) argument 83 return (srcport->retries ? srcport->retries : madrpc_retries);
|
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/ |
H A D | sminfo.c | 52 struct ibmad_port *srcport; variable in typeref:struct:ibmad_port 121 srcport = mad_rpc_open_port(ibd_ca, ibd_ca_port, mgmt_classes, 3); 122 if (!srcport) 125 smp_mkey_set(srcport, ibd_mkey); 129 ibd_dest_type, 0, srcport) < 0) 144 ibd_timeout, srcport))) 147 ibd_timeout, srcport))) 160 mad_rpc_close_port(srcport);
|
H A D | ibaddr.c | 50 struct ibmad_port *srcport; variable in typeref:struct:ibmad_port 62 if (!smp_query_via(nodeinfo, portid, IB_ATTR_NODE_INFO, 0, 0, srcport)) 66 srcport)) 148 srcport = mad_rpc_open_port(ibd_ca, ibd_ca_port, mgmt_classes, 3); 149 if (!srcport) 152 smp_mkey_set(srcport, ibd_mkey); 156 ibd_dest_type, ibd_sm_id, srcport) < 0) 166 mad_rpc_close_port(srcport);
|
H A D | vendstat.c | 62 struct ibmad_port *srcport; variable in typeref:struct:ibmad_port 178 static int do_vendor(ib_portid_t *portid, struct ibmad_port *srcport, argument 191 if (!ib_vendor_call_via(data, portid, &call, srcport)) { 211 if (do_vendor(portid, srcport, IB_MLX_VENDOR_CLASS, 234 if (do_vendor(portid, srcport, IB_MLX_VENDOR_CLASS, IB_MAD_METHOD_GET, 274 if (do_vendor(portid, srcport, IB_MLX_VENDOR_CLASS, IB_MAD_METHOD_SET, 282 if (do_vendor(portid, srcport, IB_MLX_VENDOR_CLASS, IB_MAD_METHOD_GET, 395 srcport = mad_rpc_open_port(ibd_ca, ibd_ca_port, mgmt_classes, 2); 396 if (!srcport) 401 mad_rpc_close_port(srcport); [all...] |
H A D | smpquery.c | 55 struct ibmad_port *srcport; variable in typeref:struct:ibmad_port 88 if (!smp_query_via(data, dest, IB_ATTR_NODE_INFO, 0, 0, srcport)) 94 if (!smp_query_via(nd, dest, IB_ATTR_NODE_DESC, 0, 0, srcport)) 118 if (!smp_query_via(data, dest, IB_ATTR_NODE_INFO, 0, 0, srcport)) 136 if (!is_port_info_extended_supported(dest, portnum, srcport)) 140 srcport)) 160 if (!smp_query_via(data, dest, IB_ATTR_PORT_INFO, portnum, 0, srcport)) 177 if (!smp_query_via(data, dest, IB_ATTR_MLNX_EXT_PORT_INFO, portnum, 0, srcport)) 191 if (!smp_query_via(data, dest, IB_ATTR_SWITCH_INFO, 0, 0, srcport)) 213 if (!smp_query_via(data, dest, IB_ATTR_NODE_INFO, 0, 0, srcport)) [all...] |
H A D | ibccquery.c | 54 struct ibmad_port *srcport; variable in typeref:struct:ibmad_port 91 0, 0, NULL, srcport, cckey)) 106 0, 0, NULL, srcport, cckey)) 121 0, 0, NULL, srcport, cckey)) 138 0, 0, NULL, srcport, cckey)) 192 0, 0, NULL, srcport, cckey)) 213 if (!smp_query_via(data, dest, IB_ATTR_NODE_INFO, 0, 0, srcport)) 230 portnum / 32, 0, NULL, srcport, cckey)) 247 i, 0, NULL, srcport, cckey)) 270 0, 0, NULL, srcport, ccke [all...] |
H A D | ibmirror.c | 83 struct ibmad_port *srcport; variable in typeref:struct:ibmad_port 153 if (!smp_set_via(buf, portid, ATTRID_PM_ROUTE, 0, 0, srcport)) 159 if (!smp_query_via(buf, portid, ATTRID_PM_ROUTE, 0, 0, srcport)) 188 if (!smp_set_via(buf, portid, ATTRID_PM_ROUTE, 0, 0, srcport)) 203 if (!smp_set_via(buf, portid, ATTRID_PM_PORTS, 0, 0, srcport)) 209 if (!smp_query_via(buf, portid, ATTRID_PM_PORTS, 0, 0, srcport)) 227 if (!smp_set_via(buf, portid, ATTRID_PM_PORTS, 0, 0, srcport)) 244 if (!smp_query_via(buf, portid, IB_ATTR_LINEARFORWTBL, block, 0, srcport)) 264 if (ib_resolve_self_via(&selfportid, &selfport, 0, srcport) < 0) 268 if (!smp_query_via(buf, &peerportid, IB_ATTR_PORT_INFO, 0, 0, srcport)) [all...] |
H A D | ibping.c | 51 struct ibmad_port *srcport; variable in typeref:struct:ibmad_port 87 while ((umad = mad_receive_via(0, -1, srcport))) { 97 if (mad_respond_via(umad, 0, 0, srcport) < 0) 128 if (!ib_vendor_call_via(data, portid, &call, srcport)) 227 srcport = mad_rpc_open_port(ibd_ca, ibd_ca_port, mgmt_classes, 1); 228 if (!srcport) 232 if (mad_register_server_via(ping_class, 0, 0, oui, srcport) < 0) 243 if (mad_register_client_via(ping_class, 0, srcport) < 0) 250 ibd_dest_type, ibd_sm_id, srcport) < 0) 283 mad_rpc_close_port(srcport); [all...] |
H A D | ibsysstat.c | 53 struct ibmad_port *srcport; variable in typeref:struct:ibmad_port 115 if (umad_send(mad_rpc_portid(srcport), 116 mad_rpc_class_agent(srcport, rpc.mgtclass), umad, size, 184 while ((umad = mad_receive_via(buf, -1, srcport))) { 246 fd = mad_rpc_portid(srcport); 247 agent = mad_rpc_class_agent(srcport, rpc.mgtclass); 332 srcport = mad_rpc_open_port(ibd_ca, ibd_ca_port, mgmt_classes, 3); 333 if (!srcport) 337 if (mad_register_server_via(sysstat_class, 1, 0, oui, srcport) < 349 if (mad_register_client_via(sysstat_class, 1, srcport) < [all...] |
H A D | ibroute.c | 53 struct ibmad_port *srcport; variable in typeref:struct:ibmad_port 69 if (!smp_query_via(ni, portid, IB_ATTR_NODE_INFO, 0, 0, srcport)) { 74 if (!smp_query_via(nd, portid, IB_ATTR_NODE_DESC, 0, 0, srcport)) 85 if (!smp_query_via(sw, portid, IB_ATTR_SWITCH_INFO, 0, 0, srcport)) 221 &status, srcport)) { 295 if (!smp_query_via(nd, &lidport, IB_ATTR_NODE_DESC, 0, 100, srcport) || 296 !smp_query_via(pi, &lidport, IB_ATTR_PORT_INFO, 0, 100, srcport) || 297 !smp_query_via(ni, &lidport, IB_ATTR_NODE_INFO, 0, 100, srcport)) 367 0, &status, srcport)) { 467 srcport [all...] |
H A D | ibccconfig.c | 57 struct ibmad_port *srcport; variable in typeref:struct:ibmad_port 172 0, 0, NULL, srcport, cckey)) 334 0, 0, NULL, srcport, cckey)) 378 if (!smp_query_via(data, dest, IB_ATTR_NODE_INFO, 0, 0, srcport)) 392 portnum / 32, 0, NULL, srcport, cckey)) 418 portnum / 32, 0, NULL, srcport, cckey)) 492 0, 0, NULL, srcport, cckey)) 541 index, 0, NULL, srcport, cckey)) 619 srcport = mad_rpc_open_port(ibd_ca, ibd_ca_port, mgmt_classes, 3); 620 if (!srcport) [all...] |
H A D | ibsendtrap.c | 53 struct ibmad_port *srcport; variable in typeref:struct:ibmad_port 62 if (smp_query_via(data, port, IB_ATTR_NODE_INFO, 0, 0, srcport)) 72 if (smp_query_via(data, port, IB_ATTR_PORT_INFO, 0, 0, srcport)) 207 return mad_send_via(&trap_rpc, &sm_port, NULL, ¬ice, srcport); 269 srcport = mad_rpc_open_port(ibd_ca, ibd_ca_port, mgmt_classes, 2); 270 if (!srcport) 273 smp_mkey_set(srcport, ibd_mkey); 276 mad_rpc_close_port(srcport);
|
H A D | perfquery.c | 53 struct ibmad_port *srcport; variable in typeref:struct:ibmad_port 399 IB_GSI_PORT_COUNTERS, srcport)) 432 IB_GSI_PORT_COUNTERS_EXT, srcport)) 460 IB_GSI_PORT_COUNTERS, srcport)) 464 IB_GSI_PORT_COUNTERS_EXT, srcport)) 486 srcport)) 497 attr, srcport)) 531 const struct ibmad_port * srcport) 563 return mad_rpc(srcport, &rpc, dest, rcvbuf, rcvbuf); 573 if (!is_port_info_extended_supported(portid, port, srcport)) { 529 ext_speeds_reset_via(void *rcvbuf, ib_portid_t * dest, int port, uint64_t mask, unsigned timeout, const struct ibmad_port * srcport) argument [all...] |
/freebsd-11-stable/sys/netinet/ |
H A D | in_rss.h | 40 uint32_t rss_hash_ip4_4tuple(struct in_addr src, u_short srcport,
|
/freebsd-11-stable/sys/netinet6/ |
H A D | in6_rss.h | 40 uint32_t rss_hash_ip6_4tuple(const struct in6_addr *src, u_short srcport,
|