port 978 arch/i386/i386/esm.c esm_bmc_ready(struct esm_softc *sc, int port, u_int8_t mask, u_int8_t val, port 984 arch/i386/i386/esm.c if ((EREAD(sc, port) & mask) == val) port 47 arch/i386/include/pio.h #define __use_immediate_port(port) \ port 48 arch/i386/include/pio.h (__builtin_constant_p((port)) && (port) < 0x100) port 52 arch/i386/include/pio.h #define __use_immediate_port(port) 0 port 57 arch/i386/include/pio.h #define inb(port) \ port 58 arch/i386/include/pio.h (__use_immediate_port(port) ? __inbc(port) : __inb(port)) port 61 arch/i386/include/pio.h __inbc(int port) port 64 arch/i386/include/pio.h __asm __volatile("inb %w1,%0" : "=a" (data) : "id" (port)); port 69 arch/i386/include/pio.h __inb(int port) port 72 arch/i386/include/pio.h __asm __volatile("inb %w1,%0" : "=a" (data) : "d" (port)); port 77 arch/i386/include/pio.h insb(int port, void *addr, int cnt) port 80 arch/i386/include/pio.h : "+D" (addr), "+c" (cnt) : "d" (port) : "memory", "cc"); port 83 arch/i386/include/pio.h #define inw(port) \ port 84 arch/i386/include/pio.h (__use_immediate_port(port) ? __inwc(port) : __inw(port)) port 87 arch/i386/include/pio.h __inwc(int port) port 90 arch/i386/include/pio.h __asm __volatile("inw %w1,%0" : "=a" (data) : "id" (port)); port 95 arch/i386/include/pio.h __inw(int port) port 98 arch/i386/include/pio.h __asm __volatile("inw %w1,%0" : "=a" (data) : "d" (port)); port 103 arch/i386/include/pio.h insw(int port, void *addr, int cnt) port 106 arch/i386/include/pio.h : "+D" (addr), "+c" (cnt) : "d" (port) : "memory", "cc"); port 109 arch/i386/include/pio.h #define inl(port) \ port 110 arch/i386/include/pio.h (__use_immediate_port(port) ? __inlc(port) : __inl(port)) port 113 arch/i386/include/pio.h __inlc(int port) port 116 arch/i386/include/pio.h __asm __volatile("inl %w1,%0" : "=a" (data) : "id" (port)); port 121 arch/i386/include/pio.h __inl(int port) port 124 arch/i386/include/pio.h __asm __volatile("inl %w1,%0" : "=a" (data) : "d" (port)); port 129 arch/i386/include/pio.h insl(int port, void *addr, int cnt) port 132 arch/i386/include/pio.h : "+D" (addr), "+c" (cnt) : "d" (port) : "memory", "cc"); port 135 arch/i386/include/pio.h #define outb(port, data) \ port 136 arch/i386/include/pio.h (__use_immediate_port(port) ? __outbc(port, data) : __outb(port, data)) port 139 arch/i386/include/pio.h __outbc(int port, u_int8_t data) port 141 arch/i386/include/pio.h __asm __volatile("outb %0,%w1" : : "a" (data), "id" (port)); port 145 arch/i386/include/pio.h __outb(int port, u_int8_t data) port 147 arch/i386/include/pio.h __asm __volatile("outb %0,%w1" : : "a" (data), "d" (port)); port 151 arch/i386/include/pio.h outsb(int port, const void *addr, int cnt) port 154 arch/i386/include/pio.h : "+S" (addr), "+c" (cnt) : "d" (port) : "cc"); port 157 arch/i386/include/pio.h #define outw(port, data) \ port 158 arch/i386/include/pio.h (__use_immediate_port(port) ? __outwc(port, data) : __outw(port, data)) port 161 arch/i386/include/pio.h __outwc(int port, u_int16_t data) port 163 arch/i386/include/pio.h __asm __volatile("outw %0,%w1" : : "a" (data), "id" (port)); port 167 arch/i386/include/pio.h __outw(int port, u_int16_t data) port 169 arch/i386/include/pio.h __asm __volatile("outw %0,%w1" : : "a" (data), "d" (port)); port 173 arch/i386/include/pio.h outsw(int port, const void *addr, int cnt) port 176 arch/i386/include/pio.h : "+S" (addr), "+c" (cnt) : "d" (port) : "cc"); port 179 arch/i386/include/pio.h #define outl(port, data) \ port 180 arch/i386/include/pio.h (__use_immediate_port(port) ? __outlc(port, data) : __outl(port, data)) port 183 arch/i386/include/pio.h __outlc(int port, u_int32_t data) port 185 arch/i386/include/pio.h __asm __volatile("outl %0,%w1" : : "a" (data), "id" (port)); port 189 arch/i386/include/pio.h __outl(int port, u_int32_t data) port 191 arch/i386/include/pio.h __asm __volatile("outl %0,%w1" : : "a" (data), "d" (port)); port 195 arch/i386/include/pio.h outsl(int port, const void *addr, int cnt) port 198 arch/i386/include/pio.h : "+S" (addr), "+c" (cnt) : "d" (port) : "cc"); port 97 arch/i386/isa/joy.c int port = sc->port; port 102 arch/i386/isa/joy.c outb(port, 0xff); port 107 arch/i386/isa/joy.c state = inb(port); port 83 arch/i386/isa/joy_isa.c sc->port = iobase; port 72 arch/i386/isa/joy_isapnp.c sc->port = iobase; port 64 arch/i386/isa/joyreg.h int port; port 220 arch/i386/pci/pci_machdep.c tag.mode2.port = 0xc000 | (device << 8); port 248 arch/i386/pci/pci_machdep.c *dp = (tag.mode2.port >> 8) & 0xf; port 271 arch/i386/pci/pci_machdep.c data = inl(tag.mode2.port | reg); port 294 arch/i386/pci/pci_machdep.c outl(tag.mode2.port | reg, data); port 52 arch/i386/pci/pci_machdep.h u_int16_t port; port 122 compat/linux/linux_socket.h unsigned char port; port 120 compat/sunos/sunos.h u_int port; port 315 compat/svr4/svr4_stream.c na->port = sain->sin_port; port 317 compat/svr4/svr4_stream.c DPRINTF(("sockaddr_in -> netaddr %d %d %lx\n", na->family, na->port, port 353 compat/svr4/svr4_stream.c sain->sin_port = na->port; port 138 compat/svr4/svr4_stropts.h u_short port; port 150 dev/ata/atascsi.c atascsi_probe(struct atascsi *as, int port) port 156 dev/ata/atascsi.c if (port > as->as_link.adapter_buswidth) port 159 dev/ata/atascsi.c type = as->as_methods->probe(as->as_cookie, port); port 174 dev/ata/atascsi.c ap->ap_port = port; port 177 dev/ata/atascsi.c as->as_ports[port] = ap; port 2398 dev/audio.c au_set_port(struct audio_softc *sc, struct au_mixer_ports *ports, u_int port) port 2403 dev/audio.c if (port == 0) /* allow this special case */ port 2410 dev/audio.c if (port & (port-1)) port 2415 dev/audio.c if (ports->aumask[i] == port) { port 2424 dev/audio.c if (ports->aumask[i] & port) port 2426 dev/audio.c if (port != 0 && ct.un.mask == 0) port 2604 dev/audio.c if (p->port != ~0) { port 2609 dev/audio.c error = au_set_port(sc, &sc->sc_outports, p->port); port 2613 dev/audio.c if (r->port != ~0) { port 2618 dev/audio.c error = au_set_port(sc, &sc->sc_inports, r->port); port 2779 dev/audio.c r->port = au_get_port(sc, &sc->sc_inports); port 2780 dev/audio.c p->port = au_get_port(sc, &sc->sc_outports); port 96 dev/dec/if_le_dec.c le_dec_wrcsr(struct am7990_softc *sc, u_int16_t port, u_int16_t val) port 100 dev/dec/if_le_dec.c LEWREG(port, ler1->ler1_rap); port 101 dev/dec/if_le_dec.c LERDWR(port, val, ler1->ler1_rdp); port 105 dev/dec/if_le_dec.c le_dec_rdcsr(struct am7990_softc *sc, u_int16_t port) port 110 dev/dec/if_le_dec.c LEWREG(port, ler1->ler1_rap); port 77 dev/eisa/bha_eisa.c int port; port 81 dev/eisa/bha_eisa.c port = 0x330; port 84 dev/eisa/bha_eisa.c port = 0x334; port 87 dev/eisa/bha_eisa.c port = 0x230; port 90 dev/eisa/bha_eisa.c port = 0x234; port 93 dev/eisa/bha_eisa.c port = 0x130; port 96 dev/eisa/bha_eisa.c port = 0x134; port 102 dev/eisa/bha_eisa.c *portp = port; port 119 dev/eisa/bha_eisa.c int port; port 132 dev/eisa/bha_eisa.c if (bha_eisa_address(iot, ioh, &port) || port 133 dev/eisa/bha_eisa.c bus_space_map(iot, port, BHA_ISA_IOSIZE, 0, &ioh2)) { port 158 dev/eisa/bha_eisa.c int port; port 178 dev/eisa/bha_eisa.c if (bha_eisa_address(iot, ioh, &port) || port 179 dev/eisa/bha_eisa.c bus_space_map(iot, port, BHA_ISA_IOSIZE, 0, &ioh2)) { port 10424 dev/ic/aic79xx.c ahd_inw(struct ahd_softc *ahd, u_int port) port 10431 dev/ic/aic79xx.c return ((ahd_inb(ahd, port+1) << 8) | ahd_inb(ahd, port)); port 10435 dev/ic/aic79xx.c ahd_outw(struct ahd_softc *ahd, u_int port, u_int value) port 10441 dev/ic/aic79xx.c ahd_outb(ahd, port, value & 0xFF); port 10442 dev/ic/aic79xx.c ahd_outb(ahd, port+1, (value >> 8) & 0xFF); port 10446 dev/ic/aic79xx.c ahd_inl(struct ahd_softc *ahd, u_int port) port 10448 dev/ic/aic79xx.c return ((ahd_inb(ahd, port)) port 10449 dev/ic/aic79xx.c | (ahd_inb(ahd, port+1) << 8) port 10450 dev/ic/aic79xx.c | (ahd_inb(ahd, port+2) << 16) port 10451 dev/ic/aic79xx.c | (ahd_inb(ahd, port+3) << 24)); port 10455 dev/ic/aic79xx.c ahd_outl(struct ahd_softc *ahd, u_int port, uint32_t value) port 10457 dev/ic/aic79xx.c ahd_outb(ahd, port, (value) & 0xFF); port 10458 dev/ic/aic79xx.c ahd_outb(ahd, port+1, ((value) >> 8) & 0xFF); port 10459 dev/ic/aic79xx.c ahd_outb(ahd, port+2, ((value) >> 16) & 0xFF); port 10460 dev/ic/aic79xx.c ahd_outb(ahd, port+3, ((value) >> 24) & 0xFF); port 10464 dev/ic/aic79xx.c ahd_inq(struct ahd_softc *ahd, u_int port) port 10466 dev/ic/aic79xx.c return ((ahd_inb(ahd, port)) port 10467 dev/ic/aic79xx.c | (ahd_inb(ahd, port+1) << 8) port 10468 dev/ic/aic79xx.c | (ahd_inb(ahd, port+2) << 16) port 10469 dev/ic/aic79xx.c | (ahd_inb(ahd, port+3) << 24) port 10470 dev/ic/aic79xx.c | (((uint64_t)ahd_inb(ahd, port+4)) << 32) port 10471 dev/ic/aic79xx.c | (((uint64_t)ahd_inb(ahd, port+5)) << 40) port 10472 dev/ic/aic79xx.c | (((uint64_t)ahd_inb(ahd, port+6)) << 48) port 10473 dev/ic/aic79xx.c | (((uint64_t)ahd_inb(ahd, port+7)) << 56)); port 10477 dev/ic/aic79xx.c ahd_outq(struct ahd_softc *ahd, u_int port, uint64_t value) port 10479 dev/ic/aic79xx.c ahd_outb(ahd, port, value & 0xFF); port 10480 dev/ic/aic79xx.c ahd_outb(ahd, port+1, (value >> 8) & 0xFF); port 10481 dev/ic/aic79xx.c ahd_outb(ahd, port+2, (value >> 16) & 0xFF); port 10482 dev/ic/aic79xx.c ahd_outb(ahd, port+3, (value >> 24) & 0xFF); port 10483 dev/ic/aic79xx.c ahd_outb(ahd, port+4, (value >> 32) & 0xFF); port 10484 dev/ic/aic79xx.c ahd_outb(ahd, port+5, (value >> 40) & 0xFF); port 10485 dev/ic/aic79xx.c ahd_outb(ahd, port+6, (value >> 48) & 0xFF); port 10486 dev/ic/aic79xx.c ahd_outb(ahd, port+7, (value >> 56) & 0xFF); port 167 dev/ic/aic79xx_openbsd.h #define ahd_inb(ahd, port) \ port 168 dev/ic/aic79xx_openbsd.h bus_space_read_1((ahd)->tags[(port) >> 8], \ port 169 dev/ic/aic79xx_openbsd.h (ahd)->bshs[(port) >> 8], (port) & 0xFF) port 171 dev/ic/aic79xx_openbsd.h #define ahd_outb(ahd, port, value) \ port 172 dev/ic/aic79xx_openbsd.h bus_space_write_1((ahd)->tags[(port) >> 8], \ port 173 dev/ic/aic79xx_openbsd.h (ahd)->bshs[(port) >> 8], (port) & 0xFF, value) port 175 dev/ic/aic79xx_openbsd.h #define ahd_inw_atomic(ahd, port) \ port 176 dev/ic/aic79xx_openbsd.h aic_le16toh(bus_space_read_2((ahd)->tags[(port) >> 8], \ port 177 dev/ic/aic79xx_openbsd.h (ahd)->bshs[(port) >> 8], (port) & 0xFF)) port 179 dev/ic/aic79xx_openbsd.h #define ahd_outw_atomic(ahd, port, value) \ port 180 dev/ic/aic79xx_openbsd.h bus_space_write_2((ahd)->tags[(port) >> 8], \ port 181 dev/ic/aic79xx_openbsd.h (ahd)->bshs[(port) >> 8], \ port 182 dev/ic/aic79xx_openbsd.h (port & 0xFF), aic_htole16(value)) port 184 dev/ic/aic79xx_openbsd.h #define ahd_outsb(ahd, port, valp, count) \ port 185 dev/ic/aic79xx_openbsd.h bus_space_write_multi_1((ahd)->tags[(port) >> 8], \ port 186 dev/ic/aic79xx_openbsd.h (ahd)->bshs[(port) >> 8], \ port 187 dev/ic/aic79xx_openbsd.h (port & 0xFF), valp, count) port 189 dev/ic/aic79xx_openbsd.h #define ahd_insb(ahd, port, valp, count) \ port 190 dev/ic/aic79xx_openbsd.h bus_space_read_multi_1((ahd)->tags[(port) >> 8], \ port 191 dev/ic/aic79xx_openbsd.h (ahd)->bshs[(port) >> 8], \ port 192 dev/ic/aic79xx_openbsd.h (port & 0xFF), valp, count) port 254 dev/ic/aic7xxx_inline.h ahc_inw(struct ahc_softc *ahc, u_int port); port 255 dev/ic/aic7xxx_inline.h IO_INLINE void ahc_outw(struct ahc_softc *ahc, u_int port, port 258 dev/ic/aic7xxx_inline.h ahc_inl(struct ahc_softc *ahc, u_int port); port 259 dev/ic/aic7xxx_inline.h IO_INLINE void ahc_outl(struct ahc_softc *ahc, u_int port, port 312 dev/ic/aic7xxx_inline.h ahc_inw(struct ahc_softc *ahc, u_int port) port 314 dev/ic/aic7xxx_inline.h return ((ahc_inb(ahc, port+1) << 8) | ahc_inb(ahc, port)); port 318 dev/ic/aic7xxx_inline.h ahc_outw(struct ahc_softc *ahc, u_int port, u_int value) port 320 dev/ic/aic7xxx_inline.h ahc_outb(ahc, port, value & 0xFF); port 321 dev/ic/aic7xxx_inline.h ahc_outb(ahc, port+1, (value >> 8) & 0xFF); port 325 dev/ic/aic7xxx_inline.h ahc_inl(struct ahc_softc *ahc, u_int port) port 327 dev/ic/aic7xxx_inline.h return ((ahc_inb(ahc, port)) port 328 dev/ic/aic7xxx_inline.h | (ahc_inb(ahc, port+1) << 8) port 329 dev/ic/aic7xxx_inline.h | (ahc_inb(ahc, port+2) << 16) port 330 dev/ic/aic7xxx_inline.h | (ahc_inb(ahc, port+3) << 24)); port 334 dev/ic/aic7xxx_inline.h ahc_outl(struct ahc_softc *ahc, u_int port, uint32_t value) port 336 dev/ic/aic7xxx_inline.h ahc_outb(ahc, port, (value) & 0xFF); port 337 dev/ic/aic7xxx_inline.h ahc_outb(ahc, port+1, ((value) >> 8) & 0xFF); port 338 dev/ic/aic7xxx_inline.h ahc_outb(ahc, port+2, ((value) >> 16) & 0xFF); port 339 dev/ic/aic7xxx_inline.h ahc_outb(ahc, port+3, ((value) >> 24) & 0xFF); port 179 dev/ic/aic7xxx_openbsd.h #define ahc_inb(ahc, port) \ port 180 dev/ic/aic7xxx_openbsd.h bus_space_read_1((ahc)->tag, (ahc)->bsh, port) port 182 dev/ic/aic7xxx_openbsd.h #define ahc_outb(ahc, port, value) \ port 183 dev/ic/aic7xxx_openbsd.h bus_space_write_1((ahc)->tag, (ahc)->bsh, port, value) port 185 dev/ic/aic7xxx_openbsd.h #define ahc_outsb(ahc, port, valp, count) \ port 186 dev/ic/aic7xxx_openbsd.h bus_space_write_multi_1((ahc)->tag, (ahc)->bsh, port, valp, count) port 188 dev/ic/aic7xxx_openbsd.h #define ahc_insb(ahc, port, valp, count) \ port 189 dev/ic/aic7xxx_openbsd.h bus_space_read_multi_1((ahc)->tag, (ahc)->bsh, port, valp, count) port 48 dev/ic/cacvar.h #define cac_inb(sc, port) \ port 49 dev/ic/cacvar.h bus_space_read_1((sc)->sc_iot, (sc)->sc_ioh, port) port 50 dev/ic/cacvar.h #define cac_inw(sc, port) \ port 51 dev/ic/cacvar.h bus_space_read_2((sc)->sc_iot, (sc)->sc_ioh, port) port 52 dev/ic/cacvar.h #define cac_inl(sc, port) \ port 53 dev/ic/cacvar.h bus_space_read_4((sc)->sc_iot, (sc)->sc_ioh, port) port 54 dev/ic/cacvar.h #define cac_outb(sc, port, val) \ port 55 dev/ic/cacvar.h bus_space_write_1((sc)->sc_iot, (sc)->sc_ioh, port, val) port 56 dev/ic/cacvar.h #define cac_outw(sc, port, val) \ port 57 dev/ic/cacvar.h bus_space_write_2((sc)->sc_iot, (sc)->sc_ioh, port, val) port 58 dev/ic/cacvar.h #define cac_outl(sc, port, val) \ port 59 dev/ic/cacvar.h bus_space_write_4((sc)->sc_iot, (sc)->sc_ioh, port, val) port 338 dev/ic/cissreg.h u_int16_t port; port 344 dev/ic/cissreg.h u_int16_t port; port 350 dev/ic/cissreg.h u_int16_t port; port 359 dev/ic/cissreg.h u_int16_t port; port 206 dev/ic/cy.c int card, port, cy_chip, num_chips, cdu, chip_offs, cy_clock; port 218 dev/ic/cy.c port = 0; port 245 dev/ic/cy.c sc->sc_ports[port].cy_port_num = port; port 246 dev/ic/cy.c sc->sc_ports[port].cy_memt = sc->sc_memt; port 247 dev/ic/cy.c sc->sc_ports[port].cy_memh = sc->sc_memh; port 248 dev/ic/cy.c sc->sc_ports[port].cy_chip_offs = chip_offs; port 249 dev/ic/cy.c sc->sc_ports[port].cy_bustype = sc->sc_bustype; port 250 dev/ic/cy.c sc->sc_ports[port].cy_clock = cy_clock; port 253 dev/ic/cy.c port++; port 258 dev/ic/cy.c printf(": %d ports\n", port); port 283 dev/ic/cy.c int port = CY_PORT(dev); port 296 dev/ic/cy.c port, flag, mode); port 299 dev/ic/cy.c cy = &sc->sc_ports[port]; port 336 dev/ic/cy.c sc->sc_dev.dv_xname, port); port 347 dev/ic/cy.c cd_write_reg(cy, CD1400_CAR, port & CD1400_CAR_CHAN); port 352 dev/ic/cy.c cd_write_reg(cy, CD1400_LIVR, port << 3); port 416 dev/ic/cy.c int port = CY_PORT(dev); port 418 dev/ic/cy.c struct cy_port *cy = &sc->sc_ports[port]; port 424 dev/ic/cy.c port, flag, mode); port 459 dev/ic/cy.c int port = CY_PORT(dev); port 461 dev/ic/cy.c struct cy_port *cy = &sc->sc_ports[port]; port 466 dev/ic/cy.c port, uio, flag); port 482 dev/ic/cy.c int port = CY_PORT(dev); port 484 dev/ic/cy.c struct cy_port *cy = &sc->sc_ports[port]; port 489 dev/ic/cy.c port, uio, flag); port 503 dev/ic/cy.c int port = CY_PORT(dev); port 505 dev/ic/cy.c struct cy_port *cy = &sc->sc_ports[port]; port 523 dev/ic/cy.c int port = CY_PORT(dev); port 525 dev/ic/cy.c struct cy_port *cy = &sc->sc_ports[port]; port 531 dev/ic/cy.c sc->sc_dev.dv_xname, port, cmd, data, flag); port 609 dev/ic/cy.c int port = CY_PORT(tp->t_dev); port 611 dev/ic/cy.c struct cy_port *cy = &sc->sc_ports[port]; port 615 dev/ic/cy.c printf("%s port %d start, tty 0x%x\n", sc->sc_dev.dv_xname, port, tp); port 654 dev/ic/cy.c int port = CY_PORT(tp->t_dev); port 656 dev/ic/cy.c struct cy_port *cy = &sc->sc_ports[port]; port 661 dev/ic/cy.c port, tp, flag); port 690 dev/ic/cy.c int port = CY_PORT(tp->t_dev); port 692 dev/ic/cy.c struct cy_port *cy = &sc->sc_ports[port]; port 698 dev/ic/cy.c port, tp, t); port 937 dev/ic/cy.c int port; port 963 dev/ic/cy.c for (port = 0; port < sc->sc_nports; port++) { port 964 dev/ic/cy.c cy = &sc->sc_ports[port]; port 992 dev/ic/cy.c sc->sc_dev.dv_xname, port, chr); port 1018 dev/ic/cy.c port & CD1400_CAR_CHAN); port 1047 dev/ic/cy.c sc->sc_dev.dv_xname, port, carrier); port 1080 dev/ic/cy.c sc->sc_dev.dv_xname, port); port 1085 dev/ic/cy.c sc->sc_dev.dv_xname, port); port 478 dev/ic/elink3.c u_int16_t ep_w0_config, port; port 503 dev/ic/elink3.c port = bus_space_read_2(iot, ioh, EP_W0_EEPROM_DATA); port 504 dev/ic/elink3.c port = port >> 14; port 506 dev/ic/elink3.c printf(" (default %s)\n", ep_vortex_media[port].epm_name); port 509 dev/ic/elink3.c ifmedia_set(ifm, ep_default_to_media[port]); port 249 dev/ic/i82596.c if (sc->port) { port 252 dev/ic/i82596.c (sc->port)(sc, IE_PORT_TEST); port 210 dev/ic/i82596var.h void (*port)(struct ie_softc *, u_int); port 260 dev/ic/pdqvar.h #define PDQ_OS_IORD_8(port) inb(port) port 261 dev/ic/pdqvar.h #define PDQ_OS_IOWR_8(port, data) outb(port, data) port 381 dev/ic/sili.c int port; port 390 dev/ic/sili.c port = ffs(is) - 1; port 391 dev/ic/sili.c sili_port_intr(&sc->sc_ports[port], -1); port 392 dev/ic/sili.c is &= ~(1 << port); port 727 dev/ic/sili.c sili_ata_probe(void *xsc, int port) port 730 dev/ic/sili.c struct sili_port *sp = &sc->sc_ports[port]; port 780 dev/ic/sili.c sili_write(sc, SILI_REG_GC, sili_read(sc, SILI_REG_GC) | 1 << port); port 1101 dev/ic/sili.c sili_ata_get_xfer(void *xsc, int port) port 1104 dev/ic/sili.c struct sili_port *sp = &sc->sc_ports[port]; port 195 dev/ic/twereg.h u_int8_t port; port 1106 dev/isa/ad1848.c ad1848_set_rec_port(sc, port) port 1108 dev/isa/ad1848.c int port; port 1112 dev/isa/ad1848.c DPRINTF(("ad1848_set_rec_port: 0x%x\n", port)); port 1114 dev/isa/ad1848.c if (port == MIC_IN_PORT) { port 1117 dev/isa/ad1848.c else if (port == LINE_IN_PORT) { port 1120 dev/isa/ad1848.c else if (port == DAC_IN_PORT) { port 1123 dev/isa/ad1848.c else if (sc->mode == 2 && port == AUX1_IN_PORT) { port 1137 dev/isa/ad1848.c sc->rec_port = port; port 683 dev/isa/aria.c aria_set_out_port(addr, port) port 685 dev/isa/aria.c int port; port 701 dev/isa/aria.c aria_set_in_port(addr, port) port 703 dev/isa/aria.c int port; port 709 dev/isa/aria.c if (port<0 || port>6) port 712 dev/isa/aria.c sc->aria_mix_source = port; port 2292 dev/isa/ess.c ess_set_gain(sc, port, on) port 2294 dev/isa/ess.c int port; port 2310 dev/isa/ess.c switch (port) { port 2370 dev/isa/ess.c left = sc->gain[port][ESS_LEFT]; port 2371 dev/isa/ess.c right = sc->gain[port][ESS_RIGHT]; port 2427 dev/isa/ess.c int i, port; port 2447 dev/isa/ess.c port = ffs(di.un.s.member[i].mask); port 2454 dev/isa/ess.c ess_set_gain(sc, port, mask & di.un.s.member[i].mask); port 2187 dev/isa/gus.c int port = sc->sc_iobase; port 2190 dev/isa/gus.c ctrl = (port & 0xf0) >> 4; /* set port address middle nibble */ port 2203 dev/isa/gus.c sc->sc_codec.sc_iobase = port+GUS_MAX_CODEC_BASE; port 70 dev/isa/if_le.c le_isa_wrcsr(struct am7990_softc *sc, u_int16_t port, u_int16_t val) port 76 dev/isa/if_le.c bus_space_write_2(iot, ioh, lesc->sc_rap, port); port 81 dev/isa/if_le.c le_isa_rdcsr(struct am7990_softc *sc, u_int16_t port) port 88 dev/isa/if_le.c bus_space_write_2(iot, ioh, lesc->sc_rap, port); port 116 dev/isa/if_le_isa.c int port; port 152 dev/isa/if_le_isa.c port = DEPCA_ADP; port 154 dev/isa/if_le_isa.c if (bus_space_read_1(iot, ioh, port) == 0xff && port 155 dev/isa/if_le_isa.c bus_space_read_1(iot, ioh, port) == 0x00 && port 156 dev/isa/if_le_isa.c bus_space_read_1(iot, ioh, port) == 0x55 && port 157 dev/isa/if_le_isa.c bus_space_read_1(iot, ioh, port) == 0xaa && port 158 dev/isa/if_le_isa.c bus_space_read_1(iot, ioh, port) == 0xff && port 159 dev/isa/if_le_isa.c bus_space_read_1(iot, ioh, port) == 0x00 && port 160 dev/isa/if_le_isa.c bus_space_read_1(iot, ioh, port) == 0x55 && port 161 dev/isa/if_le_isa.c bus_space_read_1(iot, ioh, port) == 0xaa) port 163 dev/isa/if_le_isa.c port = DEPCA_ADP + 1; port 165 dev/isa/if_le_isa.c if (bus_space_read_1(iot, ioh, port) == 0xff && port 166 dev/isa/if_le_isa.c bus_space_read_1(iot, ioh, port) == 0x00 && port 167 dev/isa/if_le_isa.c bus_space_read_1(iot, ioh, port) == 0x55 && port 168 dev/isa/if_le_isa.c bus_space_read_1(iot, ioh, port) == 0xaa && port 169 dev/isa/if_le_isa.c bus_space_read_1(iot, ioh, port) == 0xff && port 170 dev/isa/if_le_isa.c bus_space_read_1(iot, ioh, port) == 0x00 && port 171 dev/isa/if_le_isa.c bus_space_read_1(iot, ioh, port) == 0x55 && port 172 dev/isa/if_le_isa.c bus_space_read_1(iot, ioh, port) == 0xaa) port 179 dev/isa/if_le_isa.c sc->sc_arpcom.ac_enaddr[i] = bus_space_read_1(iot, ioh, port); port 192 dev/isa/if_le_isa.c rom_sum = bus_space_read_1(iot, ioh, port); port 193 dev/isa/if_le_isa.c rom_sum |= bus_space_read_1(iot, ioh, port << 8); port 503 dev/isa/nsclpcsio_isa.c int port, shift; port 506 dev/isa/nsclpcsio_isa.c port = pin / 8; port 508 dev/isa/nsclpcsio_isa.c data = (port << 4) | shift; port 542 dev/isa/nsclpcsio_isa.c int port, shift, reg; port 545 dev/isa/nsclpcsio_isa.c port = pin / 8; port 548 dev/isa/nsclpcsio_isa.c switch (port) { port 572 dev/isa/nsclpcsio_isa.c int port, shift, reg; port 575 dev/isa/nsclpcsio_isa.c port = pin / 8; port 578 dev/isa/nsclpcsio_isa.c switch (port) { port 195 dev/isa/opti.c opti_outb(port, byte) port 196 dev/isa/opti.c u_short port; port 200 dev/isa/opti.c outb( port, byte ); port 204 dev/isa/opti.c opti_inb(port) port 205 dev/isa/opti.c u_short port; port 208 dev/isa/opti.c return inb( port ); port 178 dev/isa/sbdsp.c void sbdsp_set_mixer_gain(struct sbdsp_softc *sc, int port); port 1499 dev/isa/sbdsp.c sbdsp_set_mixer_gain(sc, port) port 1501 dev/isa/sbdsp.c int port; port 1509 dev/isa/sbdsp.c gain = SB_1335_GAIN(sc->gain[port][SB_LEFT]); port 1510 dev/isa/sbdsp.c switch(port) { port 1522 dev/isa/sbdsp.c gain = SB_1335_MASTER_GAIN(sc->gain[port][SB_LEFT]); port 1530 dev/isa/sbdsp.c gain = SB_STEREO_GAIN(sc->gain[port][SB_LEFT], port 1531 dev/isa/sbdsp.c sc->gain[port][SB_RIGHT]); port 1532 dev/isa/sbdsp.c switch (port) { port 1535 dev/isa/sbdsp.c gain = SB_MIC_GAIN(sc->gain[port][SB_LEFT]); port 1559 dev/isa/sbdsp.c switch (port) { port 1591 dev/isa/sbdsp.c sbdsp_mix_write(sc, SB16P_PCSPEAKER, sc->gain[port][SB_LEFT]); port 1596 dev/isa/sbdsp.c sbdsp_mix_write(sc, src, sc->gain[port][SB_LEFT]); port 1597 dev/isa/sbdsp.c sbdsp_mix_write(sc, SB16P_L_TO_R(src), sc->gain[port][SB_RIGHT]); port 203 dev/isa/wds.c wds_wait(iot, ioh, port, mask, val) port 206 dev/isa/wds.c int port; port 210 dev/isa/wds.c while ((bus_space_read_1(iot, ioh, port) & mask) != val) port 371 dev/isa/wss.c mad_read(sc, port) port 373 dev/isa/wss.c int port; port 395 dev/isa/wss.c tmp = bus_space_read_1(sc->sc_iot, sc->mad_ioh, port); port 401 dev/isa/wss.c mad_write(sc, port, value) port 403 dev/isa/wss.c int port; port 425 dev/isa/wss.c bus_space_write_1(sc->sc_iot, sc->mad_ioh, port, value & 0xff); port 817 dev/pci/ahci.c ahci_port_alloc(struct ahci_softc *sc, u_int port) port 830 dev/pci/ahci.c DEVNAME(sc), port); port 837 dev/pci/ahci.c DEVNAME(sc), port); port 839 dev/pci/ahci.c sc->sc_ports[port] = ap; port 842 dev/pci/ahci.c AHCI_PORT_REGION(port), AHCI_PORT_SIZE, &ap->ap_ioh) != 0) { port 844 dev/pci/ahci.c DEVNAME(sc), port); port 850 dev/pci/ahci.c ap->ap_num = port; port 868 dev/pci/ahci.c DEVNAME(sc), r == 2 ? "CR" : "FR", port); port 905 dev/pci/ahci.c DEVNAME(sc), port); port 918 dev/pci/ahci.c DEVNAME(sc), port); port 937 dev/pci/ahci.c "ccb %d\n", DEVNAME(sc), port, i); port 971 dev/pci/ahci.c DEVNAME(sc), port); port 975 dev/pci/ahci.c port); port 979 dev/pci/ahci.c "on port %d\n", DEVNAME(sc), port); port 986 dev/pci/ahci.c "TFD: 0x%b\n", DEVNAME(sc), port, port 993 dev/pci/ahci.c "with device on port %d\n", DEVNAME(sc), port); port 1002 dev/pci/ahci.c DEVNAME(sc), port); port 1007 dev/pci/ahci.c "disabling\n", DEVNAME(sc), port); port 1013 dev/pci/ahci.c ahci_write(sc, AHCI_REG_IS, 1 << port); port 1020 dev/pci/ahci.c ((sc->sc_ccc_ports & (1 << port)) ? 0 : (AHCI_PREG_IE_SDBE | port 1029 dev/pci/ahci.c ahci_port_free(sc, port); port 1035 dev/pci/ahci.c ahci_port_free(struct ahci_softc *sc, u_int port) port 1037 dev/pci/ahci.c struct ahci_port *ap = sc->sc_ports[port]; port 1045 dev/pci/ahci.c ahci_write(sc, AHCI_REG_IS, 1 << port); port 1064 dev/pci/ahci.c sc->sc_ports[port] = NULL; port 1560 dev/pci/ahci.c int port; port 1580 dev/pci/ahci.c port = ffs(is) - 1; port 1581 dev/pci/ahci.c if (sc->sc_ports[port]) port 1582 dev/pci/ahci.c ahci_port_intr(sc->sc_ports[port], port 1584 dev/pci/ahci.c is &= ~(1 << port); port 2145 dev/pci/ahci.c ahci_ata_probe(void *xsc, int port) port 2148 dev/pci/ahci.c struct ahci_port *ap = sc->sc_ports[port]; port 2162 dev/pci/ahci.c ahci_ata_get_xfer(void *aaa_cookie, int port) port 2165 dev/pci/ahci.c struct ahci_port *ap = sc->sc_ports[port]; port 67 dev/pci/bktr/bktr_audio.c void bctv_gpio_write( bktr_ptr_t bktr, int port, int val ); port 363 dev/pci/bktr/bktr_audio.c bctv_gpio_write( bktr_ptr_t bktr, int port, int val ) port 367 dev/pci/bktr/bktr_audio.c port &= BCTV_GPIO_PORT_MASK; port 368 dev/pci/bktr/bktr_audio.c switch (port) { port 372 dev/pci/bktr/bktr_audio.c ((port << BCTV_GPIO_ADDR_SHIFT) & BCTV_GPIO_ADDR_MASK) | port 1231 dev/pci/cmpci.c cmpci_set_mixer_gain(struct cmpci_softc *sc, int port) port 1236 dev/pci/cmpci.c switch (port) { port 1239 dev/pci/cmpci.c CMPCI_ADJUST_MIC_GAIN(sc, sc->sc_gain[port][CMPCI_LR])); port 1249 dev/pci/cmpci.c CMPCI_ADJUST_AUX_GAIN(sc, sc->sc_gain[port][CMPCI_LEFT], port 1250 dev/pci/cmpci.c sc->sc_gain[port][CMPCI_RIGHT])); port 1255 dev/pci/cmpci.c CMPCI_ADJUST_ADMIC_GAIN(sc, sc->sc_gain[port][CMPCI_LR])); port 1268 dev/pci/cmpci.c CMPCI_ADJUST_2_GAIN(sc, sc->sc_gain[port][CMPCI_LR])); port 1271 dev/pci/cmpci.c if (sc->sc_gain[port][CMPCI_LR]) port 1280 dev/pci/cmpci.c if (sc->sc_gain[port][CMPCI_LR]) port 1288 dev/pci/cmpci.c if (sc->sc_gain[port][CMPCI_LR]) port 1296 dev/pci/cmpci.c if (sc->sc_gain[port][CMPCI_LR]) port 1313 dev/pci/cmpci.c if (sc->sc_gain[port][CMPCI_LR]) port 1390 dev/pci/cmpci.c CMPCI_ADJUST_GAIN(sc, sc->sc_gain[port][CMPCI_LEFT])); port 1392 dev/pci/cmpci.c CMPCI_ADJUST_GAIN(sc, sc->sc_gain[port][CMPCI_RIGHT])); port 1818 dev/pci/eso.c eso_set_gain(sc, port) port 1820 dev/pci/eso.c unsigned int port; port 1824 dev/pci/eso.c switch (port) { port 1874 dev/pci/eso.c tmp |= (sc->sc_gain[port][ESO_LEFT] >> 5); port 1882 dev/pci/eso.c sc->sc_gain[port][ESO_LEFT] >> 2); port 1884 dev/pci/eso.c sc->sc_gain[port][ESO_RIGHT] >> 2); port 1890 dev/pci/eso.c sc->sc_gain[port][ESO_LEFT]); port 1896 dev/pci/eso.c sc->sc_gain[port][ESO_LEFT], sc->sc_gain[port][ESO_RIGHT])); port 1901 dev/pci/eso.c panic("eso_set_gain: bad port %u", port); port 1909 dev/pci/eso.c sc->sc_gain[port][ESO_LEFT], sc->sc_gain[port][ESO_RIGHT])); port 160 dev/pci/if_em_osdep.h #define em_io_read(hw, port) \ port 162 dev/pci/if_em_osdep.h ((struct em_osdep *)(hw)->back)->io_bus_space_handle, (port)) port 164 dev/pci/if_em_osdep.h #define em_io_write(hw, port, value) \ port 167 dev/pci/if_em_osdep.h (port), (value)) port 395 dev/pci/if_sandrv.c sdla_save_hw_probe(sdlahw_t *hw, int port) port 334 dev/pci/mbg.c u_int16_t port; port 362 dev/pci/mbg.c port = ASIC_ADDON; port 364 dev/pci/mbg.c data = bus_space_read_4(sc->sc_iot, sc->sc_ioh, port); port 367 dev/pci/mbg.c port += sizeof(data); port 371 dev/pci/mbg.c data = bus_space_read_4(sc->sc_iot, sc->sc_ioh, port); port 257 dev/pci/musycc_obsd.c ma.ma_port = framerconf.port; port 250 dev/pci/musyccreg.h u_int8_t port; port 265 dev/pci/puc.c paa->port = i; port 283 dev/pci/puc.c "(0x%lx, 0x%lx)\n", sc->sc_dev.dv_xname, paa->port, port 301 dev/pci/puc.c printf(" port %d", paa->port); port 311 dev/pci/puc.c if (cf->cf_loc[0] != -1 && cf->cf_loc[0] != aa->port) port 63 dev/pci/pucvar.h #define PUC_PORT_VALID(desc, port) \ port 64 dev/pci/pucvar.h ((port) < PUC_MAX_PORTS && (desc)->ports[(port)].type != PUC_PORT_TYPE_NONE) port 72 dev/pci/pucvar.h int port; port 99 dev/sbus/if_le.c le_sbus_wrcsr(struct am7990_softc *sc, u_int16_t port, u_int16_t val) port 103 dev/sbus/if_le.c bus_space_write_2(lesc->sc_bustag, lesc->sc_reg, LEREG1_RAP, port); port 125 dev/sbus/if_le.c le_sbus_rdcsr(struct am7990_softc *sc, u_int16_t port) port 129 dev/sbus/if_le.c bus_space_write_2(lesc->sc_bustag, lesc->sc_reg, LEREG1_RAP, port); port 101 dev/sbus/if_le_lebuffer.c le_lebuffer_wrcsr(struct am7990_softc *sc, u_int16_t port, u_int16_t val) port 105 dev/sbus/if_le_lebuffer.c bus_space_write_2(lesc->sc_bustag, lesc->sc_reg, LEREG1_RAP, port); port 127 dev/sbus/if_le_lebuffer.c le_lebuffer_rdcsr(struct am7990_softc *sc, u_int16_t port) port 131 dev/sbus/if_le_lebuffer.c bus_space_write_2(lesc->sc_bustag, lesc->sc_reg, LEREG1_RAP, port); port 113 dev/sbus/if_le_ledma.c le_ledma_wrcsr(struct am7990_softc *sc, u_int16_t port, u_int16_t val) port 117 dev/sbus/if_le_ledma.c bus_space_write_2(lesc->sc_bustag, lesc->sc_reg, LEREG1_RAP, port); port 139 dev/sbus/if_le_ledma.c le_ledma_rdcsr(struct am7990_softc *sc, u_int16_t port) port 143 dev/sbus/if_le_ledma.c bus_space_write_2(lesc->sc_bustag, lesc->sc_reg, LEREG1_RAP, port); port 470 dev/sbus/magma.c int port = rivr >> 4; port 476 dev/sbus/magma.c mbpp = &sc->ms_mbpp->ms_port[port]; port 495 dev/sbus/magma.c mtty = &sc->ms_mtty->ms_port[port]; port 532 dev/sbus/magma.c int port = mivr >> 4; port 540 dev/sbus/magma.c mtty = &sc->ms_mtty->ms_port[port]; port 558 dev/sbus/magma.c int port = tivr >> 4; port 563 dev/sbus/magma.c mbpp = &sc->ms_mbpp->ms_port[port]; port 589 dev/sbus/magma.c mtty = &sc->ms_mtty->ms_port[port]; port 679 dev/sbus/magma.c int port; port 687 dev/sbus/magma.c for (port = 0 ; port < mtty->ms_nports ; port++) { port 688 dev/sbus/magma.c struct mtty_port *mp = &mtty->ms_port[port]; port 711 dev/sbus/magma.c log(LOG_WARNING, "%s%x: fifo overflow\n", mtty->ms_dev.dv_xname, port); port 723 dev/sbus/magma.c dprintf(("%s%x: cd %s\n", mtty->ms_dev.dv_xname, port, mp->mp_carrier ? "on" : "off")); port 729 dev/sbus/magma.c log(LOG_WARNING, "%s%x: ring buffer overflow\n", mtty->ms_dev.dv_xname, port); port 746 dev/sbus/magma.c for (port = 0 ; port < mbpp->ms_nports ; port++) { port 747 dev/sbus/magma.c struct mbpp_port *mp = &mbpp->ms_port[port]; port 797 dev/sbus/magma.c int port, chip, chan; port 802 dev/sbus/magma.c for (port = 0, chip = 0, chan = 0; port 803 dev/sbus/magma.c port < sc->ms_board->mb_nser; port++) { port 804 dev/sbus/magma.c struct mtty_port *mp = &ms->ms_port[port]; port 831 dev/sbus/magma.c ms->ms_nports = port; port 832 dev/sbus/magma.c printf(": %d tty%s\n", port, port == 1 ? "" : "s"); port 842 dev/sbus/magma.c int port = MAGMA_PORT(dev); port 850 dev/sbus/magma.c || port >= ms->ms_nports) port 853 dev/sbus/magma.c mp = &ms->ms_port[port]; port 885 dev/sbus/magma.c CD1400_WRITE_REG(cd, CD1400_LIVR, port << 4); port 1378 dev/sbus/magma.c int port; port 1383 dev/sbus/magma.c for (port = 0 ; port < sc->ms_board->mb_npar ; port++) { port 1384 dev/sbus/magma.c mp = &ms->ms_port[port]; port 1387 dev/sbus/magma.c mp->mp_cd1190 = &sc->ms_cd1190[port]; port 1395 dev/sbus/magma.c ms->ms_nports = port; port 1396 dev/sbus/magma.c printf(": %d port%s\n", port, port == 1 ? "" : "s"); port 1406 dev/sbus/magma.c int port = MAGMA_PORT(dev); port 1411 dev/sbus/magma.c if (card >= mbpp_cd.cd_ndevs || (ms = mbpp_cd.cd_devs[card]) == NULL || port >= ms->ms_nports) port 1414 dev/sbus/magma.c mp = &ms->ms_port[port]; port 1535 dev/sbus/magma.c int port = MAGMA_PORT(dev); port 1537 dev/sbus/magma.c struct mbpp_port *mp = &ms->ms_port[port]; port 138 dev/sbus/spif.c #define DTR_WRITE(sc,port,v) \ port 140 dev/sbus/spif.c sc->sc_ttys->sc_port[(port)].sp_dtr = v; \ port 142 dev/sbus/spif.c sc->sc_dtrh, port, (v == 0) ? 1 : 0); \ port 145 dev/sbus/spif.c #define DTR_READ(sc,port) ((sc)->sc_ttys->sc_port[(port)].sp_dtr) port 297 dev/sbus/spif.c int port; port 301 dev/sbus/spif.c for (port = 0; port < sc->sc_nser; port++) { port 302 dev/sbus/spif.c struct stty_port *sp = &ssc->sc_port[port]; port 305 dev/sbus/spif.c DTR_WRITE(sc, port, 0); port 314 dev/sbus/spif.c sp->sp_channel = port; port 323 dev/sbus/spif.c ssc->sc_nports = port; port 325 dev/sbus/spif.c printf(": %d tty%s\n", port, port == 1 ? "" : "s"); port 340 dev/sbus/spif.c int port = SPIF_PORT(dev); port 351 dev/sbus/spif.c if (port >= sc->sc_nports) port 354 dev/sbus/spif.c sp = &sc->sc_port[port]; port 431 dev/sbus/spif.c int port = SPIF_PORT(dev); port 439 dev/sbus/spif.c STC_WRITE(csc, STC_CAR, port); port 1055 dev/sbus/spif.c int port; port 1059 dev/sbus/spif.c for (port = 0; port < sc->sc_npar; port++) { port 1062 dev/sbus/spif.c psc->sc_nports = port; port 1063 dev/sbus/spif.c printf(": %d port%s\n", port, port == 1 ? "" : "s"); port 1658 dev/usb/ehci.c int port, i; port 1826 dev/usb/ehci.c port = EHCI_PORTSC(index); port 1827 dev/usb/ehci.c v = EOREAD4(sc, port) &~ EHCI_PS_CLEAR; port 1830 dev/usb/ehci.c EOWRITE4(sc, port, v &~ EHCI_PS_PE); port 1833 dev/usb/ehci.c EOWRITE4(sc, port, v &~ EHCI_PS_SUSP); port 1836 dev/usb/ehci.c EOWRITE4(sc, port, v &~ EHCI_PS_PP); port 1845 dev/usb/ehci.c EOWRITE4(sc, port, v &~ EHCI_PS_PIC); port 1848 dev/usb/ehci.c EOWRITE4(sc, port, v | EHCI_PS_CSC); port 1851 dev/usb/ehci.c EOWRITE4(sc, port, v | EHCI_PS_PEC); port 1857 dev/usb/ehci.c EOWRITE4(sc, port, v | EHCI_PS_OCC); port 1874 dev/usb/ehci.c if ((OREAD4(sc, port) >> 16) == 0) port 1951 dev/usb/ehci.c port = EHCI_PORTSC(index); port 1952 dev/usb/ehci.c v = EOREAD4(sc, port) &~ EHCI_PS_CLEAR; port 1955 dev/usb/ehci.c EOWRITE4(sc, port, v | EHCI_PS_PE); port 1958 dev/usb/ehci.c EOWRITE4(sc, port, v | EHCI_PS_SUSP); port 1970 dev/usb/ehci.c EOWRITE4(sc, port, v | EHCI_PS_PR); port 1978 dev/usb/ehci.c EOWRITE4(sc, port, v); port 1985 dev/usb/ehci.c v = EOREAD4(sc, port); port 2004 dev/usb/ehci.c EOWRITE4(sc, port, v | EHCI_PS_PP); port 2013 dev/usb/ehci.c EOWRITE4(sc, port, v | EHCI_PS_PIC); port 2042 dev/usb/ehci.c int port; port 2047 dev/usb/ehci.c port = EHCI_PORTSC(index); port 2048 dev/usb/ehci.c v = EOREAD4(sc, port) &~ EHCI_PS_CLEAR; port 2049 dev/usb/ehci.c EOWRITE4(sc, port, v | EHCI_PS_PO); port 263 dev/usb/if_uath.c sc->sc_port = uaa->port; port 2386 dev/usb/ohci.c int port, i; port 2536 dev/usb/ohci.c port = OHCI_RH_PORT_STATUS(index); port 2539 dev/usb/ohci.c OWRITE4(sc, port, UPS_CURRENT_CONNECT_STATUS); port 2542 dev/usb/ohci.c OWRITE4(sc, port, UPS_OVERCURRENT_INDICATOR); port 2546 dev/usb/ohci.c OWRITE4(sc, port, UPS_LOW_SPEED); port 2549 dev/usb/ohci.c OWRITE4(sc, port, UPS_C_CONNECT_STATUS << 16); port 2552 dev/usb/ohci.c OWRITE4(sc, port, UPS_C_PORT_ENABLED << 16); port 2555 dev/usb/ohci.c OWRITE4(sc, port, UPS_C_SUSPEND << 16); port 2558 dev/usb/ohci.c OWRITE4(sc, port, UPS_C_OVERCURRENT_INDICATOR << 16); port 2561 dev/usb/ohci.c OWRITE4(sc, port, UPS_C_PORT_RESET << 16); port 2574 dev/usb/ohci.c if ((OREAD4(sc, port) >> 16) == 0) port 2641 dev/usb/ohci.c port = OHCI_RH_PORT_STATUS(index); port 2644 dev/usb/ohci.c OWRITE4(sc, port, UPS_PORT_ENABLED); port 2647 dev/usb/ohci.c OWRITE4(sc, port, UPS_SUSPEND); port 2652 dev/usb/ohci.c OWRITE4(sc, port, UPS_RESET); port 2660 dev/usb/ohci.c if ((OREAD4(sc, port) & UPS_RESET) == 0) port 2664 dev/usb/ohci.c index, OREAD4(sc, port))); port 2669 dev/usb/ohci.c OWRITE4(sc, port, UPS_PORT_POWER); port 338 dev/usb/uftdireg.h #define FTDI_OUT_TAG(len, port) (((len) << 2) | (port)) port 2990 dev/usb/uhci.c int lim, port, x; port 2993 dev/usb/uhci.c port = UHCI_PORTSC1; port 2995 dev/usb/uhci.c port = UHCI_PORTSC2; port 2999 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); port 3000 dev/usb/uhci.c UWRITE2(sc, port, x | UHCI_PORTSC_PR); port 3005 dev/usb/uhci.c index, UREAD2(sc, port))); port 3007 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); port 3008 dev/usb/uhci.c UWRITE2(sc, port, x & ~UHCI_PORTSC_PR); port 3013 dev/usb/uhci.c index, UREAD2(sc, port))); port 3015 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); port 3016 dev/usb/uhci.c UWRITE2(sc, port, x | UHCI_PORTSC_PE); port 3021 dev/usb/uhci.c x = UREAD2(sc, port); port 3047 dev/usb/uhci.c UWRITE2(sc, port, URWMASK(x) | port 3056 dev/usb/uhci.c UWRITE2(sc, port, URWMASK(x) | UHCI_PORTSC_PE); port 3060 dev/usb/uhci.c index, UREAD2(sc, port))); port 3097 dev/usb/uhci.c int port, x; port 3241 dev/usb/uhci.c port = UHCI_PORTSC1; port 3243 dev/usb/uhci.c port = UHCI_PORTSC2; port 3250 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); port 3251 dev/usb/uhci.c UWRITE2(sc, port, x & ~UHCI_PORTSC_PE); port 3254 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); port 3255 dev/usb/uhci.c UWRITE2(sc, port, x & ~UHCI_PORTSC_SUSP); port 3258 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); port 3259 dev/usb/uhci.c UWRITE2(sc, port, x & ~UHCI_PORTSC_PR); port 3262 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); port 3263 dev/usb/uhci.c UWRITE2(sc, port, x | UHCI_PORTSC_CSC); port 3266 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); port 3267 dev/usb/uhci.c UWRITE2(sc, port, x | UHCI_PORTSC_POEDC); port 3270 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); port 3271 dev/usb/uhci.c UWRITE2(sc, port, x | UHCI_PORTSC_OCIC); port 3289 dev/usb/uhci.c port = UHCI_PORTSC1; port 3291 dev/usb/uhci.c port = UHCI_PORTSC2; port 3298 dev/usb/uhci.c (UREAD2(sc, port) & UHCI_PORTSC_LS) >> port 3322 dev/usb/uhci.c port = UHCI_PORTSC1; port 3324 dev/usb/uhci.c port = UHCI_PORTSC2; port 3333 dev/usb/uhci.c x = UREAD2(sc, port); port 3367 dev/usb/uhci.c port = UHCI_PORTSC1; port 3369 dev/usb/uhci.c port = UHCI_PORTSC2; port 3376 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); port 3377 dev/usb/uhci.c UWRITE2(sc, port, x | UHCI_PORTSC_PE); port 3380 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); port 3381 dev/usb/uhci.c UWRITE2(sc, port, x | UHCI_PORTSC_SUSP); port 140 dev/usb/uhub.c int p, port, nports, nremov, pwrdly; port 184 dev/usb/uhub.c for (nremov = 0, port = 1; port <= nports; port++) port 185 dev/usb/uhub.c if (!UHD_NOT_REMOV(&hubdesc, port)) port 314 dev/usb/uhub.c for (port = 1; port <= nports; port++) { port 316 dev/usb/uhub.c err = usbd_set_port_feature(dev, port, UHF_PORT_POWER); port 319 dev/usb/uhub.c sc->sc_dev.dv_xname, port, port 321 dev/usb/uhub.c DPRINTF(("usb_init_port: turn on port %d power\n", port)); port 348 dev/usb/uhub.c int port; port 360 dev/usb/uhub.c for(port = 1; port <= hd->bNbrPorts; port++) { port 361 dev/usb/uhub.c up = &dev->hub->ports[port-1]; port 362 dev/usb/uhub.c err = usbd_get_port_status(dev, port, &up->status); port 373 dev/usb/uhub.c sc->sc_dev.dv_xname, port, status, change)); port 376 dev/usb/uhub.c usbd_clear_port_feature(dev, port, UHF_C_PORT_ENABLE); port 382 dev/usb/uhub.c sc->sc_dev.dv_xname, port); port 388 dev/usb/uhub.c sc->sc_dev.dv_xname, port); port 395 dev/usb/uhub.c sc->sc_dev.dv_xname, port); port 400 dev/usb/uhub.c "STATUS\n", port)); port 416 dev/usb/uhub.c dev->address, port)); port 417 dev/usb/uhub.c usbd_clear_port_feature(dev, port, UHF_C_PORT_CONNECTION); port 430 dev/usb/uhub.c "on port %d\n", up->device->address, port)); port 432 dev/usb/uhub.c usbd_clear_port_feature(dev, port, port 438 dev/usb/uhub.c "_STATUS\n", port)); port 446 dev/usb/uhub.c sc->sc_dev.dv_xname, port); port 452 dev/usb/uhub.c if (usbd_reset_port(dev, port, &up->status)) { port 454 dev/usb/uhub.c sc->sc_dev.dv_xname, port); port 458 dev/usb/uhub.c err = usbd_get_port_status(dev, port, &up->status); port 470 dev/usb/uhub.c sc->sc_dev.dv_xname, port); port 484 dev/usb/uhub.c dev->depth + 1, speed, port, up); port 498 dev/usb/uhub.c sc->sc_dev.dv_xname, port); port 499 dev/usb/uhub.c usbd_clear_port_feature(dev, port, UHF_PORT_ENABLE); port 517 dev/usb/uhub.c int nports, port, i; port 527 dev/usb/uhub.c for(port = 0; port < nports; port++) { port 528 dev/usb/uhub.c dev = hub->ports[port].device; port 549 dev/usb/uhub.c int port, nports; port 560 dev/usb/uhub.c for(port = 0; port < nports; port++) { port 561 dev/usb/uhub.c rup = &hub->ports[port]; port 358 dev/usb/usb_subr.c usbd_reset_port(usbd_device_handle dev, int port, usb_port_status_t *ps) port 367 dev/usb/usb_subr.c USETW(req.wIndex, port); port 371 dev/usb/usb_subr.c port, usbd_errstr(err))); port 378 dev/usb/usb_subr.c err = usbd_get_port_status(dev, port, ps); port 390 dev/usb/usb_subr.c err = usbd_clear_port_feature(dev, port, UHF_C_PORT_RESET); port 824 dev/usb/usb_subr.c usbd_probe_and_attach(struct device *parent, usbd_device_handle dev, int port, port 839 dev/usb/usb_subr.c uaa.port = port; port 870 dev/usb/usb_subr.c "error=%s\n", parent->dv_xname, port, port 874 dev/usb/usb_subr.c parent->dv_xname, port, addr); port 958 dev/usb/usb_subr.c int speed, int port, struct usbd_port *up) port 969 dev/usb/usb_subr.c bus, port, depth, speed)); port 1116 dev/usb/usb_subr.c err = usbd_probe_and_attach(parent, dev, port, addr); port 1167 dev/usb/usb_subr.c if (uaa->port != 0) port 1168 dev/usb/usb_subr.c printf(" port %d", uaa->port); port 1197 dev/usb/usb_subr.c uaa->port, cf->uhubcf_port, port 1203 dev/usb/usb_subr.c if (uaa->port != 0 && /* root hub has port 0, it should match */ port 1204 dev/usb/usb_subr.c ((uaa->port != 0 && port 1206 dev/usb/usb_subr.c cf->uhubcf_port != uaa->port) || port 214 dev/usb/usbdi.h int port; port 155 dev/usb/usbdi_util.c usbd_get_port_status(usbd_device_handle dev, int port, usb_port_status_t *ps) port 162 dev/usb/usbdi_util.c USETW(req.wIndex, port); port 194 dev/usb/usbdi_util.c usbd_clear_port_feature(usbd_device_handle dev, int port, int sel) port 201 dev/usb/usbdi_util.c USETW(req.wIndex, port); port 207 dev/usb/usbdi_util.c usbd_set_port_feature(usbd_device_handle dev, int port, int sel) port 214 dev/usb/usbdi_util.c USETW(req.wIndex, port); port 242 dev/usb/usbdivar.h int port, usb_port_status_t *ps); port 247 dev/usb/usbdivar.h int depth, int lowspeed, int port, struct usbd_port *); port 99 dev/usb/usbf_subr.c usbf_probe_and_attach(struct device *parent, usbf_device_handle dev, int port) port 144 dev/usb/usbf_subr.c int speed, int port, struct usbf_port *up) port 221 dev/usb/usbf_subr.c up->portno = port; port 225 dev/usb/usbf_subr.c err = usbf_probe_and_attach(parent, dev, port); port 102 dev/usb/uvisor.c uByte port; port 126 dev/usb/uvisor.c uByte port; port 249 dev/usb/uvisor.c int i, j, hasin, hasout, port; port 331 dev/usb/uvisor.c port = coninfo.connections[i].port; port 332 dev/usb/uvisor.c uca.portno = port; port 333 dev/usb/uvisor.c uca.bulkin = port | UE_DIR_IN; port 334 dev/usb/uvisor.c uca.bulkout = port | UE_DIR_OUT; port 342 dev/usb/uvisor.c if (UE_GET_ADDR(ed->bEndpointAddress) == port && port 356 dev/usb/uvisor.c sc->sc_dev.dv_xname, port, hasin, hasout); port 373 dev/usb/uvisor.c port = palmconinfo.connections[i].end_point_info; port 374 dev/usb/uvisor.c uca.bulkin = (port >> 4) | UE_DIR_IN; port 375 dev/usb/uvisor.c uca.bulkout = (port & 0xf) | UE_DIR_OUT; port 377 dev/usb/uvisor.c port = palmconinfo.connections[i].port; port 378 dev/usb/uvisor.c uca.bulkin = port | UE_DIR_IN; port 379 dev/usb/uvisor.c uca.bulkout = port | UE_DIR_OUT; port 115 lib/libsa/bootparam.c u_int16_t port; port 177 lib/libsa/bootparam.c bp_server_port = repl->port; port 121 lib/libsa/rpc.c int port; /* host order */ port 129 lib/libsa/rpc.c port = rpc_getport(d, prog, vers); port 130 lib/libsa/rpc.c if (port == -1) port 133 lib/libsa/rpc.c d->destport = htons(port); port 282 lib/libsa/rpc.c rpc_fromaddr(void *pkt, struct in_addr *addr, u_short *port) port 299 lib/libsa/rpc.c *port = hhdr->uh_sport; port 312 lib/libsa/rpc.c int port; /* host order */ port 324 lib/libsa/rpc.c return (pl->port); port 330 lib/libsa/rpc.c rpc_pmap_putcache(struct in_addr addr, u_int prog, u_int vers, int port) port 350 lib/libsa/rpc.c pl->port = port; port 365 lib/libsa/rpc.c n_long port; /* call port (unused) */ port 368 lib/libsa/rpc.c n_long port; port 380 lib/libsa/rpc.c int port; port 392 lib/libsa/rpc.c port = rpc_pmap_getcache(d->destip, prog, vers); port 393 lib/libsa/rpc.c if (port != -1) port 394 lib/libsa/rpc.c return (port); port 400 lib/libsa/rpc.c args->port = 0; port 410 lib/libsa/rpc.c port = (int)ntohl(res->port); port 412 lib/libsa/rpc.c rpc_pmap_putcache(d->destip, prog, vers, port); port 414 lib/libsa/rpc.c return (port); port 235 net/if_pfsync.h (d)->port = (s)->port; \ port 240 net/if_pfsync.h (d)->port = (s)->port; \ port 258 net/pf.c (sk)->lan.port != (sk)->gwy.port port 409 net/pf.c if ((diff = a->lan.port - b->lan.port) != 0) port 411 net/pf.c if ((diff = a->ext.port - b->ext.port) != 0) port 477 net/pf.c if ((diff = a->ext.port - b->ext.port) != 0) port 479 net/pf.c if ((diff = a->gwy.port - b->gwy.port) != 0) port 793 net/pf.c pf_print_host(&sk->lan.addr, sk->lan.port, port 796 net/pf.c pf_print_host(&sk->gwy.addr, sk->gwy.port, port 799 net/pf.c pf_print_host(&sk->ext.addr, sk->ext.port, port 995 net/pf.c cur->state_key->ext.port, cur->state_key->lan.port, port 1200 net/pf.c pf_print_host(&sk->lan.addr, sk->lan.port, sk->af); port 1202 net/pf.c pf_print_host(&sk->gwy.addr, sk->gwy.port, sk->af); port 1204 net/pf.c pf_print_host(&sk->ext.addr, sk->ext.port, sk->af); port 1272 net/pf.c if (cur->src.port[0] != prev->src.port[0] || port 1273 net/pf.c cur->src.port[1] != prev->src.port[1] || port 1279 net/pf.c if (cur->dst.port[0] != prev->dst.port[0] || port 1280 net/pf.c cur->dst.port[1] != prev->dst.port[1] || port 2261 net/pf.c key.ext.port = dport; port 2269 net/pf.c key.gwy.port = dport; port 2273 net/pf.c key.gwy.port = *nport; port 2277 net/pf.c key.gwy.port = htons(low); port 2294 net/pf.c key.gwy.port = htons(tmp); port 2302 net/pf.c key.gwy.port = htons(tmp); port 2367 net/pf.c src->port[0], src->port[1], sport)) port 2377 net/pf.c !pf_match_port(dst->port_op, dst->port[0], port 2378 net/pf.c dst->port[1], dport)) port 2539 net/pf.c ntohs(r->dst.port[0])) % port 3046 net/pf.c r->src.port[0], r->src.port[1], sport)) port 3053 net/pf.c r->dst.port[0], r->dst.port[1], dport)) port 3404 net/pf.c sk->gwy.port = nport; port 3405 net/pf.c sk->ext.port = 0; port 3408 net/pf.c sk->gwy.port = sport; port 3409 net/pf.c sk->ext.port = dport; port 3413 net/pf.c sk->lan.port = bport; port 3416 net/pf.c sk->lan.port = sk->gwy.port; port 3426 net/pf.c sk->lan.port = nport; port 3427 net/pf.c sk->ext.port = 0; port 3430 net/pf.c sk->lan.port = dport; port 3431 net/pf.c sk->ext.port = sport; port 3435 net/pf.c sk->gwy.port = bport; port 3438 net/pf.c sk->gwy.port = sk->lan.port; port 3593 net/pf.c key.ext.port = th->th_sport; port 3594 net/pf.c key.gwy.port = th->th_dport; port 3598 net/pf.c key.lan.port = th->th_sport; port 3599 net/pf.c key.ext.port = th->th_dport; port 3662 net/pf.c &dst->addr, src->port, dst->port, port 3681 net/pf.c &dst->addr, src->port, dst->port, port 4019 net/pf.c (*state)->state_key->gwy.port, 0, pd->af); port 4023 net/pf.c (*state)->state_key->lan.port, 0, pd->af); port 4046 net/pf.c key.ext.port = uh->uh_sport; port 4047 net/pf.c key.gwy.port = uh->uh_dport; port 4051 net/pf.c key.lan.port = uh->uh_sport; port 4052 net/pf.c key.ext.port = uh->uh_dport; port 4083 net/pf.c (*state)->state_key->gwy.port, 1, pd->af); port 4087 net/pf.c (*state)->state_key->lan.port, 1, pd->af); port 4145 net/pf.c key.ext.port = 0; port 4146 net/pf.c key.gwy.port = icmpid; port 4150 net/pf.c key.lan.port = icmpid; port 4151 net/pf.c key.ext.port = 0; port 4171 net/pf.c (*state)->state_key->gwy.port, 0); port 4173 net/pf.c (*state)->state_key->gwy.port; port 4199 net/pf.c (*state)->state_key->lan.port, 0); port 4201 net/pf.c (*state)->state_key->lan.port; port 4353 net/pf.c key.ext.port = th.th_dport; port 4354 net/pf.c key.gwy.port = th.th_sport; port 4358 net/pf.c key.lan.port = th.th_dport; port 4359 net/pf.c key.ext.port = th.th_sport; port 4405 net/pf.c (*state)->state_key->lan.port, NULL, port 4411 net/pf.c (*state)->state_key->gwy.port, NULL, port 4460 net/pf.c key.ext.port = uh.uh_dport; port 4461 net/pf.c key.gwy.port = uh.uh_sport; port 4465 net/pf.c key.lan.port = uh.uh_dport; port 4466 net/pf.c key.ext.port = uh.uh_sport; port 4476 net/pf.c (*state)->state_key->lan.port, port 4484 net/pf.c (*state)->state_key->gwy.port, &uh.uh_sum, port 4529 net/pf.c key.ext.port = 0; port 4530 net/pf.c key.gwy.port = iih.icmp_id; port 4534 net/pf.c key.lan.port = iih.icmp_id; port 4535 net/pf.c key.ext.port = 0; port 4545 net/pf.c (*state)->state_key->lan.port, NULL, port 4552 net/pf.c (*state)->state_key->gwy.port, NULL, port 4582 net/pf.c key.ext.port = 0; port 4583 net/pf.c key.gwy.port = iih.icmp6_id; port 4587 net/pf.c key.lan.port = iih.icmp6_id; port 4588 net/pf.c key.ext.port = 0; port 4598 net/pf.c (*state)->state_key->lan.port, NULL, port 4604 net/pf.c (*state)->state_key->gwy.port, NULL, port 4625 net/pf.c key.ext.port = 0; port 4626 net/pf.c key.gwy.port = 0; port 4630 net/pf.c key.lan.port = 0; port 4631 net/pf.c key.ext.port = 0; port 4691 net/pf.c key.ext.port = 0; port 4692 net/pf.c key.gwy.port = 0; port 4696 net/pf.c key.lan.port = 0; port 4697 net/pf.c key.ext.port = 0; port 744 net/pf_ioctl.c PF_MD5_UPD(pfr, port[0]); port 745 net/pf_ioctl.c PF_MD5_UPD(pfr, port[1]); port 855 net/pf_ioctl.c sp->lan.port = sk->lan.port; port 857 net/pf_ioctl.c sp->gwy.port = sk->gwy.port; port 859 net/pf_ioctl.c sp->ext.port = sk->ext.port; port 903 net/pf_ioctl.c sk->lan.port = sp->lan.port; port 905 net/pf_ioctl.c sk->gwy.port = sp->gwy.port; port 907 net/pf_ioctl.c sk->ext.port = sp->ext.port; port 1613 net/pf_ioctl.c psk->psk_src.port[0], psk->psk_src.port[1], port 1614 net/pf_ioctl.c src->port)) && port 1617 net/pf_ioctl.c psk->psk_dst.port[0], psk->psk_dst.port[1], port 1618 net/pf_ioctl.c dst->port)) && port 1793 net/pf_ioctl.c key.ext.port = pnl->dport; port 1795 net/pf_ioctl.c key.gwy.port = pnl->sport; port 1799 net/pf_ioctl.c key.lan.port = pnl->dport; port 1801 net/pf_ioctl.c key.ext.port = pnl->sport; port 1811 net/pf_ioctl.c pnl->rsport = sk->lan.port; port 1818 net/pf_ioctl.c pnl->rdport = sk->gwy.port; port 1246 net/pf_norm.c r->src.port[0], r->src.port[1], th->th_sport)) port 1252 net/pf_norm.c r->dst.port[0], r->dst.port[1], th->th_dport)) port 352 net/pfvar.h u_int16_t port[2]; port 669 net/pfvar.h u_int16_t port; port 772 net/pfvar.h u_int16_t port; port 156 netinet/in_pcb.c in_baddynamic(port, proto) port 157 netinet/in_pcb.c u_int16_t port; port 164 netinet/in_pcb.c if (port == NFS_PORT) port 166 netinet/in_pcb.c if (port < IPPORT_RESERVED/2 || port >= IPPORT_RESERVED) port 168 netinet/in_pcb.c return (DP_ISSET(baddynamicports.tcp, port)); port 171 netinet/in_pcb.c if (port == udpencap_port) port 174 netinet/in_pcb.c if (port == NFS_PORT) port 176 netinet/in_pcb.c if (port < IPPORT_RESERVED/2 || port >= IPPORT_RESERVED) port 178 netinet/in_pcb.c return (DP_ISSET(baddynamicports.udp, port)); port 140 nfs/krpc_subr.c u_int32_t port; /* call port (unused) */ port 144 nfs/krpc_subr.c u_int16_t port; port 163 nfs/krpc_subr.c sdata->port = 0; port 177 nfs/krpc_subr.c *portp = rdata->port; port 345 nfs/nfs_boot.c u_int32_t port; port 353 nfs/nfs_boot.c int16_t port; port 388 nfs/nfs_boot.c port = fxdr_unsigned(u_int32_t, reply->port); port 396 nfs/nfs_boot.c bpsin->sin_port = htons(port); port 1282 scsi/cd.c audio->port[LEFT_PORT].channels = p0; port 1283 scsi/cd.c audio->port[RIGHT_PORT].channels = p1; port 1284 scsi/cd.c audio->port[2].channels = p2; port 1285 scsi/cd.c audio->port[3].channels = p3; port 1315 scsi/cd.c arg->vol[0] = audio->port[0].volume; port 1316 scsi/cd.c arg->vol[1] = audio->port[1].volume; port 1317 scsi/cd.c arg->vol[2] = audio->port[2].volume; port 1318 scsi/cd.c arg->vol[3] = audio->port[3].volume; port 1347 scsi/cd.c mask_volume[0] = audio->port[0].volume; port 1348 scsi/cd.c mask_volume[1] = audio->port[1].volume; port 1349 scsi/cd.c mask_volume[2] = audio->port[2].volume; port 1350 scsi/cd.c mask_volume[3] = audio->port[3].volume; port 1361 scsi/cd.c audio->port[0].volume = arg->vol[0] & mask_volume[0]; port 1362 scsi/cd.c audio->port[1].volume = arg->vol[1] & mask_volume[1]; port 1363 scsi/cd.c audio->port[2].volume = arg->vol[2] & mask_volume[2]; port 1364 scsi/cd.c audio->port[3].volume = arg->vol[3] & mask_volume[3]; port 254 scsi/cd.h } port[4]; port 50 sys/audioio.h u_int port; /* selected I/O port */