| /freebsd-9-stable/contrib/ofed/management/infiniband-diags/src/ |
| D | smpquery.c | 146 int portnum = 0; in port_info() local 149 portnum = strtol(argv[0], 0, 0); in port_info() 151 if (!smp_query(data, dest, IB_ATTR_PORT_INFO, portnum, 0)) in port_info() 156 printf("# Port info: %s port %d\n%s", portid2str(dest), portnum, buf); in port_info() 183 int portnum = 0; in pkey_table() local 186 portnum = strtol(argv[0], 0, 0); in pkey_table() 194 if (portnum > phy_ports) in pkey_table() 197 if ((t == IB_NODE_SWITCH) && (portnum != 0)) { in pkey_table() 205 mod = i | (portnum << 16); in pkey_table() 231 int portnum = (in << 8) | out; in sl2vl_dump_table_entry() local [all …]
|
| D | grouping.c | 292 ch->slotnum = spine4_slot_2_slb[lineport->portnum]; in get_sfb_slot() 293 ch->anafanum = anafa_spine4_slot_2_slb[lineport->portnum]; in get_sfb_slot() 296 ch->slotnum = spine12_slot_2_slb[lineport->portnum]; in get_sfb_slot() 297 ch->anafanum = anafa_spine12_slot_2_slb[lineport->portnum]; in get_sfb_slot() 300 ch->slotnum = spine12_slot_2_slb[lineport->portnum]; in get_sfb_slot() 301 ch->anafanum = anafa_spine12_slot_2_slb[lineport->portnum]; in get_sfb_slot() 304 ch->slotnum = spine4_slot_2_slb[lineport->portnum]; in get_sfb_slot() 305 ch->anafanum = anafa_spine4_slot_2_slb[lineport->portnum]; in get_sfb_slot() 325 ch->slotnum = line_slot_2_sfb4[spineport->portnum]; in get_router_slot() 326 ch->anafanum = ipr_slot_2_sfb4_port[spineport->portnum]; in get_router_slot() [all …]
|
| D | ibstat.c | 125 printf("%sPort %d:\n", hdrpre, port->portnum); in port_dump() 138 ca_stat(char *ca_name, int portnum, int no_ports) in ca_stat() argument 149 if (!no_ports && portnum >= 0) { in ca_stat() 150 if (portnum > ca.numports || !ca.ports[portnum]) { in ca_stat() 153 ca_name, portnum, ca.numports); in ca_stat() 157 port_dump(ca.ports[portnum], 1); in ca_stat() 167 for (portnum = 0; portnum <= ca.numports; portnum++) in ca_stat() 168 port_dump(ca.ports[portnum], 0); in ca_stat()
|
| D | ibtracert.c | 84 int portnum; member 146 mad_decode_field(ni, IB_NODE_LOCAL_PORT_F, &port->portnum); in get_node() 203 node->type == IB_NODE_SWITCH ? 0 : port->portnum); in dump_endnode() 212 node->nodeguid, node->type == IB_NODE_SWITCH ? 0 : port->portnum, in dump_endnode() 231 outport, port->portguid, port->portnum); in dump_route() 236 port->portguid, port->portnum, in dump_route() 250 int portnum, outport; in find_route() local 266 portnum = port->portnum; in find_route() 277 outport = portnum; in find_route() 313 if (portnum && extend_dpath(&from->drpath, portnum) < 0) in find_route() [all …]
|
| D | ibportstate.c | 78 get_port_info(ib_portid_t *dest, uint8_t *data, int portnum, int port_op) in get_port_info() argument 83 if (!smp_query(data, dest, IB_ATTR_PORT_INFO, portnum, 0)) in get_port_info() 112 printf("# Port info: %s port %d\n%s", portid2str(dest), portnum, buf); in get_port_info() 117 set_port_info(ib_portid_t *dest, uint8_t *data, int portnum, int port_op) in set_port_info() argument 122 if (!smp_set(data, dest, IB_ATTR_PORT_INFO, portnum, 0)) in set_port_info() 134 printf("# Port info: %s port %d\n%s", portid2str(dest), portnum, buf); in set_port_info() 241 int portnum = 0; in main() local 351 portnum = strtol(argv[1], 0, 0); in main() 357 err = get_port_info(&portid, data, portnum, port_op); in main() 374 err = set_port_info(&portid, data, portnum, port_op); in main() [all …]
|
| D | ibnetdiscover.c | 145 get_port(Port *port, int portnum, ib_portid_t *portid) in get_port() argument 150 port->portnum = portnum; in get_port() 152 if (!smp_query(pi, portid, IB_ATTR_PORT_INFO, portnum, timeout)) in get_port() 157 …portid2str(portid), portnum, port->lid, port->state, port->physstate, get_linkwidth_str(port->link… in get_port() 182 port->portnum = node->localport; in get_node() 234 node->nodeguid, node->type == SWITCH_NODE ? 0 : port->portnum, in dump_endnode() 289 if (old->portnum == port->portnum) in find_port() 316 node->nodeguid, node, port, port->portnum, in link_ports() 317 remotenode->nodeguid, remotenode, remoteport, remoteport->portnum); in link_ports() 327 handle_port(Node *node, Port *port, ib_portid_t *path, int portnum, int dist) in handle_port() argument [all …]
|
| D | ibaddr.c | 56 ib_resolve_addr(ib_portid_t *portid, int portnum, int show_lid, int show_gid) in ib_resolve_addr() argument 68 if (!smp_query(portinfo, portid, IB_ATTR_PORT_INFO, portnum, 0)) in ib_resolve_addr()
|
| /freebsd-9-stable/contrib/ofed/management/infiniband-diags/scripts/ |
| D | ibcheckport.in | 73 portnum=$2 92 text="`eval $IBPATH/smpquery $ca_info portinfo $lid $portnum`" 107 …inkUp") {err = err "#error: Physical link state is " $2 " lid '$lid' port '$portnum'\n"; exit -1}} 109 …f ($2 != "Active") warn = warn "#warn: Logical link state is " $2 " lid '$lid' port '$portnum'\n"} 111 …hActive/{ 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 ('$portn… 136 echo -n "Port check lid $lid port $portnum: " 141 echo -n "Port check lid $lid port $portnum: "
|
| D | ibcheckportstate.in | 73 portnum=$2 92 text="`eval $IBPATH/smpquery $ca_info portinfo $lid $portnum`" 107 …inkUp") {err = err "#error: Physical link state is " $2 " lid '$lid' port '$portnum'\n"; exit -1}} 109 …f ($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: "
|
| 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 quer… 201 warn = warn "#warn: counter " $1 " = " $2 " \t(threshold " th[$1] ") lid '$lid' port '$portnum'\n"
|
| 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 quer…
|
| D | ibcheckportwidth.in | 73 portnum=$2 92 text="`eval $IBPATH/smpquery $ca_info portinfo $lid $portnum`" 107 …hActive/{ 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: "
|
| /freebsd-9-stable/contrib/ofed/management/libibumad/src/ |
| D | umad.c | 125 get_port(char *ca_name, char *dir, int portnum, umad_port_t *port) in get_port() argument 133 port->portnum = portnum; in get_port() 136 len = snprintf(port_dir, sizeof(port_dir), "%s/%d", dir, portnum); in get_port() 169 port->ca_name, port->portnum, port_dir); in get_port() 355 int portnum; in get_ca() local 395 portnum = 0; in get_ca() 400 ((portnum = atoi(namelist[i]->d_name)) <= 0 || in get_ca() 401 portnum >= UMAD_CA_MAX_PORTS)) { in get_ca() 405 if (!(ca->ports[portnum] = calloc(1, sizeof(*ca->ports[portnum])))) { in get_ca() 409 if (get_port(ca_name, dir_name, portnum, ca->ports[portnum]) < 0) { in get_ca() [all …]
|
| /freebsd-9-stable/contrib/ofed/management/libibmad/src/ |
| D | resolve.c | 155 ib_resolve_self_via(ib_portid_t *portid, int *portnum, ibmad_gid_t *gid, in ib_resolve_self_via() argument 173 if (portnum) in ib_resolve_self_via() 174 mad_decode_field(nodeinfo, IB_NODE_LOCAL_PORT_F, portnum); in ib_resolve_self_via() 183 ib_resolve_self(ib_portid_t *portid, int *portnum, ibmad_gid_t *gid) in ib_resolve_self() argument 185 return ib_resolve_self_via (portid, portnum, gid, NULL); in ib_resolve_self()
|
| /freebsd-9-stable/usr.sbin/ipfwpcap/ |
| D | ipfwpcap.c | 154 int r, sd, portnum, l; in main() local 198 portnum = atoi(av[optind++]); in main() 201 if (debug) fprintf(stderr, "bind to %d.\ndump to '%s'.\n", portnum, dumpf); in main() 209 sin.sin_port = htons(portnum); in main() 225 okay(portnum); in main()
|
| /freebsd-9-stable/contrib/ofed/management/libibumad/include/infiniband/ |
| D | umad.h | 124 int portnum; member 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-9-stable/contrib/ntp/sntp/libevent/test/ |
| D | regress_testutils.c | 94 ev_uint16_t *portnum, in regress_get_dnsserver() argument 112 my_addr.sin_port = htons(*portnum); in regress_get_dnsserver() 119 if (!*portnum) in regress_get_dnsserver() 120 *portnum = regress_get_socket_port(sock); in regress_get_dnsserver()
|
| D | regress_dns.c | 536 ev_uint16_t portnum = 0; in dns_search_test() local 541 tt_assert(regress_dnsserver(base, &portnum, search_table)); in dns_search_test() 542 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_search_test() 621 ev_uint16_t portnum = 0; in dns_search_cancel_test() local 625 port = regress_get_dnsserver(base, &portnum, NULL, in dns_search_cancel_test() 628 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_search_cancel_test() 697 ev_uint16_t portnum = 0; in dns_retry_test_impl() local 702 port = regress_get_dnsserver(base, &portnum, NULL, in dns_retry_test_impl() 705 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_retry_test_impl() 871 ev_uint16_t portnum = 0; in dns_inflight_test_impl() local [all …]
|
| D | regress_testutils.h | 41 ev_uint16_t *portnum,
|
| /freebsd-9-stable/contrib/ipfilter/tools/ |
| D | ipf_y.y | 93 %type <port> portnum 772 portnum { DOREM(fr->fr_scmp = FR_EQUAL; fr->fr_sport = $1;) } 773 | portnum ':' portnum 776 | portnum YY_RANGE_IN portnum 779 | srcportlist lmore portnum 781 | srcportlist lmore portnum ':' portnum 784 | srcportlist lmore portnum YY_RANGE_IN portnum 850 portnum { DOREM(fr->fr_dcmp = FR_EQUAL; fr->fr_dport = $1;) } 851 | portnum ':' portnum 854 | portnum YY_RANGE_IN portnum [all …]
|
| D | BNF.ipnat | 8 dport ::= "port" portnum [ "-" portnum ] .
|
| /freebsd-9-stable/contrib/tnftp/src/ |
| D | fetch.c | 324 in_port_t *portnum, char **path) in parse_url() argument 331 || pass == NULL || host == NULL || port == NULL || portnum == NULL in parse_url() 339 *portnum = 0; in parse_url() 345 *portnum = HTTP_PORT; in parse_url() 350 *portnum = FTP_PORT; in parse_url() 445 *portnum = nport; in parse_url() 462 *portnum ? *portnum : -1, STRorNULL(*path)); in parse_url() 511 in_port_t portnum; in fetch_url() local 526 &portnum, &path) == -1) in fetch_url() 638 if (np_port != portnum) in fetch_url() [all …]
|
| /freebsd-9-stable/contrib/ofed/management/doc/ |
| D | libibumad.txt | 95 int umad_get_port(char *ca_name, int portnum, umad_port_t *port); 98 specified by 'ca_name' and 'portnum', or the default port if 'ca_name' is null 99 and 'portnum' is zero. If only one of the 'ca_name' and 'portnum' are specified, 101 portnum means - get a port from any of the local ib devices, as long as it is 127 int umad_open_port(char *ca_name, int portnum); 129 Description: Open the port specified by 'ca_name' and 'portnum' for umad IO. 136 -EINVAL port is not valid (bad 'portnum' or no umad device)
|
| /freebsd-9-stable/sys/dev/sfxge/common/ |
| D | efx_mcdi.c | 592 unsigned int portnum; in efx_mcdi_init() local 605 portnum = EFX_OWORD_FIELD(oword, FRF_CZ_CS_PORT_NUM); in efx_mcdi_init() 607 if (portnum == 0) { in efx_mcdi_init() 610 } else if (portnum <= 2) { in efx_mcdi_init() 611 emip->emi_port = portnum; in efx_mcdi_init()
|
| /freebsd-9-stable/usr.sbin/nfsuserd/ |
| D | nfsuserd.c | 108 u_short portnum; in main() local 271 portnum = htons(udptransp->xp_port); in main() 273 printf("portnum=0x%x\n", portnum); in main() 275 if (nfssvc(NFSSVC_NFSUSERDPORT, (caddr_t)&portnum) < 0) { in main()
|