Lines Matching refs:scmi_pd
59 struct scmi_pm_domain *scmi_pd; in scmi_pm_domain_probe() local
73 scmi_pd = devm_kcalloc(dev, num_domains, sizeof(*scmi_pd), GFP_KERNEL); in scmi_pm_domain_probe()
74 if (!scmi_pd) in scmi_pm_domain_probe()
85 for (i = 0; i < num_domains; i++, scmi_pd++) { in scmi_pm_domain_probe()
93 scmi_pd->domain = i; in scmi_pm_domain_probe()
94 scmi_pd->handle = handle; in scmi_pm_domain_probe()
95 scmi_pd->name = handle->power_ops->name_get(handle, i); in scmi_pm_domain_probe()
96 scmi_pd->genpd.name = scmi_pd->name; in scmi_pm_domain_probe()
97 scmi_pd->genpd.power_off = scmi_pd_power_off; in scmi_pm_domain_probe()
98 scmi_pd->genpd.power_on = scmi_pd_power_on; in scmi_pm_domain_probe()
100 pm_genpd_init(&scmi_pd->genpd, NULL, in scmi_pm_domain_probe()
103 domains[i] = &scmi_pd->genpd; in scmi_pm_domain_probe()