Lines Matching refs:error
114 int error = -EINVAL; in pm_test_store() local
125 error = 0; in pm_test_store()
131 return error ? error : n; in pm_test_store()
358 int error; in state_store() local
360 error = pm_autosleep_lock(); in state_store()
361 if (error) in state_store()
362 return error; in state_store()
365 error = -EBUSY; in state_store()
371 error = pm_suspend(state); in state_store()
373 error = hibernate(); in state_store()
375 error = -EINVAL; in state_store()
379 return error ? error : n; in state_store()
428 int error; in wakeup_count_store() local
430 error = pm_autosleep_lock(); in wakeup_count_store()
431 if (error) in wakeup_count_store()
432 return error; in wakeup_count_store()
435 error = -EBUSY; in wakeup_count_store()
439 error = -EINVAL; in wakeup_count_store()
442 error = n; in wakeup_count_store()
449 return error; in wakeup_count_store()
481 int error; in autosleep_store() local
487 error = pm_autosleep_set_state(state); in autosleep_store()
488 return error ? error : n; in autosleep_store()
506 int error = pm_wake_lock(buf); in wake_lock_store() local
507 return error ? error : n; in wake_lock_store()
523 int error = pm_wake_unlock(buf); in wake_unlock_store() local
524 return error ? error : n; in wake_unlock_store()
648 int error = pm_start_workqueue(); in pm_init() local
649 if (error) in pm_init()
650 return error; in pm_init()
656 error = sysfs_create_group(power_kobj, &attr_group); in pm_init()
657 if (error) in pm_init()
658 return error; in pm_init()