Lines Matching refs:dest
79 static char *node_desc(ib_portid_t * dest, char **argv, int argc)
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))
113 static char *node_info(ib_portid_t * dest, char **argv, int argc)
118 if (!smp_query_via(data, dest, IB_ATTR_NODE_INFO, 0, 0, srcport))
123 printf("# Node info: %s\n%s", portid2str(dest), buf);
127 static char *port_info_extended(ib_portid_t * dest, char **argv, int argc)
136 if (!is_port_info_extended_supported(dest, portnum, srcport))
139 if (!smp_query_via(data, dest, IB_ATTR_PORT_INFO_EXT, portnum, 0,
144 printf("# Port info Extended: %s port %d\n%s", portid2str(dest),
149 static char *port_info(ib_portid_t * dest, char **argv, int argc)
160 if (!smp_query_via(data, dest, IB_ATTR_PORT_INFO, portnum, 0, srcport))
163 printf("# Port info: %s port %d\n", portid2str(dest), orig_portnum);
168 static char *mlnx_ext_port_info(ib_portid_t * dest, char **argv, int argc)
177 if (!smp_query_via(data, dest, IB_ATTR_MLNX_EXT_PORT_INFO, portnum, 0, srcport))
182 printf("# MLNX ext Port info: %s port %d\n%s", portid2str(dest), portnum, buf);
186 static char *switch_info(ib_portid_t * dest, char **argv, int argc)
191 if (!smp_query_via(data, dest, IB_ATTR_SWITCH_INFO, 0, 0, srcport))
196 printf("# Switch info: %s\n%s", portid2str(dest), buf);
200 static char *pkey_table(ib_portid_t * dest, char **argv, int argc)
213 if (!smp_query_via(data, dest, IB_ATTR_NODE_INFO, 0, 0, srcport))
222 if (!smp_query_via(data, dest, IB_ATTR_SWITCH_INFO, 0, 0,
231 if (!smp_query_via(data, dest, IB_ATTR_PKEY_TBL, mod, 0,
252 static char *sl2vl_dump_table_entry(ib_portid_t * dest, int in, int out)
258 if (!smp_query_via(data, dest, IB_ATTR_SLVL_TABLE, portnum, 0, srcport))
267 static char *sl2vl_table(ib_portid_t * dest, char **argv, int argc)
277 if (!smp_query_via(data, dest, IB_ATTR_NODE_INFO, 0, 0, srcport))
285 printf("# SL2VL table: %s\n", portid2str(dest));
292 return sl2vl_dump_table_entry(dest, 0, 0);
295 ret = sl2vl_dump_table_entry(dest, i, portnum);
302 static char *vlarb_dump_table_entry(ib_portid_t * dest, int portnum, int offset,
308 if (!smp_query_via(data, dest, IB_ATTR_VL_ARBITRATION,
316 static char *vlarb_dump_table(ib_portid_t * dest, int portnum,
322 ret = vlarb_dump_table_entry(dest, portnum, offset,
325 ret = vlarb_dump_table_entry(dest, portnum, offset + 1,
330 static char *vlarb_table(ib_portid_t * dest, char **argv, int argc)
342 if (!smp_query_via(data, dest, IB_ATTR_NODE_INFO, 0, 0,
349 if (!smp_query_via(data, dest, IB_ATTR_SWITCH_INFO, 0,
356 portid2str(dest), 0);
363 if (!smp_query_via(data, dest, IB_ATTR_PORT_INFO, portnum, 0, srcport))
370 portid2str(dest), portnum, lowcap, highcap);
373 ret = vlarb_dump_table(dest, portnum, "Low", 1, lowcap);
376 ret = vlarb_dump_table(dest, portnum, "High", 3, highcap);
381 static char *guid_info(ib_portid_t * dest, char **argv, int argc)
390 if (!smp_query_via(data, dest, IB_ATTR_PORT_INFO, 0, 0, srcport))
396 if (!smp_query_via(data, dest, IB_ATTR_GUID_INFO, mod, 0,
458 n = sprintf(usage_args, "<op> <dest dr_path|lid|guid> [op params]\n"