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()
342 int error; in state_store() local
344 error = pm_autosleep_lock(); in state_store()
345 if (error) in state_store()
346 return error; in state_store()
349 error = -EBUSY; in state_store()
355 error = pm_suspend(state); in state_store()
357 error = hibernate(); in state_store()
359 error = -EINVAL; in state_store()
363 return error ? error : n; in state_store()
412 int error; in wakeup_count_store() local
414 error = pm_autosleep_lock(); in wakeup_count_store()
415 if (error) in wakeup_count_store()
416 return error; in wakeup_count_store()
419 error = -EBUSY; in wakeup_count_store()
423 error = -EINVAL; in wakeup_count_store()
426 error = n; in wakeup_count_store()
433 return error; in wakeup_count_store()
465 int error; in autosleep_store() local
471 error = pm_autosleep_set_state(state); in autosleep_store()
472 return error ? error : n; in autosleep_store()
490 int error = pm_wake_lock(buf); in wake_lock_store() local
491 return error ? error : n; in wake_lock_store()
507 int error = pm_wake_unlock(buf); in wake_unlock_store() local
508 return error ? error : n; in wake_unlock_store()
631 int error = pm_start_workqueue(); in pm_init() local
632 if (error) in pm_init()
633 return error; in pm_init()
639 error = sysfs_create_group(power_kobj, &attr_group); in pm_init()
640 if (error) in pm_init()
641 return error; in pm_init()