/freebsd-11-stable/sys/dev/ichsmb/ |
H A D | ichsmb.c | 124 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 D | ichsmb_var.h | 52 struct resource *io_res; /* i/o port resource */ member in struct:ichsmb_softc
|
H A D | ichsmb_pci.c | 228 sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, 230 if (sc->io_res == NULL) 231 sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, 233 if (sc->io_res == NULL) {
|
/freebsd-11-stable/sys/dev/intpm/ |
H A D | intpm.c | 52 struct resource *io_res; member in struct:intsmb_softc 192 sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &sc->io_rid, 209 if (sc->io_res) 211 sc->io_res); 255 sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &sc->io_rid, 257 if (sc->io_res == NULL) { 340 bus_write_1(sc->io_res, PIIX4_SMBSLVCNT, PIIX4_SMBSLVCNT_ALTEN); 398 if ((bus_read_1(sc->io_res, PIIX4_SMBHSTSTS) & PIIX4_SMBHSTSTAT_BUSY) || 400 (bus_read_1(sc->io_res, PIIX4_SMBSLVSTS) & PIIX4_SMBSLVSTS_BUSY) || 408 bus_write_1(sc->io_res, PIIX4_SMBSLVCN [all...] |
/freebsd-11-stable/sys/dev/dpt/ |
H A D | dpt_pci.c | 87 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 D | dpt_scsi.c | 88 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) 1184 dpt->io_res = bus_alloc_resource_any(dev, dpt->io_type, &dpt->io_rid, 1186 if (dpt->io_res == NULL) { 1215 if (dpt->io_res) 1216 bus_release_resource(dev, dpt->io_type, dpt->io_rid, dpt->io_res);
|
H A D | dpt.h | 1023 struct resource * io_res; member in struct:dpt_softc
|
/freebsd-11-stable/sys/dev/sbni/ |
H A D | if_sbni_pci.c | 98 sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, 100 if (!sc->io_res) { 108 sc->slave_sc->io_res = sc->io_res;
|
H A D | if_sbni_isa.c | 89 sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, 92 if (!sc->io_res) {
|
H A D | if_sbnivar.h | 75 struct resource *io_res; member in struct:sbni_softc
|
H A D | if_sbni.c | 140 rman_get_bustag(sc->io_res), 141 rman_get_bushandle(sc->io_res), 149 rman_get_bustag(sc->io_res), 150 rman_get_bushandle(sc->io_res), 158 rman_get_bustag(sc->io_res), 159 rman_get_bushandle(sc->io_res), 167 rman_get_bustag(sc->io_res), 168 rman_get_bushandle(sc->io_res), 283 if (sc->io_res && sc->io_off == 0) 285 sc->io_res); [all...] |
/freebsd-11-stable/sys/dev/ie/ |
H A D | if_ievar.h | 29 struct resource * io_res; member in struct:ie_softc
|
H A D | if_ie.c | 1619 sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &sc->io_rid, 1621 if (!sc->io_res) { 1626 sc->io_bt = rman_get_bustag(sc->io_res); 1627 sc->io_bh = rman_get_bushandle(sc->io_res); 1647 sc->port = rman_get_start(sc->io_res); /* XXX hack */ 1667 if (sc->io_res) 1669 sc->io_rid, sc->io_res);
|
/freebsd-11-stable/sys/dev/ed/ |
H A D | if_ed_cbus.c | 453 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-11-stable/usr.sbin/nscd/ |
H A D | nscd.c | 284 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-11-stable/sys/dev/bhnd/bhndb/ |
H A D | bhndb.c | 1745 struct resource *io_res; \ 1753 io_res = dwa->parent_res; \ 1758 KASSERT(rman_get_flags(io_res) & RF_ACTIVE, \ 1772 v = bus_read_ ## _name (io_res, io_offset); \ 1785 bus_write_ ## _name (io_res, io_offset, value); \ 1797 bus_ ## _op ## _ ## _size (io_res, io_offset, \ 1837 bus_barrier(io_res, io_offset + offset, length, flags);
|
/freebsd-11-stable/sys/dev/sym/ |
H A D | sym_hipd.c | 856 #define INB_OFF(o) bus_read_1(np->io_res, (o)) 857 #define INW_OFF(o) bus_read_2(np->io_res, (o)) 858 #define INL_OFF(o) bus_read_4(np->io_res, (o)) 860 #define OUTB_OFF(o, v) bus_write_1(np->io_res, (o), (v)) 861 #define OUTW_OFF(o, v) bus_write_2(np->io_res, (o), (v)) 862 #define OUTL_OFF(o, v) bus_write_4(np->io_res, (o), (v)) 1543 struct resource *io_res; member in struct:sym_hcb 8529 np->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &i, RF_ACTIVE); 8530 if (!np->io_res) { 8786 if (np->io_res) [all...] |