Home
last modified time | relevance | path

Searched refs:sc_bsh (Results 1 – 25 of 31) sorted by relevance

12

/openbsd/sys/arch/armv7/omap/
H A Dif_cpsw.c132 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 Dhil.c119 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 Dhilvar.h73 bus_space_handle_t sc_bsh; member
/openbsd/sys/dev/tc/
H A Dbba.c97 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 Dtcds.c85 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 Dasc_tcds.c147 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 Dasc.c84 v = bus_space_read_4(asc->sc_bst, asc->sc_bsh,
98 bus_space_write_4(asc->sc_bst, asc->sc_bsh,
H A Dasc_tc.c131 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 Dif_le_ioasic.c123 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 Dascvar.h11 bus_space_handle_t sc_bsh; /* ASC register handle */ member
H A Dioasicvar.h56 bus_space_handle_t sc_bsh; member
H A Dtcdsvar.h38 bus_space_handle_t sc_bsh; member
/openbsd/sys/arch/alpha/tc/
H A Dioasic.c170 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 Dif_xe.c278 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 Doosiopvar.h116 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 Dsmc91cxxvar.h42 bus_space_handle_t sc_bsh; member
59 bus_space_write_2((sc)->sc_bst, (sc)->sc_bsh, \
H A Dsmc91cxx.c188 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 Dbcmgenetvar.h61 bus_space_handle_t sc_bsh; member
H A Ddwhdmi.h69 bus_space_handle_t sc_bsh; member
H A Ddwhdmi.c320 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 Dif_eg.c85 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 Dif_bse_fdt.c70 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 Dif_bse_acpi.c87 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 Dhil_gsc.c79 HILMAPSIZE, 0, &sc->sc_bsh)) { in hil_gsc_attach()
H A Doosiop_gsc.c118 OOSIOP_GSC_OFFSET, OOSIOP_NREGS, &sc->sc_bsh))

12