Lines Matching refs:ca
64 static void ca_dump(umad_ca_t * ca)
66 if (!ca->node_type)
69 ((unsigned)ca->node_type <=
70 IB_NODE_MAX ? node_type_str[ca->node_type] : "???"),
71 ca->ca_name);
73 ((unsigned)ca->node_type <=
74 IB_NODE_MAX ? node_type_str[ca->node_type] : "???"),
75 ca->ca_type);
76 printf("\tNumber of ports: %d\n", ca->numports);
77 printf("\tFirmware version: %s\n", ca->fw_ver);
78 printf("\tHardware version: %s\n", ca->hw_ver);
79 printf("\tNode GUID: 0x%016" PRIx64 "\n", ntohll(ca->node_guid));
81 ntohll(ca->system_guid));
199 umad_ca_t ca;
202 if ((r = umad_get_ca(ca_name, &ca)) < 0)
205 if (!ca.node_type)
209 if (portnum > ca.numports || !ca.ports[portnum]) {
211 ((unsigned)ca.node_type <=
212 IB_NODE_MAX ? node_type_str[ca.node_type] :
213 "???"), ca_name, portnum, ca.numports);
217 ((unsigned)ca.node_type <=
218 IB_NODE_MAX ? node_type_str[ca.node_type] : "???"),
219 ca.ca_name);
220 port_dump(ca.ports[portnum], 1);
224 /* print ca header */
225 ca_dump(&ca);
230 for (portnum = 0; portnum <= ca.numports; portnum++)
231 port_dump(ca.ports[portnum], 0);