Lines Matching refs:abp_misc_res
59 #define ABP_RD4(_sc, _r) bus_read_4((_sc)->abp_misc_res, (_r))
71 struct resource *abp_misc_res; member
130 sc->abp_misc_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in tegra_abpmisc_attach()
132 if (sc->abp_misc_res == NULL) { in tegra_abpmisc_attach()
148 if (sc->abp_misc_res != NULL) { in tegra_abpmisc_attach()
149 bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->abp_misc_res); in tegra_abpmisc_attach()
150 sc->abp_misc_res = NULL; in tegra_abpmisc_attach()
158 if (sc->abp_misc_res != NULL) in tegra_abpmisc_attach()
159 bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->abp_misc_res); in tegra_abpmisc_attach()
177 if (sc->abp_misc_res != NULL) in tegra_abpmisc_detach()
178 bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->abp_misc_res); in tegra_abpmisc_detach()