Lines Matching full:pd

40  * @pd: generic_pm_domain for use with the genpd framework
47 struct generic_pm_domain pd; member
52 #define genpd_to_ti_sci_pd(gpd) container_of(gpd, struct ti_sci_pm_domain, pd)
60 struct ti_sci_pm_domain *pd = genpd_to_ti_sci_pd(domain); in ti_sci_pd_power_off() local
61 const struct ti_sci_handle *ti_sci = pd->parent->ti_sci; in ti_sci_pd_power_off()
63 return ti_sci->ops.dev_ops.put_device(ti_sci, pd->idx); in ti_sci_pd_power_off()
72 struct ti_sci_pm_domain *pd = genpd_to_ti_sci_pd(domain); in ti_sci_pd_power_on() local
73 const struct ti_sci_handle *ti_sci = pd->parent->ti_sci; in ti_sci_pd_power_on()
75 if (pd->exclusive) in ti_sci_pd_power_on()
77 pd->idx); in ti_sci_pd_power_on()
79 return ti_sci->ops.dev_ops.get_device(ti_sci, pd->idx); in ti_sci_pd_power_on()
119 struct ti_sci_pm_domain *pd; in ti_sci_pm_idx_exists() local
121 list_for_each_entry(pd, &pd_provider->pd_list, node) { in ti_sci_pm_idx_exists()
122 if (pd->idx == idx) in ti_sci_pm_idx_exists()
133 struct ti_sci_pm_domain *pd; in ti_sci_pm_domain_probe() local
173 pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); in ti_sci_pm_domain_probe()
174 if (!pd) { in ti_sci_pm_domain_probe()
179 pd->pd.name = devm_kasprintf(dev, GFP_KERNEL, in ti_sci_pm_domain_probe()
180 "pd:%d", in ti_sci_pm_domain_probe()
182 if (!pd->pd.name) { in ti_sci_pm_domain_probe()
187 pd->pd.power_off = ti_sci_pd_power_off; in ti_sci_pm_domain_probe()
188 pd->pd.power_on = ti_sci_pd_power_on; in ti_sci_pm_domain_probe()
189 pd->idx = args.args[0]; in ti_sci_pm_domain_probe()
190 pd->parent = pd_provider; in ti_sci_pm_domain_probe()
192 pm_genpd_init(&pd->pd, NULL, true); in ti_sci_pm_domain_probe()
194 list_add(&pd->node, &pd_provider->pd_list); in ti_sci_pm_domain_probe()
210 list_for_each_entry(pd, &pd_provider->pd_list, node) in ti_sci_pm_domain_probe()
211 pd_provider->data.domains[pd->idx] = &pd->pd; in ti_sci_pm_domain_probe()