Lines Matching refs:pwrc
302 struct meson_ee_pwrc *pwrc; member
321 regmap_read(pwrc_domain->pwrc->regmap_ao, in pwrc_ee_is_powered_off()
334 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
341 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, in meson_ee_pwrc_off()
349 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
370 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_on()
376 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, in meson_ee_pwrc_on()
387 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_on()
400 struct meson_ee_pwrc *pwrc, in meson_ee_pwrc_init_domain() argument
405 dom->pwrc = pwrc; in meson_ee_pwrc_init_domain()
473 struct meson_ee_pwrc *pwrc; in meson_ee_pwrc_probe() local
482 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in meson_ee_pwrc_probe()
483 if (!pwrc) in meson_ee_pwrc_probe()
486 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_ee_pwrc_probe()
487 sizeof(*pwrc->xlate.domains), in meson_ee_pwrc_probe()
489 if (!pwrc->xlate.domains) in meson_ee_pwrc_probe()
492 pwrc->domains = devm_kcalloc(&pdev->dev, match->count, in meson_ee_pwrc_probe()
493 sizeof(*pwrc->domains), GFP_KERNEL); in meson_ee_pwrc_probe()
494 if (!pwrc->domains) in meson_ee_pwrc_probe()
497 pwrc->xlate.num_domains = match->count; in meson_ee_pwrc_probe()
514 pwrc->regmap_ao = regmap_ao; in meson_ee_pwrc_probe()
515 pwrc->regmap_hhi = regmap_hhi; in meson_ee_pwrc_probe()
517 platform_set_drvdata(pdev, pwrc); in meson_ee_pwrc_probe()
520 struct meson_ee_pwrc_domain *dom = &pwrc->domains[i]; in meson_ee_pwrc_probe()
524 ret = meson_ee_pwrc_init_domain(pdev, pwrc, dom); in meson_ee_pwrc_probe()
528 pwrc->xlate.domains[i] = &dom->base; in meson_ee_pwrc_probe()
531 return of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate); in meson_ee_pwrc_probe()
536 struct meson_ee_pwrc *pwrc = platform_get_drvdata(pdev); in meson_ee_pwrc_shutdown() local
539 for (i = 0 ; i < pwrc->xlate.num_domains ; ++i) { in meson_ee_pwrc_shutdown()
540 struct meson_ee_pwrc_domain *dom = &pwrc->domains[i]; in meson_ee_pwrc_shutdown()