• Home
  • Raw
  • Download

Lines Matching refs:error

170 	int error;  in mem_sleep_store()  local
172 error = pm_autosleep_lock(); in mem_sleep_store()
173 if (error) in mem_sleep_store()
174 return error; in mem_sleep_store()
177 error = -EBUSY; in mem_sleep_store()
185 error = -EINVAL; in mem_sleep_store()
189 return error ? error : n; in mem_sleep_store()
267 int error = -EINVAL; in pm_test_store() local
278 error = 0; in pm_test_store()
284 return error ? error : n; in pm_test_store()
645 int error; in state_store() local
647 error = pm_autosleep_lock(); in state_store()
648 if (error) in state_store()
649 return error; in state_store()
652 error = -EBUSY; in state_store()
661 error = pm_suspend(state); in state_store()
663 error = hibernate(); in state_store()
665 error = -EINVAL; in state_store()
670 return error ? error : n; in state_store()
719 int error; in wakeup_count_store() local
721 error = pm_autosleep_lock(); in wakeup_count_store()
722 if (error) in wakeup_count_store()
723 return error; in wakeup_count_store()
726 error = -EBUSY; in wakeup_count_store()
730 error = -EINVAL; in wakeup_count_store()
733 error = n; in wakeup_count_store()
740 return error; in wakeup_count_store()
772 int error; in autosleep_store() local
781 error = pm_autosleep_set_state(state); in autosleep_store()
782 return error ? error : n; in autosleep_store()
800 int error = pm_wake_lock(buf); in wake_lock_store() local
801 return error ? error : n; in wake_lock_store()
817 int error = pm_wake_unlock(buf); in wake_unlock_store() local
818 return error ? error : n; in wake_unlock_store()
946 int error = pm_start_workqueue(); in pm_init() local
947 if (error) in pm_init()
948 return error; in pm_init()
955 error = sysfs_create_groups(power_kobj, attr_groups); in pm_init()
956 if (error) in pm_init()
957 return error; in pm_init()