• Home
  • Raw
  • Download

Lines Matching refs:pd

181 	struct rcar_sysc_pd *pd = to_rcar_pd(genpd);  in rcar_sysc_pd_power_off()  local
185 if (pd->flags & PD_NO_CR) { in rcar_sysc_pd_power_off()
190 if (pd->flags & PD_BUSY) { in rcar_sysc_pd_power_off()
195 return rcar_sysc_power_down(&pd->ch); in rcar_sysc_pd_power_off()
200 struct rcar_sysc_pd *pd = to_rcar_pd(genpd); in rcar_sysc_pd_power_on() local
204 if (pd->flags & PD_NO_CR) { in rcar_sysc_pd_power_on()
209 return rcar_sysc_power_up(&pd->ch); in rcar_sysc_pd_power_on()
214 static void __init rcar_sysc_pd_setup(struct rcar_sysc_pd *pd) in rcar_sysc_pd_setup() argument
216 struct generic_pm_domain *genpd = &pd->genpd; in rcar_sysc_pd_setup()
217 const char *name = pd->genpd.name; in rcar_sysc_pd_setup()
220 if (pd->flags & PD_CPU) { in rcar_sysc_pd_setup()
226 pd->flags |= PD_BUSY; in rcar_sysc_pd_setup()
228 } else if (pd->flags & PD_SCU) { in rcar_sysc_pd_setup()
235 pd->flags |= PD_BUSY; in rcar_sysc_pd_setup()
237 } else if (pd->flags & PD_NO_CR) { in rcar_sysc_pd_setup()
241 pd->flags |= PD_BUSY; in rcar_sysc_pd_setup()
245 if (!(pd->flags & (PD_CPU | PD_SCU))) { in rcar_sysc_pd_setup()
260 if (pd->flags & (PD_CPU | PD_NO_CR)) { in rcar_sysc_pd_setup()
266 if (!rcar_sysc_power_is_off(&pd->ch)) { in rcar_sysc_pd_setup()
271 rcar_sysc_power_up(&pd->ch); in rcar_sysc_pd_setup()
372 struct rcar_sysc_pd *pd; in rcar_sysc_pd_init() local
374 pd = kzalloc(sizeof(*pd) + strlen(area->name) + 1, GFP_KERNEL); in rcar_sysc_pd_init()
375 if (!pd) { in rcar_sysc_pd_init()
380 strcpy(pd->name, area->name); in rcar_sysc_pd_init()
381 pd->genpd.name = pd->name; in rcar_sysc_pd_init()
382 pd->ch.chan_offs = area->chan_offs; in rcar_sysc_pd_init()
383 pd->ch.chan_bit = area->chan_bit; in rcar_sysc_pd_init()
384 pd->ch.isr_bit = area->isr_bit; in rcar_sysc_pd_init()
385 pd->flags = area->flags; in rcar_sysc_pd_init()
387 rcar_sysc_pd_setup(pd); in rcar_sysc_pd_init()
390 &pd->genpd); in rcar_sysc_pd_init()
392 domains->domains[area->isr_bit] = &pd->genpd; in rcar_sysc_pd_init()