Lines Matching refs:hibernation_ops
49 static struct platform_hibernation_ops *hibernation_ops; variable
65 hibernation_ops = ops; in hibernation_set_ops()
118 return (platform_mode && hibernation_ops) ? in platform_begin()
119 hibernation_ops->begin() : 0; in platform_begin()
129 if (platform_mode && hibernation_ops) in platform_end()
130 hibernation_ops->end(); in platform_end()
140 return (platform_mode && hibernation_ops) ? in platform_pre_snapshot()
141 hibernation_ops->pre_snapshot() : 0; in platform_pre_snapshot()
151 if (platform_mode && hibernation_ops) in platform_leave()
152 hibernation_ops->leave(); in platform_leave()
162 if (platform_mode && hibernation_ops) in platform_finish()
163 hibernation_ops->finish(); in platform_finish()
174 return (platform_mode && hibernation_ops) ? in platform_pre_restore()
175 hibernation_ops->pre_restore() : 0; in platform_pre_restore()
187 if (platform_mode && hibernation_ops) in platform_restore_cleanup()
188 hibernation_ops->restore_cleanup(); in platform_restore_cleanup()
198 if (platform_mode && hibernation_ops && hibernation_ops->recover) in platform_recover()
199 hibernation_ops->recover(); in platform_recover()
420 if (!hibernation_ops) in hibernation_platform_enter()
428 error = hibernation_ops->begin(); in hibernation_platform_enter()
436 if (hibernation_ops->recover) in hibernation_platform_enter()
437 hibernation_ops->recover(); in hibernation_platform_enter()
441 error = hibernation_ops->prepare(); in hibernation_platform_enter()
454 hibernation_ops->enter(); in hibernation_platform_enter()
466 hibernation_ops->finish(); in hibernation_platform_enter()
472 hibernation_ops->end(); in hibernation_platform_enter()
759 if (hibernation_ops) in disk_show()
803 if (hibernation_ops) in disk_store()