Lines Matching refs:genpd
271 struct generic_pm_domain genpd; member
279 return container_of(d, struct r8a779a0_sysc_pd, genpd); in to_r8a779a0_pd()
282 static int r8a779a0_sysc_pd_power_off(struct generic_pm_domain *genpd) in r8a779a0_sysc_pd_power_off() argument
284 struct r8a779a0_sysc_pd *pd = to_r8a779a0_pd(genpd); in r8a779a0_sysc_pd_power_off()
286 pr_debug("%s: %s\n", __func__, genpd->name); in r8a779a0_sysc_pd_power_off()
290 static int r8a779a0_sysc_pd_power_on(struct generic_pm_domain *genpd) in r8a779a0_sysc_pd_power_on() argument
292 struct r8a779a0_sysc_pd *pd = to_r8a779a0_pd(genpd); in r8a779a0_sysc_pd_power_on()
294 pr_debug("%s: %s\n", __func__, genpd->name); in r8a779a0_sysc_pd_power_on()
300 struct generic_pm_domain *genpd = &pd->genpd; in r8a779a0_sysc_pd_setup() local
301 const char *name = pd->genpd.name; in r8a779a0_sysc_pd_setup()
310 genpd->flags |= GENPD_FLAG_ALWAYS_ON; in r8a779a0_sysc_pd_setup()
318 genpd->flags |= GENPD_FLAG_ALWAYS_ON; in r8a779a0_sysc_pd_setup()
323 genpd->flags |= GENPD_FLAG_ALWAYS_ON; in r8a779a0_sysc_pd_setup()
328 genpd->flags |= GENPD_FLAG_PM_CLK | GENPD_FLAG_ACTIVE_WAKEUP; in r8a779a0_sysc_pd_setup()
329 genpd->attach_dev = cpg_mssr_attach_dev; in r8a779a0_sysc_pd_setup()
330 genpd->detach_dev = cpg_mssr_detach_dev; in r8a779a0_sysc_pd_setup()
333 genpd->power_off = r8a779a0_sysc_pd_power_off; in r8a779a0_sysc_pd_setup()
334 genpd->power_on = r8a779a0_sysc_pd_power_on; in r8a779a0_sysc_pd_setup()
338 pr_debug("%s: Not touching %s\n", __func__, genpd->name); in r8a779a0_sysc_pd_setup()
343 pr_debug("%s: %s is already powered\n", __func__, genpd->name); in r8a779a0_sysc_pd_setup()
350 error = pm_genpd_init(genpd, &simple_qos_governor, false); in r8a779a0_sysc_pd_setup()
422 pd->genpd.name = pd->name; in r8a779a0_sysc_pd_init()
430 domains->domains[area->pdr] = &pd->genpd; in r8a779a0_sysc_pd_init()
436 &pd->genpd); in r8a779a0_sysc_pd_init()