Searched refs:genpd (Results 1 – 4 of 4) sorted by relevance
/drivers/base/power/ |
D | domain.c | 25 #define GENPD_DEV_CALLBACK(genpd, type, callback, dev) \ argument 30 __routine = genpd->dev_ops.callback; \ 48 struct generic_pm_domain *genpd = NULL, *gpd; in pm_genpd_lookup_dev() local 56 genpd = gpd; in pm_genpd_lookup_dev() 62 return genpd; in pm_genpd_lookup_dev() 77 static int genpd_stop_dev(struct generic_pm_domain *genpd, struct device *dev) in genpd_stop_dev() argument 79 return GENPD_DEV_CALLBACK(genpd, int, stop, dev); in genpd_stop_dev() 82 static int genpd_start_dev(struct generic_pm_domain *genpd, struct device *dev) in genpd_start_dev() argument 84 return GENPD_DEV_CALLBACK(genpd, int, start, dev); in genpd_start_dev() 87 static bool genpd_sd_counter_dec(struct generic_pm_domain *genpd) in genpd_sd_counter_dec() argument [all …]
|
D | domain_governor.c | 103 struct generic_pm_domain *genpd = pd_to_genpd(pd); in default_power_down_ok() local 109 if (genpd->max_off_time_changed) { in default_power_down_ok() 118 list_for_each_entry(link, &genpd->slave_links, slave_node) in default_power_down_ok() 121 genpd->max_off_time_changed = false; in default_power_down_ok() 122 genpd->cached_power_down_ok = false; in default_power_down_ok() 123 genpd->max_off_time_ns = -1; in default_power_down_ok() 125 return genpd->cached_power_down_ok; in default_power_down_ok() 128 off_on_time_ns = genpd->power_off_latency_ns + in default_power_down_ok() 129 genpd->power_on_latency_ns; in default_power_down_ok() 137 list_for_each_entry(link, &genpd->master_links, master_node) { in default_power_down_ok() [all …]
|
/drivers/soc/mediatek/ |
D | mtk-scpsys.c | 173 struct generic_pm_domain genpd; member 212 static int scpsys_power_on(struct generic_pm_domain *genpd) in scpsys_power_on() argument 214 struct scp_domain *scpd = container_of(genpd, struct scp_domain, genpd); in scpsys_power_on() 302 dev_err(scp->dev, "Failed to power on domain %s\n", genpd->name); in scpsys_power_on() 307 static int scpsys_power_off(struct generic_pm_domain *genpd) in scpsys_power_off() argument 309 struct scp_domain *scpd = container_of(genpd, struct scp_domain, genpd); in scpsys_power_off() 385 dev_err(scp->dev, "Failed to power off domain %s\n", genpd->name); in scpsys_power_off() 392 struct generic_pm_domain *genpd; in scpsys_active_wakeup() local 395 genpd = pd_to_genpd(dev->pm_domain); in scpsys_active_wakeup() 396 scpd = container_of(genpd, struct scp_domain, genpd); in scpsys_active_wakeup() [all …]
|
/drivers/soc/rockchip/ |
D | pm_domains.c | 48 struct generic_pm_domain genpd; member 64 #define to_rockchip_pd(gpd) container_of(gpd, struct rockchip_pm_domain, genpd) 183 static int rockchip_pd_attach_dev(struct generic_pm_domain *genpd, in rockchip_pd_attach_dev() argument 190 dev_dbg(dev, "attaching to power domain '%s'\n", genpd->name); in rockchip_pd_attach_dev() 213 static void rockchip_pd_detach_dev(struct generic_pm_domain *genpd, in rockchip_pd_detach_dev() argument 216 dev_dbg(dev, "detaching from power domain '%s'\n", genpd->name); in rockchip_pd_detach_dev() 296 pd->genpd.name = node->name; in rockchip_pm_add_one_domain() 297 pd->genpd.power_off = rockchip_pd_power_off; in rockchip_pm_add_one_domain() 298 pd->genpd.power_on = rockchip_pd_power_on; in rockchip_pm_add_one_domain() 299 pd->genpd.attach_dev = rockchip_pd_attach_dev; in rockchip_pm_add_one_domain() [all …]
|