Lines Matching refs:ret
89 int ret; in async_callback_thread_fct() local
92 ret = pthread_mutex_lock(&pcb_data->mutex); in async_callback_thread_fct()
93 if (ret != 0) { in async_callback_thread_fct()
100 ret = pthread_cond_wait(&pcb_data->cond, &pcb_data->mutex); in async_callback_thread_fct()
101 if (ret != 0) { in async_callback_thread_fct()
112 ret = pthread_cond_signal(&pcb_data->cond); in async_callback_thread_fct()
113 if (ret != 0) { in async_callback_thread_fct()
120 ret = pthread_mutex_unlock(&pcb_data->mutex); in async_callback_thread_fct()
121 if (ret != 0) { in async_callback_thread_fct()
130 ret = pthread_mutex_lock(&pcb_data->mutex); in async_callback_thread_fct()
131 if (ret != 0) { in async_callback_thread_fct()
138 ret = pthread_mutex_unlock(&pcb_data->mutex); in async_callback_thread_fct()
139 if (ret != 0) { in async_callback_thread_fct()
149 int ret; in async_callback_thread_start() local
153 ret = pthread_mutex_init(&async_callback_data.mutex, NULL); in async_callback_thread_start()
154 if (ret != 0) { in async_callback_thread_start()
156 return ret; in async_callback_thread_start()
159 ret = pthread_cond_init(&async_callback_data.cond, NULL); in async_callback_thread_start()
160 if (ret != 0) { in async_callback_thread_start()
162 return ret; in async_callback_thread_start()
167 ret = pthread_create(&async_callback_data.thr, NULL, in async_callback_thread_start()
169 if (ret != 0) { in async_callback_thread_start()
172 return ret; in async_callback_thread_start()
180 int ret; in async_callback_thread_end() local
182 ret = pthread_mutex_lock(&async_callback_data.mutex); in async_callback_thread_end()
183 if (ret != 0) { in async_callback_thread_end()
185 return ret; in async_callback_thread_end()
193 ret = pthread_cond_signal(&async_callback_data.cond); in async_callback_thread_end()
194 if (ret != 0) { in async_callback_thread_end()
196 return ret; in async_callback_thread_end()
198 ret = pthread_cond_wait(&async_callback_data.cond, in async_callback_thread_end()
200 if (ret != 0) { in async_callback_thread_end()
206 ret = pthread_mutex_unlock(&async_callback_data.mutex); in async_callback_thread_end()
207 if (ret != 0) { in async_callback_thread_end()
209 return ret; in async_callback_thread_end()
212 ret = pthread_cond_signal(&async_callback_data.cond); in async_callback_thread_end()
213 if (ret != 0) { in async_callback_thread_end()
215 return ret; in async_callback_thread_end()
218 ret = pthread_detach(async_callback_data.thr); in async_callback_thread_end()
219 if (ret != 0) { in async_callback_thread_end()
221 return ret; in async_callback_thread_end()
228 int ret; in async_callback_post() local
234 ret = pthread_mutex_lock(&async_callback_data.mutex); in async_callback_post()
235 if (ret != 0) { in async_callback_post()
248 ret = pthread_cond_wait(&async_callback_data.cond, in async_callback_post()
250 if (ret != 0) { in async_callback_post()
260 ret = pthread_mutex_unlock(&async_callback_data.mutex); in async_callback_post()
261 if (ret != 0) { in async_callback_post()
266 ret = pthread_cond_signal(&async_callback_data.cond); in async_callback_post()
267 if (ret != 0) { in async_callback_post()
316 int ret = (int)data_len; in StNfc_hal_write() local
319 ret = 0; in StNfc_hal_write()
322 if (!ret) { in StNfc_hal_write()
324 return ret; in StNfc_hal_write()
333 return ret; in StNfc_hal_write()
395 int ret = HAL_NFC_STATUS_OK; in StNfc_hal_power_cycle() local
398 ret = HAL_NFC_STATUS_FAILED; in StNfc_hal_power_cycle()
401 if (ret != HAL_NFC_STATUS_OK) { in StNfc_hal_power_cycle()
403 return ret; in StNfc_hal_power_cycle()