Lines Matching full:pd
52 struct th1520_power_domain *pd = to_th1520_power_domain(domain); in th1520_pd_power_on() local
54 return th1520_aon_power_update(pd->aon_chan, pd->rsrc, true); in th1520_pd_power_on()
59 struct th1520_power_domain *pd = to_th1520_power_domain(domain); in th1520_pd_power_off() local
61 return th1520_aon_power_update(pd->aon_chan, pd->rsrc, false); in th1520_pd_power_off()
72 struct th1520_power_domain *pd; in th1520_pd_xlate() local
77 pd = to_th1520_power_domain(pd_data->domains[i]); in th1520_pd_xlate()
78 if (pd->rsrc == spec->args[0]) { in th1520_pd_xlate()
79 domain = &pd->genpd; in th1520_pd_xlate()
90 struct th1520_power_domain *pd; in th1520_add_pm_domain() local
93 pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); in th1520_add_pm_domain()
94 if (!pd) in th1520_add_pm_domain()
97 pd->rsrc = pi->rsrc; in th1520_add_pm_domain()
98 pd->genpd.power_on = th1520_pd_power_on; in th1520_add_pm_domain()
99 pd->genpd.power_off = th1520_pd_power_off; in th1520_add_pm_domain()
100 pd->genpd.name = pi->name; in th1520_add_pm_domain()
102 ret = pm_genpd_init(&pd->genpd, NULL, true); in th1520_add_pm_domain()
106 return pd; in th1520_add_pm_domain()
116 struct th1520_power_domain *pd; in th1520_pd_init_all_off() local
121 pd = to_th1520_power_domain(domains[i]); in th1520_pd_init_all_off()
123 ret = th1520_aon_power_update(pd->aon_chan, pd->rsrc, false); in th1520_pd_init_all_off()
127 pd->genpd.name); in th1520_pd_init_all_off()
158 struct th1520_power_domain *pd; in th1520_pd_probe() local
163 pd = th1520_add_pm_domain(dev, &th1520_pd_ranges[i]); in th1520_pd_probe()
164 if (IS_ERR(pd)) { in th1520_pd_probe()
165 ret = PTR_ERR(pd); in th1520_pd_probe()
169 pd->aon_chan = aon_chan; in th1520_pd_probe()
170 domains[i] = &pd->genpd; in th1520_pd_probe()
171 dev_dbg(dev, "added power domain %s\n", pd->genpd.name); in th1520_pd_probe()
208 .name = "th1520-pd",