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

/freebsd-10.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-10.3-release/sys/dev/aic/
H A Daic_pccard.c50 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 Daic_cbus.c48 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 Daic_isa.c48 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 Dif_octm.c70 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 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-10.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-10.3-release/sys/mips/cavium/usb/
H A Doctusb.c162 &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 Doctusb.h120 struct octusb_port sc_port[OCTUSB_MAX_PORTS]; member in struct:octusb_softc
/freebsd-10.3-release/sys/dev/puc/
H A Dpuc_bfe.h64 struct puc_port *sc_port; member in struct:puc_softc
H A Dpuc.c148 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 Dif_gx.c66 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 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 208 milliseconds