Lines Matching refs:pd

136 	struct device_node *pd;  member
153 struct device_node *pd; in add_special_pd() local
155 pd = of_parse_phandle(np, "power-domains", 0); in add_special_pd()
156 if (!pd) in add_special_pd()
160 if (pd == special_pds[i].pd && type == special_pds[i].type) { in add_special_pd()
161 of_node_put(pd); in add_special_pd()
167 of_node_put(pd); in add_special_pd()
171 pr_debug("Special PM domain %pOFn type %d for %pOF\n", pd, type, np); in add_special_pd()
173 special_pds[num_special_pds].pd = pd; in add_special_pd()
201 of_node_put(special_pds[i].pd); in put_special_pds()
204 static enum pd_types __init pd_type(const struct device_node *pd) in pd_type() argument
209 if (pd == special_pds[i].pd) in pd_type()
216 struct rmobile_pm_domain *pd) in rmobile_setup_pm_domain() argument
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()
232 pd->gov = &pm_domain_always_on_gov; in rmobile_setup_pm_domain()
233 pd->suspend = rmobile_pd_suspend_console; 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()
256 if (pd->bit_shift == ~0) { in rmobile_setup_pm_domain()
259 pd->genpd.flags |= GENPD_FLAG_ALWAYS_ON; in rmobile_setup_pm_domain()
264 rmobile_init_pm_domain(pd); in rmobile_setup_pm_domain()
274 struct rmobile_pm_domain *pd; in rmobile_add_pm_domains() local
281 pd = kzalloc(sizeof(*pd), GFP_KERNEL); in rmobile_add_pm_domains()
282 if (!pd) { in rmobile_add_pm_domains()
287 pd->genpd.name = np->name; in rmobile_add_pm_domains()
288 pd->base = base; in rmobile_add_pm_domains()
289 pd->bit_shift = idx; in rmobile_add_pm_domains()
291 rmobile_setup_pm_domain(np, pd); 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()