Lines Matching refs:hibernation_ops
69 static const struct platform_hibernation_ops *hibernation_ops; variable
103 hibernation_ops = ops; in hibernation_set_ops()
146 return (platform_mode && hibernation_ops) ? in platform_begin()
147 hibernation_ops->begin(PMSG_FREEZE) : 0; in platform_begin()
156 if (platform_mode && hibernation_ops) in platform_end()
157 hibernation_ops->end(); in platform_end()
170 return (platform_mode && hibernation_ops) ? in platform_pre_snapshot()
171 hibernation_ops->pre_snapshot() : 0; in platform_pre_snapshot()
185 if (platform_mode && hibernation_ops) in platform_leave()
186 hibernation_ops->leave(); in platform_leave()
200 if (platform_mode && hibernation_ops) in platform_finish()
201 hibernation_ops->finish(); in platform_finish()
216 return (platform_mode && hibernation_ops) ? in platform_pre_restore()
217 hibernation_ops->pre_restore() : 0; in platform_pre_restore()
233 if (platform_mode && hibernation_ops) in platform_restore_cleanup()
234 hibernation_ops->restore_cleanup(); in platform_restore_cleanup()
243 if (platform_mode && hibernation_ops && hibernation_ops->recover) in platform_recover()
244 hibernation_ops->recover(); in platform_recover()
561 if (!hibernation_ops) in hibernation_platform_enter()
569 error = hibernation_ops->begin(PMSG_HIBERNATE); in hibernation_platform_enter()
577 if (hibernation_ops->recover) in hibernation_platform_enter()
578 hibernation_ops->recover(); in hibernation_platform_enter()
586 error = hibernation_ops->prepare(); in hibernation_platform_enter()
602 hibernation_ops->enter(); in hibernation_platform_enter()
615 hibernation_ops->finish(); in hibernation_platform_enter()
625 hibernation_ops->end(); in hibernation_platform_enter()
645 hibernation_mode = hibernation_ops ? in power_down()
1083 if (hibernation_ops) in disk_show()
1131 if (hibernation_ops) in disk_store()