Lines Matching defs:genpd

30 #define GENPD_DEV_CALLBACK(genpd, type, callback, dev)		\  argument
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()
127 #define genpd_status_on(genpd) (genpd->status == GENPD_STATE_ON) argument
128 #define genpd_is_irq_safe(genpd) (genpd->flags & GENPD_FLAG_IRQ_SAFE) argument
129 #define genpd_is_always_on(genpd) (genpd->flags & GENPD_FLAG_ALWAYS_ON) argument
130 #define genpd_is_active_wakeup(genpd) (genpd->flags & GENPD_FLAG_ACTIVE_WAKEUP) argument
131 #define genpd_is_cpu_domain(genpd) (genpd->flags & GENPD_FLAG_CPU_DOMAIN) argument
132 #define genpd_is_rpm_always_on(genpd) (genpd->flags & GENPD_FLAG_RPM_ALWAYS_ON) argument
135 const struct generic_pm_domain *genpd) in irq_safe_dev_in_sleep_domain()
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()
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()
317 static int _genpd_set_performance_state(struct generic_pm_domain *genpd, in _genpd_set_performance_state()
389 struct generic_pm_domain *genpd = dev_to_genpd(dev); in genpd_set_performance_state() local
442 struct generic_pm_domain *genpd; in dev_pm_genpd_set_performance_state() local
484 struct generic_pm_domain *genpd; in dev_pm_genpd_set_next_wakeup() local
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()
713 static int genpd_power_on(struct generic_pm_domain *genpd, unsigned int depth) in genpd_power_on()
765 struct generic_pm_domain *genpd = dev_to_genpd(dev); in genpd_dev_pm_start() local
780 struct generic_pm_domain *genpd = ERR_PTR(-ENODATA); in genpd_dev_pm_qos_notifier() local
818 struct generic_pm_domain *genpd; in genpd_power_off_work_fn() local
883 struct generic_pm_domain *genpd; in genpd_runtime_suspend() local
959 struct generic_pm_domain *genpd; in genpd_runtime_resume() local
1042 struct generic_pm_domain *genpd; in genpd_power_off_unused() local
1075 static void genpd_sync_power_off(struct generic_pm_domain *genpd, bool use_lock, 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() local
1199 struct generic_pm_domain *genpd; in genpd_finish_suspend() local
1258 struct generic_pm_domain *genpd; in genpd_resume_noirq() local
1296 const struct generic_pm_domain *genpd; in genpd_freeze_noirq() local
1325 const struct generic_pm_domain *genpd; in genpd_thaw_noirq() local
1368 struct generic_pm_domain *genpd; in genpd_restore_noirq() local
1415 struct generic_pm_domain *genpd; in genpd_complete() local
1436 struct generic_pm_domain *genpd; in genpd_switch_state() local
1572 static void genpd_update_cpumask(struct generic_pm_domain *genpd, 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() local
1760 struct generic_pm_domain *genpd; in dev_pm_genpd_add_notifier() local
1806 struct generic_pm_domain *genpd; in dev_pm_genpd_remove_notifier() local
1838 static int genpd_add_subdomain(struct generic_pm_domain *genpd, in genpd_add_subdomain()
1898 int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, in pm_genpd_add_subdomain()
1916 int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd, 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()
2289 static bool genpd_present(const struct generic_pm_domain *genpd) 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() local
2486 struct generic_pm_domain *genpd = ERR_PTR(-ENOENT); in genpd_get_from_provider() local
2517 struct generic_pm_domain *genpd; in of_genpd_add_device() local
2628 struct generic_pm_domain *gpd, *tmp, *genpd = ERR_PTR(-ENOENT); in of_genpd_remove_last() local
3035 struct generic_pm_domain *genpd = NULL; in pm_genpd_opp_to_performance_state() local
3098 struct generic_pm_domain *genpd) in genpd_summary_one()
3159 struct generic_pm_domain *genpd; in summary_show() local
3187 struct generic_pm_domain *genpd = s->private; in status_show() local
3209 struct generic_pm_domain *genpd = s->private; in sub_domains_show() local
3226 struct generic_pm_domain *genpd = s->private; in idle_states_show() local
3259 struct generic_pm_domain *genpd = s->private; in active_time_show() local
3283 struct generic_pm_domain *genpd = s->private; in total_idle_time_show() local
3314 struct generic_pm_domain *genpd = s->private; in devices_show() local
3340 struct generic_pm_domain *genpd = s->private; in perf_state_show() local
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() local