| /freebsd-14-stable/sys/dev/ichsmb/ |
| HD | ichsmb.c | 122 bus_write_1(sc->io_res, ICH_HST_STA, 0xff); in ichsmb_attach() 176 bus_write_1(sc->io_res, ICH_XMIT_SLVA, in ichsmb_quick() 179 bus_write_1(sc->io_res, ICH_HST_CNT, in ichsmb_quick() 202 bus_write_1(sc->io_res, ICH_XMIT_SLVA, in ichsmb_sendb() 204 bus_write_1(sc->io_res, ICH_HST_CMD, byte); in ichsmb_sendb() 205 bus_write_1(sc->io_res, ICH_HST_CNT, in ichsmb_sendb() 224 bus_write_1(sc->io_res, ICH_XMIT_SLVA, in ichsmb_recvb() 226 bus_write_1(sc->io_res, ICH_HST_CNT, in ichsmb_recvb() 229 *byte = bus_read_1(sc->io_res, ICH_D0); in ichsmb_recvb() 247 bus_write_1(sc->io_res, ICH_XMIT_SLVA, in ichsmb_writeb() [all …]
|
| HD | ichsmb_pci.c | 288 sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, in ichsmb_pci_attach() 290 if (sc->io_res == NULL) in ichsmb_pci_attach() 291 sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, in ichsmb_pci_attach() 293 if (sc->io_res == NULL) { in ichsmb_pci_attach()
|
| HD | ichsmb_var.h | 50 struct resource *io_res; /* i/o port resource */ member
|
| /freebsd-14-stable/sys/dev/intpm/ |
| HD | intpm.c | 50 struct resource *io_res; member 191 sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &sc->io_rid, in sb8xx_attach() 193 if (sc->io_res == NULL) { in sb8xx_attach() 212 if (sc->io_res) in intsmb_release_resources() 214 sc->io_res); in intsmb_release_resources() 259 sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &sc->io_rid, in intsmb_attach() 261 if (sc->io_res == NULL) { in intsmb_attach() 344 bus_write_1(sc->io_res, PIIX4_SMBSLVCNT, PIIX4_SMBSLVCNT_ALTEN); in intsmb_attach() 402 if ((bus_read_1(sc->io_res, PIIX4_SMBHSTSTS) & PIIX4_SMBHSTSTAT_BUSY) || in intsmb_free() 404 (bus_read_1(sc->io_res, PIIX4_SMBSLVSTS) & PIIX4_SMBSLVSTS_BUSY) || in intsmb_free() [all …]
|
| /freebsd-14-stable/sys/dev/sbni/ |
| HD | if_sbni_pci.c | 91 sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in sbni_pci_probe() 93 if (!sc->io_res) { in sbni_pci_probe() 101 sc->slave_sc->io_res = sc->io_res; in sbni_pci_probe()
|
| HD | 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 …]
|
| HD | if_sbni_isa.c | 82 sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, in sbni_probe_isa() 85 if (!sc->io_res) { in sbni_probe_isa()
|
| HD | if_sbnivar.h | 72 struct resource *io_res; member
|
| /freebsd-14-stable/usr.sbin/nscd/ |
| HD | nscd.c | 281 ssize_t io_res; in process_socket_event() local 322 io_res = query_socket_read(qstate, in process_socket_event() 325 if (io_res < 0) { in process_socket_event() 329 qstate->io_buffer_p += io_res; in process_socket_event() 357 io_res = query_socket_write(qstate, qstate->io_buffer_p, in process_socket_event() 359 if (io_res < 0) { in process_socket_event() 363 qstate->io_buffer_p += io_res; in process_socket_event()
|
| /freebsd-14-stable/sys/dev/superio/ |
| HD | superio.c | 83 struct resource* io_res; member 140 sio_write(sc->io_res, sc->ldn_reg, ldn); in sio_ldn_select() 152 return (sio_read(sc->io_res, reg)); in sio_ldn_read() 163 return (sio_readw(sc->io_res, reg)); in sio_ldn_readw() 176 sio_write(sc->io_res, reg, val); in sio_ldn_write() 183 sc->methods->enter(sc->io_res, sc->io_port); in sio_conf_enter() 189 sc->methods->exit(sc->io_res, sc->io_port); in sio_conf_exit() 601 sc->io_res = res; in superio_detect() 745 bus_release_resource(dev, SYS_RES_IOPORT, sc->io_rid, sc->io_res); in superio_detach()
|
| /freebsd-14-stable/sys/dev/bhnd/bhndb/ |
| HD | bhndb.c | 1784 struct resource *io_res; \ 1794 io_res = dwa->parent_res; \ 1799 KASSERT(rman_get_flags(io_res) & RF_ACTIVE, \ 1817 v = bus_read_ ## _name (io_res, io_offset); \ 1830 bus_write_ ## _name (io_res, io_offset, value); \ 1842 bus_ ## _op ## _ ## _size (io_res, io_offset, \ 1882 bus_barrier(io_res, io_offset + offset, length, flags); in bhndb_bus_barrier()
|
| /freebsd-14-stable/sys/dev/sym/ |
| HD | 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 …]
|