Lines Matching refs:pd
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()
121 struct ti_sci_pm_domain *pd; in ti_sci_pm_domain_probe() local
159 pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); in ti_sci_pm_domain_probe()
160 if (!pd) in ti_sci_pm_domain_probe()
163 pd->pd.name = devm_kasprintf(dev, GFP_KERNEL, in ti_sci_pm_domain_probe()
166 if (!pd->pd.name) in ti_sci_pm_domain_probe()
169 pd->pd.power_off = ti_sci_pd_power_off; in ti_sci_pm_domain_probe()
170 pd->pd.power_on = ti_sci_pd_power_on; in ti_sci_pm_domain_probe()
171 pd->idx = args.args[0]; in ti_sci_pm_domain_probe()
172 pd->parent = pd_provider; in ti_sci_pm_domain_probe()
174 pm_genpd_init(&pd->pd, NULL, true); in ti_sci_pm_domain_probe()
176 list_add(&pd->node, &pd_provider->pd_list); in ti_sci_pm_domain_probe()
192 list_for_each_entry(pd, &pd_provider->pd_list, node) in ti_sci_pm_domain_probe()
193 pd_provider->data.domains[pd->idx] = &pd->pd; in ti_sci_pm_domain_probe()