Lines Matching refs:pd

171 	struct device_node *pd;  member
188 struct device_node *pd; in add_special_pd() local
190 pd = of_parse_phandle(np, "power-domains", 0); in add_special_pd()
191 if (!pd) in add_special_pd()
195 if (pd == special_pds[i].pd && type == special_pds[i].type) { in add_special_pd()
196 of_node_put(pd); in add_special_pd()
202 of_node_put(pd); in add_special_pd()
206 pr_debug("Special PM domain %s type %d for %s\n", pd->name, type, in add_special_pd()
209 special_pds[num_special_pds].pd = pd; in add_special_pd()
237 of_node_put(special_pds[i].pd); in put_special_pds()
240 static enum pd_types __init pd_type(const struct device_node *pd) in pd_type() argument
245 if (pd == special_pds[i].pd) in pd_type()
252 struct rmobile_pm_domain *pd) in rmobile_setup_pm_domain() argument
254 const char *name = pd->genpd.name; in rmobile_setup_pm_domain()
263 pd->gov = &pm_domain_always_on_gov; in rmobile_setup_pm_domain()
264 pd->suspend = rmobile_pd_suspend_busy; in rmobile_setup_pm_domain()
269 pd->gov = &pm_domain_always_on_gov; in rmobile_setup_pm_domain()
270 pd->suspend = rmobile_pd_suspend_console; in rmobile_setup_pm_domain()
280 pd->gov = &pm_domain_always_on_gov; in rmobile_setup_pm_domain()
281 pd->suspend = rmobile_pd_suspend_busy; in rmobile_setup_pm_domain()
290 pd->gov = &pm_domain_always_on_gov; in rmobile_setup_pm_domain()
291 pd->suspend = rmobile_pd_suspend_busy; in rmobile_setup_pm_domain()
298 rmobile_init_pm_domain(pd); in rmobile_setup_pm_domain()
308 struct rmobile_pm_domain *pd; in rmobile_add_pm_domains() local
315 pd = kzalloc(sizeof(*pd), GFP_KERNEL); in rmobile_add_pm_domains()
316 if (!pd) { in rmobile_add_pm_domains()
321 pd->genpd.name = np->name; in rmobile_add_pm_domains()
322 pd->base = base; in rmobile_add_pm_domains()
323 pd->bit_shift = idx; in rmobile_add_pm_domains()
325 rmobile_setup_pm_domain(np, pd); in rmobile_add_pm_domains()
327 pm_genpd_add_subdomain(genpd_parent, &pd->genpd); in rmobile_add_pm_domains()
328 of_genpd_add_provider_simple(np, &pd->genpd); in rmobile_add_pm_domains()
330 rmobile_add_pm_domains(base, np, &pd->genpd); in rmobile_add_pm_domains()