/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | smpquery.c | 131 int portnum = 0; in port_info_extended() local 134 portnum = strtol(argv[0], 0, 0); in port_info_extended() 136 if (!is_port_info_extended_supported(dest, portnum, srcport)) in port_info_extended() 139 if (!smp_query_via(data, dest, IB_ATTR_PORT_INFO_EXT, portnum, 0, in port_info_extended() 145 portnum, buf); in port_info_extended() 152 int portnum = 0, orig_portnum; in port_info() local 155 portnum = strtol(argv[0], 0, 0); in port_info() 156 orig_portnum = portnum; in port_info() 158 portnum |= 1 << 31; in port_info() 160 if (!smp_query_via(data, dest, IB_ATTR_PORT_INFO, portnum, 0, srcport)) in port_info() [all …]
|
H A D | ibstat.c | 145 port->portnum); in is_fdr10() 173 printf("%sPort %d:\n", hdrpre, port->portnum); in port_dump() 198 static int ca_stat(char *ca_name, int portnum, int no_ports) in ca_stat() argument 209 if (!no_ports && portnum >= 0) { in ca_stat() 210 if (portnum > ca.numports || !ca.ports[portnum]) { in ca_stat() 214 "???"), ca_name, portnum, ca.numports); in ca_stat() 221 port_dump(ca.ports[portnum], 1); in ca_stat() 231 for (portnum = 0; portnum <= ca.numports; portnum++) in ca_stat() 232 port_dump(ca.ports[portnum], 0); in ca_stat()
|
H A D | ibtracert.c | 82 int portnum; member 165 mad_decode_field(ni, IB_NODE_LOCAL_PORT_F, &port->portnum); in get_node() 224 node->type == IB_NODE_SWITCH ? 0 : port->portnum); in dump_endnode() 235 node->type == IB_NODE_SWITCH ? 0 : port->portnum, port->lid, in dump_endnode() 253 outport, port->portguid, port->portnum); in dump_route() 259 port->portguid, port->portnum, port->lid, in dump_route() 271 int portnum, outport = 255, next_sw_outport = 255; in find_route() local 294 portnum = port->portnum; in find_route() 335 outport = portnum; in find_route() 350 if (portnum in find_route() [all …]
|
H A D | ibportstate.c | 139 static int get_port_info(ib_portid_t * dest, uint8_t * data, int portnum, in get_port_info() argument 153 if (!smp_query_via(data, dest, IB_ATTR_PORT_INFO, portnum, 0, srcport)) in get_port_info() 159 static void show_port_info(ib_portid_t * dest, uint8_t * data, int portnum, in show_port_info() argument 219 if (!is_switch || portnum == 0) { in show_port_info() 238 printf("# Port info: %s port %d\n%s", portid2str(dest), portnum, buf); in show_port_info() 241 static void set_port_info(ib_portid_t * dest, uint8_t * data, int portnum, in set_port_info() argument 246 mod = portnum; in set_port_info() 253 show_port_info(dest, data, portnum, espeed_cap, is_switch); in set_port_info() 256 static void get_mlnx_ext_port_info(ib_portid_t * dest, uint8_t * data, int portnum) in get_mlnx_ext_port_info() argument 259 portnum, 0, srcport)) in get_mlnx_ext_port_info() [all …]
|
H A D | ibqueryerrors.c | 183 static void print_port_config(ibnd_node_t * node, int portnum) in print_port_config() argument 194 ibnd_port_t *port = node->ports[portnum]; in print_port_config() 268 port->remoteport->portnum, ext_port_str, rem_node_name, in print_port_config() 286 port->portnum, ext_port_str, link_str, remote_str); in print_port_config() 374 char *node_name, int portnum, in query_and_dump() argument 384 if (!pma_query_via(pc, portid, portnum, ibd_timeout, attr_id, in query_and_dump() 387 node_name, portid2str(portid), portnum); in query_and_dump() 404 ibnd_node_t * node, uint8_t * pc, int portnum, in print_results() argument 428 node_name, portnum, in print_results() 436 node_name, portnum, in print_results() [all …]
|
H A D | ibccquery.c | 206 int portnum = 0; in switch_port_congestion_setting() local 210 portnum = strtol(argv[0], 0, 0); in switch_port_congestion_setting() 224 if (portnum) { in switch_port_congestion_setting() 225 if (portnum > numports) in switch_port_congestion_setting() 230 portnum / 32, 0, NULL, srcport, cckey)) in switch_port_congestion_setting() 234 data + ((portnum % 32) * 4), in switch_port_congestion_setting()
|
H A D | ibccconfig.c | 345 uint32_t portnum; in switch_port_congestion_setting() local 359 if ((errstr = parseint(argv[0], &portnum, 0))) in switch_port_congestion_setting() 387 if (portnum > numports) in switch_port_congestion_setting() 392 portnum / 32, 0, NULL, srcport, cckey)) in switch_port_congestion_setting() 395 ptr = payload + (((portnum % 32) * 4)); in switch_port_congestion_setting() 418 portnum / 32, 0, NULL, srcport, cckey)) in switch_port_congestion_setting()
|
/freebsd/contrib/ofed/libibnetdisc/ |
H A D | chassis.c | 489 n->ch_slotnum = spine4_slot_2_slb[lineport->portnum]; in get_sfb_slot() 490 n->ch_anafanum = anafa_spine4_slot_2_slb[lineport->portnum]; in get_sfb_slot() 493 n->ch_slotnum = spine12_slot_2_slb[lineport->portnum]; in get_sfb_slot() 494 n->ch_anafanum = anafa_spine12_slot_2_slb[lineport->portnum]; in get_sfb_slot() 497 n->ch_slotnum = spine12_slot_2_slb[lineport->portnum]; in get_sfb_slot() 498 n->ch_anafanum = anafa_spine12_slot_2_slb[lineport->portnum]; in get_sfb_slot() 501 n->ch_slotnum = spine4_slot_2_slb[lineport->portnum]; in get_sfb_slot() 502 n->ch_anafanum = anafa_spine4_slot_2_slb[lineport->portnum]; in get_sfb_slot() 505 n->ch_slotnum = spine18_slot_2_slb[lineport->portnum]; in get_sfb_slot() 506 n->ch_anafanum = anafa_spine18_slot_2_slb[lineport->portnum]; in get_sfb_slot() [all …]
|
H A D | ibnetdisc.c | 67 ibnd_node_t * node, int portnum); 187 portid2str(portid), port->portnum, port->base_lid, in debug_port() 322 ibnd_node_t * node, int portnum) in query_mlnx_ext_port_info() argument 325 portid2str(portid), node->guid, portnum); in query_mlnx_ext_port_info() 326 return issue_smp(engine, portid, IB_ATTR_MLNX_EXT_PORT_INFO, portnum, in query_mlnx_ext_port_info() 361 port->portnum = port_num; in recv_port_info() 451 ibnd_node_t * node, int portnum) in query_port_info() argument 454 portid2str(portid), node->guid, portnum); in query_port_info() 455 return issue_smp(engine, portid, IB_ATTR_PORT_INFO, portnum, in query_port_info() 456 portnum ? recv_port_info : recv_port0_info, node); in query_port_info() [all …]
|
H A D | ibnetdisc_cache.c | 107 uint8_t portnum; member 387 port_cache_keys[i].portnum); in _load_node() 442 port->portnum = tmp8; in _load_port() 454 &port_cache->remoteport_cache_key.portnum); in _load_port() 475 && port_cache->port->portnum == port_cache_key->portnum) in _find_port() 512 node->ports[port_cache->port->portnum] = port_cache->port; in _fill_port() 840 (uint8_t) node->ports[i]->portnum); in _cache_node() 860 offset += _marshall8(buf + offset, (uint8_t) port->portnum); in _cache_port() 869 offset += _marshall8(buf + offset, (uint8_t) port->remoteport->portnum); in _cache_port()
|
/freebsd/usr.sbin/ctladm/tests/ |
H A D | port.sh | 85 portnum=`awk '/port:/ {print $2}' port-create.txt` 87 atf_check egrep -q "$portnum *YES *ioctl *ioctl" portlist.txt 133 atf_check egrep -q "$portnum *NO *iscsi *iscsi.*$TARGET" portlist.txt 196 portnum=`awk '/port:/ {print $2}' port-create.txt` 220 portnum=`awk '/port:/ {print $2}' port-create.txt` 222 atf_check -o ignore ctladm port -o off -p $portnum 223 atf_check -o match:"^$portnum *NO" ctladm portlist -qf ioctl 241 portnum=`awk '/port:/ {print $2}' port-create.txt` 243 atf_check -o ignore ctladm port -o off -p $portnum 244 atf_check -o ignore ctladm port -o on -p $portnum [all...] |
/freebsd/contrib/ofed/libibumad/ |
H A D | umad.c | 130 static int get_port(const char *ca_name, const char *dir, int portnum, umad_port_t * port) in get_port() argument 139 port->portnum = portnum; in get_port() 143 len = snprintf(port_dir, sizeof(port_dir), "%s/%d", dir, portnum); in get_port() 185 port->ca_name, port->portnum, port_dir); in get_port() 386 int portnum; in get_ca() local 422 portnum = 0; in get_ca() 427 ((portnum = atoi(namelist[i]->d_name)) <= 0 || in get_ca() 428 portnum >= UMAD_CA_MAX_PORTS)) { in get_ca() 432 if (!(ca->ports[portnum] = in get_ca() 433 calloc(1, sizeof(*ca->ports[portnum])))) { in get_ca() [all …]
|
H A D | umad.h | 158 int portnum; member 194 int umad_get_port(const char *ca_name, int portnum, umad_port_t * port); 197 int umad_get_issm_path(const char *ca_name, int portnum, char path[], int max); 199 int umad_open_port(const char *ca_name, int portnum);
|
/freebsd/contrib/ofed/libibmad/ |
H A D | resolve.c | 60 ret = umad_get_port(srcport->ca_name, srcport->portnum, &port); in ib_resolve_smlid_via() 120 if (umad_get_port(srcport->ca_name, srcport->portnum, &port)) in ib_resolve_guid_via() 218 int ib_resolve_self_via(ib_portid_t * portid, int *portnum, ibmad_gid_t * gid, in ib_resolve_self_via() argument 237 if (portnum) in ib_resolve_self_via() 238 mad_decode_field(nodeinfo, IB_NODE_LOCAL_PORT_F, portnum); in ib_resolve_self_via() 246 int ib_resolve_self(ib_portid_t * portid, int *portnum, ibmad_gid_t * gid) in ib_resolve_self() argument 248 return ib_resolve_self_via(portid, portnum, gid, ibmp); in ib_resolve_self()
|
/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_mlnx_ext_port_info_rcv.c | 74 uint8_t port_num, portnum, start_port = 1; in osm_mlnx_epi_rcv_process() local 122 for (portnum = start_port; in osm_mlnx_epi_rcv_process() 123 portnum < osm_node_get_num_physp(p_node); in osm_mlnx_epi_rcv_process() 124 portnum++) { in osm_mlnx_epi_rcv_process() 125 p_physp = osm_node_get_physp_ptr(p_node, portnum); in osm_mlnx_epi_rcv_process()
|
H A D | osm_db_pack.c | 102 static inline void pack_neighbor(uint64_t guid, uint8_t portnum, char *p_str) in pack_neighbor() argument 104 sprintf(p_str, "0x%016" PRIx64 ":%u", guid, portnum); in pack_neighbor() 108 uint8_t *portnum) in unpack_neighbor() argument 125 if (portnum) { in unpack_neighbor() 128 *portnum = (uint8_t) tmp_port; in unpack_neighbor() 282 &p_neighbor_elem->portnum); in osm_db_neighbor_guids() 327 IN uint8_t portnum) in osm_db_neighbor_delete() argument 331 pack_neighbor(guid, portnum, n_str); in osm_db_neighbor_delete()
|
/freebsd/contrib/llvm-project/lldb/tools/lldb-server/ |
H A D | lldb-platform.cpp | 198 uint16_t portnum; in main_platform() local 199 if (!llvm::to_integer(optarg, portnum)) { in main_platform() 204 if (portnum < LOW_PORT || portnum > HIGH_PORT) { in main_platform() 208 portnum, LOW_PORT, HIGH_PORT); in main_platform() 213 gdbserver_portmap.AllowPort(portnum); in main_platform() 215 min_gdbserver_port = portnum; in main_platform() 217 max_gdbserver_port = portnum; in main_platform()
|
/freebsd/crypto/openssl/crypto/http/ |
H A D | http_lib.c | 55 unsigned int portnum; in OSSL_parse_url() local 121 if (sscanf(port, "%u", &portnum) <= 0 || portnum > 65535) { in OSSL_parse_url() 165 *pport_num = (int)portnum; in OSSL_parse_url() 197 int ssl = 0, portnum; in OSSL_HTTP_parse_url() local 223 if (!ossl_assert(sscanf(port, "%d", &portnum) == 1)) in OSSL_HTTP_parse_url() 226 *pport_num = portnum; in OSSL_HTTP_parse_url()
|
/freebsd/usr.sbin/ipfwpcap/ |
H A 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/sys/dev/sfxge/common/ |
H A D | siena_mcdi.c | 175 unsigned int portnum; in siena_mcdi_init() local 184 portnum = EFX_OWORD_FIELD(oword, FRF_CZ_CS_PORT_NUM); in siena_mcdi_init() 186 if (portnum == 0) { in siena_mcdi_init() 189 } else if (portnum <= 2) { in siena_mcdi_init() 190 emip->emi_port = portnum; in siena_mcdi_init()
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A 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()
|
/freebsd/contrib/libevent/test/ |
H A 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()
|
/freebsd/sys/contrib/xen/io/ |
H A D | usbif.h | 313 #define usbif_setportnum_pipe(pipe, portnum) ((pipe) | (portnum)) argument 413 uint8_t portnum; /* port number */ member
|
/freebsd/contrib/tnftp/src/ |
H A 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/sbin/ipf/common/ |
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_IN portnum 942 portnum { DOREM(fr->fr_dcmp = FR_EQUAL; fr->fr_dport = $1;) } 943 | portnum ':' portnum 946 | portnum YY_RANGE_IN portnum [all …]
|