Lines Matching full:domains
33 struct meson_secure_pwrc_domain *domains; member
48 struct meson_secure_pwrc_domain_desc *domains; member
261 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
262 sizeof(*pwrc->xlate.domains), in meson_secure_pwrc_probe()
264 if (!pwrc->xlate.domains) in meson_secure_pwrc_probe()
267 pwrc->domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
268 sizeof(*pwrc->domains), GFP_KERNEL); in meson_secure_pwrc_probe()
269 if (!pwrc->domains) in meson_secure_pwrc_probe()
276 struct meson_secure_pwrc_domain *dom = &pwrc->domains[i]; in meson_secure_pwrc_probe()
278 if (!match->domains[i].name) in meson_secure_pwrc_probe()
282 dom->index = match->domains[i].index; in meson_secure_pwrc_probe()
283 dom->parent = match->domains[i].parent; in meson_secure_pwrc_probe()
284 dom->base.name = match->domains[i].name; in meson_secure_pwrc_probe()
285 dom->base.flags = match->domains[i].flags; in meson_secure_pwrc_probe()
289 if (match->domains[i].is_off(dom) && (dom->base.flags & GENPD_FLAG_ALWAYS_ON)) in meson_secure_pwrc_probe()
292 pm_genpd_init(&dom->base, NULL, match->domains[i].is_off(dom)); in meson_secure_pwrc_probe()
294 pwrc->xlate.domains[i] = &dom->base; in meson_secure_pwrc_probe()
298 struct meson_secure_pwrc_domain *dom = pwrc->domains; in meson_secure_pwrc_probe()
300 if (!match->domains[i].name || match->domains[i].parent == PWRC_NO_PARENT) in meson_secure_pwrc_probe()
310 .domains = a1_pwrc_domains,
315 .domains = c3_pwrc_domains,
320 .domains = s4_pwrc_domains,
325 .domains = t7_pwrc_domains,