/freebsd-13-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-pko.c | 78 * PKO port iterator 94 * Get INT for a port 170 int cvmx_pko_get_base_queue(int port) argument 175 cvmx_helper_cfg_ipd2pko_port_base(port)); 178 return cvmx_pko_get_base_queue_per_core(port, 0); 185 * For a given PKO port number, return the base output queue 186 * for the port. 188 * @param pko_port PKO port number 197 * For a given PKO port number, return the number of output queues 198 * for the port 208 cvmx_pko_get_num_queues(int port) argument 257 int core, port; local 788 cvmx_pko_config_port(uint64_t port, uint64_t base_queue, uint64_t num_queues, const uint64_t priority[]) argument 972 cvmx_pko_rate_limit_packets(int port, int packets_s, int burst) argument 1005 cvmx_pko_rate_limit_bits(int port, uint64_t bits_s, int burst) argument [all...] |
/freebsd-13-stable/sys/dev/etherswitch/ip17x/ |
H A D | ip17x.c | 164 int err, phy, port; local 167 port = err = 0; 174 sc->phyport[phy] = port; 175 sc->portphy[port] = phy; 176 sc->ifp[port] = if_alloc(IFT_ETHER); 177 if (sc->ifp[port] == NULL) { 183 sc->ifp[port]->if_softc = sc; 184 sc->ifp[port]->if_flags |= IFF_UP | IFF_BROADCAST | 186 if_initname(sc->ifp[port], name, port); 287 int i, port; local 319 ip17x_miiforport(struct ip17x_softc *sc, int port) argument 328 ip17x_ifpforport(struct ip17x_softc *sc, int port) argument 344 int i, port; local [all...] |
/freebsd-13-stable/contrib/ofed/infiniband-diags/src/ |
H A D | mcm_rereg_test.c | 94 static int rereg_send(int port, int agent, ib_portid_t * dport, argument 103 if (umad_send(port, agent, umad, len, TMO, 0) < 0) { 115 static int rereg_port_gid(int port, int agent, ib_portid_t * dport, argument 124 if (umad_send(port, agent, umad, len, TMO, 0) < 0) { 132 if (umad_send(port, agent, umad, len, TMO, 0) < 0) { 148 static int rereg_send_all(int port, int agent, ib_portid_t * dport, argument 166 rereg_port_gid(port, agent, dport, umad, len, list[i].gid); 183 static int rereg_recv(int port, int agent, ib_portid_t * dport, argument 189 while ((ret = umad_recv(port, umad, &len, tmo)) < 0 && 206 static int rereg_recv_all(int port, in argument 263 rereg_query_all(int port, int agent, ib_portid_t * dport, struct guid_trid *list, unsigned cnt) argument 312 rereg_and_test_port(char *guid_file, int port, int agent, ib_portid_t * dport, int timeout) argument 364 int port, agent; local [all...] |
/freebsd-13-stable/sys/i386/include/ |
H A D | cpufunc.h | 245 inb(u_int port) argument 249 __asm __volatile("inb %w1, %0" : "=a" (data) : "Nd" (port)); 254 inl(u_int port) argument 258 __asm __volatile("inl %w1, %0" : "=a" (data) : "Nd" (port)); 263 insb(u_int port, void *addr, size_t count) argument 267 : "d" (port) 272 insw(u_int port, void *addr, size_t count) argument 276 : "d" (port) 281 insl(u_int port, void *addr, size_t count) argument 285 : "d" (port) 296 inw(u_int port) argument 305 outb(u_int port, u_char data) argument 311 outl(u_int port, u_int data) argument 317 outsb(u_int port, const void *addr, size_t count) argument 325 outsw(u_int port, const void *addr, size_t count) argument 333 outsl(u_int port, const void *addr, size_t count) argument 341 outw(u_int port, u_short data) argument [all...] |
/freebsd-13-stable/sys/amd64/include/ |
H A D | cpufunc.h | 176 inb(u_int port) argument 180 __asm __volatile("inb %w1, %0" : "=a" (data) : "Nd" (port)); 185 inl(u_int port) argument 189 __asm __volatile("inl %w1, %0" : "=a" (data) : "Nd" (port)); 194 insb(u_int port, void *addr, size_t count) argument 198 : "d" (port) 203 insw(u_int port, void *addr, size_t count) argument 207 : "d" (port) 212 insl(u_int port, void *addr, size_t count) argument 216 : "d" (port) 227 inw(u_int port) argument 236 outb(u_int port, u_char data) argument 242 outl(u_int port, u_int data) argument 248 outsb(u_int port, const void *addr, size_t count) argument 256 outsw(u_int port, const void *addr, size_t count) argument 264 outsl(u_int port, const void *addr, size_t count) argument 272 outw(u_int port, u_short data) argument [all...] |
/freebsd-13-stable/tools/regression/netinet/tcpsocktimewait/ |
H A D | tcpsocktimewait.c | 70 tcp_client(pid_t partner, u_short port, int secs) argument 89 sin.sin_port = port; 116 u_short port; local 132 * We use the loopback, but let the kernel select a port for the 147 * Query the port so that the client can use it. 155 port = sin.sin_port; 156 printf("Using port %d\n", ntohs(port)); 167 tcp_client(parent_pid, port, 1); 180 * We use the loopback, but let the kernel select a port fo [all...] |
/freebsd-13-stable/tools/regression/netinet/tcpstream/ |
H A D | tcpstream.c | 57 fprintf(stderr, "tcpstream client [ip] [port] [seed]\n"); 58 fprintf(stderr, "tcpstream server [port] [seed]\n"); 183 long port, seed; local 199 port = strtoul(argv[3], &dummy, 10); 200 if (port < 1 || port > 65535 || *dummy != '\0') 202 sin.sin_port = htons(port); 219 port = strtoul(argv[2], &dummy, 10); 220 if (port < 1 || port > 6553 [all...] |
/freebsd-13-stable/crypto/heimdal/appl/kf/ |
H A D | kf.c | 47 { "port", 'p', arg_string, &port_str, "port to connect to", "port" }, 71 int port = 0; local 98 port = s->s_port; 102 port = strtol (port_str, &ptr, 10); 103 if (port == 0 && ptr == port_str) 104 errx (1, "Bad port `%s'", port_str); 105 port = htons(port); 284 doit(const char *hostname, int port, const char *service, char *message, size_t len) argument 325 int argcc,port,i; local [all...] |
H A D | kfd.c | 48 { "port", 'p', arg_string, &port_str, "port to listen to", "port" }, 68 int port = 0; local 83 port = s->s_port; 87 port = strtol (port_str, &ptr, 10); 88 if (port == 0 && ptr == port_str) 89 errx (1, "Bad port `%s'", port_str); 90 port = htons(port); 284 doit(int port, const char *service) argument 294 int port; local [all...] |
/freebsd-13-stable/sys/mips/cavium/octe/ |
H A D | ethernet-rgmii.c | 68 registers that affect more than one port */ 71 link_info = cvmx_helper_link_get(priv->port); 78 int interface = INTERFACE(priv->port); 79 int index = INDEX(priv->port); 98 ipd_sub_port_fcs.s.port_bit &= 0xffffffffull ^ (1ull<<priv->port); 118 int interface = INTERFACE(priv->port); 119 int index = INDEX(priv->port); 127 ipd_sub_port_fcs.s.port_bit |= 1ull<<priv->port; 135 link_info = cvmx_helper_link_autoconf(priv->port); 153 /* Loop through every port o [all...] |
/freebsd-13-stable/sys/dev/bhnd/siba/ |
H A D | siba_subr.c | 201 * Map an addrspace index to its corresponding bhnd(4) BHND_PORT_DEVICE port 218 * Map an addrspace index to its corresponding bhnd(4) BHND_PORT_DEVICE port 235 * Map an config block index to its corresponding bhnd(4) BHND_PORT_AGENT port 248 * Map an config block index to its corresponding bhnd(4) BHND_PORT_AGENT port 265 * information on siba's mapping of bhnd(4) port and region identifiers. 268 * @param port_type The bhnd(4) port type. 279 /* One agent port maps all configuration blocks */ 283 /* Do not advertise an agent port if there are no configuration 293 * Return true if @p port of @p port_type is defined by @p core_id, false 297 * @param port_type The bhnd(4) port typ 301 siba_is_port_valid(struct siba_core_id *core_id, bhnd_port_type port_type, u_int port) argument 319 siba_port_region_count(struct siba_core_id *core_id, bhnd_port_type port_type, u_int port) argument 375 siba_cfg_index(struct siba_core_id *core_id, bhnd_port_type port_type, u_int port, u_int region, u_int *cfgidx) argument 409 siba_find_cfg_block(struct siba_devinfo *dinfo, bhnd_port_type type, u_int port, u_int region) argument 448 siba_addrspace_index(struct siba_core_id *core_id, bhnd_port_type port_type, u_int port, u_int region, u_int *addridx) argument 488 siba_find_addrspace(struct siba_devinfo *dinfo, bhnd_port_type type, u_int port, u_int region) argument [all...] |
/freebsd-13-stable/sys/dev/mlx4/ |
H A D | device.h | 922 __be32 port; member in struct:mlx4_eqe::__anon12747::__anon12753 930 u8 port; member in struct:mlx4_eqe::__anon12747::__anon12755 943 u8 port; member in struct:mlx4_eqe::__anon12747::__anon12758 964 u8 port; member in struct:mlx4_eqe::__anon12747::__anon12763 1007 #define mlx4_foreach_port(port, dev, type) \ 1008 for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ 1009 if ((type) == (dev)->caps.port_mask[(port)]) 1011 #define mlx4_foreach_ib_transport_port(port, de 1066 mlx4_is_eth(struct mlx4_dev *dev, int port) argument 1256 u8 port; member in struct:mlx4_net_trans_rule 1268 u8 port; member in struct:mlx4_net_trans_rule_hw_ctrl [all...] |
/freebsd-13-stable/stand/i386/libi386/ |
H A D | comconsole.c | 61 static void comc_setup(int speed, int port); 71 .c_desc = "serial port", 85 int speed, port; local 114 port = comc_parseint(env); 115 if (port > 0) 116 comc_port = port; 195 int port; local 197 if (value == NULL || (port = comc_parseint(value)) <= 0) { 198 printf("Invalid port\n"); 202 if (comc_port != port) 321 comc_setup(int speed, int port) argument [all...] |
/freebsd-13-stable/contrib/ofed/opensm/opensm/ |
H A D | osm_ucast_mgr.c | 146 ", port %u, remote port %u\n", 179 uint8_t port, 185 osm_physp_t *p = osm_node_get_physp_ptr(sw->p_node, port); 191 if (!dor || (r->guids[i].port == rem_port)) 196 r->guids[i].port = rem_port; 209 uint8_t port; local 219 * the initialization. Don't handle this port. */ 222 "Port 0x%" PRIx64 " (%s port %d) has LID 0. An " 223 "initialization error occurred. Ignoring port\ 178 find_and_add_remote_sys(osm_switch_t * sw, uint8_t port, boolean_t dor, struct osm_remote_guids_count *r) argument 321 osm_port_t *port; local 345 osm_port_t *port; local 387 osm_port_t *port = cl_item_obj(item, port, list_item); local 452 unsigned port, hop_wf; local 505 uint8_t port; local 719 osm_port_t *port = osm_get_port_by_guid(m->p_subn, cl_hton64(guid)); local 743 osm_port_t *port = (osm_port_t *) p_map_item; local 758 unsigned port; local 798 osm_port_t *port; local [all...] |
/freebsd-13-stable/contrib/sendmail/contrib/ |
H A D | etrn.pl | 42 my $port = 'smtp'; 113 ($port) = (getservbyname($port, 'tcp'))[2] 114 unless $port =~ /^\d+/; 125 my $sinl = sockaddr_in($port, $laddr); 156 my $sinr = sockaddr_in($port, $thataddr);
|
/freebsd-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/ |
H A D | tst.ipv4localudp.ksh | 42 # 1 x ip:::send (UDP sent to UDP port 33434) 43 # 1 x udp:::send (UDP sent to UDP port 33434) 59 port=33434 70 PeerPort => $port); 71 die "Could not create UDP socket $local port $port" unless \$s;
|
H A D | tst.ipv4localudplite.ksh | 42 # 1 x ip:::send (UDPLite sent to UDP-Lite port 33434) 43 # 1 x udplite:::send (UDPLite sent to UDP-Lite port 33434) 59 port=33434 71 PeerPort => $port); 72 die "Could not create UDP-Lite socket $local port $port" unless \$s;
|
H A D | tst.ipv4remoteudp.ksh | 42 # 1 x ip:::send (UDP sent to ping's base UDP port) 43 # 1 x udp:::send (UDP sent to ping's base UDP port) 53 port=33434 73 PeerPort => $port); 74 die "Could not create UDP socket $dest port $port" unless \$s;
|
H A D | tst.ipv4remoteudplite.ksh | 42 # 1 x ip:::send (UDP-Lite sent to UDP-Lite port 33434) 43 # 1 x udplite:::send (UDP-Lite sent to UDP-Lite port 33434) 53 port=33434 74 PeerPort => $port); 75 die "Could not create UDP-Lite socket $dest port $port" unless \$s;
|
/freebsd-13-stable/sys/dev/puc/ |
H A D | puc_cfg.c | 43 puc_config(struct puc_softc *sc, enum puc_cfg_cmd cmd, int port, intptr_t *r) argument 49 error = cfg->config_function(sc, cmd, port, r); 70 /* The length of bus space needed by the port. */ 116 *r = port * cfg->d_ofs; 119 /* The RID for this port. */ 120 if (port == 0) { 134 *r += port * cfg->d_rid; 137 /* The type of this port. */ 140 switch (port) {
|
/freebsd-13-stable/contrib/ofed/libibmad/ |
H A D | gs.c | 50 uint8_t *pma_query_via(void *rcvbuf, ib_portid_t * dest, int port, argument 59 DEBUG("lid %u port %d", lid, port); 71 mad_set_field(rcvbuf, 0, IB_PC_PORT_SELECT_F, port); 88 int port, unsigned mask, unsigned timeout, 97 DEBUG("lid %u port %d mask 0x%x", lid, port, mask); 114 mad_set_field(rcvbuf, 0, IB_PC_PORT_SELECT_F, port); 87 performance_reset_via(void *rcvbuf, ib_portid_t * dest, int port, unsigned mask, unsigned timeout, unsigned id, const struct ibmad_port * srcport) argument
|
/freebsd-13-stable/sys/contrib/ncsw/inc/flib/ |
H A D | fsl_fman_port.h | 137 /** @Description General port defines */ 150 /** @Description BMI Rx port register map */ 210 /** @Description BMI Tx port register map */ 247 /** @Description BMI O/H port register map */ 298 /** @Description BMI port register map */ 305 /** @Description QMI port register map */ 330 /* Default port color */ 332 E_FMAN_PORT_COLOR_GREEN, /**< Default port color is green */ 333 E_FMAN_PORT_COLOR_YELLOW, /**< Default port color is yellow */ 334 E_FMAN_PORT_COLOR_RED, /**< Default port colo [all...] |
/freebsd-13-stable/usr.sbin/ypset/ |
H A D | ypset.c | 67 int sock, port, r; local 69 port = getrpcport(server, YPPROG, YPPROC_NULL, IPPROTO_UDP); 70 if (port == 0) 72 port = htons(port); 85 bcopy(&port, &ypsd.ypsetdom_binding.ypbind_binding_port,
|
/freebsd-13-stable/usr.sbin/ctld/ |
H A D | kernel.c | 304 log_errx(1, "%s: improper port element nesting (%s)", 426 struct port *cp; 432 struct cctl_port *port; local 544 STAILQ_FOREACH(port, &devlist.port_list, links) { 545 if (strcmp(port->port_frontend, "ha") == 0) 548 if (port->pp == 0 && port->vp == 0) { 549 name = checked_strdup(port->port_name); 550 } else if (port->vp == 0) { 552 port 1009 kernel_port_add(struct port *port) argument 1136 kernel_port_update(struct port *port, struct port *oport) argument 1166 kernel_port_remove(struct port *port) argument [all...] |
/freebsd-13-stable/lib/libc/tests/sys/ |
H A D | sendfile_test.c | 79 printf("Generating a random port with seed=%d\n", seed); 95 printf("Random port generated: %d\n", random_port); 100 resolve_localhost(struct addrinfo **res, int domain, int type, int port) argument 118 ATF_REQUIRE_MSG(asprintf(&serv, "%d", port) >= 0, 145 setup_client(int domain, int type, int port) argument 151 resolve_localhost(&res, domain, type, port); 171 * XXX: use linear probing to find a free port and eliminate `port` argument as 173 * the function and can influence which port `setup_client(..)` connects on. 176 setup_server(int domain, int type, int port) argument 254 setup_tcp_server(int domain, int port) argument 261 setup_tcp_client(int domain, int port) argument 339 int client_sock, error, fd, port, server_sock; local 406 int client_sock, error, fd, port, server_sock; local 481 int client_sock, error, fd, port, server_sock; local 527 int client_sock, error, fd, i, port, server_sock; local 666 int client_sock, error, fd, fd2, i, port, rc, server_sock; local 769 int client_sock, error, fd, port, server_sock; local 833 int client_sock, error, fd, port, server_sock; local 881 int client_sock, error, fd, port, server_sock; local 933 int client_sock, error, fd, port, server_sock; local 983 int client_sock, error, fd, port; local 1077 int client_sock, error, fd, port; local [all...] |