Lines Matching refs:error
345 int error; in suspend_prepare() local
352 error = pm_notifier_call_chain_robust(PM_SUSPEND_PREPARE, PM_POST_SUSPEND); in suspend_prepare()
353 if (error) in suspend_prepare()
357 error = suspend_freeze_processes(); in suspend_prepare()
359 if (!error) in suspend_prepare()
368 return error; in suspend_prepare()
392 int error, last_dev; in suspend_enter() local
394 error = platform_suspend_prepare(state); in suspend_enter()
395 if (error) in suspend_enter()
398 error = dpm_suspend_late(PMSG_SUSPEND); in suspend_enter()
399 if (error) { in suspend_enter()
407 error = platform_suspend_prepare_late(state); in suspend_enter()
408 if (error) in suspend_enter()
411 error = dpm_suspend_noirq(PMSG_SUSPEND); in suspend_enter()
412 if (error) { in suspend_enter()
420 error = platform_suspend_prepare_noirq(state); in suspend_enter()
421 if (error) in suspend_enter()
432 error = suspend_disable_secondary_cpus(); in suspend_enter()
433 if (error || suspend_test(TEST_CPUS)) { in suspend_enter()
443 error = syscore_suspend(); in suspend_enter()
444 if (!error) { in suspend_enter()
449 error = suspend_ops->enter(state); in suspend_enter()
453 error = -EBUSY; in suspend_enter()
478 return error; in suspend_enter()
487 int error; in suspend_devices_and_enter() local
498 error = platform_suspend_begin(state); in suspend_devices_and_enter()
499 if (error) in suspend_devices_and_enter()
504 error = dpm_suspend_start(PMSG_SUSPEND); in suspend_devices_and_enter()
505 if (error) { in suspend_devices_and_enter()
516 error = suspend_enter(state, &wakeup); in suspend_devices_and_enter()
517 } while (!error && !wakeup && platform_suspend_again(state)); in suspend_devices_and_enter()
530 return error; in suspend_devices_and_enter()
560 int error; in enter_state() local
587 error = suspend_prepare(state); in enter_state()
588 if (error) in enter_state()
597 error = suspend_devices_and_enter(state); in enter_state()
606 return error; in enter_state()
618 int error; in pm_suspend() local
624 error = enter_state(state); in pm_suspend()
625 if (error) { in pm_suspend()
627 dpm_save_failed_errno(error); in pm_suspend()
632 return error; in pm_suspend()