Lines Matching refs:platform_mode

129 static int platform_begin(int platform_mode)  in platform_begin()  argument
131 return (platform_mode && hibernation_ops) ? in platform_begin()
139 static void platform_end(int platform_mode) in platform_end() argument
141 if (platform_mode && hibernation_ops) in platform_end()
153 static int platform_pre_snapshot(int platform_mode) in platform_pre_snapshot() argument
155 return (platform_mode && hibernation_ops) ? in platform_pre_snapshot()
168 static void platform_leave(int platform_mode) in platform_leave() argument
170 if (platform_mode && hibernation_ops) in platform_leave()
183 static void platform_finish(int platform_mode) in platform_finish() argument
185 if (platform_mode && hibernation_ops) in platform_finish()
199 static int platform_pre_restore(int platform_mode) in platform_pre_restore() argument
201 return (platform_mode && hibernation_ops) ? in platform_pre_restore()
216 static void platform_restore_cleanup(int platform_mode) in platform_restore_cleanup() argument
218 if (platform_mode && hibernation_ops) in platform_restore_cleanup()
226 static void platform_recover(int platform_mode) in platform_recover() argument
228 if (platform_mode && hibernation_ops && hibernation_ops->recover) in platform_recover()
274 static int create_image(int platform_mode) in create_image() argument
284 error = platform_pre_snapshot(platform_mode); in create_image()
320 platform_leave(platform_mode); in create_image()
337 platform_finish(platform_mode); in create_image()
351 int hibernation_snapshot(int platform_mode) in hibernation_snapshot() argument
357 error = platform_begin(platform_mode); in hibernation_snapshot()
392 platform_recover(platform_mode); in hibernation_snapshot()
394 error = create_image(platform_mode); in hibernation_snapshot()
416 platform_end(platform_mode); in hibernation_snapshot()
440 static int resume_target_kernel(bool platform_mode) in resume_target_kernel() argument
450 error = platform_pre_restore(platform_mode); in resume_target_kernel()
500 platform_restore_cleanup(platform_mode); in resume_target_kernel()
515 int hibernation_restore(int platform_mode) in hibernation_restore() argument
524 error = resume_target_kernel(platform_mode); in hibernation_restore()