Home
last modified time | relevance | path

Searched refs:bst (Results 1 – 25 of 241) sorted by relevance

12345678910

/netbsd-src/sys/arch/mipsco/mipsco/
H A Dbus_space.c44 mipsco_bus_space_init(bus_space_tag_t bst, const char *name, paddr_t paddr, vaddr_t vaddr, bus_addr… in mipsco_bus_space_init() argument
46 bst->bs_name = name; in mipsco_bus_space_init()
47 bst->bs_spare = NULL; in mipsco_bus_space_init()
48 bst->bs_start = start; in mipsco_bus_space_init()
49 bst->bs_size = size; in mipsco_bus_space_init()
50 bst->bs_pbase = paddr; in mipsco_bus_space_init()
51 bst->bs_vbase = vaddr; in mipsco_bus_space_init()
52 bst->bs_compose_handle = mipsco_bus_space_compose_handle; in mipsco_bus_space_init()
53 bst->bs_dispose_handle = mipsco_bus_space_dispose_handle; in mipsco_bus_space_init()
54 bst->bs_paddr = mipsco_bus_space_paddr; in mipsco_bus_space_init()
[all …]
/netbsd-src/sys/arch/arc/arc/
H A Dbus_space.c55 __CONCAT(bus_space_read_,BYTES)(bus_space_tag_t bst, \
59 (bsh + (offset << __CONCAT(bst->bs_stride_,BYTES)))); \
78 __CONCAT(bus_space_read_multi_,BYTES)(bus_space_tag_t bst, \
84 (bsh + (offset << __CONCAT(bst->bs_stride_,BYTES))); \
107 __CONCAT(bus_space_read_region_,BYTES)(bus_space_tag_t bst, \
111 int stride = 1 << __CONCAT(bst->bs_stride_,BYTES); \
114 (bsh + (offset << __CONCAT(bst->bs_stride_,BYTES))); \
138 __CONCAT(bus_space_write_,BYTES)(bus_space_tag_t bst, \
143 (bsh + (offset << __CONCAT(bst->bs_stride_,BYTES))) = data; \
162 __CONCAT(bus_space_write_multi_,BYTES)(bus_space_tag_t bst, \
[all …]
H A Dbus_space_large.c69 arc_large_bus_space_init(bus_space_tag_t bst, const char *name, paddr_t paddr, in arc_large_bus_space_init() argument
73 arc_sparse_bus_space_init(bst, name, paddr, start, size); in arc_large_bus_space_init()
74 bst->bs_compose_handle = arc_large_bus_space_compose_handle; in arc_large_bus_space_init()
75 bst->bs_dispose_handle = arc_large_bus_space_dispose_handle; in arc_large_bus_space_init()
76 bst->bs_paddr = arc_large_bus_space_paddr; in arc_large_bus_space_init()
80 arc_large_bus_space_compose_handle(bus_space_tag_t bst, bus_addr_t addr, in arc_large_bus_space_compose_handle() argument
86 pa = bst->bs_pbase + (addr - bst->bs_start); in arc_large_bus_space_compose_handle()
111 return arc_sparse_bus_space_compose_handle(bst, addr, size, flags, in arc_large_bus_space_compose_handle()
116 arc_large_bus_space_dispose_handle(bus_space_tag_t bst, bus_space_handle_t bsh, in arc_large_bus_space_dispose_handle() argument
127 return arc_sparse_bus_space_dispose_handle(bst, bsh, size); in arc_large_bus_space_dispose_handle()
[all …]
/netbsd-src/external/gpl3/gdb/dist/sim/testsuite/sh/
H A Dbst.s1 # sh testcase for bst
21 bst.b #0, @(3, r1)
23 bst.b #1, @(3, r1)
25 bst.b #2, @(3, r1)
27 bst.b #3, @(3, r1)
30 bst.b #4, @(3, r1)
32 bst.b #5, @(3, r1)
34 bst.b #6, @(3, r1)
36 bst.b #7, @(3, r1)
39 bst.b #0, @(2, r1)
[all …]
/netbsd-src/sys/rump/dev/lib/libpci/
H A Drumpdev_bus_space.c45 bus_space_map(bus_space_tag_t bst, bus_addr_t address, bus_size_t size, in bus_space_map() argument
57 if (bst == 0) { in bus_space_map()
73 bus_space_read_1(bus_space_tag_t bst, bus_space_handle_t bsh, in bus_space_read_1() argument
78 if (bst == 0) { in bus_space_read_1()
93 bus_space_read_2(bus_space_tag_t bst, bus_space_handle_t bsh, in bus_space_read_2() argument
98 if (bst == 0) { in bus_space_read_2()
113 bus_space_read_4(bus_space_tag_t bst, bus_space_handle_t bsh, in bus_space_read_4() argument
118 if (bst == 0) { in bus_space_read_4()
133 bus_space_read_multi_1(bus_space_tag_t bst, bus_space_handle_t bsh, in bus_space_read_multi_1() argument
138 *datap++ = bus_space_read_1(bst, bsh, offset); in bus_space_read_multi_1()
[all …]
/netbsd-src/sys/arch/arm/ti/
H A Dam3_platform.c64 wdelay(bus_space_tag_t bst, bus_space_handle_t bsh) in wdelay() argument
66 while (bus_space_read_4(bst, bsh, 0x34) != 0) in wdelay()
73 static bus_space_tag_t bst = &armv7_generic_bs_tag; in am33xx_platform_bootstrap() local
76 bus_space_map(bst, 0x44e00000, 0x1000, 0, &bsh); in am33xx_platform_bootstrap()
77 bus_space_write_4(bst, bsh, 0x508, 0x1); /* CLKSEL_TIMER2_CLK: CLK_M_OSC */ in am33xx_platform_bootstrap()
78 bus_space_write_4(bst, bsh, 0x50c, 0x1); /* CLKSEL_TIMER3_CLK: CLK_M_OSC */ in am33xx_platform_bootstrap()
79 bus_space_write_4(bst, bsh, 0x80, 0x2); /* CM_PER_TIMER2_CLKCTRL: MODULEMODE: ENABLE */ in am33xx_platform_bootstrap()
80 bus_space_write_4(bst, bsh, 0x84, 0x2); /* CM_PER_TIMER3_CLKCTRL: MODULEMODE: ENABLE */ in am33xx_platform_bootstrap()
81 bus_space_unmap(bst, bsh, 0x1000); in am33xx_platform_bootstrap()
83 bus_space_map(bst, 0x48040000, 0x1000, 0, &bsh); /* TIMER2 for delay() */ in am33xx_platform_bootstrap()
[all …]
/netbsd-src/sys/arch/hp300/dev/
H A Dsti_sgc.c136 bus_space_tag_t bst; in sti_sgc_attach() local
146 bst = saa->saa_iot; in sti_sgc_attach()
159 if (bus_space_map(bst, base, PAGE_SIZE, 0, &romh)) { in sti_sgc_attach()
166 romend = sti_rom_size(bst, romh); in sti_sgc_attach()
168 bus_space_unmap(bst, romh, PAGE_SIZE); in sti_sgc_attach()
170 if (bus_space_map(bst, base, romend, 0, &romh)) { in sti_sgc_attach()
179 if (sti_attach_common(ssc, bst, bst, romh, in sti_sgc_attach()
276 bus_space_tag_t bst = rom->memt; in sti_evrx_putcmap() local
281 bus_space_write_4(bst, bsh, EVRX_MAGIC08, 0x00000001); in sti_evrx_putcmap()
282 bus_space_write_4(bst, bsh, EVRX_MAGIC00, 0x00000001); in sti_evrx_putcmap()
[all …]
H A Dintiovar.h69 #define WAIT(bst,bsh) \ argument
70 while (bus_space_read_1(bst,bsh,INTIO_DEV_3xx_STAT) \
72 #define DATAWAIT(bst,bsh) \ argument
73 while (!(bus_space_read_1(bst, bsh, INTIO_DEV_3xx_STAT) \
77 intio_device_readcmd(bus_space_tag_t bst, bus_space_handle_t bsh, int cmd, in intio_device_readcmd() argument
83 WAIT(bst, bsh); in intio_device_readcmd()
84 bus_space_write_1(bst, bsh, INTIO_DEV_3xx_CMD, cmd); in intio_device_readcmd()
87 DATAWAIT(bst, bsh); in intio_device_readcmd()
88 status = bus_space_read_1(bst, bsh, INTIO_DEV_3xx_STAT); in intio_device_readcmd()
89 *datap = bus_space_read_1(bst, bsh, INTIO_DEV_3xx_DATA); in intio_device_readcmd()
[all …]
/netbsd-src/sys/dev/ic/
H A Dmb86960.c118 bus_space_tag_t bst = sc->sc_bst; in mb86960_attach() local
153 bus_space_write_1(bst, bsh, FE_DLCR6, in mb86960_attach()
167 bus_space_write_1(bst, bsh, FE_DLCR2, 0); in mb86960_attach()
168 bus_space_write_1(bst, bsh, FE_DLCR3, 0); in mb86960_attach()
374 bus_space_tag_t bst = sc->sc_bst; in mb86960_stop() local
383 bus_space_write_1(bst, bsh, FE_DLCR2, 0x00); in mb86960_stop()
384 bus_space_write_1(bst, bsh, FE_DLCR3, 0x00); in mb86960_stop()
388 bus_space_write_1(bst, bsh, FE_DLCR6, in mb86960_stop()
393 bus_space_write_1(bst, bsh, FE_DLCR0, 0xFF); in mb86960_stop()
394 bus_space_write_1(bst, bsh, FE_DLCR1, 0xFF); in mb86960_stop()
[all …]
H A Dmb86950.c214 bus_space_tag_t bst = sc->sc_bst; in mb86950_stop() local
218 bus_space_write_1(bst, bsh, DLCR_CONFIG, DISABLE_DLC); in mb86950_stop()
222 bus_space_write_1(bst, bsh, DLCR_TX_INT_EN, 0); in mb86950_stop()
223 bus_space_write_1(bst, bsh, DLCR_RX_INT_EN, 0); in mb86950_stop()
226 bus_space_write_1(bst, bsh, DLCR_TX_STAT, 0xff); in mb86950_stop()
227 bus_space_write_1(bst, bsh, DLCR_RX_STAT, 0xff); in mb86950_stop()
230 bus_space_write_2(bst, bsh, BMPR_DMA, 0); in mb86950_stop()
233 bus_space_write_1(bst, bsh, DLCR_TX_MODE, 0); in mb86950_stop()
234 bus_space_write_1(bst, bsh, DLCR_RX_MODE, 0); in mb86950_stop()
242 bus_space_tag_t bst = sc->sc_bst; in mb86950_drain_fifo() local
[all …]
H A Dsmc91cxx.c205 smc91cxx_intr_mask_write(bus_space_tag_t bst, bus_space_handle_t bsh, in smc91cxx_intr_mask_write() argument
210 bus_space_write_2(bst, bsh, INTR_STAT_REG_B, mask << 8); in smc91cxx_intr_mask_write()
212 bus_space_write_1(bst, bsh, INTR_MASK_REG_B, mask); in smc91cxx_intr_mask_write()
214 KDASSERT(!(bus_space_read_1(bst, bsh, INTR_MASK_REG_B) & IM_ERCV_INT)); in smc91cxx_intr_mask_write()
218 smc91cxx_intr_ack_write(bus_space_tag_t bst, bus_space_handle_t bsh, in smc91cxx_intr_ack_write() argument
222 bus_space_write_2(bst, bsh, INTR_ACK_REG_B, ack | (mask << 8)); in smc91cxx_intr_ack_write()
224 bus_space_write_1(bst, bsh, INTR_ACK_REG_B, ack); in smc91cxx_intr_ack_write()
226 KDASSERT(!(bus_space_read_1(bst, bsh, INTR_MASK_REG_B) & IM_ERCV_INT)); in smc91cxx_intr_ack_write()
233 bus_space_tag_t bst = sc->sc_bst; in smc91cxx_attach() local
244 tmp = bus_space_read_2(bst, bsh, BANK_SELECT_REG_W); in smc91cxx_attach()
[all …]
/netbsd-src/sys/arch/mac68k/nubus/
H A Dif_ae_nubus.c129 bus_space_tag_t bst; in ae_nubus_attach() local
135 bst = na->na_tag; in ae_nubus_attach()
136 if (bus_space_map(bst, NUBUS_SLOT2PA(na->slot), NBMEMSIZE, in ae_nubus_attach()
142 sc->sc_regt = sc->sc_buft = bst; in ae_nubus_attach()
145 cardtype = nubus_get_card_name(bst, bsh, na->fmt); in ae_nubus_attach()
154 switch (ae_nb_card_vendor(bst, bsh, na)) { in ae_nubus_attach()
162 if (bus_space_subregion(bst, bsh, in ae_nubus_attach()
167 if ((sc->mem_size = ae_size_card_memory(bst, bsh, in ae_nubus_attach()
172 if (bus_space_subregion(bst, bsh, in ae_nubus_attach()
181 bus_space_read_1(bst, bsh, (AE_ROM_OFFSET + i * 2)); in ae_nubus_attach()
[all …]
H A Dnubus.c100 bus_space_tag_t bst; in nubus_attach() local
117 na_args.na_tag = bst = mba->mba_bst; in nubus_attach()
120 if (bus_space_map(bst, in nubus_attach()
132 if (nubus_probe_slot(bst, bsh, i, &fmtblock) <= 0) { in nubus_attach()
134 bus_space_unmap(bst, bsh, NBMEMSIZE); in nubus_attach()
156 if (nubus_find_rsrc(bst, bsh, in nubus_attach()
172 rsrcid = nubus_read_1(bst, bsh, in nubus_attach()
179 rsrcid = nubus_read_1(bst, bsh, lanes, entry); in nubus_attach()
196 if (nubus_find_rsrc(bst, bsh, in nubus_attach()
203 if (nubus_find_rsrc(bst, bsh, in nubus_attach()
[all …]
H A Dif_sn_nubus.c106 bus_space_tag_t bst; in sn_nubus_attach() local
111 bst = na->na_tag; in sn_nubus_attach()
112 if (bus_space_map(bst, NUBUS_SLOT2PA(na->slot), NBMEMSIZE, 0, &bsh)) { in sn_nubus_attach()
118 sc->sc_st = bst; in sn_nubus_attach()
121 cardtype = nubus_get_card_name(bst, bsh, na->fmt); in sn_nubus_attach()
126 switch (sn_nb_card_vendor(bst, bsh, na)) { in sn_nubus_attach()
132 if (bus_space_subregion(bst, bsh, in sn_nubus_attach()
138 if (bus_space_subregion(bst, bsh, in sn_nubus_attach()
144 sn_get_enaddr(bst, tmp_bsh, 0, myaddr); in sn_nubus_attach()
155 if (bus_space_subregion(bst, bsh, in sn_nubus_attach()
[all …]
/netbsd-src/sys/arch/arm/sunxi/
H A Dsunxi_mc_smp.c114 sunxi_mc_smp_start(bus_space_tag_t bst, bus_space_handle_t prcm, bus_space_handle_t cpucfg, in sunxi_mc_smp_start() argument
122 val = bus_space_read_4(bst, cpuxcfg, CPUXCFG_CL_RST(cluster)); in sunxi_mc_smp_start()
124 bus_space_write_4(bst, cpuxcfg, CPUXCFG_CL_RST(cluster), val); in sunxi_mc_smp_start()
128 val = bus_space_read_4(bst, cpucfg, CPUCFG_CL_RST(cluster)); in sunxi_mc_smp_start()
130 bus_space_write_4(bst, cpucfg, CPUCFG_CL_RST(cluster), val); in sunxi_mc_smp_start()
135 val = bus_space_read_4(bst, cpuxcfg, CPUXCFG_CL_CTRL0(cluster)); in sunxi_mc_smp_start()
137 bus_space_write_4(bst, cpuxcfg, CPUXCFG_CL_CTRL0(cluster), val); in sunxi_mc_smp_start()
142 bus_space_write_4(bst, prcm, PRCM_CL_PWR_CLAMP(cluster, cpu), 0xff >> i); in sunxi_mc_smp_start()
146 if (bus_space_read_4(bst, prcm, PRCM_CL_PWR_CLAMP(cluster, cpu)) == 0) in sunxi_mc_smp_start()
155 val = bus_space_read_4(bst, prcm, PRCM_CL_PWROFF(cluster)); in sunxi_mc_smp_start()
[all …]
/netbsd-src/sys/arch/arm/amlogic/
H A Dmeson_platform.c215 bus_space_tag_t bst = &arm_generic_bs_tag; in meson8b_get_boot_id() local
219 if (bus_space_map(bst, MESON8B_BOOTINFO_REG, 4, 0, &bsh) != 0) in meson8b_get_boot_id()
222 boot_id = (int)bus_space_read_4(bst, bsh, 0); in meson8b_get_boot_id()
224 bus_space_unmap(bst, bsh, 4); in meson8b_get_boot_id()
309 bus_space_tag_t bst = &meson_bs_tag; in meson8b_platform_reset() local
312 bus_space_map(bst, MESON8B_WATCHDOG_BASE, MESON8B_WATCHDOG_SIZE, 0, &bsh); in meson8b_platform_reset()
314 bus_space_write_4(bst, bsh, MESON8B_WATCHDOG_TC, in meson8b_platform_reset()
316 bus_space_write_4(bst, bsh, MESON8B_WATCHDOG_RESET, 0); in meson8b_platform_reset()
337 bus_space_tag_t bst = &arm_generic_bs_tag; in cpu_enable_meson8b() local
354 bus_space_write_4(bst, cpuconf_bsh, MESON8B_SRAM_CPUCONF_CPU_ADDR_REG(cpuno), in cpu_enable_meson8b()
[all …]
/netbsd-src/sys/arch/mips/alchemy/
H A Dau_wired_space.c630 au_wired_space_init(bus_space_tag_t bst, const char *name, in au_wired_space_init() argument
664 bst->bs_cookie = c; in au_wired_space_init()
665 bst->bs_map = au_wired_map; in au_wired_space_init()
666 bst->bs_unmap = au_wired_unmap; in au_wired_space_init()
667 bst->bs_subregion = au_wired_subregion; in au_wired_space_init()
668 bst->bs_translate = NULL; /* we don't use these */ in au_wired_space_init()
669 bst->bs_get_window = NULL; /* we don't use these */ in au_wired_space_init()
670 bst->bs_alloc = au_wired_alloc; in au_wired_space_init()
671 bst->bs_free = au_wired_free; in au_wired_space_init()
672 bst->bs_vaddr = au_wired_vaddr; in au_wired_space_init()
[all …]
H A Dau_himem_space.c690 au_himem_space_init(bus_space_tag_t bst, const char *name, in au_himem_space_init() argument
724 bst->bs_cookie = c; in au_himem_space_init()
725 bst->bs_map = au_himem_map; in au_himem_space_init()
726 bst->bs_unmap = au_himem_unmap; in au_himem_space_init()
727 bst->bs_subregion = au_himem_subregion; in au_himem_space_init()
728 bst->bs_translate = NULL; /* we don't use these */ in au_himem_space_init()
729 bst->bs_get_window = NULL; /* we don't use these */ in au_himem_space_init()
730 bst->bs_alloc = au_himem_alloc; in au_himem_space_init()
731 bst->bs_free = au_himem_free; in au_himem_space_init()
732 bst->bs_vaddr = au_himem_vaddr; in au_himem_space_init()
[all …]
/netbsd-src/sys/arch/arm/nvidia/
H A Dtegra210_car.c870 bus_space_tag_t bst = sc->sc_bst; in tegra210_car_utmip_init() local
876 tegra_reg_set_clear(bst, bsh, CAR_UTMIP_PLL_CFG3_REG, in tegra210_car_utmip_init()
878 tegra_reg_set_clear(bst, bsh, CAR_UTMIP_PLL_CFG3_REG, in tegra210_car_utmip_init()
880 tegra_reg_set_clear(bst, bsh, CAR_UTMIPLL_HW_PWRDN_CFG0_REG, in tegra210_car_utmip_init()
884 tegra_reg_set_clear(bst, bsh, CAR_UTMIP_PLL_CFG2_REG, in tegra210_car_utmip_init()
886 tegra_reg_set_clear(bst, bsh, CAR_UTMIP_PLL_CFG2_REG, in tegra210_car_utmip_init()
888 tegra_reg_set_clear(bst, bsh, CAR_UTMIP_PLL_CFG2_REG, in tegra210_car_utmip_init()
890 tegra_reg_set_clear(bst, bsh, CAR_UTMIP_PLL_CFG1_REG, in tegra210_car_utmip_init()
892 tegra_reg_set_clear(bst, bsh, CAR_UTMIP_PLL_CFG1_REG, in tegra210_car_utmip_init()
895 bus_space_write_4(bst, bsh, CAR_CLK_ENB_U_SET_REG, CAR_DEV_U_AFI); in tegra210_car_utmip_init()
[all …]
H A Dtegra_ahcisata.c248 bus_space_tag_t bst = sc->sc_bst; in tegra_ahcisata_init() local
252 tegra_reg_set_clear(bst, bsh, TEGRA_SATA_AUX_MISC_CNTL_1_REG, in tegra_ahcisata_init()
254 tegra_reg_set_clear(bst, bsh, TEGRA_SATA_AUX_RX_STAT_INT_REG, in tegra_ahcisata_init()
258 tegra_reg_set_clear(bst, bsh, TEGRA_SATA_AUX_MISC_CNTL_1_REG, in tegra_ahcisata_init()
262 tegra_reg_set_clear(bst, bsh, TEGRA_SATA_AUX_MISC_CNTL_1_REG, in tegra_ahcisata_init()
266 tegra_reg_set_clear(bst, bsh, TEGRA_SATA_CONFIGURATION_REG, in tegra_ahcisata_init()
270 bus_space_write_4(bst, bsh, TEGRA_T_SATA0_CHX_PHY_CTRL17_REG, 0x55010000); in tegra_ahcisata_init()
271 bus_space_write_4(bst, bsh, TEGRA_T_SATA0_CHX_PHY_CTRL18_REG, 0x55010000); in tegra_ahcisata_init()
272 bus_space_write_4(bst, bsh, TEGRA_T_SATA0_CHX_PHY_CTRL20_REG, 1); in tegra_ahcisata_init()
273 bus_space_write_4(bst, bsh, TEGRA_T_SATA0_CHX_PHY_CTRL21_REG, 1); in tegra_ahcisata_init()
[all …]
H A Dtegra_pmc.c121 bus_space_tag_t bst; in tegra_pmc_reset() local
125 tegra_pmc_get_bs(&bst, &bsh); in tegra_pmc_reset()
127 cntrl = bus_space_read_4(bst, bsh, PMC_CNTRL_0_REG); in tegra_pmc_reset()
129 bus_space_write_4(bst, bsh, PMC_CNTRL_0_REG, cntrl); in tegra_pmc_reset()
139 bus_space_tag_t bst; in tegra_pmc_power() local
145 tegra_pmc_get_bs(&bst, &bsh); in tegra_pmc_power()
147 status = bus_space_read_4(bst, bsh, PMC_PWRGATE_STATUS_0_REG); in tegra_pmc_power()
153 toggle = bus_space_read_4(bst, bsh, PMC_PWRGATE_TOGGLE_0_REG); in tegra_pmc_power()
163 bus_space_write_4(bst, bsh, PMC_PWRGATE_TOGGLE_0_REG, in tegra_pmc_power()
171 bus_space_tag_t bst; in tegra_pmc_remove_clamping() local
[all …]
H A Dtegra_usbphy.c201 bus_space_tag_t bst = sc->sc_bst; in tegra_usbphy_utmip_init() local
206 tegra_reg_set_clear(bst, bsh, TEGRA_EHCI_SUSP_CTRL_REG, in tegra_usbphy_utmip_init()
210 tegra_reg_set_clear(bst, bsh, TEGRA_EHCI_SUSP_CTRL_REG, in tegra_usbphy_utmip_init()
214 tegra_reg_set_clear(bst, bsh, TEGRA_EHCI_UTMIP_MISC_CFG1_REG, in tegra_usbphy_utmip_init()
219 tegra_reg_set_clear(bst, bsh, TEGRA_EHCI_PHY_VBUS_SENSORS_REG, in tegra_usbphy_utmip_init()
225 tegra_reg_set_clear(bst, bsh, TEGRA_EHCI_UTMIP_XCVR_CFG0_REG, in tegra_usbphy_utmip_init()
233 tegra_reg_set_clear(bst, bsh, TEGRA_EHCI_UTMIP_XCVR_CFG1_REG, in tegra_usbphy_utmip_init()
239 tegra_reg_set_clear(bst, bsh, TEGRA_EHCI_UTMIP_BIAS_CFG0_REG, in tegra_usbphy_utmip_init()
246 tegra_reg_set_clear(bst, bsh, TEGRA_EHCI_UTMIP_BIAS_CFG1_REG, in tegra_usbphy_utmip_init()
251 tegra_reg_set_clear(bst, bsh, TEGRA_EHCI_UTMIP_MISC_CFG0_REG, in tegra_usbphy_utmip_init()
[all …]
/netbsd-src/sys/arch/mac68k/dev/
H A Dif_ae.c39 ae_size_card_memory(bus_space_tag_t bst, bus_space_handle_t bsh, int ofs) in ae_size_card_memory() argument
54 bus_space_write_2(bst, bsh, ofs + i8, 0x8888); in ae_size_card_memory()
55 bus_space_write_2(bst, bsh, ofs + i4, 0x4444); in ae_size_card_memory()
56 bus_space_write_2(bst, bsh, ofs + i3, 0x3333); in ae_size_card_memory()
57 bus_space_write_2(bst, bsh, ofs + i2, 0x2222); in ae_size_card_memory()
58 bus_space_write_2(bst, bsh, ofs + i1, 0x1111); in ae_size_card_memory()
69 if (bus_space_read_2(bst, bsh, ofs + i1) == 0x1111 && in ae_size_card_memory()
70 bus_space_read_2(bst, bsh, ofs + i2) == 0x2222 && in ae_size_card_memory()
71 bus_space_read_2(bst, bsh, ofs + i3) == 0x3333 && in ae_size_card_memory()
72 bus_space_read_2(bst, bsh, ofs + i4) == 0x4444 && in ae_size_card_memory()
[all …]
/netbsd-src/sys/arch/vax/vsa/
H A Dtc_vsbus.c144 bus_space_tag_t bst = va->va_memt; in tc_vsbus_match() local
154 if (bus_space_map(bst, KA46_BWF0, KA46_BWF0_SZ, 0, &bsh)) in tc_vsbus_match()
156 found = ((bus_space_read_4(bst, bsh, 0) & KA46_BWF0_ADP) != 0); in tc_vsbus_match()
157 bus_space_unmap(bst, bsh, KA46_BWF0_SZ); in tc_vsbus_match()
166 if (bus_space_map(bst, KA49_CFG, KA49_CFG_SZ, 0, &bsh)) in tc_vsbus_match()
168 found = ((bus_space_read_2(bst, bsh, 0) & KA49_CFG_BA) != 0); in tc_vsbus_match()
169 bus_space_unmap(bst, bsh, KA49_CFG_SZ); in tc_vsbus_match()
199 bus_space_tag_t bst = va->va_memt; in tc_vsbus_attach() local
207 error = bus_space_map(bst, KA4x_TCA_CSR, KA4x_TCA_CSR_SZ, 0, &bsh_csr); in tc_vsbus_attach()
212 sc->sc_bst = bst; in tc_vsbus_attach()
[all …]
/netbsd-src/sys/arch/arm/broadcom/
H A Dbcm53xx_board.c147 bus_space_tag_t bst = bcm53xx_ioreg_bst; in bcm53xx_memprobe() local
153 const uint32_t v01 = bus_space_read_4(bst, bsh, DDR_BASE + DDR_CTL_01); in bcm53xx_memprobe()
154 const uint32_t v82 = bus_space_read_4(bst, bsh, DDR_BASE + DDR_CTL_82); in bcm53xx_memprobe()
155 const uint32_t v86 = bus_space_read_4(bst, bsh, DDR_BASE + DDR_CTL_86); in bcm53xx_memprobe()
156 const uint32_t v87 = bus_space_read_4(bst, bsh, DDR_BASE + DDR_CTL_87); in bcm53xx_memprobe()
387 bus_space_tag_t bst, bus_space_handle_t bsh) in bcm53xx_get_chip_ioreg_state() argument
389 bcs->bcs_lcpll_control1 = bus_space_read_4(bst, bsh, in bcm53xx_get_chip_ioreg_state()
391 bcs->bcs_lcpll_control2 = bus_space_read_4(bst, bsh, in bcm53xx_get_chip_ioreg_state()
394 bcs->bcs_genpll_control5 = bus_space_read_4(bst, bsh, in bcm53xx_get_chip_ioreg_state()
396 bcs->bcs_genpll_control6 = bus_space_read_4(bst, bsh, in bcm53xx_get_chip_ioreg_state()
[all …]

12345678910