Lines Matching refs:portid
178 static int do_vendor(ib_portid_t *portid, struct ibmad_port *srcport, in do_vendor() argument
191 if (!ib_vendor_call_via(data, portid, &call, srcport)) { in do_vendor()
198 static int do_config_space_records(ib_portid_t *portid, unsigned set, in do_config_space_records() argument
211 if (do_vendor(portid, srcport, IB_MLX_VENDOR_CLASS, in do_config_space_records()
226 static int counter_groups_info(ib_portid_t * portid, int port) in counter_groups_info() argument
234 if (do_vendor(portid, srcport, IB_MLX_VENDOR_CLASS, IB_MAD_METHOD_GET, in counter_groups_info()
260 static int config_counter_groups(ib_portid_t * portid, int port) in config_counter_groups() argument
274 if (do_vendor(portid, srcport, IB_MLX_VENDOR_CLASS, IB_MAD_METHOD_SET, in config_counter_groups()
282 if (do_vendor(portid, srcport, IB_MLX_VENDOR_CLASS, IB_MAD_METHOD_GET, in config_counter_groups()
356 ib_portid_t portid = { 0 }; in main() local
404 if (resolve_portid_str(ibd_ca, ibd_ca_port, &portid, argv[0], in main()
410 portid.grh_present = 1; in main()
411 memcpy(&portid.gid, &dgid, sizeof(portid.gid)); in main()
414 if (resolve_self(ibd_ca, ibd_ca_port, &portid, &port, 0) < 0) { in main()
421 counter_groups_info(&portid, port); in main()
427 config_counter_groups(&portid, port); in main()
434 do_config_space_records(&portid, 0, &read_cs, in main()
437 do_config_space_records(&portid, 1, &write_cs, in main()
456 if (do_vendor(&portid, srcport, IB_MLX_VENDOR_CLASS, IB_MAD_METHOD_GET, in main()
463 if (do_vendor(&portid, srcport, IB_MLX_VENDOR_CLASS, IB_MAD_METHOD_GET, in main()
519 if (do_vendor(&portid, srcport, IB_MLX_VENDOR_CLASS, in main()
536 if (do_vendor(&portid, srcport, IB_MLX_VENDOR_CLASS, in main()