Lines Matching refs:ops
23 void register_syscore_ops(struct syscore_ops *ops) in register_syscore_ops() argument
26 list_add_tail(&ops->node, &syscore_ops_list); in register_syscore_ops()
35 void unregister_syscore_ops(struct syscore_ops *ops) in unregister_syscore_ops() argument
38 list_del(&ops->node); in unregister_syscore_ops()
51 struct syscore_ops *ops; in syscore_suspend() local
64 list_for_each_entry_reverse(ops, &syscore_ops_list, node) in syscore_suspend()
65 if (ops->suspend) { in syscore_suspend()
67 pr_info("PM: Calling %pF\n", ops->suspend); in syscore_suspend()
68 ret = ops->suspend(); in syscore_suspend()
72 "Interrupts enabled after %pF\n", ops->suspend); in syscore_suspend()
80 ops->suspend); in syscore_suspend()
81 pr_err("PM: System core suspend callback %pF failed.\n", ops->suspend); in syscore_suspend()
83 list_for_each_entry_continue(ops, &syscore_ops_list, node) in syscore_suspend()
84 if (ops->resume) in syscore_suspend()
85 ops->resume(); in syscore_suspend()
98 struct syscore_ops *ops; in syscore_resume() local
104 list_for_each_entry(ops, &syscore_ops_list, node) in syscore_resume()
105 if (ops->resume) { in syscore_resume()
107 pr_info("PM: Calling %pF\n", ops->resume); in syscore_resume()
108 ops->resume(); in syscore_resume()
110 "Interrupts enabled after %pF\n", ops->resume); in syscore_resume()
122 struct syscore_ops *ops; in syscore_shutdown() local
126 list_for_each_entry_reverse(ops, &syscore_ops_list, node) in syscore_shutdown()
127 if (ops->shutdown) { in syscore_shutdown()
129 pr_info("PM: Calling %pF\n", ops->shutdown); in syscore_shutdown()
130 ops->shutdown(); in syscore_shutdown()