Lines Matching refs:pd
136 struct device_node *pd;
153 struct device_node *pd;
155 pd = of_parse_phandle(np, "power-domains", 0);
156 if (!pd)
160 if (pd == special_pds[i].pd && type == special_pds[i].type) {
161 of_node_put(pd);
167 of_node_put(pd);
171 pr_debug("Special PM domain %pOFn type %d for %pOF\n", pd, type, np);
173 special_pds[num_special_pds].pd = pd;
201 of_node_put(special_pds[i].pd);
204 static enum pd_types __init pd_type(const struct device_node *pd)
209 if (pd == special_pds[i].pd)
216 struct rmobile_pm_domain *pd)
218 const char *name = pd->genpd.name;
227 pd->genpd.flags |= GENPD_FLAG_ALWAYS_ON;
232 pd->gov = &pm_domain_always_on_gov;
233 pd->suspend = rmobile_pd_suspend_console;
243 pd->genpd.flags |= GENPD_FLAG_ALWAYS_ON;
252 pd->genpd.flags |= GENPD_FLAG_ALWAYS_ON;
256 if (pd->bit_shift == ~0) {
259 pd->genpd.flags |= GENPD_FLAG_ALWAYS_ON;
264 rmobile_init_pm_domain(pd);
274 struct rmobile_pm_domain *pd;
281 pd = kzalloc(sizeof(*pd), GFP_KERNEL);
282 if (!pd) {
287 pd->genpd.name = np->name;
288 pd->base = base;
289 pd->bit_shift = idx;
291 rmobile_setup_pm_domain(np, pd);
293 pm_genpd_add_subdomain(genpd_parent, &pd->genpd);
294 of_genpd_add_provider_simple(np, &pd->genpd);
296 rmobile_add_pm_domains(base, np, &pd->genpd);