Lines Matching +full:enum +full:- +full:as +full:- +full:flags

1 // SPDX-License-Identifier: GPL-2.0-only
29 static int cpu_pm_notify(enum cpu_pm_event event) in cpu_pm_notify()
40 static int cpu_pm_notify_robust(enum cpu_pm_event event_up, enum cpu_pm_event event_down) in cpu_pm_notify_robust()
42 unsigned long flags; in cpu_pm_notify_robust() local
45 raw_spin_lock_irqsave(&cpu_pm_notifier.lock, flags); in cpu_pm_notify_robust()
47 raw_spin_unlock_irqrestore(&cpu_pm_notifier.lock, flags); in cpu_pm_notify_robust()
53 * cpu_pm_register_notifier - register a driver with cpu_pm
59 * This function has the same return conditions as raw_notifier_chain_register.
63 unsigned long flags; in cpu_pm_register_notifier() local
66 raw_spin_lock_irqsave(&cpu_pm_notifier.lock, flags); in cpu_pm_register_notifier()
68 raw_spin_unlock_irqrestore(&cpu_pm_notifier.lock, flags); in cpu_pm_register_notifier()
74 * cpu_pm_unregister_notifier - unregister a driver with cpu_pm
79 * This function has the same return conditions as raw_notifier_chain_unregister.
83 unsigned long flags; in cpu_pm_unregister_notifier() local
86 raw_spin_lock_irqsave(&cpu_pm_notifier.lock, flags); in cpu_pm_unregister_notifier()
88 raw_spin_unlock_irqrestore(&cpu_pm_notifier.lock, flags); in cpu_pm_unregister_notifier()
94 * cpu_pm_enter - CPU low power entry notifier
97 * cause some blocks in the same power domain as the cpu to reset.
102 * co-processor, interrupt controller and its PM extensions, local CPU
106 * Return conditions are same as __raw_notifier_call_chain.
115 * cpu_pm_exit - CPU low power exit notifier
118 * have caused some blocks in the same power domain as the cpu to reset.
120 * Notified drivers can include VFP co-processor, interrupt controller
124 * Return conditions are same as __raw_notifier_call_chain.
133 * cpu_cluster_pm_enter - CPU cluster low power entry notifier
140 * domain. Notified drivers can include VFP co-processor, interrupt controller
146 * Return conditions are same as __raw_notifier_call_chain.
155 * cpu_cluster_pm_exit - CPU cluster low power exit notifier
163 * domain. Notified drivers can include VFP co-processor, interrupt controller
167 * Return conditions are same as __raw_notifier_call_chain.