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()
472 struct meson_ee_pwrc *pwrc; in meson_ee_pwrc_probe() local
481 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in meson_ee_pwrc_probe()
482 if (!pwrc) in meson_ee_pwrc_probe()
485 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_ee_pwrc_probe()
486 sizeof(*pwrc->xlate.domains), in meson_ee_pwrc_probe()
488 if (!pwrc->xlate.domains) in meson_ee_pwrc_probe()
491 pwrc->domains = devm_kcalloc(&pdev->dev, match->count, in meson_ee_pwrc_probe()
492 sizeof(*pwrc->domains), GFP_KERNEL); in meson_ee_pwrc_probe()
493 if (!pwrc->domains) in meson_ee_pwrc_probe()
496 pwrc->xlate.num_domains = match->count; in meson_ee_pwrc_probe()
511 pwrc->regmap_ao = regmap_ao; in meson_ee_pwrc_probe()
512 pwrc->regmap_hhi = regmap_hhi; in meson_ee_pwrc_probe()
514 platform_set_drvdata(pdev, pwrc); in meson_ee_pwrc_probe()
517 struct meson_ee_pwrc_domain *dom = &pwrc->domains[i]; in meson_ee_pwrc_probe()
521 ret = meson_ee_pwrc_init_domain(pdev, pwrc, dom); in meson_ee_pwrc_probe()
525 pwrc->xlate.domains[i] = &dom->base; in meson_ee_pwrc_probe()
528 return of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate); in meson_ee_pwrc_probe()
533 struct meson_ee_pwrc *pwrc = platform_get_drvdata(pdev); in meson_ee_pwrc_shutdown() local
536 for (i = 0 ; i < pwrc->xlate.num_domains ; ++i) { in meson_ee_pwrc_shutdown()
537 struct meson_ee_pwrc_domain *dom = &pwrc->domains[i]; in meson_ee_pwrc_shutdown()