Lines Matching refs:generic_pm_domain
46 void (*lock)(struct generic_pm_domain *genpd);
47 void (*lock_nested)(struct generic_pm_domain *genpd, int depth);
48 int (*lock_interruptible)(struct generic_pm_domain *genpd);
49 void (*unlock)(struct generic_pm_domain *genpd);
52 static void genpd_lock_mtx(struct generic_pm_domain *genpd) in genpd_lock_mtx()
57 static void genpd_lock_nested_mtx(struct generic_pm_domain *genpd, in genpd_lock_nested_mtx()
63 static int genpd_lock_interruptible_mtx(struct generic_pm_domain *genpd) in genpd_lock_interruptible_mtx()
68 static void genpd_unlock_mtx(struct generic_pm_domain *genpd) in genpd_unlock_mtx()
80 static void genpd_lock_spin(struct generic_pm_domain *genpd) in genpd_lock_spin()
89 static void genpd_lock_nested_spin(struct generic_pm_domain *genpd, in genpd_lock_nested_spin()
99 static int genpd_lock_interruptible_spin(struct generic_pm_domain *genpd) in genpd_lock_interruptible_spin()
109 static void genpd_unlock_spin(struct generic_pm_domain *genpd) in genpd_unlock_spin()
135 const struct generic_pm_domain *genpd) in irq_safe_dev_in_sleep_domain()
164 static struct generic_pm_domain *dev_to_genpd_safe(struct device *dev) in dev_to_genpd_safe()
180 static struct generic_pm_domain *dev_to_genpd(struct device *dev) in dev_to_genpd()
188 static int genpd_stop_dev(const struct generic_pm_domain *genpd, in genpd_stop_dev()
194 static int genpd_start_dev(const struct generic_pm_domain *genpd, in genpd_start_dev()
200 static bool genpd_sd_counter_dec(struct generic_pm_domain *genpd) in genpd_sd_counter_dec()
210 static void genpd_sd_counter_inc(struct generic_pm_domain *genpd) in genpd_sd_counter_inc()
219 static void genpd_debug_add(struct generic_pm_domain *genpd);
221 static void genpd_debug_remove(struct generic_pm_domain *genpd) in genpd_debug_remove()
232 static void genpd_update_accounting(struct generic_pm_domain *genpd) in genpd_update_accounting()
255 static inline void genpd_debug_add(struct generic_pm_domain *genpd) {} in genpd_debug_add()
256 static inline void genpd_debug_remove(struct generic_pm_domain *genpd) {} in genpd_debug_remove()
257 static inline void genpd_update_accounting(struct generic_pm_domain *genpd) {} in genpd_update_accounting()
260 static int _genpd_reeval_performance_state(struct generic_pm_domain *genpd, in _genpd_reeval_performance_state()
305 static int genpd_xlate_performance_state(struct generic_pm_domain *genpd, in genpd_xlate_performance_state()
306 struct generic_pm_domain *parent, in genpd_xlate_performance_state()
317 static int _genpd_set_performance_state(struct generic_pm_domain *genpd, in _genpd_set_performance_state()
320 struct generic_pm_domain *parent; in _genpd_set_performance_state()
389 struct generic_pm_domain *genpd = dev_to_genpd(dev); in genpd_set_performance_state()
442 struct generic_pm_domain *genpd; in dev_pm_genpd_set_performance_state()
484 struct generic_pm_domain *genpd; in dev_pm_genpd_set_next_wakeup()
497 static int _genpd_power_on(struct generic_pm_domain *genpd, bool timed) in _genpd_power_on()
547 static int _genpd_power_off(struct generic_pm_domain *genpd, bool timed) in _genpd_power_off()
604 static void genpd_queue_power_off_work(struct generic_pm_domain *genpd) in genpd_queue_power_off_work()
621 static int genpd_power_off(struct generic_pm_domain *genpd, bool one_dev_on, in genpd_power_off()
654 struct generic_pm_domain *child = link->child; in genpd_power_off()
713 static int genpd_power_on(struct generic_pm_domain *genpd, unsigned int depth) in genpd_power_on()
727 struct generic_pm_domain *parent = link->parent; in genpd_power_on()
765 struct generic_pm_domain *genpd = dev_to_genpd(dev); in genpd_dev_pm_start()
780 struct generic_pm_domain *genpd = ERR_PTR(-ENODATA); in genpd_dev_pm_qos_notifier()
818 struct generic_pm_domain *genpd; in genpd_power_off_work_fn()
820 genpd = container_of(work, struct generic_pm_domain, power_off_work); in genpd_power_off_work_fn()
883 struct generic_pm_domain *genpd; in genpd_runtime_suspend()
959 struct generic_pm_domain *genpd; in genpd_runtime_resume()
1042 struct generic_pm_domain *genpd; in genpd_power_off_unused()
1075 static void genpd_sync_power_off(struct generic_pm_domain *genpd, bool use_lock, in genpd_sync_power_off()
1089 struct generic_pm_domain *child = link->child; in genpd_sync_power_off()
1124 static void genpd_sync_power_on(struct generic_pm_domain *genpd, bool use_lock, in genpd_sync_power_on()
1159 struct generic_pm_domain *genpd; in genpd_prepare()
1199 struct generic_pm_domain *genpd; in genpd_finish_suspend()
1258 struct generic_pm_domain *genpd; in genpd_resume_noirq()
1296 const struct generic_pm_domain *genpd; in genpd_freeze_noirq()
1325 const struct generic_pm_domain *genpd; in genpd_thaw_noirq()
1368 struct generic_pm_domain *genpd; in genpd_restore_noirq()
1415 struct generic_pm_domain *genpd; in genpd_complete()
1436 struct generic_pm_domain *genpd; in genpd_switch_state()
1572 static void genpd_update_cpumask(struct generic_pm_domain *genpd, in genpd_update_cpumask()
1581 struct generic_pm_domain *parent = link->parent; in genpd_update_cpumask()
1594 static void genpd_set_cpumask(struct generic_pm_domain *genpd, int cpu) in genpd_set_cpumask()
1600 static void genpd_clear_cpumask(struct generic_pm_domain *genpd, int cpu) in genpd_clear_cpumask()
1606 static int genpd_get_cpu(struct generic_pm_domain *genpd, struct device *dev) in genpd_get_cpu()
1621 static int genpd_add_device(struct generic_pm_domain *genpd, struct device *dev, in genpd_add_device()
1670 int pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev) in pm_genpd_add_device()
1682 static int genpd_remove_device(struct generic_pm_domain *genpd, in genpd_remove_device()
1734 struct generic_pm_domain *genpd = dev_to_genpd_safe(dev); in pm_genpd_remove_device()
1760 struct generic_pm_domain *genpd; in dev_pm_genpd_add_notifier()
1806 struct generic_pm_domain *genpd; in dev_pm_genpd_remove_notifier()
1838 static int genpd_add_subdomain(struct generic_pm_domain *genpd, in genpd_add_subdomain()
1839 struct generic_pm_domain *subdomain) in genpd_add_subdomain()
1898 int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, in pm_genpd_add_subdomain()
1899 struct generic_pm_domain *subdomain) in pm_genpd_add_subdomain()
1916 int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd, in pm_genpd_remove_subdomain()
1917 struct generic_pm_domain *subdomain) in pm_genpd_remove_subdomain()
1963 static int genpd_set_default_power_state(struct generic_pm_domain *genpd) in genpd_set_default_power_state()
1978 static int genpd_alloc_data(struct generic_pm_domain *genpd) in genpd_alloc_data()
2016 static void genpd_free_data(struct generic_pm_domain *genpd) in genpd_free_data()
2025 static void genpd_lock_init(struct generic_pm_domain *genpd) in genpd_lock_init()
2044 int pm_genpd_init(struct generic_pm_domain *genpd, in pm_genpd_init()
2113 static int genpd_remove(struct generic_pm_domain *genpd) in genpd_remove()
2164 int pm_genpd_remove(struct generic_pm_domain *genpd) in pm_genpd_remove()
2223 static struct generic_pm_domain *genpd_xlate_simple( in genpd_xlate_simple()
2240 static struct generic_pm_domain *genpd_xlate_onecell( in genpd_xlate_onecell()
2289 static bool genpd_present(const struct generic_pm_domain *genpd) in genpd_present()
2292 const struct generic_pm_domain *gpd; in genpd_present()
2312 struct generic_pm_domain *genpd) in of_genpd_add_provider_simple()
2363 struct generic_pm_domain *genpd; in of_genpd_add_provider_onecell()
2437 struct generic_pm_domain *gpd; in of_genpd_del_provider()
2483 static struct generic_pm_domain *genpd_get_from_provider( in genpd_get_from_provider()
2486 struct generic_pm_domain *genpd = ERR_PTR(-ENOENT); in genpd_get_from_provider()
2517 struct generic_pm_domain *genpd; in of_genpd_add_device()
2549 struct generic_pm_domain *parent, *subdomain; in of_genpd_add_subdomain()
2587 struct generic_pm_domain *parent, *subdomain; in of_genpd_remove_subdomain()
2626 struct generic_pm_domain *of_genpd_remove_last(struct device_node *np) in of_genpd_remove_last()
2628 struct generic_pm_domain *gpd, *tmp, *genpd = ERR_PTR(-ENOENT); in of_genpd_remove_last()
2668 struct generic_pm_domain *pd; in genpd_dev_pm_detach()
2709 struct generic_pm_domain *pd; in genpd_dev_pm_sync()
2722 struct generic_pm_domain *pd; in __genpd_dev_pm_attach()
3035 struct generic_pm_domain *genpd = NULL; in pm_genpd_opp_to_performance_state()
3038 genpd = container_of(genpd_dev, struct generic_pm_domain, dev); in pm_genpd_opp_to_performance_state()
3098 struct generic_pm_domain *genpd) in genpd_summary_one()
3159 struct generic_pm_domain *genpd; in summary_show()
3187 struct generic_pm_domain *genpd = s->private; in status_show()
3209 struct generic_pm_domain *genpd = s->private; in sub_domains_show()
3226 struct generic_pm_domain *genpd = s->private; in idle_states_show()
3259 struct generic_pm_domain *genpd = s->private; in active_time_show()
3283 struct generic_pm_domain *genpd = s->private; in total_idle_time_show()
3314 struct generic_pm_domain *genpd = s->private; in devices_show()
3340 struct generic_pm_domain *genpd = s->private; in perf_state_show()
3360 static void genpd_debug_add(struct generic_pm_domain *genpd) in genpd_debug_add()
3388 struct generic_pm_domain *genpd; in genpd_debug_init()