/openbsd/sys/arch/armv7/omap/ |
H A D | if_cpsw.c | 131 bus_space_tag_t sc_bst; member 222 bus_space_write_4(sc->sc_bst, sc->sc_bsh_txdescs, o, n); in cpsw_set_txdesc_next() 229 bus_space_write_4(sc->sc_bst, sc->sc_bsh_rxdescs, o, n); in cpsw_set_rxdesc_next() 237 bus_space_read_region_4(sc->sc_bst, sc->sc_bsh_txdescs, o, in cpsw_get_txdesc() 292 bus_space_write_4(sc->sc_bst, sc->sc_bsh, MDIOCONTROL, in cpsw_mdio_init() 377 sc->sc_bst = faa->fa_iot; in cpsw_attach() 380 error = bus_space_map(sc->sc_bst, faa->fa_reg[0].addr, in cpsw_attach() 387 error = bus_space_subregion(sc->sc_bst, sc->sc_bsh, in cpsw_attach() 394 descs = bus_space_vaddr(sc->sc_bst, sc->sc_bsh_txdescs); in cpsw_attach() 397 error = bus_space_subregion(sc->sc_bst, sc->sc_bsh, in cpsw_attach() [all …]
|
/openbsd/sys/dev/tc/ |
H A D | bba.c | 96 bus_space_tag_t sc_bst; /* IOASIC bus tag/handle */ member 196 sc->sc_bst = iosc->sc_bst; in bba_attach() 201 if (bus_space_subregion(sc->sc_bst, sc->sc_bsh, in bba_attach() 243 ssr = bus_space_read_4(sc->sc_bst, sc->sc_bsh, IOASIC_CSR); in bba_reset() 247 bus_space_write_4(sc->sc_bst, sc->sc_bsh, IOASIC_CSR, ssr); in bba_reset() 358 ssr = bus_space_read_4(sc->sc_bst, sc->sc_bsh, IOASIC_CSR); in bba_halt_output() 360 bus_space_write_4(sc->sc_bst, sc->sc_bsh, IOASIC_CSR, ssr); in bba_halt_output() 386 ssr = bus_space_read_4(sc->sc_bst, sc->sc_bsh, IOASIC_CSR); in bba_halt_input() 388 bus_space_write_4(sc->sc_bst, sc->sc_bsh, IOASIC_CSR, ssr); in bba_halt_input() 556 bus_space_write_4(sc->sc_bst, sc->sc_bsh, in bba_intr() [all …]
|
H A D | tcds.c | 84 bus_space_tag_t sc_bst; member 176 sc->sc_bst = ta->ta_memt; 182 if (bus_space_map(sc->sc_bst, ta->ta_addr, 210 bus_space_write_4(sc->sc_bst, sc->sc_bsh, TCDS_IMER, 0); 230 slotc->sc_bst = sc->sc_bst; 267 tcdsdev.tcdsda_bst = sc->sc_bst; 393 cir = bus_space_read_4(sc->sc_bst, sc->sc_bsh, TCDS_CIR); 395 bus_space_write_4(sc->sc_bst, sc->sc_bsh, TCDS_CIR, cir); 399 cir = bus_space_read_4(sc->sc_bst, sc->sc_bsh, TCDS_CIR); 401 bus_space_write_4(sc->sc_bst, sc->sc_bsh, TCDS_CIR, cir); [all …]
|
H A D | asc_tcds.c | 146 asc->asc.sc_bst = tcdsdev->tcdsda_bst; 276 bus_space_write_4(tcds->sc_bst, tcds->sc_bsh, tcds->sc_sda, 278 dic = bus_space_read_4(tcds->sc_bst, tcds->sc_bsh, tcds->sc_dic); 285 bus_space_write_4(tcds->sc_bst, tcds->sc_bsh, tcds->sc_dic, dic); 391 dud = bus_space_read_4(tcds->sc_bst, 411 dud = bus_space_read_4(tcds->sc_bst, 414 pa = bus_space_read_4(tcds->sc_bst, tcds->sc_bsh,
|
H A D | asc.c | 84 v = bus_space_read_4(asc->sc_bst, asc->sc_bsh, 98 bus_space_write_4(asc->sc_bst, asc->sc_bsh,
|
H A D | asc_tc.c | 128 asc->asc.sc_bst = ta->ta_memt; 130 if (bus_space_map(asc->asc.sc_bst, ta->ta_addr, 259 bus_space_write_4(asc->asc.sc_bst, asc->asc.sc_bsh, PMAZ_OFFSET_DMAR, 278 bus_space_write_4(asc->asc.sc_bst, asc->asc.sc_bsh, PMAZ_OFFSET_DMAR,
|
H A D | if_le_ioasic.c | 122 ioasic_bst = ((struct ioasic_softc *)parent)->sc_bst; in le_ioasic_attach() 459 ((struct ioasic_softc *)sc->sc_am7990.lsc.sc_dev.dv_parent)->sc_bst; in le_ioasic_ifmedia_change() 493 ((struct ioasic_softc *)sc->sc_am7990.lsc.sc_dev.dv_parent)->sc_bst; in le_ioasic_ifmedia_status() 511 ((struct ioasic_softc *)sc->sc_am7990.lsc.sc_dev.dv_parent)->sc_bst; in le_ioasic_nocarrier()
|
H A D | ascvar.h | 10 bus_space_tag_t sc_bst; /* bus space tag */ member
|
H A D | ioasicvar.h | 55 bus_space_tag_t sc_bst; member
|
H A D | tcdsvar.h | 37 bus_space_tag_t sc_bst; /* to frob TCDS regs */ member
|
/openbsd/sys/dev/hil/ |
H A D | hil.c | 119 if ((bus_space_read_1(sc->sc_bst, sc->sc_bsh, HILP_STAT) & in hilwait() 134 if ((bus_space_read_1(sc->sc_bst, sc->sc_bsh, HILP_STAT) & in hildatawait() 217 if (bus_space_read_1(sc->sc_bst, sc->sc_bsh, HILP_STAT) & in hil_attach_deferred() 219 db = bus_space_read_1(sc->sc_bst, sc->sc_bsh, HILP_DATA); in hil_attach_deferred() 294 c = bus_space_read_1(sc->sc_bst, sc->sc_bsh, in hil_intr() 679 status = bus_space_read_1(sc->sc_bst, sc->sc_bsh, in send_hil_cmd() 681 *rdata = bus_space_read_1(sc->sc_bst, sc->sc_bsh, in send_hil_cmd() 796 bus_space_write_1(sc->sc_bst, sc->sc_bsh, HILP_DATA, 0); in polloff() 851 bus_space_write_1(sc->sc_bst, sc->sc_bsh, HILP_DATA, 0); in pollon() 872 s = bus_space_read_1(sc->sc_bst, sc->sc_bsh, HILP_STAT); in hil_poll_data() [all …]
|
H A D | hilvar.h | 74 bus_space_tag_t sc_bst; member
|
/openbsd/sys/dev/acpi/ |
H A D | acpibat.c | 182 sc->sc_sens[4].value = sc->sc_bst.bst_state; in acpibat_monitor() 279 else if (sc->sc_bst.bst_state & BST_CHARGE) in acpibat_refresh() 285 if (sc->sc_bst.bst_state & BST_CRITICAL) in acpibat_refresh() 287 sc->sc_sens[4].value = sc->sc_bst.bst_state; in acpibat_refresh() 289 if (sc->sc_bst.bst_rate == BST_UNKNOWN) { in acpibat_refresh() 316 if (sc->sc_bst.bst_voltage == BST_UNKNOWN) { in acpibat_refresh() 463 memset(&sc->sc_bst, 0, sizeof(sc->sc_bst)); in acpibat_getbst() 484 sc->sc_bst.bst_state, in acpibat_getbst() 485 sc->sc_bst.bst_rate, in acpibat_getbst() 486 sc->sc_bst.bst_capacity, in acpibat_getbst() [all …]
|
H A D | if_bse_acpi.c | 83 sc->sc.sc_bst = aaa->aaa_bst[0]; in bse_acpi_attach() 86 if (bus_space_map(sc->sc.sc_bst, aaa->aaa_addr[0], aaa->aaa_size[0], in bse_acpi_attach() 126 bus_space_unmap(sc->sc.sc_bst, sc->sc.sc_bsh, aaa->aaa_size[0]); in bse_acpi_attach()
|
/openbsd/sys/arch/alpha/tc/ |
H A D | ioasic.c | 168 sc->sc_bst = ta->ta_memt; 180 ssr = bus_space_read_4(sc->sc_bst, sc->sc_bsh, IOASIC_CSR); 182 bus_space_write_4(sc->sc_bst, sc->sc_bsh, IOASIC_CSR, ssr); 192 imsk = bus_space_read_4(sc->sc_bst, sc->sc_bsh, IOASIC_IMSK); 195 bus_space_write_4(sc->sc_bst, sc->sc_bsh, IOASIC_IMSK, imsk); 245 imsk = bus_space_read_4(sc->sc_bst, sc->sc_bsh, IOASIC_IMSK); 247 bus_space_write_4(sc->sc_bst, sc->sc_bsh, IOASIC_IMSK, imsk); 273 imsk = bus_space_read_4(sc->sc_bst, sc->sc_bsh, IOASIC_IMSK); 275 bus_space_write_4(sc->sc_bst, sc->sc_bsh, IOASIC_IMSK, imsk); 309 bus_space_read_4(sc->sc_bst, sc->sc_bsh, IOASIC_INTR); [all …]
|
/openbsd/sys/dev/pcmcia/ |
H A D | if_xe.c | 123 bus_space_tag_t sc_bst; /* Bus cookie */ member 277 sc->sc_bst = psc->sc_pcioh.iot; in xe_pcmcia_attach() 296 sc->sc_bst = psc->sc_pcmh.memt; in xe_pcmcia_attach() 824 bus_space_tag_t bst = sc->sc_bst; in xe_mdi_idle() 842 bus_space_tag_t bst = sc->sc_bst; in xe_mdi_pulse() 861 bus_space_tag_t bst = sc->sc_bst; in xe_mdi_probe() 1037 bus_space_tag_t bst = sc->sc_bst; in xe_start() 1197 bus_space_tag_t bst = sc->sc_bst; in xe_set_address() 1248 bus_space_tag_t bst = sc->sc_bst; in xe_cycle_power() 1267 bus_space_tag_t bst = sc->sc_bst; in xe_full_reset() [all …]
|
/openbsd/sys/arch/hppa/gsc/ |
H A D | oosiop_gsc.c | 112 sc->sc_bst = ga->ga_iot; 114 if (bus_space_map(sc->sc_bst, ga->ga_hpa, 117 if (bus_space_subregion(sc->sc_bst, ioh, 137 bus_space_write_1(sc->sc_bst, ioh, OOSIOP_GSC_RESET, 0);
|
H A D | osiop_gsc.c | 113 sc->sc_bst = ga->ga_iot; 115 if (bus_space_map(sc->sc_bst, ga->ga_hpa, 118 if (bus_space_subregion(sc->sc_bst, ioh, 136 bus_space_write_1(sc->sc_bst, ioh, OSIOP_GSC_RESET, 0);
|
/openbsd/sys/dev/ic/ |
H A D | oosiopvar.h | 115 bus_space_tag_t sc_bst; /* bus space tag */ member 159 bus_space_read_1((sc)->sc_bst, (sc)->sc_bsh, (addr)) 161 bus_space_write_1((sc)->sc_bst, (sc)->sc_bsh, (addr), (data)) 164 letoh32(bus_space_read_4((sc)->sc_bst, (sc)->sc_bsh, (addr))) 166 bus_space_write_4((sc)->sc_bst, (sc)->sc_bsh, (addr), htole32(data))
|
H A D | osiopvar.h | 65 bus_space_read_1((sc)->sc_bst, (sc)->sc_reg, reg) 67 bus_space_write_1((sc)->sc_bst, (sc)->sc_reg, reg, val) 70 bus_space_read_4((sc)->sc_bst, (sc)->sc_reg, reg) 72 bus_space_write_4((sc)->sc_bst, (sc)->sc_reg, reg, val) 197 bus_space_tag_t sc_bst; /* bus space tag */ member
|
H A D | smc91cxxvar.h | 41 bus_space_tag_t sc_bst; /* bus space */ member 59 bus_space_write_2((sc)->sc_bst, (sc)->sc_bsh, \
|
H A D | smc91cxx.c | 187 bus_space_tag_t bst = sc->sc_bst; in smc91cxx_attach() 316 bus_space_tag_t bst = sc->sc_bst; in smc91cxx_set_media() 361 bus_space_tag_t bst = sc->sc_bst; in smc91cxx_mediastatus() 394 bus_space_tag_t bst = sc->sc_bst; in smc91cxx_init() 513 bus_space_tag_t bst = sc->sc_bst; in smc91cxx_start() 698 bus_space_tag_t bst = sc->sc_bst; in smc91cxx_intr() 888 bus_space_tag_t bst = sc->sc_bst; in smc91cxx_read() 1090 bus_space_tag_t bst = sc->sc_bst; in smc91cxx_stop() 1172 return (bus_space_read_2(sc->sc_bst, sc->sc_bsh, MGMT_REG_W)); in smc91cxx_mii_bitbang_read() 1181 bus_space_write_2(sc->sc_bst, sc->sc_bsh, MGMT_REG_W, val); in smc91cxx_mii_bitbang_write() [all …]
|
H A D | bcmgenetvar.h | 60 bus_space_tag_t sc_bst; member
|
/openbsd/sys/dev/isa/ |
H A D | if_eg.c | 84 bus_space_tag_t sc_bst; member 142 bus_space_tag_t bst = sc->sc_bst; in egoutPCB() 160 bus_space_tag_t bst = sc->sc_bst; in egreadPCBstat() 178 bus_space_tag_t bst = sc->sc_bst; in egreadPCBready() 195 bus_space_tag_t bst = sc->sc_bst; in egwritePCB() 228 bus_space_tag_t bst = sc->sc_bst; in egreadPCB() 284 bus_space_tag_t bst = sc->sc_bst = ia->ia_iot; in egprobe() 419 bus_space_tag_t bst = sc->sc_bst; in eginit() 489 bus_space_tag_t bst = sc->sc_bst; in egstart() 567 bus_space_tag_t bst = sc->sc_bst; in egintr() [all …]
|
/openbsd/sys/dev/fdt/ |
H A D | if_bse_fdt.c | 66 sc->sc_bst = faa->fa_iot; in bse_fdt_attach() 69 if (bus_space_map(sc->sc_bst, faa->fa_reg[0].addr, in bse_fdt_attach() 113 bus_space_unmap(sc->sc_bst, sc->sc_bsh, faa->fa_reg[0].size); in bse_fdt_attach()
|