/freebsd-10.2-release/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 | 232 sc->io_res = bus_alloc_resource(dev, SYS_RES_IOPORT, 234 if (sc->io_res == NULL) 235 sc->io_res = bus_alloc_resource(dev, SYS_RES_IOPORT, 237 if (sc->io_res == NULL) {
|
/freebsd-10.2-release/sys/pci/ |
H A D | intpm.c | 51 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-10.2-release/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) 1185 dpt->io_res = bus_alloc_resource_any(dev, dpt->io_type, &dpt->io_rid, 1187 if (dpt->io_res == NULL) { 1216 if (dpt->io_res) 1217 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-10.2-release/sys/dev/sbni/ |
H A D | if_sbni_pci.c | 98 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 D | if_sbni_isa.c | 89 sc->io_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->io_rid, 91 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 | 139 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-10.2-release/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 | 1626 sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &sc->io_rid, 1628 if (!sc->io_res) { 1633 sc->io_bt = rman_get_bustag(sc->io_res); 1634 sc->io_bh = rman_get_bushandle(sc->io_res); 1654 sc->port = rman_get_start(sc->io_res); /* XXX hack */ 1674 if (sc->io_res) 1676 sc->io_rid, sc->io_res);
|
/freebsd-10.2-release/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-10.2-release/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-10.2-release/sys/dev/sym/ |
H A D | sym_hipd.c | 858 #define INB_OFF(o) bus_read_1(np->io_res, (o)) 859 #define INW_OFF(o) bus_read_2(np->io_res, (o)) 860 #define INL_OFF(o) bus_read_4(np->io_res, (o)) 862 #define OUTB_OFF(o, v) bus_write_1(np->io_res, (o), (v)) 863 #define OUTW_OFF(o, v) bus_write_2(np->io_res, (o), (v)) 864 #define OUTL_OFF(o, v) bus_write_4(np->io_res, (o), (v)) 1545 struct resource *io_res; member in struct:sym_hcb 8536 np->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &i, RF_ACTIVE); 8537 if (!np->io_res) { 8793 if (np->io_res) [all...] |