| /f-stack/freebsd/arm/ti/omap4/ |
| H A D | omap4_prcm_clks.c | 176 struct resource *sc_res; member 523 clk_mem_res = sc->sc_res; in omap4_clk_generic_activate() 589 clk_mem_res = sc->sc_res; in omap4_clk_generic_deactivate() 658 clk_mem_res = sc->sc_res; in omap4_clk_generic_accessible() 734 clk_mem_res = sc->sc_res; in omap4_clk_gptimer_set_source() 778 clk_mem_res = sc->sc_res; in omap4_clk_gptimer_get_source_freq() 827 clk_mem_res = sc->sc_res; in omap4_clk_hsmmc_set_source() 887 clk_mem_res = sc->sc_res; in omap4_clk_hsmmc_get_source_freq() 1090 clk_mem_res = sc->sc_res; in omap4_clk_hsusbhost_activate() 1346 clk_mem_res = sc->sc_res; in omap4_clk_hsusbhost_set_source() [all …]
|
| /f-stack/freebsd/arm/freescale/imx/ |
| H A D | imx_wdog.c | 61 struct resource *sc_res[2]; member 94 return (bus_read_2(sc->sc_res[MEMRES], offs)); in RD2() 101 bus_write_2(sc->sc_res[MEMRES], offs, val); in WR2() 168 imx_wdog_cpu_reset(BUS_SPACE_PHYSADDR(sc->sc_res[MEMRES], WDOG_CR_REG)); in imx_wdog_intr() 196 if (bus_alloc_resources(dev, imx_wdog_spec, sc->sc_res)) { in imx_wdog_attach() 211 bus_setup_intr(sc->sc_dev, sc->sc_res[IRQRES], in imx_wdog_attach()
|
| H A D | imx_gpio.c | 121 struct resource *sc_res[3]; /* 1 x mem, 2 x IRQ */ member 826 if (bus_alloc_resources(dev, imx_gpio_spec, sc->sc_res)) { in imx51_gpio_attach() 828 bus_release_resources(dev, imx_gpio_spec, sc->sc_res); in imx51_gpio_attach() 833 sc->sc_iot = rman_get_bustag(sc->sc_res[0]); in imx51_gpio_attach() 834 sc->sc_ioh = rman_get_bushandle(sc->sc_res[0]); in imx51_gpio_attach() 841 if ((bus_setup_intr(dev, sc->sc_res[1 + irq], INTR_TYPE_CLK, in imx51_gpio_attach() 898 bus_teardown_intr(dev, sc->sc_res[irq + FIRST_IRQRES], in imx51_gpio_detach() 901 bus_release_resources(dev, imx_gpio_spec, sc->sc_res); in imx51_gpio_detach()
|
| /f-stack/freebsd/arm/mv/ |
| H A D | mv_ts.c | 54 struct resource *sc_res[sizeof(mvts_res)]; member 108 ret = bus_read_4(sc->sc_res[0], 0); in ts_sysctl_handler() 115 ret = bus_read_4(sc->sc_res[0], 0); in ts_sysctl_handler() 146 error = bus_alloc_resources(dev, mvts_res, sc->sc_res); in ts_attach()
|
| H A D | mv_pci.c | 309 struct resource *sc_res; member 488 sc->sc_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &sc->sc_rid, in mv_pcib_attach() 490 if (sc->sc_res == NULL) { in mv_pcib_attach() 494 sc->sc_bst = rman_get_bustag(sc->sc_res); in mv_pcib_attach() 495 sc->sc_bsh = rman_get_bushandle(sc->sc_res); in mv_pcib_attach()
|
| /f-stack/freebsd/arm64/rockchip/ |
| H A D | rk_gpio.c | 80 struct resource *sc_res[2]; member 140 if (bus_alloc_resources(dev, rk_gpio_spec, sc->sc_res)) { in rk_gpio_attach() 142 bus_release_resources(dev, rk_gpio_spec, sc->sc_res); in rk_gpio_attach() 147 sc->sc_bst = rman_get_bustag(sc->sc_res[0]); in rk_gpio_attach() 148 sc->sc_bsh = rman_get_bushandle(sc->sc_res[0]); in rk_gpio_attach() 181 bus_release_resources(dev, rk_gpio_spec, sc->sc_res); in rk_gpio_detach()
|
| /f-stack/freebsd/arm/allwinner/ |
| H A D | a10_dmac.c | 75 struct resource * sc_res[2]; member 89 #define DMA_READ(sc, reg) bus_read_4((sc)->sc_res[0], (reg)) 90 #define DMA_WRITE(sc, reg, val) bus_write_4((sc)->sc_res[0], (reg), (val)) 121 if (bus_alloc_resources(dev, a10dmac_spec, sc->sc_res)) { in a10dmac_attach() 164 error = bus_setup_intr(dev, sc->sc_res[1], INTR_MPSAFE | INTR_TYPE_MISC, in a10dmac_attach() 168 bus_release_resources(dev, a10dmac_spec, sc->sc_res); in a10dmac_attach()
|
| H A D | aw_gpio.c | 276 struct resource * sc_res[AW_GPIO_RESSZ]; member 333 bus_write_4((_sc)->sc_res[AW_GPIO_MEMRES], _off, _val) 335 bus_read_4((_sc)->sc_res[AW_GPIO_MEMRES], _off) 1016 if (bus_alloc_resources(dev, aw_gpio_res_spec, sc->sc_res) != 0) { in aw_gpio_attach() 1021 if (bus_setup_intr(dev, sc->sc_res[AW_GPIO_IRQRES], in aw_gpio_attach()
|
| /f-stack/freebsd/arm/ti/ |
| H A D | ti_pinmux.c | 424 if (bus_alloc_resources(dev, ti_pinmux_res_spec, sc->sc_res)) { in ti_pinmux_attach() 429 sc->sc_bst = rman_get_bustag(sc->sc_res[0]); in ti_pinmux_attach() 430 sc->sc_bsh = rman_get_bushandle(sc->sc_res[0]); in ti_pinmux_attach()
|
| H A D | ti_scm.h | 49 struct resource * sc_res[4]; member
|
| H A D | ti_pinmux.h | 67 struct resource * sc_res[4]; member
|
| /f-stack/freebsd/arm/broadcom/bcm2835/ |
| H A D | bcm2835_gpio.c | 111 struct resource * sc_res[BCM_GPIO_IRQS + 1]; member 722 if (sc->sc_res[1] == NULL || sc->sc_res[2] == NULL) in bcm_gpio_intr_attach() 729 if (bus_setup_intr(dev, sc->sc_res[1], INTR_TYPE_MISC | INTR_MPSAFE, in bcm_gpio_intr_attach() 732 if (bus_setup_intr(dev, sc->sc_res[2], INTR_TYPE_MISC | INTR_MPSAFE, in bcm_gpio_intr_attach() 746 bus_teardown_intr(dev, sc->sc_res[1], sc->sc_intrhand[0]); in bcm_gpio_intr_detach() 748 bus_teardown_intr(dev, sc->sc_res[2], sc->sc_intrhand[1]); in bcm_gpio_intr_detach() 767 if (bus_alloc_resources(dev, bcm_gpio_res_spec, sc->sc_res) != 0) { in bcm_gpio_attach() 771 sc->sc_bst = rman_get_bustag(sc->sc_res[0]); in bcm_gpio_attach() 772 sc->sc_bsh = rman_get_bushandle(sc->sc_res[0]); in bcm_gpio_attach() 812 bus_release_resources(dev, bcm_gpio_res_spec, sc->sc_res); in bcm_gpio_attach()
|
| /f-stack/freebsd/mips/ingenic/ |
| H A D | jz4780_mmc.c | 89 struct resource * sc_res[JZ_MSC_RESSZ]; member 169 if (bus_alloc_resources(dev, jz4780_mmc_res_spec, sc->sc_res) != 0) { in jz4780_mmc_attach() 173 sc->sc_bst = rman_get_bustag(sc->sc_res[JZ_MSC_MEMRES]); in jz4780_mmc_attach() 174 sc->sc_bsh = rman_get_bushandle(sc->sc_res[JZ_MSC_MEMRES]); in jz4780_mmc_attach() 175 if (bus_setup_intr(dev, sc->sc_res[JZ_MSC_IRQRES], in jz4780_mmc_attach() 178 bus_release_resources(dev, jz4780_mmc_res_spec, sc->sc_res); in jz4780_mmc_attach() 248 bus_teardown_intr(dev, sc->sc_res[JZ_MSC_IRQRES], sc->sc_intrhand); in jz4780_mmc_attach() 249 bus_release_resources(dev, jz4780_mmc_res_spec, sc->sc_res); in jz4780_mmc_attach()
|