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