Lines Matching refs:generic_pm_domain
48 void (*lock)(struct generic_pm_domain *genpd);
49 void (*lock_nested)(struct generic_pm_domain *genpd, int depth);
50 int (*lock_interruptible)(struct generic_pm_domain *genpd);
51 void (*unlock)(struct generic_pm_domain *genpd);
54 static void genpd_lock_mtx(struct generic_pm_domain *genpd) in genpd_lock_mtx()
59 static void genpd_lock_nested_mtx(struct generic_pm_domain *genpd, in genpd_lock_nested_mtx()
65 static int genpd_lock_interruptible_mtx(struct generic_pm_domain *genpd) in genpd_lock_interruptible_mtx()
70 static void genpd_unlock_mtx(struct generic_pm_domain *genpd) in genpd_unlock_mtx()
82 static void genpd_lock_spin(struct generic_pm_domain *genpd) in genpd_lock_spin()
91 static void genpd_lock_nested_spin(struct generic_pm_domain *genpd, in genpd_lock_nested_spin()
101 static int genpd_lock_interruptible_spin(struct generic_pm_domain *genpd) in genpd_lock_interruptible_spin()
111 static void genpd_unlock_spin(struct generic_pm_domain *genpd) in genpd_unlock_spin()
124 static void genpd_lock_raw_spin(struct generic_pm_domain *genpd) in genpd_lock_raw_spin()
133 static void genpd_lock_nested_raw_spin(struct generic_pm_domain *genpd, in genpd_lock_nested_raw_spin()
143 static int genpd_lock_interruptible_raw_spin(struct generic_pm_domain *genpd) in genpd_lock_interruptible_raw_spin()
153 static void genpd_unlock_raw_spin(struct generic_pm_domain *genpd) in genpd_unlock_raw_spin()
181 const struct generic_pm_domain *genpd) in irq_safe_dev_in_sleep_domain()
210 static struct generic_pm_domain *dev_to_genpd_safe(struct device *dev) in dev_to_genpd_safe()
226 static struct generic_pm_domain *dev_to_genpd(struct device *dev) in dev_to_genpd()
236 struct generic_pm_domain *genpd = dev_to_genpd(dev); in dev_to_genpd_dev()
244 static int genpd_stop_dev(const struct generic_pm_domain *genpd, in genpd_stop_dev()
250 static int genpd_start_dev(const struct generic_pm_domain *genpd, in genpd_start_dev()
256 static bool genpd_sd_counter_dec(struct generic_pm_domain *genpd) in genpd_sd_counter_dec()
266 static void genpd_sd_counter_inc(struct generic_pm_domain *genpd) in genpd_sd_counter_inc()
275 static void genpd_debug_add(struct generic_pm_domain *genpd);
277 static void genpd_debug_remove(struct generic_pm_domain *genpd) in genpd_debug_remove()
285 static void genpd_update_accounting(struct generic_pm_domain *genpd) in genpd_update_accounting()
308 static inline void genpd_debug_add(struct generic_pm_domain *genpd) {} in genpd_debug_add()
309 static inline void genpd_debug_remove(struct generic_pm_domain *genpd) {} in genpd_debug_remove()
310 static inline void genpd_update_accounting(struct generic_pm_domain *genpd) {} in genpd_update_accounting()
313 static int _genpd_reeval_performance_state(struct generic_pm_domain *genpd, in _genpd_reeval_performance_state()
358 static int genpd_xlate_performance_state(struct generic_pm_domain *genpd, in genpd_xlate_performance_state()
359 struct generic_pm_domain *parent, in genpd_xlate_performance_state()
370 static int _genpd_set_performance_state(struct generic_pm_domain *genpd,
375 struct generic_pm_domain *parent = link->parent; in _genpd_rollback_parent_state()
392 static int _genpd_set_parent_state(struct generic_pm_domain *genpd, in _genpd_set_parent_state()
396 struct generic_pm_domain *parent = link->parent; in _genpd_set_parent_state()
421 static int _genpd_set_performance_state(struct generic_pm_domain *genpd, in _genpd_set_performance_state()
472 struct generic_pm_domain *genpd = dev_to_genpd(dev); in genpd_set_performance_state()
511 struct generic_pm_domain *genpd = dev_to_genpd(dev); in genpd_dev_pm_set_performance_state()
544 struct generic_pm_domain *genpd; in dev_pm_genpd_set_performance_state()
575 struct generic_pm_domain *genpd; in dev_pm_genpd_set_next_wakeup()
600 struct generic_pm_domain *genpd; in dev_pm_genpd_get_next_hrtimer()
626 struct generic_pm_domain *genpd; in dev_pm_genpd_synced_poweroff()
656 struct generic_pm_domain *genpd; in dev_pm_genpd_set_hwmode()
700 static int _genpd_power_on(struct generic_pm_domain *genpd, bool timed) in _genpd_power_on()
751 static int _genpd_power_off(struct generic_pm_domain *genpd, bool timed) in _genpd_power_off()
808 static void genpd_queue_power_off_work(struct generic_pm_domain *genpd) in genpd_queue_power_off_work()
825 static int genpd_power_off(struct generic_pm_domain *genpd, bool one_dev_on, in genpd_power_off()
858 struct generic_pm_domain *child = link->child; in genpd_power_off()
917 static int genpd_power_on(struct generic_pm_domain *genpd, unsigned int depth) in genpd_power_on()
931 struct generic_pm_domain *parent = link->parent; in genpd_power_on()
969 struct generic_pm_domain *genpd = dev_to_genpd(dev); in genpd_dev_pm_start()
984 struct generic_pm_domain *genpd = ERR_PTR(-ENODATA); in genpd_dev_pm_qos_notifier()
1022 struct generic_pm_domain *genpd; in genpd_power_off_work_fn()
1024 genpd = container_of(work, struct generic_pm_domain, power_off_work); in genpd_power_off_work_fn()
1087 struct generic_pm_domain *genpd; in genpd_runtime_suspend()
1163 struct generic_pm_domain *genpd; in genpd_runtime_resume()
1245 struct generic_pm_domain *genpd; in genpd_power_off_unused()
1279 static void genpd_sync_power_off(struct generic_pm_domain *genpd, bool use_lock, in genpd_sync_power_off()
1293 struct generic_pm_domain *child = link->child; in genpd_sync_power_off()
1332 static void genpd_sync_power_on(struct generic_pm_domain *genpd, bool use_lock, in genpd_sync_power_on()
1367 struct generic_pm_domain *genpd; in genpd_prepare()
1407 struct generic_pm_domain *genpd; in genpd_finish_suspend()
1464 struct generic_pm_domain *genpd; in genpd_finish_resume()
1578 struct generic_pm_domain *genpd; in genpd_complete()
1599 struct generic_pm_domain *genpd; in genpd_switch_state()
1735 static void genpd_update_cpumask(struct generic_pm_domain *genpd, in genpd_update_cpumask()
1744 struct generic_pm_domain *parent = link->parent; in genpd_update_cpumask()
1757 static void genpd_set_cpumask(struct generic_pm_domain *genpd, int cpu) in genpd_set_cpumask()
1763 static void genpd_clear_cpumask(struct generic_pm_domain *genpd, int cpu) in genpd_clear_cpumask()
1769 static int genpd_get_cpu(struct generic_pm_domain *genpd, struct device *dev) in genpd_get_cpu()
1784 static int genpd_add_device(struct generic_pm_domain *genpd, struct device *dev, in genpd_add_device()
1832 int pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev) in pm_genpd_add_device()
1847 static int genpd_remove_device(struct generic_pm_domain *genpd, in genpd_remove_device()
1900 struct generic_pm_domain *genpd = dev_to_genpd_safe(dev); in pm_genpd_remove_device()
1926 struct generic_pm_domain *genpd; in dev_pm_genpd_add_notifier()
1972 struct generic_pm_domain *genpd; in dev_pm_genpd_remove_notifier()
2004 static int genpd_add_subdomain(struct generic_pm_domain *genpd, in genpd_add_subdomain()
2005 struct generic_pm_domain *subdomain) in genpd_add_subdomain()
2064 int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, in pm_genpd_add_subdomain()
2065 struct generic_pm_domain *subdomain) in pm_genpd_add_subdomain()
2082 int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd, in pm_genpd_remove_subdomain()
2083 struct generic_pm_domain *subdomain) in pm_genpd_remove_subdomain()
2129 static int genpd_set_default_power_state(struct generic_pm_domain *genpd) in genpd_set_default_power_state()
2144 static int genpd_alloc_data(struct generic_pm_domain *genpd) in genpd_alloc_data()
2183 static void genpd_free_data(struct generic_pm_domain *genpd) in genpd_free_data()
2192 static void genpd_lock_init(struct generic_pm_domain *genpd) in genpd_lock_init()
2214 int pm_genpd_init(struct generic_pm_domain *genpd, in pm_genpd_init()
2296 static int genpd_remove(struct generic_pm_domain *genpd) in genpd_remove()
2349 int pm_genpd_remove(struct generic_pm_domain *genpd) in pm_genpd_remove()
2408 static struct generic_pm_domain *genpd_xlate_simple( in genpd_xlate_simple()
2425 static struct generic_pm_domain *genpd_xlate_onecell( in genpd_xlate_onecell()
2474 static bool genpd_present(const struct generic_pm_domain *genpd) in genpd_present()
2477 const struct generic_pm_domain *gpd; in genpd_present()
2497 struct generic_pm_domain *genpd) in of_genpd_add_provider_simple()
2548 struct generic_pm_domain *genpd; in of_genpd_add_provider_onecell()
2622 struct generic_pm_domain *gpd; in of_genpd_del_provider()
2668 static struct generic_pm_domain *genpd_get_from_provider( in genpd_get_from_provider()
2671 struct generic_pm_domain *genpd = ERR_PTR(-ENOENT); in genpd_get_from_provider()
2702 struct generic_pm_domain *genpd; in of_genpd_add_device()
2737 struct generic_pm_domain *parent, *subdomain; in of_genpd_add_subdomain()
2775 struct generic_pm_domain *parent, *subdomain; in of_genpd_remove_subdomain()
2814 struct generic_pm_domain *of_genpd_remove_last(struct device_node *np) in of_genpd_remove_last()
2816 struct generic_pm_domain *gpd, *tmp, *genpd = ERR_PTR(-ENOENT); in of_genpd_remove_last()
2856 struct generic_pm_domain *pd; in genpd_dev_pm_detach()
2897 struct generic_pm_domain *pd; in genpd_dev_pm_sync()
2910 struct generic_pm_domain *pd; in __genpd_dev_pm_attach()
3271 struct generic_pm_domain *genpd) in genpd_summary_one()
3325 struct generic_pm_domain *genpd; in summary_show()
3353 struct generic_pm_domain *genpd = s->private; in status_show()
3375 struct generic_pm_domain *genpd = s->private; in sub_domains_show()
3392 struct generic_pm_domain *genpd = s->private; in idle_states_show()
3425 struct generic_pm_domain *genpd = s->private; in active_time_show()
3449 struct generic_pm_domain *genpd = s->private; in total_idle_time_show()
3480 struct generic_pm_domain *genpd = s->private; in devices_show()
3497 struct generic_pm_domain *genpd = s->private; in perf_state_show()
3517 static void genpd_debug_add(struct generic_pm_domain *genpd) in genpd_debug_add()
3545 struct generic_pm_domain *genpd; in genpd_debug_init()