Lines Matching refs:pd
32 struct generic_pm_domain pd; member
38 struct exynos_pm_domain *pd; in exynos_pd_power() local
43 pd = container_of(domain, struct exynos_pm_domain, pd); in exynos_pd_power()
44 base = pd->base; in exynos_pd_power()
46 pwr = power_on ? pd->local_pwr_cfg : 0; in exynos_pd_power()
52 while ((readl_relaxed(base + 0x4) & pd->local_pwr_cfg) != pwr) { in exynos_pd_power()
110 struct exynos_pm_domain *pd; in exynos_pd_probe() local
114 pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); in exynos_pd_probe()
115 if (!pd) in exynos_pd_probe()
118 pd->pd.name = exynos_get_domain_name(np); in exynos_pd_probe()
119 if (!pd->pd.name) in exynos_pd_probe()
122 pd->base = of_iomap(np, 0); in exynos_pd_probe()
123 if (!pd->base) { in exynos_pd_probe()
124 kfree_const(pd->pd.name); in exynos_pd_probe()
128 pd->pd.power_off = exynos_pd_power_off; in exynos_pd_probe()
129 pd->pd.power_on = exynos_pd_power_on; in exynos_pd_probe()
130 pd->local_pwr_cfg = pm_domain_cfg->local_pwr_cfg; in exynos_pd_probe()
132 on = readl_relaxed(pd->base + 0x4) & pd->local_pwr_cfg; in exynos_pd_probe()
134 pm_genpd_init(&pd->pd, NULL, !on); in exynos_pd_probe()
135 ret = of_genpd_add_provider_simple(np, &pd->pd); in exynos_pd_probe()