Lines Matching refs:ops
21 void register_syscore_ops(struct syscore_ops *ops) in register_syscore_ops() argument
24 list_add_tail(&ops->node, &syscore_ops_list); in register_syscore_ops()
33 void unregister_syscore_ops(struct syscore_ops *ops) in unregister_syscore_ops() argument
36 list_del(&ops->node); in unregister_syscore_ops()
49 struct syscore_ops *ops; in syscore_suspend() local
62 list_for_each_entry_reverse(ops, &syscore_ops_list, node) in syscore_suspend()
63 if (ops->suspend) { in syscore_suspend()
64 pm_pr_dbg("Calling %pS\n", ops->suspend); in syscore_suspend()
65 ret = ops->suspend(); in syscore_suspend()
69 "Interrupts enabled after %pS\n", ops->suspend); in syscore_suspend()
76 pr_err("PM: System core suspend callback %pS failed.\n", ops->suspend); in syscore_suspend()
78 list_for_each_entry_continue(ops, &syscore_ops_list, node) in syscore_suspend()
79 if (ops->resume) in syscore_suspend()
80 ops->resume(); in syscore_suspend()
93 struct syscore_ops *ops; in syscore_resume() local
99 list_for_each_entry(ops, &syscore_ops_list, node) in syscore_resume()
100 if (ops->resume) { in syscore_resume()
101 pm_pr_dbg("Calling %pS\n", ops->resume); in syscore_resume()
102 ops->resume(); in syscore_resume()
104 "Interrupts enabled after %pS\n", ops->resume); in syscore_resume()
116 struct syscore_ops *ops; in syscore_shutdown() local
120 list_for_each_entry_reverse(ops, &syscore_ops_list, node) in syscore_shutdown()
121 if (ops->shutdown) { in syscore_shutdown()
123 pr_info("PM: Calling %pS\n", ops->shutdown); in syscore_shutdown()
124 ops->shutdown(); in syscore_shutdown()