Searched refs:portnum (Results 1 - 25 of 41) sorted by relevance

12

/freebsd-10.3-release/contrib/ofed/management/infiniband-diags/scripts/
H A Dibcheckport.in73 portnum=$2
92 text="`eval $IBPATH/smpquery $ca_info portinfo $lid $portnum`"
107 /^PhysLinkState/{ if ($2 != "LinkUp") {err = err "#error: Physical link state is " $2 " lid '$lid' port '$portnum'\n"; exit -1}}
109 /^LinkState/{ if ($2 != "Active") warn = warn "#warn: Logical link state is " $2 " lid '$lid' port '$portnum'\n"}
111 /^LinkWidthActive/{ if ($2 == "1X") warn = warn "#warn: Link configured as 1X lid '$lid' port '$portnum'\n"}
113 /^Lid/{ if ($2 == "0") warn = warn "#warn: Lid is not configured lid '$lid' port '$portnum'\n"}
117 #/^LocalPort/ { if ($2 != '$portnum') {err = err "#error: port " $2 " does not match query ('$portnum')\n"; exit -1}}
136 echo -n "Port check lid $lid port $portnum: "
141 echo -n "Port check lid $lid port $portnum
[all...]
H A Dibcheckportstate.in73 portnum=$2
92 text="`eval $IBPATH/smpquery $ca_info portinfo $lid $portnum`"
107 /^PhysLinkState/{ if ($2 != "LinkUp") {err = err "#error: Physical link state is " $2 " lid '$lid' port '$portnum'\n"; exit -1}}
109 /^LinkState/{ if ($2 != "Active") warn = warn "#warn: Logical link state is " $2 " lid '$lid' port '$portnum'\n"}
128 echo -n "Port check lid $lid port $portnum: "
133 echo -n "Port check lid $lid port $portnum: "
H A Dibdatacounts.in77 portnum=255
84 portnum=$2
87 if [ "$portnum" = "255" ]; then
111 text="`eval $IBPATH/perfquery $ca_info $lid $portnum`"
140 /^PortSelect/ { if ($2 != '$portnum') {err = err "error: lid '$lid' port " $2 " does not match query ('$portnum')\n"; exit -1}}
H A Dibcheckportwidth.in73 portnum=$2
92 text="`eval $IBPATH/smpquery $ca_info portinfo $lid $portnum`"
107 /^LinkWidthActive/{ if ($2 == "1X") warn = warn "#warn: Link configured as 1X lid '$lid' port '$portnum'\n"}
126 echo -n "Port check lid $lid port $portnum: "
131 echo -n "Port check lid $lid port $portnum: "
H A Dibcheckerrs.in122 portnum=255
129 portnum=$2
132 if [ "$portnum" = "255" ]; then
156 text="`eval $IBPATH/perfquery $ca_info $lid $portnum`"
196 /^PortSelect/ { if ($2 != '$portnum') {err = err "error: lid '$lid' port " $2 " does not match query ('$portnum')\n"; exit -1}}
201 warn = warn "#warn: counter " $1 " = " $2 " \t(threshold " th[$1] ") lid '$lid' port '$portnum'\n"
/freebsd-10.3-release/contrib/ofed/management/infiniband-diags/src/
H A Dsmpquery.c146 int portnum = 0; local
149 portnum = strtol(argv[0], 0, 0);
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);
183 int portnum = 0; local
186 portnum = strtol(argv[0], 0, 0);
194 if (portnum > phy_ports)
197 if ((t == IB_NODE_SWITCH) && (portnum != 0)) {
205 mod = i | (portnum << 16);
231 int portnum local
246 int type, num_ports, portnum = 0; local
278 vlarb_dump_table_entry(ib_portid_t *dest, int portnum, int offset, unsigned cap) argument
291 vlarb_dump_table(ib_portid_t *dest, int portnum, char *name, int offset, int cap) argument
309 int portnum = 0; local
[all...]
H A Dgrouping.c269 /* these structs help find Line (Anafa) slot number while using spine portnum */
278 /* these structs help find Spine (Anafa) slot number while using spine portnum */
292 ch->slotnum = spine4_slot_2_slb[lineport->portnum];
293 ch->anafanum = anafa_spine4_slot_2_slb[lineport->portnum];
296 ch->slotnum = spine12_slot_2_slb[lineport->portnum];
297 ch->anafanum = anafa_spine12_slot_2_slb[lineport->portnum];
300 ch->slotnum = spine12_slot_2_slb[lineport->portnum];
301 ch->anafanum = anafa_spine12_slot_2_slb[lineport->portnum];
304 ch->slotnum = spine4_slot_2_slb[lineport->portnum];
305 ch->anafanum = anafa_spine4_slot_2_slb[lineport->portnum];
653 int portnum = port->portnum; local
[all...]
H A Dibstat.c125 printf("%sPort %d:\n", hdrpre, port->portnum);
138 ca_stat(char *ca_name, int portnum, int no_ports) argument
149 if (!no_ports && portnum >= 0) {
150 if (portnum > ca.numports || !ca.ports[portnum]) {
153 ca_name, portnum, ca.numports);
157 port_dump(ca.ports[portnum], 1);
167 for (portnum = 0; portnum <= ca.numports; portnum
[all...]
H A Dibportstate.c78 get_port_info(ib_portid_t *dest, uint8_t *data, int portnum, int port_op) argument
83 if (!smp_query(data, dest, IB_ATTR_PORT_INFO, portnum, 0))
112 printf("# Port info: %s port %d\n%s", portid2str(dest), portnum, buf);
117 set_port_info(ib_portid_t *dest, uint8_t *data, int portnum, int port_op) argument
122 if (!smp_set(data, dest, IB_ATTR_PORT_INFO, portnum, 0))
134 printf("# Port info: %s port %d\n%s", portid2str(dest), portnum, buf);
210 "-t(imeout) timeout_ms] <dest dr_path|lid|guid> <portnum> [<op>]\n",
241 int portnum = 0; local
351 portnum = strtol(argv[1], 0, 0);
357 err = get_port_info(&portid, data, portnum, port_o
[all...]
H A Dibtracert.c84 int portnum; member in struct:Port
146 mad_decode_field(ni, IB_NODE_LOCAL_PORT_F, &port->portnum);
203 node->type == IB_NODE_SWITCH ? 0 : port->portnum);
209 fprintf(f, "%s %s {0x%016" PRIx64 "} portnum %d lid %u-%u \"%s\"\n",
212 node->nodeguid, node->type == IB_NODE_SWITCH ? 0 : port->portnum,
231 outport, port->portguid, port->portnum);
236 port->portguid, port->portnum,
250 int portnum, outport; local
266 portnum = port->portnum;
384 get_port(Port *port, int portnum, ib_portid_t *portid) argument
[all...]
H A Dibnetdiscover.c145 get_port(Port *port, int portnum, ib_portid_t *portid) argument
150 port->portnum = portnum;
152 if (!smp_query(pi, portid, IB_ATTR_PORT_INFO, portnum, timeout))
156 DEBUG("portid %s portnum %d: lid %d state %d physstate %d %s %s",
157 portid2str(portid), portnum, port->lid, port->state, port->physstate, get_linkwidth_str(port->linkwidth), get_linkspeed_str(port->linkspeed));
182 port->portnum = node->localport;
231 fprintf(f, "%s -> %s %s {%016" PRIx64 "} portnum %d lid %d-%d\"%s\"\n",
234 node->nodeguid, node->type == SWITCH_NODE ? 0 : port->portnum,
289 if (old->portnum
327 handle_port(Node *node, Port *port, ib_portid_t *path, int portnum, int dist) argument
[all...]
H A Dibaddr.c56 ib_resolve_addr(ib_portid_t *portid, int portnum, int show_lid, int show_gid) argument
68 if (!smp_query(portinfo, portid, IB_ATTR_PORT_INFO, portnum, 0))
/freebsd-10.3-release/sys/xen/interface/io/
H A Dusbif.h67 #define usbif_setportnum_pipe(pipe, portnum) \
68 ((pipe)|(portnum))
143 uint8_t portnum; /* port number */ member in struct:usbif_conn_response
/freebsd-10.3-release/contrib/llvm/tools/lldb/tools/lldb-platform/
H A Dlldb-platform.cpp173 long portnum = strtoul(optarg, &end, 0); local
176 if (LOW_PORT <= portnum && portnum <= HIGH_PORT)
179 gdbserver_portmap[(uint16_t)portnum] = LLDB_INVALID_PROCESS_ID;
181 min_gdbserver_port = portnum;
183 max_gdbserver_port = portnum;
187 fprintf (stderr, "error: port number %li is not in the valid user port range of %u - %u\n", portnum, LOW_PORT, HIGH_PORT);
/freebsd-10.3-release/contrib/ntp/sntp/libevent/test/
H A Dregress_testutils.h41 ev_uint16_t *portnum,
H A Dregress_testutils.c94 ev_uint16_t *portnum,
112 my_addr.sin_port = htons(*portnum);
119 if (!*portnum)
120 *portnum = regress_get_socket_port(sock);
93 regress_get_dnsserver(struct event_base *base, ev_uint16_t *portnum, evutil_socket_t *psock, evdns_request_callback_fn_type cb, void *arg) argument
H A Dregress_dns.c536 ev_uint16_t portnum = 0; local
541 tt_assert(regress_dnsserver(base, &portnum, search_table));
542 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum);
621 ev_uint16_t portnum = 0; local
625 port = regress_get_dnsserver(base, &portnum, NULL,
628 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum);
697 ev_uint16_t portnum = 0; local
702 port = regress_get_dnsserver(base, &portnum, NULL,
705 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum);
871 ev_uint16_t portnum local
935 ev_uint16_t portnum = 0; local
[all...]
/freebsd-10.3-release/contrib/ofed/management/libibumad/src/
H A Dumad.c125 get_port(char *ca_name, char *dir, int portnum, umad_port_t *port) argument
133 port->portnum = portnum;
136 len = snprintf(port_dir, sizeof(port_dir), "%s/%d", dir, portnum);
169 port->ca_name, port->portnum, port_dir);
355 int portnum; local
395 portnum = 0;
400 ((portnum = atoi(namelist[i]->d_name)) <= 0 ||
401 portnum >= UMAD_CA_MAX_PORTS)) {
405 if (!(ca->ports[portnum]
584 umad_get_issm_path(char *ca_name, int portnum, char path[], int max) argument
602 umad_open_port(char *ca_name, int portnum) argument
670 umad_get_port(char *ca_name, int portnum, umad_port_t *port) argument
[all...]
/freebsd-10.3-release/contrib/ofed/management/libibmad/src/
H A Dresolve.c155 ib_resolve_self_via(ib_portid_t *portid, int *portnum, ibmad_gid_t *gid, argument
173 if (portnum)
174 mad_decode_field(nodeinfo, IB_NODE_LOCAL_PORT_F, portnum);
183 ib_resolve_self(ib_portid_t *portid, int *portnum, ibmad_gid_t *gid) argument
185 return ib_resolve_self_via (portid, portnum, gid, NULL);
/freebsd-10.3-release/contrib/ofed/management/infiniband-diags/include/
H A Dibnetdiscover.h72 int portnum; member in struct:Port
/freebsd-10.3-release/contrib/ofed/management/libibumad/include/infiniband/
H A Dumad.h124 int portnum; member in struct:umad_port
159 int umad_get_port(char *ca_name, int portnum, umad_port_t *port);
162 int umad_get_issm_path(char *ca_name, int portnum, char path[], int max);
164 int umad_open_port(char *ca_name, int portnum);
/freebsd-10.3-release/sys/dev/sfxge/common/
H A Dsiena_mcdi.c174 unsigned int portnum; local
181 portnum = EFX_OWORD_FIELD(oword, FRF_CZ_CS_PORT_NUM);
183 if (portnum == 0) {
186 } else if (portnum <= 2) {
187 emip->emi_port = portnum;
/freebsd-10.3-release/usr.sbin/ipfwpcap/
H A Dipfwpcap.c123 " %s [-dr] [-b maxbytes] [-p maxpkts] [-P pidfile] portnum dumpfile\n"
135 " (default: /var/run/%s.{portnum}.pid).\n"
137 " portnum = divert(4) socket port number.\n"
154 int r, sd, portnum, l; local
198 portnum = atoi(av[optind++]);
201 if (debug) fprintf(stderr, "bind to %d.\ndump to '%s'.\n", portnum, dumpf);
209 sin.sin_port = htons(portnum);
225 okay(portnum);
/freebsd-10.3-release/contrib/tnftp/src/
H A Dfetch.c324 in_port_t *portnum, char **path)
331 || pass == NULL || host == NULL || port == NULL || portnum == NULL
339 *portnum = 0;
345 *portnum = HTTP_PORT;
350 *portnum = FTP_PORT;
445 *portnum = nport;
462 *portnum ? *portnum : -1, STRorNULL(*path));
511 in_port_t portnum; local
526 &portnum,
322 parse_url(const char *url, const char *desc, url_t *utype, char **uuser, char **pass, char **host, char **port, in_port_t *portnum, char **path) argument
1379 in_port_t portnum; local
[all...]
/freebsd-10.3-release/contrib/ipfilter/tools/
H A Dipf_y.y106 %type <port> portnum
873 portnum { DOREM(fr->fr_scmp = FR_EQUAL; fr->fr_sport = $1;) }
874 | portnum ':' portnum
877 | portnum YY_RANGE_IN portnum
880 | srcportlist lmore portnum
882 | srcportlist lmore portnum ':' portnum
885 | srcportlist lmore portnum YY_RANGE_I
1431 portnum: label
[all...]

Completed in 163 milliseconds

12