Lines Matching refs:domains
30 struct meson_secure_pwrc_domain *domains; member
44 struct meson_secure_pwrc_domain_desc *domains; member
182 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
183 sizeof(*pwrc->xlate.domains), in meson_secure_pwrc_probe()
185 if (!pwrc->xlate.domains) in meson_secure_pwrc_probe()
188 pwrc->domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
189 sizeof(*pwrc->domains), GFP_KERNEL); in meson_secure_pwrc_probe()
190 if (!pwrc->domains) in meson_secure_pwrc_probe()
197 struct meson_secure_pwrc_domain *dom = &pwrc->domains[i]; in meson_secure_pwrc_probe()
199 if (!match->domains[i].name) in meson_secure_pwrc_probe()
203 dom->index = match->domains[i].index; in meson_secure_pwrc_probe()
204 dom->base.name = match->domains[i].name; in meson_secure_pwrc_probe()
205 dom->base.flags = match->domains[i].flags; in meson_secure_pwrc_probe()
209 pm_genpd_init(&dom->base, NULL, match->domains[i].is_off(dom)); in meson_secure_pwrc_probe()
211 pwrc->xlate.domains[i] = &dom->base; in meson_secure_pwrc_probe()
218 .domains = a1_pwrc_domains,
223 .domains = c3_pwrc_domains,
228 .domains = s4_pwrc_domains,