/openbsd/sys/arch/armv7/omap/ |
H A D | if_cpsw.c | 132 bus_space_handle_t sc_bsh; member 292 bus_space_write_4(sc->sc_bst, sc->sc_bsh, MDIOCONTROL, in cpsw_mdio_init() 307 link = bus_space_read_4(sc->sc_bst, sc->sc_bsh, MDIOLINK) & 3; in cpsw_mdio_init() 317 bus_space_write_4(sc->sc_bst, sc->sc_bsh, MDIOUSERPHYSEL0, in cpsw_mdio_init() 381 memsize, BUS_SPACE_MAP_LINEAR, &sc->sc_bsh); in cpsw_attach() 387 error = bus_space_subregion(sc->sc_bst, sc->sc_bsh, in cpsw_attach() 397 error = bus_space_subregion(sc->sc_bst, sc->sc_bsh, in cpsw_attach() 436 idver = bus_space_read_4(sc->sc_bst, sc->sc_bsh, CPSW_SS_IDVER); in cpsw_attach() 711 v = bus_space_read_4(sc->sc_bst, sc->sc_bsh, MDIOUSERACCESS0); in cpsw_mii_readreg() 735 v = bus_space_read_4(sc->sc_bst, sc->sc_bsh, MDIOUSERACCESS0); in cpsw_mii_writereg() [all …]
|
/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 | 73 bus_space_handle_t sc_bsh; member
|
/openbsd/sys/dev/tc/ |
H A D | bba.c | 97 bus_space_handle_t sc_bsh; member 197 sc->sc_bsh = iosc->sc_bsh; 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 | 85 bus_space_handle_t sc_bsh; member 183 (TCDS_SCSI1_OFFSET + 0x100), 0, &sc->sc_bsh)) { 210 bus_space_write_4(sc->sc_bst, sc->sc_bsh, TCDS_IMER, 0); 231 slotc->sc_bsh = sc->sc_bsh; 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); 431 cir = bus_space_read_4(sc->sc_bst, sc->sc_bsh, TCDS_CIR); 439 bus_space_write_4(sc->sc_bst, sc->sc_bsh, TCDS_CIR, cir); [all …]
|
H A D | asc_tcds.c | 147 asc->asc.sc_bsh = tcdsdev->tcdsda_bsh; 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); 392 tcds->sc_bsh, tcds->sc_dud0); 412 tcds->sc_bsh, tcds->sc_dud1); 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 | 131 PMAZ_OFFSET_RAM + PMAZ_RAM_SIZE, 0, &asc->asc.sc_bsh)) { 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 | 123 ioasic_bsh = ((struct ioasic_softc *)parent)->sc_bsh; in le_ioasic_attach() 461 ((struct ioasic_softc *)sc->sc_am7990.lsc.sc_dev.dv_parent)->sc_bsh; in le_ioasic_ifmedia_change() 495 ((struct ioasic_softc *)sc->sc_am7990.lsc.sc_dev.dv_parent)->sc_bsh; in le_ioasic_ifmedia_status() 513 ((struct ioasic_softc *)sc->sc_am7990.lsc.sc_dev.dv_parent)->sc_bsh; in le_ioasic_nocarrier()
|
H A D | ascvar.h | 11 bus_space_handle_t sc_bsh; /* ASC register handle */ member
|
H A D | ioasicvar.h | 56 bus_space_handle_t sc_bsh; member
|
H A D | tcdsvar.h | 38 bus_space_handle_t sc_bsh; member
|
/openbsd/sys/arch/alpha/tc/ |
H A D | ioasic.c | 170 0x400000, 0, &sc->sc_bsh)) { 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 | 278 sc->sc_bsh = psc->sc_pcioh.ioh; in xe_pcmcia_attach() 297 sc->sc_bsh = psc->sc_pcmh.memh; in xe_pcmcia_attach() 663 bus_space_write_2(sc->sc_bst, sc->sc_bsh, in xe_intr() 825 bus_space_handle_t bsh = sc->sc_bsh; in xe_mdi_idle() 843 bus_space_handle_t bsh = sc->sc_bsh; in xe_mdi_pulse() 862 bus_space_handle_t bsh = sc->sc_bsh; in xe_mdi_probe() 1038 bus_space_handle_t bsh = sc->sc_bsh; in xe_start() 1198 bus_space_handle_t bsh = sc->sc_bsh; in xe_set_address() 1249 bus_space_handle_t bsh = sc->sc_bsh; in xe_cycle_power() 1268 bus_space_handle_t bsh = sc->sc_bsh; in xe_full_reset() [all …]
|
/openbsd/sys/dev/ic/ |
H A D | oosiopvar.h | 116 bus_space_handle_t sc_bsh; /* bus space handle */ 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 | smc91cxxvar.h | 42 bus_space_handle_t sc_bsh; member 59 bus_space_write_2((sc)->sc_bst, (sc)->sc_bsh, \
|
H A D | smc91cxx.c | 188 bus_space_handle_t bsh = sc->sc_bsh; in smc91cxx_attach() 317 bus_space_handle_t bsh = sc->sc_bsh; in smc91cxx_set_media() 362 bus_space_handle_t bsh = sc->sc_bsh; in smc91cxx_mediastatus() 395 bus_space_handle_t bsh = sc->sc_bsh; in smc91cxx_init() 514 bus_space_handle_t bsh = sc->sc_bsh; in smc91cxx_start() 699 bus_space_handle_t bsh = sc->sc_bsh; in smc91cxx_intr() 889 bus_space_handle_t bsh = sc->sc_bsh; in smc91cxx_read() 1091 bus_space_handle_t bsh = sc->sc_bsh; 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 | 61 bus_space_handle_t sc_bsh; member
|
H A D | dwhdmi.h | 69 bus_space_handle_t sc_bsh; member
|
H A D | dwhdmi.c | 320 val = bus_space_read_1(sc->sc_bst, sc->sc_bsh, reg); in dwhdmi_read() 323 val = bus_space_read_4(sc->sc_bst, sc->sc_bsh, reg * 4) & 0xff; in dwhdmi_read() 338 bus_space_write_1(sc->sc_bst, sc->sc_bsh, reg, val); in dwhdmi_write() 341 bus_space_write_4(sc->sc_bst, sc->sc_bsh, reg * 4, val); in dwhdmi_write()
|
/openbsd/sys/dev/isa/ |
H A D | if_eg.c | 85 bus_space_handle_t sc_bsh; member 143 bus_space_handle_t bsh = sc->sc_bsh; in egoutPCB() 161 bus_space_handle_t bsh = sc->sc_bsh; in egreadPCBstat() 179 bus_space_handle_t bsh = sc->sc_bsh; in egreadPCBready() 196 bus_space_handle_t bsh = sc->sc_bsh; in egwritePCB() 229 bus_space_handle_t bsh = sc->sc_bsh; in egreadPCB() 297 sc->sc_bsh = bsh; in egprobe() 355 sc->sc_bsh = bsh; in egattach() 420 bus_space_handle_t bsh = sc->sc_bsh; in eginit() 490 bus_space_handle_t bsh = sc->sc_bsh; in egstart() [all …]
|
/openbsd/sys/dev/fdt/ |
H A D | if_bse_fdt.c | 70 faa->fa_reg[0].size, 0, &sc->sc_bsh)) { in bse_fdt_attach() 113 bus_space_unmap(sc->sc_bst, sc->sc_bsh, faa->fa_reg[0].size); in bse_fdt_attach()
|
/openbsd/sys/dev/acpi/ |
H A D | if_bse_acpi.c | 87 0, &sc->sc.sc_bsh)) { 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/hppa/gsc/ |
H A D | hil_gsc.c | 79 HILMAPSIZE, 0, &sc->sc_bsh)) { in hil_gsc_attach()
|
H A D | oosiop_gsc.c | 118 OOSIOP_GSC_OFFSET, OOSIOP_NREGS, &sc->sc_bsh))
|