Lines Matching refs:pwrc

319 	struct meson_ee_pwrc *pwrc;  member
338 regmap_read(pwrc_domain->pwrc->regmap_ao, in pwrc_ee_is_powered_off()
351 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
358 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, in meson_ee_pwrc_off()
366 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
387 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_on()
393 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, in meson_ee_pwrc_on()
404 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_on()
417 struct meson_ee_pwrc *pwrc, in meson_ee_pwrc_init_domain() argument
422 dom->pwrc = pwrc; in meson_ee_pwrc_init_domain()
490 struct meson_ee_pwrc *pwrc; in meson_ee_pwrc_probe() local
499 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in meson_ee_pwrc_probe()
500 if (!pwrc) in meson_ee_pwrc_probe()
503 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_ee_pwrc_probe()
504 sizeof(*pwrc->xlate.domains), in meson_ee_pwrc_probe()
506 if (!pwrc->xlate.domains) in meson_ee_pwrc_probe()
509 pwrc->domains = devm_kcalloc(&pdev->dev, match->count, in meson_ee_pwrc_probe()
510 sizeof(*pwrc->domains), GFP_KERNEL); in meson_ee_pwrc_probe()
511 if (!pwrc->domains) in meson_ee_pwrc_probe()
514 pwrc->xlate.num_domains = match->count; in meson_ee_pwrc_probe()
531 pwrc->regmap_ao = regmap_ao; in meson_ee_pwrc_probe()
532 pwrc->regmap_hhi = regmap_hhi; in meson_ee_pwrc_probe()
534 platform_set_drvdata(pdev, pwrc); in meson_ee_pwrc_probe()
537 struct meson_ee_pwrc_domain *dom = &pwrc->domains[i]; in meson_ee_pwrc_probe()
541 ret = meson_ee_pwrc_init_domain(pdev, pwrc, dom); in meson_ee_pwrc_probe()
545 pwrc->xlate.domains[i] = &dom->base; in meson_ee_pwrc_probe()
548 return of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate); in meson_ee_pwrc_probe()
553 struct meson_ee_pwrc *pwrc = platform_get_drvdata(pdev); in meson_ee_pwrc_shutdown() local
556 for (i = 0 ; i < pwrc->xlate.num_domains ; ++i) { in meson_ee_pwrc_shutdown()
557 struct meson_ee_pwrc_domain *dom = &pwrc->domains[i]; in meson_ee_pwrc_shutdown()