Home
last modified time | relevance | path

Searched refs:gic_res (Results 1 – 6 of 6) sorted by relevance

/f-stack/freebsd/mips/mediatek/
H A Dmtk_intr_gic.c88 struct resource * gic_res[2]; member
106 #define READ4(_sc, _reg) bus_read_4((_sc)->gic_res[0], (_reg))
107 #define WRITE4(_sc, _reg, _val) bus_write_4((_sc)->gic_res[0], (_reg), (_val))
176 if (bus_alloc_resources(dev, mtk_gic_spec, sc->gic_res)) { in mtk_gic_attach()
227 bus_release_resources(dev, mtk_gic_spec, sc->gic_res); in mtk_gic_attach()
/f-stack/freebsd/arm/arm/
H A Dgic.h52 struct resource * gic_res[3]; member
H A Dgic_fdt.c167 if (sc->base.gic_res[2] == NULL) { in gic_fdt_attach()
173 if (bus_setup_intr(dev, sc->base.gic_res[2], INTR_TYPE_CLK, in gic_fdt_attach()
H A Dgic.c313 if (bus_alloc_resources(dev, arm_gic_spec, sc->gic_res)) { in arm_gic_attach()
325 sc->gic_d_bst = rman_get_bustag(sc->gic_res[0]); in arm_gic_attach()
326 sc->gic_d_bsh = rman_get_bushandle(sc->gic_res[0]); in arm_gic_attach()
329 sc->gic_c_bst = rman_get_bustag(sc->gic_res[1]); in arm_gic_attach()
330 sc->gic_c_bsh = rman_get_bushandle(sc->gic_res[1]); in arm_gic_attach()
406 bus_release_resources(dev, arm_gic_spec, sc->gic_res); in arm_gic_detach()
/f-stack/freebsd/arm64/arm64/
H A Dgic_v3.c273 sc->gic_res = malloc( in gic_v3_attach()
274 sizeof(*sc->gic_res) * (sc->gic_redists.nregions + 1), in gic_v3_attach()
279 sc->gic_res[rid] = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in gic_v3_attach()
281 if (sc->gic_res[rid] == NULL) in gic_v3_attach()
288 sc->gic_dist = sc->gic_res[0]; in gic_v3_attach()
300 sc->gic_redists.regions[i] = sc->gic_res[rid]; in gic_v3_attach()
394 bus_release_resource(dev, SYS_RES_MEMORY, rid, sc->gic_res[rid]); in gic_v3_detach()
399 free(sc->gic_res, M_GIC_V3); in gic_v3_detach()
H A Dgic_v3_var.h64 struct resource ** gic_res; member