Lines Matching refs:error
357 int error; in suspend_prepare() local
364 error = pm_notifier_call_chain_robust(PM_SUSPEND_PREPARE, PM_POST_SUSPEND); in suspend_prepare()
365 if (error) in suspend_prepare()
369 error = suspend_freeze_processes(); in suspend_prepare()
371 if (!error) in suspend_prepare()
380 return error; in suspend_prepare()
404 int error, last_dev; in suspend_enter() local
406 error = platform_suspend_prepare(state); in suspend_enter()
407 if (error) in suspend_enter()
410 error = dpm_suspend_late(PMSG_SUSPEND); in suspend_enter()
411 if (error) { in suspend_enter()
419 error = platform_suspend_prepare_late(state); in suspend_enter()
420 if (error) in suspend_enter()
423 error = dpm_suspend_noirq(PMSG_SUSPEND); in suspend_enter()
424 if (error) { in suspend_enter()
432 error = platform_suspend_prepare_noirq(state); in suspend_enter()
433 if (error) in suspend_enter()
444 error = pm_sleep_disable_secondary_cpus(); in suspend_enter()
445 if (error || suspend_test(TEST_CPUS)) { in suspend_enter()
455 error = syscore_suspend(); in suspend_enter()
456 if (!error) { in suspend_enter()
461 error = suspend_ops->enter(state); in suspend_enter()
466 error = -EBUSY; in suspend_enter()
491 return error; in suspend_enter()
500 int error; in suspend_devices_and_enter() local
511 error = platform_suspend_begin(state); in suspend_devices_and_enter()
512 if (error) in suspend_devices_and_enter()
517 error = dpm_suspend_start(PMSG_SUSPEND); in suspend_devices_and_enter()
518 if (error) { in suspend_devices_and_enter()
529 error = suspend_enter(state, &wakeup); in suspend_devices_and_enter()
530 } while (!error && !wakeup && platform_suspend_again(state)); in suspend_devices_and_enter()
545 return error; in suspend_devices_and_enter()
575 int error; in enter_state() local
602 error = suspend_prepare(state); in enter_state()
603 if (error) in enter_state()
612 error = suspend_devices_and_enter(state); in enter_state()
621 return error; in enter_state()
633 int error; in pm_suspend() local
639 error = enter_state(state); in pm_suspend()
640 if (error) { in pm_suspend()
642 dpm_save_failed_errno(error); in pm_suspend()
647 return error; in pm_suspend()