Searched refs:sc_port (Results 1 - 15 of 15) sorted by relevance

/freebsd-9.3-release/sys/dev/mse/
H A Dmse_cbus.c168 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 Dmse_isa.c212 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 Dmsevar.h55 struct resource *sc_port; member in struct:mse_softc
H A Dmse.c131 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->sc_port);
137 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->sc_port);
/freebsd-9.3-release/sys/dev/aic/
H A Daic_pccard.c47 struct resource *sc_port; member in struct:aic_pccard_softc
74 sc->sc_port = sc->sc_irq = 0;
77 sc->sc_port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
79 if (!sc->sc_port)
91 sc->sc_aic.tag = rman_get_bustag(sc->sc_port);
92 sc->sc_aic.bsh = rman_get_bushandle(sc->sc_port);
101 if (sc->sc_port)
102 bus_release_resource(dev, SYS_RES_IOPORT, 0, sc->sc_port);
105 sc->sc_port = sc->sc_irq = 0;
H A Daic_cbus.c45 struct resource *sc_port; member in struct:aic_isa_softc
95 sc->sc_port = sc->sc_irq = sc->sc_drq = 0;
98 sc->sc_port = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid,
100 if (!sc->sc_port) {
104 isa_load_resourcev(sc->sc_port, bs_iat, AIC_ISA_PORTSIZE);
130 sc->sc_aic.tag = rman_get_bustag(sc->sc_port);
131 sc->sc_aic.bsh = rman_get_bushandle(sc->sc_port);
140 if (sc->sc_port)
141 bus_release_resource(dev, SYS_RES_IOPORT, 0, sc->sc_port);
146 sc->sc_port
[all...]
H A Daic_isa.c45 struct resource *sc_port; member in struct:aic_isa_softc
72 sc->sc_port = sc->sc_irq = sc->sc_drq = 0;
75 sc->sc_port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
77 if (!sc->sc_port) {
106 sc->sc_aic.tag = rman_get_bustag(sc->sc_port);
107 sc->sc_aic.bsh = rman_get_bushandle(sc->sc_port);
116 if (sc->sc_port)
117 bus_release_resource(dev, SYS_RES_IOPORT, 0, sc->sc_port);
122 sc->sc_port = sc->sc_irq = sc->sc_drq = 0;
/freebsd-9.3-release/sys/mips/cavium/
H A Dif_octm.c72 unsigned sc_port; member in struct:octm_softc
164 sc->sc_port = device_get_unit(dev);
166 switch (sc->sc_port) {
174 device_printf(dev, "unsupported management port %u.\n", sc->sc_port);
183 mac += sc->sc_port;
184 cvmx_mgmt_port_set_mac(sc->sc_port, mac);
188 cvmx_write_csr(CVMX_MIXX_IRHWM(sc->sc_port), mixx_irhwm.u64);
193 cvmx_write_csr(CVMX_MIXX_INTENA(sc->sc_port), mixx_intena.u64);
261 result = cvmx_mgmt_port_initialize(sc->sc_port);
297 cvmx_mgmt_port_disable(sc->sc_port);
[all...]
/freebsd-9.3-release/sys/pc98/cbus/
H A Dolpt.c144 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-9.3-release/sys/mips/cavium/octe/
H A Dmv88e61xxphy.c57 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-9.3-release/sys/mips/cavium/usb/
H A Doctusb.c162 &sc->sc_port[td->qh->port_index].state,
180 &sc->sc_port[td->qh->port_index].state,
209 cvmx_usb_cancel(&sc->sc_port[td->qh->port_index].state,
212 cvmx_usb_close_pipe(&sc->sc_port[td->qh->port_index].state, td->qh->ep_handle);
304 &sc->sc_port[td->qh->port_index].state,
413 &sc->sc_port[td->qh->port_index].state,
496 status = cvmx_usb_submit_isochronous(&sc->sc_port[td->qh->port_index].state,
503 status = cvmx_usb_submit_bulk(&sc->sc_port[td->qh->port_index].state,
508 status = cvmx_usb_submit_interrupt(&sc->sc_port[td->qh->port_index].state,
615 status = cvmx_usb_submit_isochronous(&sc->sc_port[t
[all...]
H A Doctusb.h127 struct octusb_port sc_port[OCTUSB_MAX_PORTS]; member in struct:octusb_softc
/freebsd-9.3-release/sys/dev/puc/
H A Dpuc_bfe.h64 struct puc_port *sc_port; member in struct:puc_softc
H A Dpuc.c145 ilr = ~bus_read_1(sc->sc_port[idx].p_rres, 7);
156 ilr = bus_read_1(sc->sc_port[0].p_rres, 7);
174 port = &sc->sc_port[idx];
193 port = &sc->sc_port[idx];
257 sc->sc_port = malloc(sc->sc_nports * sizeof(struct puc_port),
269 port = &sc->sc_port[idx];
354 port = &sc->sc_port[idx];
375 port = &sc->sc_port[idx];
395 free(sc->sc_port, M_PUC);
412 port = &sc->sc_port[id
[all...]
/freebsd-9.3-release/sys/dev/rc/
H A Drc.c105 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;

Completed in 198 milliseconds