Lines Matching refs:ret
175 int ret = chre_slpi_wait_on_thread_exit();
177 LOGE("Detected unexpected CHRE thread exit (%d)\n", ret);
197 int ret = chre_slpi_initialize_reverse_monitor();
198 if (ret != CHRE_FASTRPC_SUCCESS) {
199 LOGE("Failed to initialize reverse monitor on SLPI: %d", ret);
223 int ret;
225 if ((ret = pthread_mutex_init(&data->mutex, NULL)) != 0) {
226 LOG_ERROR("Failed to initialize mutex", ret);
227 } else if ((ret = pthread_cond_init(&data->cond, NULL)) != 0) {
228 LOG_ERROR("Failed to initialize condition variable", ret);
246 int ret = pthread_create(thread_handle, NULL, thread_entry, arg);
247 if (ret != 0) {
248 LOG_ERROR("pthread_create failed", ret);
250 return (ret == 0);
271 int ret = chre_slpi_deliver_message_from_host(
273 if (ret != 0) {
274 LOGE("Failed to deliver message from host to CHRE: %d", ret);
282 int ret = -1;
290 } else if ((ret = chre_slpi_start_thread()) != CHRE_FASTRPC_SUCCESS) {
291 LOGE("Failed to start CHRE on SLPI: %d", ret);
305 ret = chre_slpi_stop_thread();
306 if (ret != CHRE_FASTRPC_SUCCESS) {
307 LOGE("Failed to stop CHRE on SLPI: %d", ret);
311 ret = pthread_join(monitor_thread, NULL);
312 if (ret != 0) {
313 LOG_ERROR("Join on monitor thread failed", ret);
318 ret = pthread_join(reverse_monitor.thread, NULL);
319 if (ret != 0) {
320 LOG_ERROR("Join on reverse monitor thread failed", ret);
324 ret = pthread_join(msg_to_host_thread, NULL);
325 if (ret != 0) {
326 LOG_ERROR("Join on monitor thread failed", ret);
333 return ret;