Lines Matching refs:genpd
33 struct generic_pm_domain genpd; member
43 return container_of(d, struct rmobile_pm_domain, genpd); in to_rmobile_pd()
46 static int rmobile_pd_power_down(struct generic_pm_domain *genpd) in rmobile_pd_power_down() argument
48 struct rmobile_pm_domain *rmobile_pd = to_rmobile_pd(genpd); in rmobile_pd_power_down()
66 pr_debug("%s: Power off, 0x%08x -> PSTR = 0x%08x\n", genpd->name, mask, in rmobile_pd_power_down()
87 rmobile_pd->genpd.name, mask, in __rmobile_pd_power_up()
93 static int rmobile_pd_power_up(struct generic_pm_domain *genpd) in rmobile_pd_power_up() argument
95 return __rmobile_pd_power_up(to_rmobile_pd(genpd)); in rmobile_pd_power_up()
100 struct generic_pm_domain *genpd = &rmobile_pd->genpd; in rmobile_init_pm_domain() local
103 genpd->flags |= GENPD_FLAG_PM_CLK | GENPD_FLAG_ACTIVE_WAKEUP; in rmobile_init_pm_domain()
104 genpd->attach_dev = cpg_mstp_attach_dev; in rmobile_init_pm_domain()
105 genpd->detach_dev = cpg_mstp_detach_dev; in rmobile_init_pm_domain()
107 if (!(genpd->flags & GENPD_FLAG_ALWAYS_ON)) { in rmobile_init_pm_domain()
108 genpd->power_off = rmobile_pd_power_down; in rmobile_init_pm_domain()
109 genpd->power_on = rmobile_pd_power_up; in rmobile_init_pm_domain()
113 pm_genpd_init(genpd, gov ? : &simple_qos_governor, false); in rmobile_init_pm_domain()
218 const char *name = pd->genpd.name; in rmobile_setup_pm_domain()
227 pd->genpd.flags |= GENPD_FLAG_ALWAYS_ON; in rmobile_setup_pm_domain()
243 pd->genpd.flags |= GENPD_FLAG_ALWAYS_ON; in rmobile_setup_pm_domain()
252 pd->genpd.flags |= GENPD_FLAG_ALWAYS_ON; in rmobile_setup_pm_domain()
259 pd->genpd.flags |= GENPD_FLAG_ALWAYS_ON; in rmobile_setup_pm_domain()
287 pd->genpd.name = np->name; in rmobile_add_pm_domains()
293 pm_genpd_add_subdomain(genpd_parent, &pd->genpd); in rmobile_add_pm_domains()
294 of_genpd_add_provider_simple(np, &pd->genpd); in rmobile_add_pm_domains()
296 rmobile_add_pm_domains(base, np, &pd->genpd); in rmobile_add_pm_domains()