Lines Matching refs:ops
22 void register_syscore_ops(struct syscore_ops *ops) in register_syscore_ops() argument
25 list_add_tail(&ops->node, &syscore_ops_list); in register_syscore_ops()
34 void unregister_syscore_ops(struct syscore_ops *ops) in unregister_syscore_ops() argument
37 list_del(&ops->node); in unregister_syscore_ops()
50 struct syscore_ops *ops; in syscore_suspend() local
63 list_for_each_entry_reverse(ops, &syscore_ops_list, node) in syscore_suspend()
64 if (ops->suspend) { in syscore_suspend()
66 pr_info("PM: Calling %pF\n", ops->suspend); in syscore_suspend()
67 ret = ops->suspend(); in syscore_suspend()
71 "Interrupts enabled after %pF\n", ops->suspend); in syscore_suspend()
78 pr_err("PM: System core suspend callback %pF failed.\n", ops->suspend); in syscore_suspend()
80 list_for_each_entry_continue(ops, &syscore_ops_list, node) in syscore_suspend()
81 if (ops->resume) in syscore_suspend()
82 ops->resume(); in syscore_suspend()
95 struct syscore_ops *ops; in syscore_resume() local
101 list_for_each_entry(ops, &syscore_ops_list, node) in syscore_resume()
102 if (ops->resume) { in syscore_resume()
104 pr_info("PM: Calling %pF\n", ops->resume); in syscore_resume()
105 ops->resume(); in syscore_resume()
107 "Interrupts enabled after %pF\n", ops->resume); in syscore_resume()
119 struct syscore_ops *ops; in syscore_shutdown() local
123 list_for_each_entry_reverse(ops, &syscore_ops_list, node) in syscore_shutdown()
124 if (ops->shutdown) { in syscore_shutdown()
126 pr_info("PM: Calling %pF\n", ops->shutdown); in syscore_shutdown()
127 ops->shutdown(); in syscore_shutdown()