Lines Matching full:domains
29 struct meson_secure_pwrc_domain *domains; member
43 struct meson_secure_pwrc_domain_desc *domains; member
165 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
166 sizeof(*pwrc->xlate.domains), in meson_secure_pwrc_probe()
168 if (!pwrc->xlate.domains) in meson_secure_pwrc_probe()
171 pwrc->domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
172 sizeof(*pwrc->domains), GFP_KERNEL); in meson_secure_pwrc_probe()
173 if (!pwrc->domains) in meson_secure_pwrc_probe()
180 struct meson_secure_pwrc_domain *dom = &pwrc->domains[i]; in meson_secure_pwrc_probe()
182 if (!match->domains[i].index) in meson_secure_pwrc_probe()
186 dom->index = match->domains[i].index; in meson_secure_pwrc_probe()
187 dom->base.name = match->domains[i].name; in meson_secure_pwrc_probe()
188 dom->base.flags = match->domains[i].flags; in meson_secure_pwrc_probe()
192 pm_genpd_init(&dom->base, NULL, match->domains[i].is_off(dom)); in meson_secure_pwrc_probe()
194 pwrc->xlate.domains[i] = &dom->base; in meson_secure_pwrc_probe()
201 .domains = a1_pwrc_domains,
206 .domains = s4_pwrc_domains,