/freebsd/sys/dev/ichsmb/ |
H A D | ichsmb.c | 122 bus_write_1(sc->io_res, ICH_HST_STA, 0xff); in ichsmb_attach() 177 bus_write_1(sc->io_res, ICH_XMIT_SLVA, in ichsmb_quick() 180 bus_write_1(sc->io_res, ICH_HST_CNT, in ichsmb_quick() 203 bus_write_1(sc->io_res, ICH_XMIT_SLVA, in ichsmb_sendb() 205 bus_write_1(sc->io_res, ICH_HST_CMD, byte); in ichsmb_sendb() 206 bus_write_1(sc->io_res, ICH_HST_CNT, in ichsmb_sendb() 225 bus_write_1(sc->io_res, ICH_XMIT_SLVA, in ichsmb_recvb() 227 bus_write_1(sc->io_res, ICH_HST_CNT, in ichsmb_recvb() 230 *byte = bus_read_1(sc->io_res, ICH_D0); in ichsmb_recvb() 248 bus_write_1(sc->io_res, ICH_XMIT_SLVA, in ichsmb_writeb() [all …]
|
H A D | ichsmb_pci.c | 294 sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, in ichsmb_pci_attach() 296 if (sc->io_res == NULL) in ichsmb_pci_attach() 297 sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, in ichsmb_pci_attach() 299 if (sc->io_res == NULL) { in ichsmb_pci_attach()
|
H A D | ichsmb_var.h | 50 struct resource *io_res; /* i/o port resource */ member
|
/freebsd/sys/dev/intpm/ |
H A D | intpm.c | 49 struct resource *io_res; member 211 sc->io_res = bus_alloc_resource_any(dev, sc->type, &sc->io_rid, in sb8xx_attach() 213 if (sc->io_res == NULL) { in sb8xx_attach() 231 if (sc->io_res) in intsmb_release_resources() 233 sc->io_res); in intsmb_release_resources() 279 sc->io_res = bus_alloc_resource_any(dev, sc->type, &sc->io_rid, in intsmb_attach() 281 if (sc->io_res == NULL) { in intsmb_attach() 364 bus_write_1(sc->io_res, PIIX4_SMBSLVCNT, PIIX4_SMBSLVCNT_ALTEN); in intsmb_attach() 422 if ((bus_read_1(sc->io_res, PIIX4_SMBHSTSTS) & PIIX4_SMBHSTSTAT_BUSY) || in intsmb_free() 424 (bus_read_1(sc->io_res, PIIX4_SMBSLVSTS) & PIIX4_SMBSLVSTS_BUSY) || in intsmb_free() [all …]
|
/freebsd/sys/dev/sbni/ |
H A D | if_sbni_pci.c | 90 sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in sbni_pci_probe() 92 if (!sc->io_res) { in sbni_pci_probe() 100 sc->slave_sc->io_res = sc->io_res; in sbni_pci_probe()
|
H A D | if_sbni.c | 137 rman_get_bustag(sc->io_res), in sbni_inb() 138 rman_get_bushandle(sc->io_res), in sbni_inb() 146 rman_get_bustag(sc->io_res), in sbni_outb() 147 rman_get_bushandle(sc->io_res), in sbni_outb() 155 rman_get_bustag(sc->io_res), in sbni_insb() 156 rman_get_bushandle(sc->io_res), in sbni_insb() 164 rman_get_bustag(sc->io_res), in sbni_outsb() 165 rman_get_bushandle(sc->io_res), in sbni_outsb() 275 if (sc->io_res && sc->io_off == 0) in sbni_release_resources() 277 sc->io_res); in sbni_release_resources() [all …]
|
H A D | if_sbni_isa.c | 81 sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, in sbni_probe_isa() 84 if (!sc->io_res) { in sbni_probe_isa()
|
H A D | if_sbnivar.h | 72 struct resource *io_res; member
|
/freebsd/usr.sbin/nscd/ |
H A D | nscd.c | 280 ssize_t io_res; in process_socket_event() local 321 io_res = query_socket_read(qstate, in process_socket_event() 324 if (io_res < 0) { in process_socket_event() 328 qstate->io_buffer_p += io_res; in process_socket_event() 356 io_res = query_socket_write(qstate, qstate->io_buffer_p, in process_socket_event() 358 if (io_res < 0) { in process_socket_event() 362 qstate->io_buffer_p += io_res; in process_socket_event()
|
/freebsd/sys/dev/superio/ |
H A D | superio.c | 82 struct resource* io_res; member 139 sio_write(sc->io_res, sc->ldn_reg, ldn); in sio_ldn_select() 151 return (sio_read(sc->io_res, reg)); in sio_ldn_read() 162 return (sio_readw(sc->io_res, reg)); in sio_ldn_readw() 175 sio_write(sc->io_res, reg, val); in sio_ldn_write() 182 sc->methods->enter(sc->io_res, sc->io_port); in sio_conf_enter() 188 sc->methods->exit(sc->io_res, sc->io_port); in sio_conf_exit() 600 sc->io_res = res; in superio_detect() 743 bus_release_resource(dev, SYS_RES_IOPORT, sc->io_rid, sc->io_res); in superio_detach()
|
/freebsd/sys/dev/bhnd/bhndb/ |
H A D | bhndb.c | 1772 struct resource *io_res; \ 1782 io_res = dwa->parent_res; \ 1787 KASSERT(rman_get_flags(io_res) & RF_ACTIVE, \ 1805 v = bus_read_ ## _name (io_res, io_offset); \ 1818 bus_write_ ## _name (io_res, io_offset, value); \ 1830 bus_ ## _op ## _ ## _size (io_res, io_offset, \ 1870 bus_barrier(io_res, io_offset + offset, length, flags); in bhndb_bus_barrier()
|
/freebsd/sys/dev/sym/ |
H A D | sym_hipd.c | 847 #define INB_OFF(o) bus_read_1(np->io_res, (o)) 848 #define INW_OFF(o) bus_read_2(np->io_res, (o)) 849 #define INL_OFF(o) bus_read_4(np->io_res, (o)) 851 #define OUTB_OFF(o, v) bus_write_1(np->io_res, (o), (v)) 852 #define OUTW_OFF(o, v) bus_write_2(np->io_res, (o), (v)) 853 #define OUTL_OFF(o, v) bus_write_4(np->io_res, (o), (v)) 1534 struct resource *io_res; member 8511 np->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &i, RF_ACTIVE); 8512 if (!np->io_res) { 8768 if (np->io_res) [all …]
|