/freebsd-10.3-release/sys/contrib/octeon-sdk/ |
H A D | cvmx-mgmt-port.c | 49 * Support functions for managing the MII management port 57 #include "cvmx-mgmt-port.h" 90 * Per port state required for each mgmt port 97 int port; /* Port to use. (This is the 'fake' IPD port number */ member in struct:__anon7469 107 * Pointers to each mgmt port's state 144 * Called to initialize a management port for use. Multiple calls 147 * @param port Port to initialize 151 cvmx_mgmt_port_result_t cvmx_mgmt_port_initialize(int port) argument 425 cvmx_mgmt_port_shutdown(int port) argument 449 cvmx_mgmt_port_enable(int port) argument 498 cvmx_mgmt_port_disable(int port) argument 529 cvmx_mgmt_port_send(int port, int packet_len, void *buffer) argument 589 cvmx_mgmt_port_sendm(int port, const struct mbuf *m) argument 645 cvmx_mgmt_port_receive(int port, int buffer_len, uint8_t *buffer) argument 763 cvmx_mgmt_port_set_mac(int port, uint64_t mac) argument 803 cvmx_mgmt_port_get_mac(int port) argument 819 cvmx_mgmt_port_set_multicast_list(int port, int flags) argument 867 cvmx_mgmt_port_set_max_packet_size(int port, int size_without_fcs) argument 892 cvmx_mgmt_port_link_get(int port) argument 927 cvmx_mgmt_port_link_set(int port, cvmx_helper_link_info_t link_info) argument [all...] |
H A D | cvmx-helper-npi.c | 130 int port; local 131 for (port=0; port<num_ports; port++) 135 cvmx_helper_get_pknd(interface, port) : 136 cvmx_helper_get_ipd_port(interface, port); 149 config.u64 = cvmx_read_csr(CVMX_PEXP_SLI_PORTX_PKIND(port)); 150 config.s.bpkind = cvmx_helper_get_bpid(interface, port); 151 config.s.pkind = cvmx_helper_get_pknd(interface, port); 152 cvmx_write_csr(CVMX_PEXP_SLI_PORTX_PKIND(port), confi [all...] |
/freebsd-10.3-release/contrib/ntp/tests/libntp/ |
H A D | sockaddrtest.h | 9 sockaddr_u CreateSockaddr4(const char* address, unsigned int port);
|
/freebsd-10.3-release/sys/pc98/cbus/ |
H A D | nmi.c | 55 int port = inb(0x33); local 57 log(LOG_CRIT, "NMI PC98 port = %x\n", port); 58 if (port & NMI_PARITY) { 61 } else if (port & NMI_EPARITY) {
|
/freebsd-10.3-release/crypto/heimdal/lib/roken/ |
H A D | getaddrinfo_hostspec.c | 38 /* getaddrinfo via string specifying host and port */ 43 int port, 56 int port; member in struct:hst 73 if(port == 0) 74 port = hstp->port; 84 port = strtol (p + 1, &end, 0); 89 snprintf (portstr, sizeof(portstr), "%u", port); 97 int port, 100 return roken_getaddrinfo_hostspec2(hostspec, 0, port, a 41 roken_getaddrinfo_hostspec2(const char *hostspec, int socktype, int port, struct addrinfo **ai) argument 96 roken_getaddrinfo_hostspec(const char *hostspec, int port, struct addrinfo **ai) argument [all...] |
/freebsd-10.3-release/sys/compat/ndis/ |
H A D | subr_hal.c | 134 WRITE_PORT_ULONG(port, val) 135 uint32_t *port; 138 bus_space_write_4(NDIS_BUS_SPACE_IO, 0x0, (bus_size_t)port, val); 142 WRITE_PORT_USHORT(uint16_t *port, uint16_t val) argument 144 bus_space_write_2(NDIS_BUS_SPACE_IO, 0x0, (bus_size_t)port, val); 148 WRITE_PORT_UCHAR(uint8_t *port, uint8_t val) argument 150 bus_space_write_1(NDIS_BUS_SPACE_IO, 0x0, (bus_size_t)port, val); 154 WRITE_PORT_BUFFER_ULONG(port, val, cnt) 155 uint32_t *port; 160 (bus_size_t)port, va [all...] |
/freebsd-10.3-release/sys/dev/ed/ |
H A D | if_edvar.h | 54 struct resource* port_res; /* resource for port range */ 55 struct resource* port_res2; /* resource for port range */ 114 #define ed_nic_barrier(sc, port, length, flags) \ 116 (sc)->nic_offset + (port), (length), (flags)) 118 #define ed_nic_inb(sc, port) \ 119 bus_space_read_1(sc->port_bst, sc->port_bsh, (sc)->nic_offset + (port)) 121 #define ed_nic_outb(sc, port, value) \ 123 (sc)->nic_offset + (port), (value)) 125 #define ed_nic_inw(sc, port) \ 126 bus_space_read_2(sc->port_bst, sc->port_bsh, (sc)->nic_offset + (port)) [all...] |
/freebsd-10.3-release/sys/dev/virtio/console/ |
H A D | virtio_console.c | 112 * indexed by the port ID. 134 ("%s: port ID %d out of range", __func__, _id)) 327 device_printf(dev, "cannot allocate softc port structures\n"); 504 /* The control virtqueues are after the first port. */ 517 scport, &scport->vcsp_invq, "%s-port%d in", 520 NULL, &scport->vcsp_outvq, "%s-port%d out", 550 struct vtcon_port *port; local 561 port = scport->vcsp_port; 562 if (port != NULL) { 564 VTCON_PORT_LOCK(port); 727 struct vtcon_port *port; local 752 struct vtcon_port *port; local 778 struct vtcon_port *port; local 937 vtcon_port_enqueue_buf(struct vtcon_port *port, void *buf, size_t len) argument 957 vtcon_port_create_buf(struct vtcon_port *port) argument 974 vtcon_port_requeue_buf(struct vtcon_port *port, void *buf) argument 984 vtcon_port_populate(struct vtcon_port *port) argument 1007 vtcon_port_destroy(struct vtcon_port *port) argument 1020 vtcon_port_init_vqs(struct vtcon_port *port) argument 1054 struct vtcon_port *port; local 1108 vtcon_port_drain(struct vtcon_port *port) argument 1115 vtcon_port_teardown(struct vtcon_port *port) argument 1131 vtcon_port_change_size(struct vtcon_port *port, uint16_t cols, uint16_t rows) argument 1151 struct vtcon_port *port; local 1176 vtcon_port_enable_intr(struct vtcon_port *port) argument 1187 vtcon_port_disable_intr(struct vtcon_port *port) argument 1197 vtcon_port_in(struct vtcon_port *port) argument 1237 struct vtcon_port *port; local 1256 vtcon_port_out(struct vtcon_port *port, void *buf, int bufsize) argument 1265 ("%s: port %p out virtqueue not emtpy", __func__, port)); local 1280 vtcon_port_submit_event(struct vtcon_port *port, uint16_t event, uint16_t value) argument 1293 struct vtcon_port *port; local 1308 struct vtcon_port *port; local 1321 struct vtcon_port *port; local 1337 struct vtcon_port *port; local 1363 struct vtcon_port *port; local 1390 struct vtcon_port *port; local [all...] |
/freebsd-10.3-release/sys/dev/fe/ |
H A D | if_fevar.h | 124 u_char port; /* Offset from the base I/O address. */ member in struct:fe_simple_probe_struct 155 #define fe_inb(sc, port) \ 156 bus_read_1((sc)->port_res, (port)) 158 #define fe_outb(sc, port, value) \ 159 bus_write_1((sc)->port_res, (port), (value)) 161 #define fe_inw(sc, port) \ 162 bus_read_2((sc)->port_res, (port)) 164 #define fe_outw(sc, port, value) \ 165 bus_write_2((sc)->port_res, (port), (value)) 167 #define fe_insb(sc, port, add [all...] |
/freebsd-10.3-release/contrib/ofed/libibverbs/examples/ |
H A D | pingpong.h | 41 uint16_t pp_get_local_lid(struct ibv_context *context, int port); 42 int pp_get_port_info(struct ibv_context *context, int port,
|
/freebsd-10.3-release/crypto/openssh/openbsd-compat/ |
H A D | bindresvport.c | 50 * Bind a socket to a privileged IP port 60 u_int16_t port; local 90 port = ntohs(*portp); 91 if (port == 0) 92 port = arc4random_uniform(NPORTS) + STARTPORT; 98 *portp = htons(port); 110 port++; 111 if (port > ENDPORT) 112 port = STARTPORT;
|
/freebsd-10.3-release/sys/dev/cx/ |
H A D | cxddk.c | 30 /* standard base port set */ 71 int cx_open_board (cx_board_t *b, int num, port_t port, int irq, int dma) argument 75 if (num >= NBRD || ! cx_probe_board (port, irq, dma)) 86 cx_init (b, num, port, irq, dma); 102 outb (BCR0(b->port), 0); 104 outb (BCR0(b->port+0x10), 0); 132 outb (CAR(c->port), c->num & 3); 135 outw (ARBADRU(c->port), (unsigned short) (c->arphys>>16)); 136 outw (ARBADRL(c->port), (unsigned short) c->arphys); 139 outw (BRBADRU(c->port), (unsigne [all...] |
H A D | csigma.c | 41 /* standard base port set */ 74 port_t port = CCR(base); local 78 for (count=0; inb(port) && count<20000; ++count) 82 outb (port, cmd); 85 for (count=0; inb(port) && count<20000; ++count) 92 static int cx_reset (port_t port) argument 98 if (inb(GFRCR(port)) != 0) 101 cx_cmd (port, CCR_RSTALL); 106 if (inb(GFRCR(port)) != 0) 113 int cx_download (port_t port, cons argument 145 cx_probe_chained_board(port_t port, int *c0, int *c1) argument 190 cx_probe_800_chained_board(port_t port) argument 216 cx_probe_2x_board(port_t port) argument 236 cx_probe_board(port_t port, int irq, int dma) argument 347 port_t port; local 378 cx_chip_revision(port_t port, int rev) argument 396 cx_init(cx_board_t *b, int num, port_t port, int irq, int dma) argument 436 cx_init_board(cx_board_t *b, int num, port_t port, int irq, int dma, int chain, int rev, int osc, int mod, int rev2, int osc2, int mod2) argument 752 cx_init_800(cx_board_t *b, int num, port_t port, int irq, int dma, int chain) argument 810 cx_init_2x(cx_board_t *b, int num, port_t port, int irq, int dma, int rev, int osc) argument [all...] |
/freebsd-10.3-release/contrib/ipfilter/lib/ |
H A D | getport.c | 14 int getport(fr, name, port, proto) 17 u_short *port; 26 *port = s->s_port; 34 *port = htons((u_short)portval); 41 * Some people will use port names in rules without specifying 61 *port = p1; 63 *port = s->s_port; 79 *port = p1; 86 *port = s->s_port;
|
/freebsd-10.3-release/sys/amd64/vmm/io/ |
H A D | vatpit.h | 40 int vatpit_handler(struct vm *vm, int vcpuid, bool in, int port, int bytes, 42 int vatpit_nmisc_handler(struct vm *vm, int vcpuid, bool in, int port,
|
/freebsd-10.3-release/sys/dev/isci/scil/ |
H A D | scic_port.h | 61 * by an SCI Core user on a SAS or SATA port. 85 * for each end-point local or remote (attached) port in the 92 * point in the port. 98 * end-point in the port. 107 * for each port in the controller. 112 * This field specifies the logical index of the port (0 relative). 117 * This field indicates the local end-point properties for port. 123 * for the port. 128 * This field specifies the phys contained inside the port. 136 * port, suc [all...] |
/freebsd-10.3-release/sys/dev/sfxge/ |
H A D | sfxge_port.c | 51 struct sfxge_port *port = &sc->port; local 52 efsys_mem_t *esmp = &(port->mac_stats.dma_buf); 57 SFXGE_PORT_LOCK_ASSERT_OWNED(port); 59 if (__predict_false(port->init_state != SFXGE_PORT_STARTED)) { 65 if (now - port->mac_stats.update_time < hz) { 70 port->mac_stats.update_time = now; 79 port->mac_stats.decode_buf, NULL)) != EAGAIN) 96 SFXGE_PORT_LOCK(&sc->port); 102 mac_stats = (uint64_t *)sc->port 205 struct sfxge_port *port; local 243 struct sfxge_port *port; local 276 struct sfxge_port *port; local 298 struct sfxge_port *port; local 322 struct sfxge_port *port = &sc->port; local 364 struct sfxge_port *port = &sc->port; local 386 struct sfxge_port *port = &sc->port; local 411 struct sfxge_port *port; local 446 struct sfxge_port *port; local 532 struct sfxge_port *port = &sc->port; local 621 struct sfxge_port *port; local 649 struct sfxge_port *port; local [all...] |
/freebsd-10.3-release/sys/xen/interface/ |
H A D | event_channel.h | 83 * EVTCHNOP_alloc_unbound: Allocate a port in domain <dom> and mark as 84 * accepting interdomain bindings from domain <remote_dom>. A fresh port 85 * is allocated in <dom> and returned as <port>. 94 evtchn_port_t port; member in struct:evtchn_alloc_unbound 101 * a port that is unbound and marked as accepting bindings from the calling 102 * domain. A fresh port is allocated in the calling domain and returned as 133 evtchn_port_t port; member in struct:evtchn_bind_virq 149 evtchn_port_t port; member in struct:evtchn_bind_pirq 162 evtchn_port_t port; member in struct:evtchn_bind_ipi 167 * EVTCHNOP_close: Close a local event channel <port> 173 evtchn_port_t port; member in struct:evtchn_close 183 evtchn_port_t port; member in struct:evtchn_send 198 evtchn_port_t port; member in struct:evtchn_status 214 evtchn_port_t port; member in struct:evtchn_status::__anon12176::__anon12178 236 evtchn_port_t port; member in struct:evtchn_bind_vcpu 247 evtchn_port_t port; member in struct:evtchn_unmask [all...] |
/freebsd-10.3-release/sys/dev/ata/ |
H A D | ata-sata.c | 50 ata_sata_phy_check_events(device_t dev, int port) argument 55 if (ata_sata_scr_read(ch, port, ATA_SERROR, &error)) 64 ata_sata_scr_write(ch, port, ATA_SERROR, error); 69 if (ata_sata_scr_read(ch, port, ATA_SSTATUS, &status)) { 83 ata_sata_scr_read(struct ata_channel *ch, int port, int reg, uint32_t *val) argument 87 return (ch->hw.pm_read(ch->dev, port, reg, val)); 96 ata_sata_scr_write(struct ata_channel *ch, int port, int reg, uint32_t val) argument 100 return (ch->hw.pm_write(ch->dev, port, reg, val)); 109 ata_sata_connect(struct ata_channel *ch, int port, int quick) argument 118 if (ata_sata_scr_read(ch, port, ATA_SSTATU 153 ata_sata_phy_reset(device_t dev, int port, int quick) argument 290 int port; local [all...] |
/freebsd-10.3-release/contrib/ofed/management/infiniband-diags/scripts/ |
H A D | check_lft_balance.pl | 81 my $port = $_[1]; 86 $port =~ /0+(.+)/; 108 my $port = $_[1]; 116 if (($switch_port_count{$port} != $lids_per_port) 122 $port =~ /0+(.+)/; 161 my $port; 174 for $port (@ports) { 175 if (!defined($switch_port_count{$port})) { 176 $switch_port_count{$port} = 0; 179 if ($switch_port_count{$port} [all...] |
/freebsd-10.3-release/sys/dev/digi/ |
H A D | digi.c | 74 static void fepcmd(struct digi_p *port, int cmd, int op, int ncmds); 84 #define fepcmd_b(port, cmd, op1, op2, ncmds) \ 85 fepcmd(port, cmd, (op2 << 8) | op1, ncmds) 217 struct digi_p *port; local 250 * another port module. For now, we just re-initialise 273 outb(sc->port, FEPCLR); 292 outb(sc->port, FEPRST | FEPMEM); 294 for (i = 0; ((sc->pcibus ? PCIPORT : inb(sc->port)) & 343 outb(sc->port, FEPCLR); 346 outb(sc->port, FEPCL 606 struct digi_p *port; local 665 struct digi_p *port; local 718 struct digi_p *port = chan; local 729 struct digi_p *port; local 836 struct digi_p *port; local 915 struct digi_p *port; local 968 struct digi_p *port; local 984 struct digi_p *port; local 1086 struct digi_p *port; local 1311 struct digi_p *port; local 1393 struct digi_p *port; local 1404 fepcmd(struct digi_p *port, int cmd, int op1, int ncmds) argument 1469 struct digi_p *port; local [all...] |
/freebsd-10.3-release/sys/mips/cavium/octe/ |
H A D | ethernet.c | 84 * the ipd input port number. 111 DEBUGPRINT("%s: %u Mbps %s duplex, port %2d, queue %2d\n", 114 priv->port, priv->queue); 129 static int port; local 131 if (port < CVMX_PIP_NUM_INPUT_PORTS) { 132 if (cvm_oct_device[port]) { 135 cvm_oct_private_t *priv = (cvm_oct_private_t *)cvm_oct_device[port]->if_softc; 143 queues_per_port = cvmx_pko_get_num_queues(port); 163 port++; 164 /* Poll the next port i 320 int port; local 349 int port; local 471 int port; local [all...] |
/freebsd-10.3-release/contrib/ntp/lib/isc/include/isc/ |
H A D | portset.h | 23 * (UDP or TCP) port numbers, e.g., for creating an ACL list. An isc_portset_t 24 * object is an opaque instance of a port set, for which the user can add or 25 * remove a specific port or a range of consecutive ports. This object is 49 * Create a port set and initialize it as an empty set. 63 * Destroy a port set. 66 *\li 'mctx' to be valid and must be the same context given when the port set 72 isc_portset_isset(isc_portset_t *portset, in_port_t port); 74 * Test whether the given port is stored in the portset. 80 * \li #ISC_TRUE if the port is found, ISC_FALSE otherwise. 96 isc_portset_add(isc_portset_t *portset, in_port_t port); [all...] |
/freebsd-10.3-release/usr.sbin/bhyve/ |
H A D | inout.c | 55 #define VERIFY_IOPORT(port, size) \ 56 assert((port) >= 0 && (size) > 0 && ((port) + (size)) <= MAX_IOPORTS) 66 default_inout(struct vmctx *ctx, int vcpu, int in, int port, int bytes, argument 95 iop.port = start; 106 int addrsize, bytes, flags, in, port, prot, rep; local 118 port = vmexit->u.inout.port; 120 assert(port < MAX_IOPORTS); 123 handler = inout_handlers[port] [all...] |
/freebsd-10.3-release/sys/ofed/drivers/infiniband/core/ |
H A D | local_sa.c | 135 struct sa_db_port port[0]; member in struct:sa_db_device 192 static void process_updates(struct sa_db_port *port); 396 static void update_path_db(struct sa_db_port *port, argument 409 port->update_id += (type == SA_UPDATE_FULL); 416 ret = insert_attr(&port->paths, port->update_id, 426 remove_old_attrs(&port->paths, port->update_id); 429 static struct ib_mad_send_buf *get_sa_msg(struct sa_db_port *port, argument 435 msg = ib_create_send_mad(port 465 format_path_req(struct sa_db_port *port, struct update_info *update, struct ib_mad_send_buf *msg) argument 492 send_query(struct sa_db_port *port, struct update_info *update) argument 515 add_update(struct sa_db_port *port, u8 *gid, enum sa_update_type type) argument 534 clean_update_list(struct sa_db_port *port) argument 549 struct sa_db_port *port = info->context; local 588 reg_in_info(struct sa_db_port *port) argument 604 reg_out_info(struct sa_db_port *port) argument 620 unsubscribe_port(struct sa_db_port *port) argument 633 cleanup_port(struct sa_db_port *port) argument 641 update_port_info(struct sa_db_port *port) argument 658 process_updates(struct sa_db_port *port) argument 709 refresh_port_db(struct sa_db_port *port) argument 807 struct sa_db_port *port; local 819 struct sa_db_port *port; local 847 struct sa_db_port *port; local 1079 struct sa_db_port *port; local 1106 struct sa_db_port *port; local 1144 struct sa_db_port *port; local 1167 destroy_port(struct sa_db_port *port) argument 1181 struct sa_db_port *port; local [all...] |