Lines Matching refs:pd
147 struct device_node *pd; member
164 struct device_node *pd; in add_special_pd() local
166 pd = of_parse_phandle(np, "power-domains", 0); in add_special_pd()
167 if (!pd) in add_special_pd()
171 if (pd == special_pds[i].pd && type == special_pds[i].type) { in add_special_pd()
172 of_node_put(pd); in add_special_pd()
178 of_node_put(pd); in add_special_pd()
182 pr_debug("Special PM domain %pOFn type %d for %pOF\n", pd, type, np); in add_special_pd()
184 special_pds[num_special_pds].pd = pd; in add_special_pd()
212 of_node_put(special_pds[i].pd); in put_special_pds()
215 static enum pd_types __init pd_type(const struct device_node *pd) in pd_type() argument
220 if (pd == special_pds[i].pd) in pd_type()
227 struct rmobile_pm_domain *pd) in rmobile_setup_pm_domain() argument
229 const char *name = pd->genpd.name; in rmobile_setup_pm_domain()
238 pd->genpd.flags |= GENPD_FLAG_ALWAYS_ON; in rmobile_setup_pm_domain()
243 pd->gov = &pm_domain_always_on_gov; in rmobile_setup_pm_domain()
244 pd->suspend = rmobile_pd_suspend_console; in rmobile_setup_pm_domain()
254 pd->genpd.flags |= GENPD_FLAG_ALWAYS_ON; in rmobile_setup_pm_domain()
263 pd->genpd.flags |= GENPD_FLAG_ALWAYS_ON; in rmobile_setup_pm_domain()
267 if (pd->bit_shift == ~0) { in rmobile_setup_pm_domain()
270 pd->genpd.flags |= GENPD_FLAG_ALWAYS_ON; in rmobile_setup_pm_domain()
275 rmobile_init_pm_domain(pd); in rmobile_setup_pm_domain()
285 struct rmobile_pm_domain *pd; in rmobile_add_pm_domains() local
292 pd = kzalloc(sizeof(*pd), GFP_KERNEL); in rmobile_add_pm_domains()
293 if (!pd) { in rmobile_add_pm_domains()
298 pd->genpd.name = np->name; in rmobile_add_pm_domains()
299 pd->base = base; in rmobile_add_pm_domains()
300 pd->bit_shift = idx; in rmobile_add_pm_domains()
302 rmobile_setup_pm_domain(np, pd); in rmobile_add_pm_domains()
304 pm_genpd_add_subdomain(genpd_parent, &pd->genpd); in rmobile_add_pm_domains()
305 of_genpd_add_provider_simple(np, &pd->genpd); in rmobile_add_pm_domains()
307 rmobile_add_pm_domains(base, np, &pd->genpd); in rmobile_add_pm_domains()