• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/ofed/infiniband-diags/src/

Lines Matching refs:port

194 	ibnd_port_t *port = node->ports[portnum];
196 if (!port)
199 iwidth = mad_get_field(port->info, 0, IB_PORT_LINK_WIDTH_ACTIVE_F);
200 ispeed = mad_get_field(port->info, 0, IB_PORT_LINK_SPEED_ACTIVE_F);
201 fdr10 = mad_get_field(port->ext_info, 0,
204 if (port->node->type == IB_NODE_SWITCH)
205 info = (uint8_t *)&port->node->ports[0]->info;
207 info = (uint8_t *)&port->info;
210 espeed = mad_get_field(port->info, 0,
214 istate = mad_get_field(port->info, 0, IB_PORT_STATE_F);
215 iphystate = mad_get_field(port->info, 0, IB_PORT_PHYS_STATE_F);
222 /* C14-24.2.1 states that a down port allows for invalid data to be
247 if (port->remoteport) {
250 if (port->remoteport->ext_portnum)
252 port->remoteport->ext_portnum);
256 get_max_msg(width_msg, speed_msg, 256, port);
259 port->remoteport->node->guid,
260 port->remoteport->node->
265 port->remoteport->guid,
266 port->remoteport->base_lid ? port->remoteport->
267 base_lid : port->remoteport->node->smalid,
268 port->remoteport->portnum, ext_port_str, rem_node_name,
275 if (port->ext_portnum)
276 snprintf(ext_port_str, 256, "%d", port->ext_portnum);
283 printf(" Link info: %6d", port->base_lid);
286 port->portnum, ext_port_str, link_str, remote_str);
386 IBWARN("%s query failed on %s, %s port %d", attr_name,
503 printf(" GUID 0x%" PRIx64 " port ALL:%s\n",
506 printf(" GUID 0x%" PRIx64 " port %d:%s\n",
527 IBWARN("classportinfo query failed on %s, %s port %d",
556 IBWARN("IB_GSI_PORT_COUNTERS_EXT query failed on %s, %s port %d",
569 IBWARN("IB_GSI_PORT_COUNTERS query failed on %s, %s port %d",
585 printf(" GUID 0x%" PRIx64 " port ALL:", node->guid);
587 printf(" GUID 0x%" PRIx64 " port %d:",
626 IBWARN("IB_GSI_PORT_COUNTERS query failed on %s, %s port %d",
635 IBWARN("IB_GSI_PORT_COUNTERS_EXT query failed on %s, %s port %d",
653 int port, unsigned mask, unsigned timeout,
659 DEBUG("lid %u port %d mask 0x%x", lid, port, mask);
676 mad_set_field(rcvbuf, 0, IB_PC_EXT_PORT_SELECT_F, port);
691 char *node_name, int port)
708 if (!performance_reset_via(pc, portid, port, mask, ibd_timeout,
710 fprintf(stderr, "Failed to reset errors %s port %d\n", node_name,
711 port);
715 performance_reset_via(pc, portid, port, 0xf, ibd_timeout,
719 performance_reset_via(pc, portid, port, 0x3f, ibd_timeout,
732 if (!reset_pc_ext(pc, portid, port, mask, ibd_timeout,
735 "%s port %d\n", node_name, portid2str(portid),
736 port);
944 int port = 0;
956 {"port-guid", 'G', 1, "<port_guid>",
957 "report the node containing the port specified by <port_guid>"},
961 "report the node containing the port specified by <dr_path>"},
963 {"report-port", 'r', 0, NULL,
964 "report port link information"},
1000 IBEXIT("Failed to open port; %s:%d\n", ibd_ca, ibd_ca_port);
1018 if (resolve_self(ibd_ca, ibd_ca_port, &self_portid, &port, &self_gid.raw) < 0) {
1020 IBEXIT("can't resolve self port %s", argv[0]);
1079 IBEXIT("Failed to reopen port: %s:%d\n",
1089 ibnd_port_t *port = ibnd_find_port_guid(fabric, port_guid);
1090 if (port)
1091 print_node(port->node, NULL);
1096 ibnd_port_t *port;
1106 port = ibnd_find_port_guid(fabric, port_guid);
1107 if (port) {
1109 if(path_record_query(self_gid,port->guid))
1111 print_node(port->node, NULL);