Lines Matching full:domains

35 	struct meson_secure_pwrc_domain *domains;  member
50 const struct meson_secure_pwrc_domain_desc *domains; member
297 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
298 sizeof(*pwrc->xlate.domains), in meson_secure_pwrc_probe()
300 if (!pwrc->xlate.domains) in meson_secure_pwrc_probe()
303 pwrc->domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
304 sizeof(*pwrc->domains), GFP_KERNEL); in meson_secure_pwrc_probe()
305 if (!pwrc->domains) in meson_secure_pwrc_probe()
312 struct meson_secure_pwrc_domain *dom = &pwrc->domains[i]; in meson_secure_pwrc_probe()
314 if (!match->domains[i].name) in meson_secure_pwrc_probe()
318 dom->index = match->domains[i].index; in meson_secure_pwrc_probe()
319 dom->parent = match->domains[i].parent; in meson_secure_pwrc_probe()
320 dom->base.name = match->domains[i].name; in meson_secure_pwrc_probe()
321 dom->base.flags = match->domains[i].flags; in meson_secure_pwrc_probe()
325 if (match->domains[i].is_off(dom) && (dom->base.flags & GENPD_FLAG_ALWAYS_ON)) in meson_secure_pwrc_probe()
328 pm_genpd_init(&dom->base, NULL, match->domains[i].is_off(dom)); in meson_secure_pwrc_probe()
330 pwrc->xlate.domains[i] = &dom->base; in meson_secure_pwrc_probe()
334 struct meson_secure_pwrc_domain *dom = pwrc->domains; in meson_secure_pwrc_probe()
336 if (!match->domains[i].name || match->domains[i].parent == PWRC_NO_PARENT) in meson_secure_pwrc_probe()
346 .domains = a1_pwrc_domains,
351 .domains = a4_pwrc_domains,
356 .domains = a5_pwrc_domains,
361 .domains = c3_pwrc_domains,
366 .domains = s4_pwrc_domains,
371 .domains = t7_pwrc_domains,
412 MODULE_DESCRIPTION("Amlogic Meson Secure Power Domains driver");