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

/freebsd-9.3-release/sys/dev/ichsmb/
H A Dichsmb.c124 bus_write_1(sc->io_res, ICH_HST_STA, 0xff);
184 bus_write_1(sc->io_res, ICH_XMIT_SLVA,
187 bus_write_1(sc->io_res, ICH_HST_CNT,
210 bus_write_1(sc->io_res, ICH_XMIT_SLVA,
212 bus_write_1(sc->io_res, ICH_HST_CMD, byte);
213 bus_write_1(sc->io_res, ICH_HST_CNT,
232 bus_write_1(sc->io_res, ICH_XMIT_SLVA,
234 bus_write_1(sc->io_res, ICH_HST_CNT,
237 *byte = bus_read_1(sc->io_res, ICH_D0);
255 bus_write_1(sc->io_res, ICH_XMIT_SLV
[all...]
H A Dichsmb_pci.c220 sc->io_res = bus_alloc_resource(dev, SYS_RES_IOPORT,
222 if (sc->io_res == NULL)
223 sc->io_res = bus_alloc_resource(dev, SYS_RES_IOPORT,
225 if (sc->io_res == NULL) {
H A Dichsmb_var.h52 struct resource *io_res; /* i/o port resource */ member in struct:ichsmb_softc
/freebsd-9.3-release/sys/pci/
H A Dintpm.c51 struct resource *io_res; member in struct:intsmb_softc
142 sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid,
144 if (sc->io_res == NULL) {
224 bus_write_1(sc->io_res, PIIX4_SMBSLVCNT, PIIX4_SMBSLVCNT_ALTEN);
249 if (sc->io_res)
251 sc->io_res);
290 if ((bus_read_1(sc->io_res, PIIX4_SMBHSTSTS) & PIIX4_SMBHSTSTAT_BUSY) ||
292 (bus_read_1(sc->io_res, PIIX4_SMBSLVSTS) & PIIX4_SMBSLVSTS_BUSY) ||
300 bus_write_1(sc->io_res, PIIX4_SMBSLVCNT, 0);
303 bus_write_1(sc->io_res, PIIX4_SMBHSTST
[all...]
/freebsd-9.3-release/sys/dev/dpt/
H A Ddpt_pci.c87 dpt->io_res = bus_alloc_resource_any(dev, dpt->io_type,
90 if (dpt->io_res == NULL) {
93 dpt->io_res = bus_alloc_resource_any(dev, dpt->io_type,
97 if (dpt->io_res == NULL) {
116 if (rman_get_start(dpt->io_res) == (ISA_PRIMARY_WD_ADDRESS - 0x10)) {
H A Ddpt_scsi.c88 bus_read_4((dpt)->io_res, (dpt)->io_offset + port)
90 bus_read_1((dpt)->io_res, (dpt)->io_offset + port)
92 bus_write_4((dpt)->io_res, (dpt)->io_offset + port, value)
94 bus_write_1((dpt)->io_res, (dpt)->io_offset + port, value)
1186 dpt->io_res = bus_alloc_resource_any(dev, dpt->io_type, &dpt->io_rid,
1188 if (dpt->io_res == NULL) {
1217 if (dpt->io_res)
1218 bus_release_resource(dev, dpt->io_type, dpt->io_rid, dpt->io_res);
H A Ddpt.h1023 struct resource * io_res; member in struct:dpt_softc
/freebsd-9.3-release/sys/dev/sbni/
H A Dif_sbni_pci.c98 sc->io_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->io_rid,
100 if (!sc->io_res) {
108 sc->slave_sc->io_res = sc->io_res;
H A Dif_sbni_isa.c89 sc->io_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->io_rid,
91 if (!sc->io_res) {
H A Dif_sbnivar.h75 struct resource *io_res; member in struct:sbni_softc
H A Dif_sbni.c139 rman_get_bustag(sc->io_res),
140 rman_get_bushandle(sc->io_res),
148 rman_get_bustag(sc->io_res),
149 rman_get_bushandle(sc->io_res),
157 rman_get_bustag(sc->io_res),
158 rman_get_bushandle(sc->io_res),
166 rman_get_bustag(sc->io_res),
167 rman_get_bushandle(sc->io_res),
282 if (sc->io_res && sc->io_off == 0)
284 sc->io_res);
[all...]
/freebsd-9.3-release/sys/dev/ed/
H A Dif_ed_cbus.c453 static bus_addr_t io_res[ED_NOVELL_IO_PORTS + 1]; local
535 bcopy(io_nic, io_res, sizeof(io_nic[0]) * ED_NOVELL_ASIC_OFFSET);
537 io_res[i] = io_asic[i - ED_NOVELL_ASIC_OFFSET] + offset;
539 res = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, io_res, n,
553 io_res[n] = io_asic[n - ED_NOVELL_ASIC_OFFSET] + offset;
562 io_res[n] = io_asic[n - ED_NOVELL_ASIC_OFFSET] + offset;
569 bcopy(io_nic, io_res, sizeof(io_nic[0]) * ED_NOVELL_ASIC_OFFSET);
571 io_res[n] = io_asic[n - ED_NOVELL_ASIC_OFFSET] + offset;
580 io_res[ED_NOVELL_ASIC_OFFSET + ED_NOVELL_RESET] =
581 io_res[ED_NOVELL_ASIC_OFFSE
[all...]
/freebsd-9.3-release/sys/dev/ie/
H A Dif_ievar.h29 struct resource * io_res; member in struct:ie_softc
H A Dif_ie.c1725 sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &sc->io_rid,
1727 if (!sc->io_res) {
1732 sc->io_bt = rman_get_bustag(sc->io_res);
1733 sc->io_bh = rman_get_bushandle(sc->io_res);
1753 sc->port = rman_get_start(sc->io_res); /* XXX hack */
1773 if (sc->io_res)
1775 sc->io_rid, sc->io_res);
/freebsd-9.3-release/usr.sbin/nscd/
H A Dnscd.c284 ssize_t io_res; local
325 io_res = query_socket_read(qstate,
328 if (io_res < 0) {
332 qstate->io_buffer_p += io_res;
360 io_res = query_socket_write(qstate, qstate->io_buffer_p,
362 if (io_res < 0) {
366 qstate->io_buffer_p += io_res;
/freebsd-9.3-release/sys/dev/sym/
H A Dsym_hipd.c855 #define INB_OFF(o) bus_read_1(np->io_res, (o))
856 #define INW_OFF(o) bus_read_2(np->io_res, (o))
857 #define INL_OFF(o) bus_read_4(np->io_res, (o))
859 #define OUTB_OFF(o, v) bus_write_1(np->io_res, (o), (v))
860 #define OUTW_OFF(o, v) bus_write_2(np->io_res, (o), (v))
861 #define OUTL_OFF(o, v) bus_write_4(np->io_res, (o), (v))
1542 struct resource *io_res; member in struct:sym_hcb
8533 np->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &i, RF_ACTIVE);
8534 if (!np->io_res) {
8790 if (np->io_res)
[all...]

Completed in 197 milliseconds