Lines Matching refs:s2idle_ops
58 static const struct platform_s2idle_ops *s2idle_ops; variable
79 s2idle_ops = ops; in s2idle_set_ops()
132 if (s2idle_ops && s2idle_ops->wake) { in s2idle_loop()
133 if (s2idle_ops->wake()) in s2idle_loop()
252 return state == PM_SUSPEND_TO_IDLE && s2idle_ops && s2idle_ops->prepare ? in platform_suspend_prepare_late()
253 s2idle_ops->prepare() : 0; in platform_suspend_prepare_late()
259 return s2idle_ops && s2idle_ops->prepare_late ? in platform_suspend_prepare_noirq()
260 s2idle_ops->prepare_late() : 0; in platform_suspend_prepare_noirq()
268 if (s2idle_ops && s2idle_ops->restore_early) in platform_resume_noirq()
269 s2idle_ops->restore_early(); in platform_resume_noirq()
277 if (state == PM_SUSPEND_TO_IDLE && s2idle_ops && s2idle_ops->restore) in platform_resume_early()
278 s2idle_ops->restore(); in platform_resume_early()
289 if (state == PM_SUSPEND_TO_IDLE && s2idle_ops && s2idle_ops->begin) in platform_suspend_begin()
290 return s2idle_ops->begin(); in platform_suspend_begin()
299 if (state == PM_SUSPEND_TO_IDLE && s2idle_ops && s2idle_ops->end) in platform_resume_end()
300 s2idle_ops->end(); in platform_resume_end()