Home
last modified time | relevance | path

Searched refs:genpd (Results 1 – 7 of 7) sorted by relevance

/linux-3.4.99/drivers/base/power/
Ddomain.c20 #define GENPD_DEV_CALLBACK(genpd, type, callback, dev) \ argument
25 __routine = genpd->dev_ops.callback; \
36 #define GENPD_DEV_TIMED_CALLBACK(genpd, type, callback, dev, field, name) \ argument
39 type __retval = GENPD_DEV_CALLBACK(genpd, type, callback, dev); \
63 static int genpd_stop_dev(struct generic_pm_domain *genpd, struct device *dev) in genpd_stop_dev() argument
65 return GENPD_DEV_TIMED_CALLBACK(genpd, int, stop, dev, in genpd_stop_dev()
69 static int genpd_start_dev(struct generic_pm_domain *genpd, struct device *dev) in genpd_start_dev() argument
71 return GENPD_DEV_TIMED_CALLBACK(genpd, int, start, dev, in genpd_start_dev()
75 static int genpd_save_dev(struct generic_pm_domain *genpd, struct device *dev) in genpd_save_dev() argument
77 return GENPD_DEV_TIMED_CALLBACK(genpd, int, save_state, dev, in genpd_save_dev()
[all …]
Ddomain_governor.c42 struct generic_pm_domain *genpd = pd_to_genpd(pd); in default_power_down_ok() local
49 off_on_time_ns = genpd->power_off_latency_ns + in default_power_down_ok()
50 genpd->power_on_latency_ns; in default_power_down_ok()
58 list_for_each_entry(pdd, &genpd->dev_list, list_node) { in default_power_down_ok()
69 list_for_each_entry(link, &genpd->master_links, master_node) { in default_power_down_ok()
91 list_for_each_entry(pdd, &genpd->dev_list, list_node) { in default_power_down_ok()
117 genpd->max_off_time_ns = -1; in default_power_down_ok()
126 min_dev_off_time_ns -= genpd->power_on_latency_ns; in default_power_down_ok()
134 if (genpd->break_even_ns > in default_power_down_ok()
135 min_dev_off_time_ns - genpd->power_off_latency_ns) in default_power_down_ok()
[all …]
/linux-3.4.99/arch/arm/mach-shmobile/
Dpm-r8a7779.c159 static int pd_power_down(struct generic_pm_domain *genpd) in pd_power_down() argument
161 return r8a7779_sysc_power_down(to_r8a7779_ch(genpd)); in pd_power_down()
164 static int pd_power_up(struct generic_pm_domain *genpd) in pd_power_up() argument
166 return r8a7779_sysc_power_up(to_r8a7779_ch(genpd)); in pd_power_up()
169 static bool pd_is_off(struct generic_pm_domain *genpd) in pd_is_off() argument
171 struct r8a7779_pm_ch *r8a7779_ch = to_r8a7779_ch(genpd); in pd_is_off()
188 struct generic_pm_domain *genpd = &r8a7779_pd->genpd; in r8a7779_init_pm_domain() local
190 pm_genpd_init(genpd, NULL, false); in r8a7779_init_pm_domain()
191 genpd->dev_ops.stop = pm_clk_suspend; in r8a7779_init_pm_domain()
192 genpd->dev_ops.start = pm_clk_resume; in r8a7779_init_pm_domain()
[all …]
Dpm-sh7372.c79 static int pd_power_down(struct generic_pm_domain *genpd) in pd_power_down() argument
81 struct sh7372_pm_domain *sh7372_pd = to_sh7372_pd(genpd); in pd_power_down()
105 genpd->name, mask, __raw_readl(PSTR)); in pd_power_down()
134 sh7372_pd->genpd.name, mask, __raw_readl(PSTR)); in __pd_power_up()
143 static int pd_power_up(struct generic_pm_domain *genpd) in pd_power_up() argument
145 return __pd_power_up(to_sh7372_pd(genpd), true); in pd_power_up()
194 struct generic_pm_domain *genpd = &sh7372_pd->genpd; in sh7372_init_pm_domain() local
197 pm_genpd_init(genpd, gov ? : &simple_qos_governor, false); in sh7372_init_pm_domain()
198 genpd->dev_ops.stop = sh7372_stop_dev; in sh7372_init_pm_domain()
199 genpd->dev_ops.start = sh7372_start_dev; in sh7372_init_pm_domain()
[all …]
/linux-3.4.99/include/linux/
Dpm_domain.h121 extern int __pm_genpd_add_device(struct generic_pm_domain *genpd,
129 static inline int pm_genpd_add_device(struct generic_pm_domain *genpd, in pm_genpd_add_device() argument
132 return __pm_genpd_add_device(genpd, dev, NULL); in pm_genpd_add_device()
141 extern int pm_genpd_remove_device(struct generic_pm_domain *genpd,
144 extern int pm_genpd_add_subdomain(struct generic_pm_domain *genpd,
146 extern int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd,
152 extern void pm_genpd_init(struct generic_pm_domain *genpd,
155 extern int pm_genpd_poweron(struct generic_pm_domain *genpd);
170 static inline int __pm_genpd_add_device(struct generic_pm_domain *genpd, in __pm_genpd_add_device() argument
176 static inline int pm_genpd_add_device(struct generic_pm_domain *genpd, in pm_genpd_add_device() argument
[all …]
/linux-3.4.99/arch/arm/mach-shmobile/include/mach/
Dsh7372.h481 struct generic_pm_domain genpd; member
491 return container_of(d, struct sh7372_pm_domain, genpd); in to_sh7372_pd()
Dr8a7779.h337 struct generic_pm_domain genpd; member
343 return &container_of(d, struct r8a7779_pm_domain, genpd)->ch; in to_r8a7779_ch()