Lines Matching refs:pd
231 struct device_node *pd; member
248 struct device_node *pd; in add_special_pd() local
250 pd = of_parse_phandle(np, "power-domains", 0); in add_special_pd()
251 if (!pd) in add_special_pd()
255 if (pd == special_pds[i].pd && type == special_pds[i].type) { in add_special_pd()
256 of_node_put(pd); in add_special_pd()
262 of_node_put(pd); in add_special_pd()
266 pr_debug("Special PM domain %s type %d for %s\n", pd->name, type, in add_special_pd()
269 special_pds[num_special_pds].pd = pd; in add_special_pd()
297 of_node_put(special_pds[i].pd); in put_special_pds()
300 static enum pd_types __init pd_type(const struct device_node *pd) in pd_type() argument
305 if (pd == special_pds[i].pd) in pd_type()
312 struct rmobile_pm_domain *pd) in rmobile_setup_pm_domain() argument
314 const char *name = pd->genpd.name; in rmobile_setup_pm_domain()
323 pd->gov = &pm_domain_always_on_gov; in rmobile_setup_pm_domain()
324 pd->suspend = rmobile_pd_suspend_busy; in rmobile_setup_pm_domain()
329 pd->gov = &pm_domain_always_on_gov; in rmobile_setup_pm_domain()
330 pd->suspend = rmobile_pd_suspend_console; in rmobile_setup_pm_domain()
340 pd->gov = &pm_domain_always_on_gov; in rmobile_setup_pm_domain()
341 pd->suspend = rmobile_pd_suspend_busy; in rmobile_setup_pm_domain()
350 pd->gov = &pm_domain_always_on_gov; in rmobile_setup_pm_domain()
351 pd->suspend = rmobile_pd_suspend_busy; in rmobile_setup_pm_domain()
358 rmobile_init_pm_domain(pd); in rmobile_setup_pm_domain()
368 struct rmobile_pm_domain *pd; in rmobile_add_pm_domains() local
375 pd = kzalloc(sizeof(*pd), GFP_KERNEL); in rmobile_add_pm_domains()
376 if (!pd) in rmobile_add_pm_domains()
379 pd->genpd.name = np->name; in rmobile_add_pm_domains()
380 pd->base = base; in rmobile_add_pm_domains()
381 pd->bit_shift = idx; in rmobile_add_pm_domains()
383 rmobile_setup_pm_domain(np, pd); in rmobile_add_pm_domains()
385 pm_genpd_add_subdomain(genpd_parent, &pd->genpd); in rmobile_add_pm_domains()
386 of_genpd_add_provider_simple(np, &pd->genpd); in rmobile_add_pm_domains()
388 rmobile_add_pm_domains(base, np, &pd->genpd); in rmobile_add_pm_domains()