Searched refs:suspend_ops (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/kernel/power/
H A Dsuspend.c38 static const struct platform_suspend_ops *suspend_ops; variable in typeref:struct:platform_suspend_ops
107 return suspend_ops && suspend_ops->valid && suspend_ops->valid(state); valid_state()
138 suspend_ops = ops; suspend_set_ops()
168 return state == PM_SUSPEND_FREEZE || (suspend_ops && suspend_ops->enter); sleep_state_supported()
173 return state != PM_SUSPEND_FREEZE && suspend_ops->prepare ? platform_suspend_prepare()
174 suspend_ops->prepare() : 0; platform_suspend_prepare()
185 return state != PM_SUSPEND_FREEZE && suspend_ops->prepare_late ? platform_suspend_prepare_noirq()
186 suspend_ops->prepare_late() : 0; platform_suspend_prepare_noirq()
191 if (state != PM_SUSPEND_FREEZE && suspend_ops->wake) platform_resume_noirq()
192 suspend_ops->wake(); platform_resume_noirq()
203 if (state != PM_SUSPEND_FREEZE && suspend_ops->finish) platform_resume_finish()
204 suspend_ops->finish(); platform_resume_finish()
211 else if (suspend_ops->begin) platform_suspend_begin()
212 return suspend_ops->begin(state); platform_suspend_begin()
221 else if (suspend_ops->end) platform_resume_end()
222 suspend_ops->end(); platform_resume_end()
227 if (state != PM_SUSPEND_FREEZE && suspend_ops->recover) platform_recover()
228 suspend_ops->recover(); platform_recover()
233 return state != PM_SUSPEND_FREEZE && suspend_ops->suspend_again ? platform_suspend_again()
234 suspend_ops->suspend_again() : false; platform_suspend_again()
365 error = suspend_ops->enter(state); suspend_enter()

Completed in 49 milliseconds