Lines Matching defs:rmobile_pd
50 struct rmobile_pm_domain *rmobile_pd = to_rmobile_pd(genpd);
51 unsigned int mask = BIT(rmobile_pd->bit_shift);
53 if (rmobile_pd->suspend) {
54 int ret = rmobile_pd->suspend();
60 if (__raw_readl(rmobile_pd->base + PSTR) & mask) {
62 __raw_writel(mask, rmobile_pd->base + SPDCR);
65 if (!(__raw_readl(rmobile_pd->base + SPDCR) & mask))
72 __raw_readl(rmobile_pd->base + PSTR));
77 static int __rmobile_pd_power_up(struct rmobile_pm_domain *rmobile_pd)
79 unsigned int mask = BIT(rmobile_pd->bit_shift);
83 if (__raw_readl(rmobile_pd->base + PSTR) & mask)
86 __raw_writel(mask, rmobile_pd->base + SWUCR);
89 if (!(__raw_readl(rmobile_pd->base + SWUCR) & mask))
100 rmobile_pd->genpd.name, mask,
101 __raw_readl(rmobile_pd->base + PSTR));
111 static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd)
113 struct generic_pm_domain *genpd = &rmobile_pd->genpd;
114 struct dev_power_governor *gov = rmobile_pd->gov;
123 __rmobile_pd_power_up(rmobile_pd);