Lines Matching refs:suspend_ops
59 static const struct platform_suspend_ops *suspend_ops; variable
175 return suspend_ops && suspend_ops->valid && suspend_ops->valid(state) && in valid_state()
176 suspend_ops->enter; in valid_state()
216 suspend_ops = ops; in suspend_set_ops()
256 return state != PM_SUSPEND_TO_IDLE && suspend_ops->prepare ? in platform_suspend_prepare()
257 suspend_ops->prepare() : 0; in platform_suspend_prepare()
272 return suspend_ops->prepare_late ? suspend_ops->prepare_late() : 0; in platform_suspend_prepare_noirq()
280 } else if (suspend_ops->wake) { in platform_resume_noirq()
281 suspend_ops->wake(); in platform_resume_noirq()
293 if (state != PM_SUSPEND_TO_IDLE && suspend_ops->finish) in platform_resume_finish()
294 suspend_ops->finish(); in platform_resume_finish()
301 else if (suspend_ops && suspend_ops->begin) in platform_suspend_begin()
302 return suspend_ops->begin(state); in platform_suspend_begin()
311 else if (suspend_ops && suspend_ops->end) in platform_resume_end()
312 suspend_ops->end(); in platform_resume_end()
317 if (state != PM_SUSPEND_TO_IDLE && suspend_ops->recover) in platform_recover()
318 suspend_ops->recover(); in platform_recover()
323 return state != PM_SUSPEND_TO_IDLE && suspend_ops->suspend_again ? in platform_suspend_again()
324 suspend_ops->suspend_again() : false; in platform_suspend_again()
461 error = suspend_ops->enter(state); in suspend_enter()