Lines Matching defs:ca
79 ca_dump(umad_ca_t *ca)
81 if (!ca->node_type)
83 printf("%s '%s'\n", ((uint)ca->node_type <= IB_NODE_MAX ? node_type_str[ca->node_type] : "???"), ca->ca_name);
84 printf("\t%s type: %s\n", ((uint)ca->node_type <= IB_NODE_MAX ? node_type_str[ca->node_type] : "???"),ca->ca_type);
85 printf("\tNumber of ports: %d\n", ca->numports);
86 printf("\tFirmware version: %s\n", ca->fw_ver);
87 printf("\tHardware version: %s\n", ca->hw_ver);
88 printf("\tNode GUID: 0x%016llx\n", (long long unsigned)ntohll(ca->node_guid));
89 printf("\tSystem image GUID: 0x%016llx\n", (long long unsigned)ntohll(ca->system_guid));
140 umad_ca_t ca;
143 if ((r = umad_get_ca(ca_name, &ca)) < 0)
146 if (!ca.node_type)
150 if (portnum > ca.numports || !ca.ports[portnum]) {
152 ((uint)ca.node_type <= IB_NODE_MAX ? node_type_str[ca.node_type] : "???"),
153 ca_name, portnum, ca.numports);
156 printf("%s: '%s'\n", ((uint)ca.node_type <= IB_NODE_MAX ? node_type_str[ca.node_type] : "???"), ca.ca_name);
157 port_dump(ca.ports[portnum], 1);
161 /* print ca header */
162 ca_dump(&ca);
167 for (portnum = 0; portnum <= ca.numports; portnum++)
168 port_dump(ca.ports[portnum], 0);