/freebsd-10.3-release/sys/dev/mse/ |
H A D | mse_cbus.c | 168 sc->sc_port = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, mse_port, 170 if (sc->sc_port == NULL) 172 if (isa_load_resourcev(sc->sc_port, mse_port, MSE_IOSIZE)) { 173 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->sc_port); 176 sc->sc_iot = rman_get_bustag(sc->sc_port); 177 sc->sc_ioh = rman_get_bushandle(sc->sc_port); 192 sc->sc_port); 198 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->sc_port); 211 sc->sc_port = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, mse_port, 213 if (sc->sc_port [all...] |
H A D | mse_isa.c | 212 sc->sc_port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, 214 if (sc->sc_port == NULL) 216 sc->sc_iot = rman_get_bustag(sc->sc_port); 217 sc->sc_ioh = rman_get_bushandle(sc->sc_port); 232 sc->sc_port); 238 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->sc_port); 251 sc->sc_port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, 253 if (sc->sc_port == NULL) 255 sc->sc_iot = rman_get_bustag(sc->sc_port); 256 sc->sc_ioh = rman_get_bushandle(sc->sc_port); [all...] |
H A D | msevar.h | 55 struct resource *sc_port; member in struct:mse_softc
|
H A D | mse.c | 131 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->sc_port); 137 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->sc_port);
|
/freebsd-10.3-release/sys/dev/aic/ |
H A D | aic_pccard.c | 50 struct resource *sc_port; member in struct:aic_pccard_softc 77 sc->sc_port = sc->sc_irq = NULL; 80 sc->sc_port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 82 if (!sc->sc_port) 93 sc->sc_aic.res = sc->sc_port; 103 if (sc->sc_port) 104 bus_release_resource(dev, SYS_RES_IOPORT, 0, sc->sc_port); 107 sc->sc_port = sc->sc_irq = NULL;
|
H A D | aic_cbus.c | 48 struct resource *sc_port; member in struct:aic_isa_softc 98 sc->sc_port = sc->sc_irq = sc->sc_drq = NULL; 101 sc->sc_port = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, 103 if (!sc->sc_port) { 107 isa_load_resourcev(sc->sc_port, bs_iat, AIC_ISA_PORTSIZE); 133 sc->sc_aic.res = sc->sc_port; 142 if (sc->sc_port) 143 bus_release_resource(dev, SYS_RES_IOPORT, 0, sc->sc_port); 148 sc->sc_port = sc->sc_irq = sc->sc_drq = NULL;
|
H A D | aic_isa.c | 48 struct resource *sc_port; member in struct:aic_isa_softc 75 sc->sc_port = sc->sc_irq = sc->sc_drq = NULL; 78 sc->sc_port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 80 if (!sc->sc_port) { 108 sc->sc_aic.res = sc->sc_port; 118 if (sc->sc_port) 119 bus_release_resource(dev, SYS_RES_IOPORT, 0, sc->sc_port); 124 sc->sc_port = sc->sc_irq = sc->sc_drq = NULL;
|
/freebsd-10.3-release/sys/mips/cavium/ |
H A D | if_octm.c | 70 unsigned sc_port; member in struct:octm_softc 162 sc->sc_port = device_get_unit(dev); 164 switch (sc->sc_port) { 172 device_printf(dev, "unsupported management port %u.\n", sc->sc_port); 181 mac += sc->sc_port; 183 cvmx_mgmt_port_set_mac(sc->sc_port, mac); 187 cvmx_write_csr(CVMX_MIXX_IRHWM(sc->sc_port), mixx_irhwm.u64); 192 cvmx_write_csr(CVMX_MIXX_INTENA(sc->sc_port), mixx_intena.u64); 260 result = cvmx_mgmt_port_initialize(sc->sc_port); 296 cvmx_mgmt_port_disable(sc->sc_port); [all...] |
/freebsd-10.3-release/sys/pc98/cbus/ |
H A D | olpt.c | 144 int sc_port; member in struct:lpt_softc 330 sc->sc_port = rman_get_start(sc->res_port); 333 outb(sc->sc_port+lpt_pstb_ctrl, LPC_DIS_PSTB); /* PSTB disable */ 334 outb(sc->sc_port+lpt_control, LPC_MODE8255); /* 8255 mode set */ 335 outb(sc->sc_port+lpt_control, LPC_NIRQ8); /* IRQ8 inactive */ 336 outb(sc->sc_port+lpt_control, LPC_NPSTB); /* PSTB inactive */ 337 outb(sc->sc_port+lpt_pstb_ctrl, LPC_EN_PSTB); /* PSTB enable */ 384 if (sc->sc_port == 0) 403 port = sc->sc_port; 435 lprintf(("T %x ", inb(sc->sc_port [all...] |
/freebsd-10.3-release/sys/mips/cavium/octe/ |
H A D | mv88e61xxphy.c | 57 unsigned sc_port; member in struct:mv88e61xxphy_port_softc 100 MV88E61XX_READ((psc)->sc_switch, MV88E61XX_PORT((psc)->sc_port), (reg)) 103 MV88E61XX_WRITE((psc)->sc_switch, MV88E61XX_PORT((psc)->sc_port), (reg), (val)) 162 psc->sc_port = port; 311 if (psc->sc_port != MV88E61XX_HOST_PORT) { 323 if (psc->sc_port != MV88E61XX_HOST_PORT) { 333 if (psc->sc_port != MV88E61XX_HOST_PORT) { 348 if (psc->sc_port != MV88E61XX_HOST_PORT) { 361 if (psc->sc_port == MV88E61XX_HOST_PORT) { 541 } else if (psc->sc_port [all...] |
/freebsd-10.3-release/sys/mips/cavium/usb/ |
H A D | octusb.c | 162 &sc->sc_port[td->qh->root_port_index].state, 182 &sc->sc_port[td->qh->root_port_index].state, 211 cvmx_usb_cancel(&sc->sc_port[td->qh->root_port_index].state, 214 cvmx_usb_close_pipe(&sc->sc_port[td->qh->root_port_index].state, td->qh->ep_handle); 306 &sc->sc_port[td->qh->root_port_index].state, 415 &sc->sc_port[td->qh->root_port_index].state, 498 status = cvmx_usb_submit_isochronous(&sc->sc_port[td->qh->root_port_index].state, 505 status = cvmx_usb_submit_bulk(&sc->sc_port[td->qh->root_port_index].state, 510 status = cvmx_usb_submit_interrupt(&sc->sc_port[td->qh->root_port_index].state, 617 status = cvmx_usb_submit_isochronous(&sc->sc_port[t [all...] |
H A D | octusb.h | 120 struct octusb_port sc_port[OCTUSB_MAX_PORTS]; member in struct:octusb_softc
|
/freebsd-10.3-release/sys/dev/puc/ |
H A D | puc_bfe.h | 64 struct puc_port *sc_port; member in struct:puc_softc
|
H A D | puc.c | 148 ilr = ~bus_read_1(sc->sc_port[idx].p_rres, 7); 159 ilr = bus_read_1(sc->sc_port[0].p_rres, 7); 177 port = &sc->sc_port[idx]; 196 port = &sc->sc_port[idx]; 260 sc->sc_port = malloc(sc->sc_nports * sizeof(struct puc_port), 272 port = &sc->sc_port[idx]; 356 port = &sc->sc_port[idx]; 377 port = &sc->sc_port[idx]; 397 free(sc->sc_port, M_PUC); 414 port = &sc->sc_port[id [all...] |
/freebsd-10.3-release/sys/dev/gxemul/ether/ |
H A D | if_gx.c | 66 unsigned sc_port; member in struct:gx_softc 142 sc->sc_port = device_get_unit(dev);
|
/freebsd-10.3-release/sys/dev/rc/ |
H A D | rc.c | 105 struct resource *sc_port[IOBASE_ADDRS]; member in struct:rc_softc 245 sc->sc_port[i] = bus_alloc_resource(dev, SYS_RES_IOPORT, &x, 251 if (sc->sc_port[i] == NULL) { 258 sc->sc_bt = rman_get_bustag(sc->sc_port[0]); 259 sc->sc_bh = rman_get_bushandle(sc->sc_port[0]); 358 if (sc->sc_port[i] == NULL) 360 bus_release_resource(dev, SYS_RES_IOPORT, i, sc->sc_port[i]); 361 sc->sc_port[i] = NULL;
|