/freebsd-10.0-release/contrib/ofed/management/infiniband-diags/scripts/ |
H A D | ibcheckport.in | 73 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 D | ibcheckportstate.in | 73 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 D | ibdatacounts.in | 77 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 D | ibcheckportwidth.in | 73 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 D | ibcheckerrs.in | 122 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.0-release/contrib/ofed/management/infiniband-diags/src/ |
H A D | smpquery.c | 146 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 D | grouping.c | 269 /* 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 D | ibstat.c | 125 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 D | ibportstate.c | 78 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 D | ibtracert.c | 84 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 D | ibnetdiscover.c | 145 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 D | ibaddr.c | 56 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.0-release/sys/xen/interface/io/ |
H A D | usbif.h | 67 #define usbif_setportnum_pipe(pipe, portnum) \ 68 ((pipe)|(portnum)) 143 uint8_t portnum; /* port number */ member in struct:usbif_conn_response
|
/freebsd-10.0-release/contrib/ofed/management/libibumad/src/ |
H A D | umad.c | 125 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.0-release/contrib/ofed/management/libibmad/src/ |
H A D | resolve.c | 155 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.0-release/contrib/ofed/management/infiniband-diags/include/ |
H A D | ibnetdiscover.h | 72 int portnum; member in struct:Port
|
/freebsd-10.0-release/contrib/ofed/management/libibumad/include/infiniband/ |
H A D | umad.h | 124 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.0-release/usr.sbin/ipfwpcap/ |
H A D | ipfwpcap.c | 123 " %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.0-release/contrib/tnftp/src/ |
H A D | fetch.c | 324 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.0-release/contrib/ipfilter/tools/ |
H A D | ipf_y.y | 106 %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 1421 portnum: label [all...] |
H A D | ipscan_y.y | 59 %type <num> portnum 165 | IPSL_REDIRECT '(' ipaddr ',' portnum ')' 178 portnum: label
|
/freebsd-10.0-release/sys/dev/sfxge/common/ |
H A D | efx_mcdi.c | 592 unsigned int portnum; local 605 portnum = EFX_OWORD_FIELD(oword, FRF_CZ_CS_PORT_NUM); 607 if (portnum == 0) { 610 } else if (portnum <= 2) { 611 emip->emi_port = portnum;
|
/freebsd-10.0-release/sys/cam/ctl/ |
H A D | ctl.h | 209 void ctl_portDB_changed(int portnum);
|
/freebsd-10.0-release/usr.sbin/nfsuserd/ |
H A D | nfsuserd.c | 108 u_short portnum; local 271 portnum = htons(udptransp->xp_port); 273 printf("portnum=0x%x\n", portnum); 275 if (nfssvc(NFSSVC_NFSUSERDPORT, (caddr_t)&portnum) < 0) {
|
/freebsd-10.0-release/usr.bin/rpcinfo/ |
H A D | rpcinfo.c | 171 u_short portnum = 0; local 205 portnum = (u_short) strtol(optarg, &strptr, 10); 274 if (portnum != 0) 280 ip_ping(portnum, "udp", argc - optind, argv + optind); 284 ip_ping(portnum, "tcp", argc - optind, argv + optind); 365 * If portnum is 0, then go and get the address from portmapper, which happens 372 ip_ping(u_short portnum, const char *trans, int argc, char **argv) argument 398 addr.sin_port = htons(portnum); 422 addr.sin_port = htons(portnum); 450 addr.sin_port = htons(portnum); [all...] |