Lines Matching refs:suspend_ops
57 static const struct platform_suspend_ops *suspend_ops; variable
168 return suspend_ops && suspend_ops->valid && suspend_ops->valid(state) && in valid_state()
169 suspend_ops->enter; in valid_state()
207 suspend_ops = ops; in suspend_set_ops()
246 return state != PM_SUSPEND_TO_IDLE && suspend_ops->prepare ? in platform_suspend_prepare()
247 suspend_ops->prepare() : 0; in platform_suspend_prepare()
262 return suspend_ops->prepare_late ? suspend_ops->prepare_late() : 0; in platform_suspend_prepare_noirq()
270 } else if (suspend_ops->wake) { in platform_resume_noirq()
271 suspend_ops->wake(); in platform_resume_noirq()
283 if (state != PM_SUSPEND_TO_IDLE && suspend_ops->finish) in platform_resume_finish()
284 suspend_ops->finish(); in platform_resume_finish()
291 else if (suspend_ops && suspend_ops->begin) in platform_suspend_begin()
292 return suspend_ops->begin(state); in platform_suspend_begin()
301 else if (suspend_ops && suspend_ops->end) in platform_resume_end()
302 suspend_ops->end(); in platform_resume_end()
307 if (state != PM_SUSPEND_TO_IDLE && suspend_ops->recover) in platform_recover()
308 suspend_ops->recover(); in platform_recover()
313 return state != PM_SUSPEND_TO_IDLE && suspend_ops->suspend_again ? in platform_suspend_again()
314 suspend_ops->suspend_again() : false; in platform_suspend_again()
440 error = suspend_ops->enter(state); in suspend_enter()