• Home
  • Raw
  • Download

Lines Matching refs:genpd

257 	struct generic_pm_domain genpd;  member
445 return container_of(domain, struct tegra_powergate, genpd); in to_powergate()
874 pg->genpd.name, err); in tegra_genpd_power_on()
893 pg->genpd.name, err); in tegra_genpd_power_off()
900 pg->genpd.name, err); in tegra_genpd_power_off()
1239 pg->genpd.name = np->name; in tegra_powergate_add()
1240 pg->genpd.power_off = tegra_genpd_power_off; in tegra_powergate_add()
1241 pg->genpd.power_on = tegra_genpd_power_on; in tegra_powergate_add()
1265 err = pm_genpd_init(&pg->genpd, NULL, off); in tegra_powergate_add()
1272 err = of_genpd_add_provider_simple(np, &pg->genpd); in tegra_powergate_add()
1279 dev_dbg(dev, "added PM domain %s\n", pg->genpd.name); in tegra_powergate_add()
1284 pm_genpd_remove(&pg->genpd); in tegra_powergate_add()
1310 tegra_pmc_core_pd_set_performance_state(struct generic_pm_domain *genpd, in tegra_pmc_core_pd_set_performance_state() argument
1316 opp = dev_pm_opp_find_level_ceil(&genpd->dev, &level); in tegra_pmc_core_pd_set_performance_state()
1318 dev_err(&genpd->dev, "failed to find OPP for level %u: %pe\n", in tegra_pmc_core_pd_set_performance_state()
1330 dev_err(&genpd->dev, "failed to set voltage to %duV: %d\n", in tegra_pmc_core_pd_set_performance_state()
1339 tegra_pmc_core_pd_opp_to_performance_state(struct generic_pm_domain *genpd, in tegra_pmc_core_pd_opp_to_performance_state() argument
1347 struct generic_pm_domain *genpd; in tegra_pmc_core_pd_add() local
1351 genpd = devm_kzalloc(pmc->dev, sizeof(*genpd), GFP_KERNEL); in tegra_pmc_core_pd_add()
1352 if (!genpd) in tegra_pmc_core_pd_add()
1355 genpd->name = np->name; in tegra_pmc_core_pd_add()
1356 genpd->set_performance_state = tegra_pmc_core_pd_set_performance_state; in tegra_pmc_core_pd_add()
1357 genpd->opp_to_performance_state = tegra_pmc_core_pd_opp_to_performance_state; in tegra_pmc_core_pd_add()
1364 err = pm_genpd_init(genpd, NULL, false); in tegra_pmc_core_pd_add()
1370 err = of_genpd_add_provider_simple(np, genpd); in tegra_pmc_core_pd_add()
1381 pm_genpd_remove(genpd); in tegra_pmc_core_pd_add()
1437 static void tegra_powergate_remove(struct generic_pm_domain *genpd) in tegra_powergate_remove() argument
1439 struct tegra_powergate *pg = to_powergate(genpd); in tegra_powergate_remove()
1455 struct generic_pm_domain *genpd; in tegra_powergate_remove_all() local
1465 genpd = of_genpd_remove_last(child); in tegra_powergate_remove_all()
1466 if (IS_ERR(genpd)) in tegra_powergate_remove_all()
1469 tegra_powergate_remove(genpd); in tegra_powergate_remove_all()