Lines Matching refs:platform_mode
116 static int platform_begin(int platform_mode) in platform_begin() argument
118 return (platform_mode && hibernation_ops) ? in platform_begin()
127 static void platform_end(int platform_mode) in platform_end() argument
129 if (platform_mode && hibernation_ops) in platform_end()
138 static int platform_pre_snapshot(int platform_mode) in platform_pre_snapshot() argument
140 return (platform_mode && hibernation_ops) ? in platform_pre_snapshot()
149 static void platform_leave(int platform_mode) in platform_leave() argument
151 if (platform_mode && hibernation_ops) in platform_leave()
160 static void platform_finish(int platform_mode) in platform_finish() argument
162 if (platform_mode && hibernation_ops) in platform_finish()
172 static int platform_pre_restore(int platform_mode) in platform_pre_restore() argument
174 return (platform_mode && hibernation_ops) ? in platform_pre_restore()
185 static void platform_restore_cleanup(int platform_mode) in platform_restore_cleanup() argument
187 if (platform_mode && hibernation_ops) in platform_restore_cleanup()
196 static void platform_recover(int platform_mode) in platform_recover() argument
198 if (platform_mode && hibernation_ops && hibernation_ops->recover) in platform_recover()
208 static int create_image(int platform_mode) in create_image() argument
249 platform_leave(platform_mode); in create_image()
273 int hibernation_snapshot(int platform_mode) in hibernation_snapshot() argument
277 error = platform_begin(platform_mode); in hibernation_snapshot()
294 error = platform_pre_snapshot(platform_mode); in hibernation_snapshot()
306 error = create_image(platform_mode); in hibernation_snapshot()
312 platform_finish(platform_mode); in hibernation_snapshot()
318 platform_end(platform_mode); in hibernation_snapshot()
322 platform_recover(platform_mode); in hibernation_snapshot()
386 int hibernation_restore(int platform_mode) in hibernation_restore() argument
396 error = platform_pre_restore(platform_mode); in hibernation_restore()
403 platform_restore_cleanup(platform_mode); in hibernation_restore()