Lines Matching refs:ret
99 int ret; in autosuspend_earlysuspend_enable() local
103 ret = write(sPowerStatefd, pwr_state_mem, strlen(pwr_state_mem)); in autosuspend_earlysuspend_enable()
104 if (ret < 0) { in autosuspend_earlysuspend_enable()
123 return ret; in autosuspend_earlysuspend_enable()
129 int ret; in autosuspend_earlysuspend_disable() local
133 ret = TEMP_FAILURE_RETRY(write(sPowerStatefd, pwr_state_on, strlen(pwr_state_on))); in autosuspend_earlysuspend_disable()
134 if (ret < 0) { in autosuspend_earlysuspend_disable()
153 return ret; in autosuspend_earlysuspend_disable()
164 int ret; in start_earlysuspend_thread() local
166 ret = access(EARLYSUSPEND_WAIT_FOR_FB_SLEEP, F_OK); in start_earlysuspend_thread()
167 if (ret < 0) { in start_earlysuspend_thread()
171 ret = access(EARLYSUSPEND_WAIT_FOR_FB_WAKE, F_OK); in start_earlysuspend_thread()
172 if (ret < 0) { in start_earlysuspend_thread()
179 ret = pthread_create(&earlysuspend_thread, NULL, earlysuspend_thread_func, NULL); in start_earlysuspend_thread()
180 if (ret) { in start_earlysuspend_thread()
192 int ret; in autosuspend_earlysuspend_init() local
202 ret = TEMP_FAILURE_RETRY(write(sPowerStatefd, "on", 2)); in autosuspend_earlysuspend_init()
203 if (ret < 0) { in autosuspend_earlysuspend_init()