Lines Matching defs:node

176 static void print_port_config(ibnd_node_t * node, int portnum)
187 ibnd_port_t *port = node->ports[portnum];
197 if (port->node->type == IB_NODE_SWITCH)
198 info = (uint8_t *)&port->node->ports[0]->info;
252 port->remoteport->node->guid,
253 port->remoteport->node->
260 base_lid : port->remoteport->node->smalid,
273 if (node->type == IB_NODE_SWITCH)
274 printf(" Link info: %6d", node->smalid);
397 ibnd_node_t * node, uint8_t * pc, int portnum,
485 if (node->type == IB_NODE_SWITCH)
487 node->ports[0]->guid, node_name);
495 if (node->type == IB_NODE_SWITCH)
497 node->ports[0]->guid, str);
500 node->ports[portnum]->guid, portnum, str);
502 print_port_config(node, portnum);
534 char *node_name, ibnd_node_t * node, int portnum,
572 printf("Data Counters for 0x%" PRIx64 " \"%s\"\n", node->guid,
578 printf(" GUID 0x%" PRIx64 " port ALL:", node->guid);
581 node->guid, portnum);
599 print_port_config(node, portnum);
605 char *node_name, ibnd_node_t * node, int portnum,
641 return (print_results(portid, node_name, node, pc, portnum,
733 void print_node(ibnd_node_t * node, void *user_data)
744 switch (node->type) {
759 if (node->type == IB_NODE_SWITCH && node->smaenhsp0)
762 node_name = remap_node_name(node_name_map, node->guid, node->nodedesc);
764 if (node->type == IB_NODE_SWITCH) {
765 ib_portid_set(&portid, node->smalid, 0, 0);
768 for (p = 1; p <= node->numports; p++) {
769 if (node->ports[p]) {
771 node->ports[p]->base_lid,
783 for (p = startport; p <= node->numports; p++) {
784 if (node->ports[p]) {
785 if (node->type == IB_NODE_SWITCH)
786 ib_portid_set(&portid, node->smalid, 0, 0);
788 ib_portid_set(&portid, node->ports[p]->base_lid,
791 print_data_cnts(&portid, cap_mask, node_name, node, p,
800 if (!print_errors(&portid, cap_mask, node_name, node,
802 summary.ports_checked += node->numports;
806 for (p = startport; p <= node->numports; p++) {
807 if (node->ports[p]) {
808 if (node->type == IB_NODE_SWITCH)
809 ib_portid_set(&portid, node->smalid, 0, 0);
811 ib_portid_set(&portid, node->ports[p]->base_lid,
814 print_errors(&portid, cap_mask, node_name, node, p,
948 {"node-name-map", 1, 1, "<file>", "node name map file"},
950 "report the node containing the port specified by <port_guid>"},
954 "report the node containing the port specified by <dr_path>"},
1050 IBWARN("Single node discover failed;"
1084 print_node(port->node, NULL);
1086 fprintf(stderr, "Failed to find node: %s\n",
1104 print_node(port->node, NULL);
1106 fprintf(stderr, "Failed to find node: %s\n", dr_path);