| /freebsd-12-stable/contrib/ofed/infiniband-diags/src/ |
| 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 …]
|
| 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 …]
|
| 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()
|
| 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 …]
|
| D | ibqueryerrors.c | 176 static void print_port_config(ibnd_node_t * node, int portnum) in print_port_config() argument 187 ibnd_port_t *port = node->ports[portnum]; in print_port_config() 261 port->remoteport->portnum, ext_port_str, rem_node_name, in print_port_config() 279 port->portnum, ext_port_str, link_str, remote_str); in print_port_config() 367 char *node_name, int portnum, in query_and_dump() argument 377 if (!pma_query_via(pc, portid, portnum, ibd_timeout, attr_id, in query_and_dump() 380 node_name, portid2str(portid), portnum); in query_and_dump() 397 ibnd_node_t * node, uint8_t * pc, int portnum, in print_results() argument 421 node_name, portnum, in print_results() 429 node_name, portnum, in print_results() [all …]
|
| 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()
|
| 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-12-stable/contrib/ofed/libibnetdisc/ |
| 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 …]
|
| 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 …]
|
| 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-12-stable/contrib/ofed/libibumad/ |
| 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 …]
|
| 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-12-stable/contrib/ofed/libibmad/ |
| 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-12-stable/contrib/ofed/opensm/opensm/ |
| 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()
|
| 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-12-stable/contrib/llvm-project/lldb/tools/lldb-server/ |
| D | lldb-platform.cpp | 222 uint16_t portnum; in main_platform() local 223 if (!llvm::to_integer(optarg, portnum)) { in main_platform() 228 if (portnum < LOW_PORT || portnum > HIGH_PORT) { in main_platform() 232 portnum, LOW_PORT, HIGH_PORT); in main_platform() 237 gdbserver_portmap.AllowPort(portnum); in main_platform() 239 min_gdbserver_port = portnum; in main_platform() 241 max_gdbserver_port = portnum; in main_platform()
|
| /freebsd-12-stable/usr.sbin/ipfwpcap/ |
| D | ipfwpcap.c | 156 int r, sd, portnum, l; in main() local 200 portnum = atoi(av[optind++]); in main() 203 if (debug) fprintf(stderr, "bind to %d.\ndump to '%s'.\n", portnum, dumpf); in main() 211 sin.sin_port = htons(portnum); in main() 227 okay(portnum); in main()
|
| /freebsd-12-stable/sys/dev/sfxge/common/ |
| D | siena_mcdi.c | 174 unsigned int portnum; in siena_mcdi_init() local 183 portnum = EFX_OWORD_FIELD(oword, FRF_CZ_CS_PORT_NUM); in siena_mcdi_init() 185 if (portnum == 0) { in siena_mcdi_init() 188 } else if (portnum <= 2) { in siena_mcdi_init() 189 emip->emi_port = portnum; in siena_mcdi_init()
|
| /freebsd-12-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 | 545 ev_uint16_t portnum = 0; in dns_search_test_impl() local 556 tt_assert(regress_dnsserver(base, &portnum, table)); in dns_search_test_impl() 557 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_search_test_impl() 658 ev_uint16_t portnum = 0; in dns_search_cancel_test() local 662 port = regress_get_dnsserver(base, &portnum, NULL, in dns_search_cancel_test() 665 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_search_cancel_test() 734 ev_uint16_t portnum = 0; in dns_retry_test_impl() local 739 port = regress_get_dnsserver(base, &portnum, NULL, in dns_retry_test_impl() 742 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_retry_test_impl() 908 ev_uint16_t portnum = 0; in dns_inflight_test_impl() local [all …]
|
| /freebsd-12-stable/contrib/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 | 545 ev_uint16_t portnum = 0; in dns_search_test_impl() local 556 tt_assert(regress_dnsserver(base, &portnum, table)); in dns_search_test_impl() 557 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_search_test_impl() 658 ev_uint16_t portnum = 0; in dns_search_cancel_test() local 662 port = regress_get_dnsserver(base, &portnum, NULL, in dns_search_cancel_test() 665 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_search_cancel_test() 734 ev_uint16_t portnum = 0; in dns_retry_test_impl() local 739 port = regress_get_dnsserver(base, &portnum, NULL, in dns_retry_test_impl() 742 evutil_snprintf(buf, sizeof(buf), "127.0.0.1:%d", (int)portnum); in dns_retry_test_impl() 908 ev_uint16_t portnum = 0; in dns_inflight_test_impl() local [all …]
|
| /freebsd-12-stable/sys/xen/interface/io/ |
| D | usbif.h | 149 #define usbif_setportnum_pipe(pipe, portnum) ((pipe) | (portnum)) argument 240 uint8_t portnum; /* port number */ member
|
| /freebsd-12-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-12-stable/sbin/ipf/common/ |
| D | ipf_y.y | 107 %type <port> portnum 874 portnum { DOREM(fr->fr_scmp = FR_EQUAL; fr->fr_sport = $1;) } 875 | portnum ':' portnum 878 | portnum YY_RANGE_IN portnum 881 | srcportlist lmore portnum 883 | srcportlist lmore portnum ':' portnum 886 | srcportlist lmore portnum YY_RANGE_IN portnum 943 portnum { DOREM(fr->fr_dcmp = FR_EQUAL; fr->fr_dport = $1;) } 944 | portnum ':' portnum 947 | portnum YY_RANGE_IN portnum [all …]
|