Lines Matching defs:portnum

139 static int get_port_info(ib_portid_t * dest, uint8_t * data, int portnum,
153 if (!smp_query_via(data, dest, IB_ATTR_PORT_INFO, portnum, 0, srcport))
159 static void show_port_info(ib_portid_t * dest, uint8_t * data, int portnum,
219 if (!is_switch || portnum == 0) {
238 printf("# Port info: %s port %d\n%s", portid2str(dest), portnum, buf);
241 static void set_port_info(ib_portid_t * dest, uint8_t * data, int portnum,
246 mod = portnum;
253 show_port_info(dest, data, portnum, espeed_cap, is_switch);
256 static void get_mlnx_ext_port_info(ib_portid_t * dest, uint8_t * data, int portnum)
259 portnum, 0, srcport))
263 static void show_mlnx_ext_port_info(ib_portid_t * dest, uint8_t * data, int portnum)
270 portnum, buf);
273 static void set_mlnx_ext_port_info(ib_portid_t * dest, uint8_t * data, int portnum)
276 portnum, 0, srcport))
280 show_mlnx_ext_port_info(dest, data, portnum);
388 int portnum = 0;
397 char usage_args[] = "<dest dr_path|lid|guid> <portnum> [<op>]\n"
432 portnum = strtol(argv[1], 0, 0);
529 port_args[MKEYPROT].set) && is_switch && portnum != 0)
536 espeed_cap = get_port_info(&portid, data, portnum, is_switch);
537 show_port_info(&portid, data, portnum, espeed_cap, is_switch);
539 get_mlnx_ext_port_info(&portid, data2, portnum);
540 show_mlnx_ext_port_info(&portid, data2, portnum);
611 set_mlnx_ext_port_info(&portid, data2, portnum);
623 set_port_info(&portid, data, portnum, espeed_cap, is_switch);
625 } else if (is_switch && portnum) {
681 peerportid.drpath.p[peerportid.drpath.cnt] = (uint8_t) portnum;