• Home
  • Raw
  • Download

Lines Matching refs:error

176 	int error;  in mem_sleep_store()  local
178 error = pm_autosleep_lock(); in mem_sleep_store()
179 if (error) in mem_sleep_store()
180 return error; in mem_sleep_store()
183 error = -EBUSY; in mem_sleep_store()
191 error = -EINVAL; in mem_sleep_store()
195 return error ? error : n; in mem_sleep_store()
271 int error = -EINVAL; in pm_test_store() local
285 error = 0; in pm_test_store()
291 return error ? error : n; in pm_test_store()
623 int error; in state_store() local
625 error = pm_autosleep_lock(); in state_store()
626 if (error) in state_store()
627 return error; in state_store()
630 error = -EBUSY; in state_store()
639 error = pm_suspend(state); in state_store()
641 error = hibernate(); in state_store()
643 error = -EINVAL; in state_store()
648 return error ? error : n; in state_store()
697 int error; in wakeup_count_store() local
699 error = pm_autosleep_lock(); in wakeup_count_store()
700 if (error) in wakeup_count_store()
701 return error; in wakeup_count_store()
704 error = -EBUSY; in wakeup_count_store()
708 error = -EINVAL; in wakeup_count_store()
711 error = n; in wakeup_count_store()
718 return error; in wakeup_count_store()
750 int error; in autosleep_store() local
759 error = pm_autosleep_set_state(state); in autosleep_store()
760 return error ? error : n; in autosleep_store()
778 int error = pm_wake_lock(buf); in wake_lock_store() local
779 return error ? error : n; in wake_lock_store()
795 int error = pm_wake_unlock(buf); in wake_unlock_store() local
796 return error ? error : n; in wake_unlock_store()
924 int error = pm_start_workqueue(); in pm_init() local
925 if (error) in pm_init()
926 return error; in pm_init()
933 error = sysfs_create_groups(power_kobj, attr_groups); in pm_init()
934 if (error) in pm_init()
935 return error; in pm_init()