Lines Matching defs:dest
63 typedef char *(op_fn_t)(ib_portid_t *dest, char **argv, int argc);
92 node_desc(ib_portid_t *dest, char **argv, int argc)
101 if (!smp_query(data, dest, IB_ATTR_NODE_INFO, 0, 0))
107 if (!smp_query(nd, dest, IB_ATTR_NODE_DESC, 0, 0))
127 node_info(ib_portid_t *dest, char **argv, int argc)
132 if (!smp_query(data, dest, IB_ATTR_NODE_INFO, 0, 0))
137 printf("# Node info: %s\n%s", portid2str(dest), buf);
142 port_info(ib_portid_t *dest, char **argv, int argc)
151 if (!smp_query(data, dest, IB_ATTR_PORT_INFO, portnum, 0))
156 printf("# Port info: %s port %d\n%s", portid2str(dest), portnum, buf);
161 switch_info(ib_portid_t *dest, char **argv, int argc)
166 if (!smp_query(data, dest, IB_ATTR_SWITCH_INFO, 0, 0))
171 printf("# Switch info: %s\n%s", portid2str(dest), buf);
176 pkey_table(ib_portid_t *dest, char **argv, int argc)
189 if (!smp_query(data, dest, IB_ATTR_NODE_INFO, 0, 0))
198 if (!smp_query(data, dest, IB_ATTR_SWITCH_INFO, 0, 0))
206 if (!smp_query(data, dest, IB_ATTR_PKEY_TBL, mod, 0))
227 static char *sl2vl_dump_table_entry(ib_portid_t *dest, int in, int out)
233 if (!smp_query(data, dest, IB_ATTR_SLVL_TABLE, portnum, 0))
243 sl2vl_table(ib_portid_t *dest, char **argv, int argc)
253 if (!smp_query(data, dest, IB_ATTR_NODE_INFO, 0, 0))
261 printf("# SL2VL table: %s\n", portid2str(dest));
268 return sl2vl_dump_table_entry(dest, 0, 0);
271 ret = sl2vl_dump_table_entry(dest, i, portnum);
278 static char *vlarb_dump_table_entry(ib_portid_t *dest, int portnum, int offset, unsigned cap)
283 if (!smp_query(data, dest, IB_ATTR_VL_ARBITRATION,
291 static char *vlarb_dump_table(ib_portid_t *dest, int portnum,
297 ret = vlarb_dump_table_entry(dest, portnum, offset,
300 ret = vlarb_dump_table_entry(dest, portnum, offset + 1,
306 vlarb_table(ib_portid_t *dest, char **argv, int argc)
318 if (!smp_query(data, dest, IB_ATTR_NODE_INFO, 0, 0))
323 if (!smp_query(data, dest, IB_ATTR_SWITCH_INFO, 0, 0))
328 portid2str(dest), 0);
334 if (!smp_query(data, dest, IB_ATTR_PORT_INFO, portnum, 0))
341 portid2str(dest), portnum, lowcap, highcap);
344 ret = vlarb_dump_table(dest, portnum, "Low", 1, lowcap);
347 ret = vlarb_dump_table(dest, portnum, "High", 3, highcap);
353 guid_info(ib_portid_t *dest, char **argv, int argc)
362 if (!smp_query(data, dest, IB_ATTR_PORT_INFO, 0, 0))
368 if (!smp_query(data, dest, IB_ATTR_GUID_INFO, mod, 0))
408 "-t(imeout) timeout_ms --node-name-map node-name-map] <op> <dest dr_path|lid|guid> [op params]\n",