Lines Matching full:pd

75 	struct zynqmp_pm_domain *pd = to_zynqmp_pm_domain(domain);  in zynqmp_gpd_power_on()  local
78 ret = zynqmp_pm_set_requirement(pd->node_id, in zynqmp_gpd_power_on()
85 ZYNQMP_PM_CAPABILITY_ACCESS, pd->node_id, ret); in zynqmp_gpd_power_on()
90 ZYNQMP_PM_CAPABILITY_ACCESS, pd->node_id); in zynqmp_gpd_power_on()
106 struct zynqmp_pm_domain *pd = to_zynqmp_pm_domain(domain); in zynqmp_gpd_power_off() local
113 if (!pd->requested) { in zynqmp_gpd_power_off()
115 pd->node_id); in zynqmp_gpd_power_off()
130 ret = zynqmp_pm_set_requirement(pd->node_id, capabilities, 0, in zynqmp_gpd_power_off()
135 capabilities, pd->node_id, ret); in zynqmp_gpd_power_off()
140 capabilities, pd->node_id); in zynqmp_gpd_power_off()
155 struct zynqmp_pm_domain *pd = to_zynqmp_pm_domain(domain); in zynqmp_gpd_attach_dev() local
168 ret = zynqmp_pm_request_node(pd->node_id, 0, 0, in zynqmp_gpd_attach_dev()
172 domain->name, pd->node_id, ret); in zynqmp_gpd_attach_dev()
176 pd->requested = true; in zynqmp_gpd_attach_dev()
179 dev_name(dev), pd->node_id); in zynqmp_gpd_attach_dev()
192 struct zynqmp_pm_domain *pd = to_zynqmp_pm_domain(domain); in zynqmp_gpd_detach_dev() local
199 ret = zynqmp_pm_release_node(pd->node_id); in zynqmp_gpd_detach_dev()
202 pd->node_id, ret); in zynqmp_gpd_detach_dev()
206 pd->requested = false; in zynqmp_gpd_detach_dev()
209 dev_name(dev), pd->node_id); in zynqmp_gpd_detach_dev()
217 struct zynqmp_pm_domain *pd; in zynqmp_gpd_xlate() local
219 pd = to_zynqmp_pm_domain(genpd_data->domains[0]); in zynqmp_gpd_xlate()
226 if (pd[i].node_id == idx) in zynqmp_gpd_xlate()
235 if (pd[i].node_id == 0) { in zynqmp_gpd_xlate()
236 pd[i].node_id = idx; in zynqmp_gpd_xlate()
253 struct zynqmp_pm_domain *pd; in zynqmp_gpd_probe() local
256 pd = devm_kcalloc(dev, ZYNQMP_NUM_DOMAINS, sizeof(*pd), GFP_KERNEL); in zynqmp_gpd_probe()
257 if (!pd) in zynqmp_gpd_probe()
275 for (i = 0; i < ZYNQMP_NUM_DOMAINS; i++, pd++) { in zynqmp_gpd_probe()
276 pd->node_id = 0; in zynqmp_gpd_probe()
277 pd->gpd.name = kasprintf(GFP_KERNEL, "domain%d", i); in zynqmp_gpd_probe()
278 pd->gpd.power_off = zynqmp_gpd_power_off; in zynqmp_gpd_probe()
279 pd->gpd.power_on = zynqmp_gpd_power_on; in zynqmp_gpd_probe()
280 pd->gpd.attach_dev = zynqmp_gpd_attach_dev; in zynqmp_gpd_probe()
281 pd->gpd.detach_dev = zynqmp_gpd_detach_dev; in zynqmp_gpd_probe()
283 domains[i] = &pd->gpd; in zynqmp_gpd_probe()
286 pm_genpd_init(&pd->gpd, NULL, true); in zynqmp_gpd_probe()