Lines Matching full:lid
140 printf("%6d \"%s\"\n", cl_ntoh16(node_record->lid), name); in print_node_desc()
169 cl_ntoh16(nr->lid), cl_ntoh16(nr->resv), in dump_node_record()
191 printf("%u\n", cl_ntoh16(node_record->lid)); in print_node_record()
259 "\t\tRedirect LID.............%u\n" in dump_class_port_info()
265 "\t\tTrap LID.................%u\n" in dump_class_port_info()
292 cl_ntoh16(p_pir->lid), p_pir->port_num, in dump_portinfo_record()
308 cl_ntoh16(pir->lid), pir->port_num, pir->options); in dump_one_portinfo_record()
514 cl_ntoh16(p_smr->lid), in dump_sm_info_record()
541 cl_ntoh16(p_sir->lid), in dump_switch_info_record()
667 cl_ntoh16(slvl->lid), slvl->in_port_num, slvl->out_port_num, in dump_one_slvl_record()
687 cl_ntoh16(vlarb->lid), vlarb->port_num, vlarb->block_num); in dump_one_vlarb_record()
715 cl_ntoh16(pktr->lid), pktr->port_num, pktr->block_num); in dump_one_pkey_tbl_record()
734 "\t\tLFT:\n\t\tLID\tPort Number\n", cl_ntoh16(lftr->lid), block); in dump_one_lft_record()
754 cl_ntoh16(gir->lid), gir->block_num, in dump_one_guidinfo_record()
779 cl_ntoh16(mftr->lid), position, block); in dump_one_mft_record()
866 * return the lid from the node descriptor (name) supplied
868 static int get_lid_from_name(struct sa_handle * h, const char *name, uint16_t * lid) in get_lid_from_name() argument
886 *lid = cl_ntoh16(node_record->lid); in get_lid_from_name()
904 fprintf(stderr, "Failed to find lid for \"%s\": %s\n", in get_lid()
913 fprintf(stderr, "Invalid lid specified: \"%s\"\n", name); in get_lid()
933 char *str, int *lid, int *port1, int *port2) in parse_lid_and_ports() argument
945 if (lid) in parse_lid_and_ports()
946 *lid = get_lid(h, str); in parse_lid_and_ports()
998 printf(" LID \"name\"\n"); in print_node_records()
1007 if (requested_lid == cl_ntoh16(node_record->lid)) in print_node_records()
1181 int lid = 0; in query_node_records() local
1184 parse_lid_and_ports(h, argv[0], &lid, NULL, NULL); in query_node_records()
1187 CHECK_AND_SET_VAL(lid, 16, 0, nr.lid, NR, LID); in query_node_records()
1199 int lid = 0, port = -1, options = -1; in query_portinfo_records() local
1202 parse_lid_and_ports(h, argv[0], &lid, &port, &options); in query_portinfo_records()
1205 CHECK_AND_SET_VAL(lid, 16, 0, pir.lid, PIR, LID); in query_portinfo_records()
1260 int lid = 0; in query_sm_info_records() local
1263 parse_lid_and_ports(h, argv[0], &lid, NULL, NULL); in query_sm_info_records()
1266 CHECK_AND_SET_VAL(lid, 16, 0, smir.lid, SMIR, LID); in query_sm_info_records()
1279 int lid = 0; in query_switchinfo_records() local
1282 parse_lid_and_ports(h, argv[0], &lid, NULL, NULL); in query_switchinfo_records()
1285 CHECK_AND_SET_VAL(lid, 16, 0, swir.lid, SWIR, LID); in query_switchinfo_records()
1340 int lid = 0, in_port = -1, out_port = -1; in query_sl2vl_records() local
1343 parse_lid_and_ports(h, argv[0], &lid, &in_port, &out_port); in query_sl2vl_records()
1346 CHECK_AND_SET_VAL(lid, 16, 0, slvl.lid, SLVL, LID); in query_sl2vl_records()
1360 int lid = 0, port = -1, block = -1; in query_vlarb_records() local
1363 parse_lid_and_ports(h, argv[0], &lid, &port, &block); in query_vlarb_records()
1366 CHECK_AND_SET_VAL(lid, 16, 0, vlarb.lid, VLA, LID); in query_vlarb_records()
1381 int lid = 0, port = -1, block = -1; in query_pkey_tbl_records() local
1384 parse_lid_and_ports(h, argv[0], &lid, &port, &block); in query_pkey_tbl_records()
1387 CHECK_AND_SET_VAL(lid, 16, 0, pktr.lid, PKEY, LID); in query_pkey_tbl_records()
1401 int lid = 0, block = -1; in query_lft_records() local
1404 parse_lid_and_ports(h, argv[0], &lid, &block, NULL); in query_lft_records()
1407 CHECK_AND_SET_VAL(lid, 16, 0, lftr.lid, LFTR, LID); in query_lft_records()
1419 int lid = 0, block = -1; in query_guidinfo_records() local
1422 parse_lid_and_ports(h, argv[0], &lid, &block, NULL); in query_guidinfo_records()
1425 CHECK_AND_SET_VAL(lid, 16, 0, gir.lid, GIR, LID); in query_guidinfo_records()
1438 int lid = 0, block = -1, position = -1; in query_mft_records() local
1442 parse_lid_and_ports(h, argv[0], &lid, &position, &block); in query_mft_records()
1445 CHECK_AND_SET_VAL(lid, 16, 0, mftr.lid, MFTR, LID); in query_mft_records()
1482 "[lid]", query_node_records},
1484 "[[lid]/[port]/[options]]", query_portinfo_records},
1486 "[[lid]/[in_port]/[out_port]]", query_sl2vl_records},
1488 "[[lid]/[port]/[block]]", query_pkey_tbl_records},
1490 "[[lid]/[port]/[block]]", query_vlarb_records},
1502 "[[lid]/[block]]", query_lft_records},
1506 "[[lid]/[block]]", query_guidinfo_records},
1508 "[lid]", query_switchinfo_records},
1510 "[lid]", query_sm_info_records},
1755 "return the unique Lid of the name specified"}, in main()
1757 {"O", 'O', 0, NULL, "return name for the Lid specified"}, in main()
1785 {"slid", 5, 1, "<lid>", "Source LID (PathRecord)"}, in main()
1786 {"dlid", 6, 1, "<lid>", "Destination LID (PathRecord)"}, in main()
1787 {"mlid", 7, 1, "<lid>", "Multicast LID (MCMemberRecord)"}, in main()
1832 n = sprintf(usage_args, "[query-name] [<name> | <lid> | <guid>]\n" in main()
1883 fprintf(stderr, "ERROR: lid not specified\n"); in main()
1892 /* Note: lid cannot be 0; see infiniband spec 4.1.3 */ in main()
1894 fprintf(stderr, "ERROR: lid invalid\n"); in main()
1917 if ((status = sm_pr_query(h, &gid, portid.lid, in main()
1918 h->dport.lid)) > 0) { in main()