Home
last modified time | relevance | path

Searched refs:revents (Results 1 – 25 of 69) sorted by relevance

123

/hardware/interfaces/wifi/netlinkinterceptor/aidl/default/
Dutil.cpp23 bool isSocketReadable(const short revents) { return 0 != (revents & POLLIN); } in isSocketReadable() argument
25 bool isSocketBad(const short revents) { in isSocketBad() argument
26 return 0 != (revents & (POLLERR | POLLHUP | POLLNVAL)); in isSocketBad()
Dutil.h42 bool isSocketReadable(short revents);
50 bool isSocketBad(short revents);
/hardware/qcom/audio/legacy/alsa_sound/
DAudioUsbALSA.cpp688 pfdProxyPlayback[0].revents = 0; in pollForProxyData()
689 pfdProxyPlayback[1].revents = 0; in pollForProxyData()
693 if (pfdProxyPlayback[1].revents & POLLIN) { in pollForProxyData()
697 pfdProxyPlayback[1].revents = 0; in pollForProxyData()
701 pfdProxyPlayback[0].revents = 0; in pollForProxyData()
702 pfdProxyPlayback[1].revents = 0; in pollForProxyData()
708 } else if (pfdProxyPlayback[1].revents & POLLERR || pfdProxyPlayback[1].revents & POLLHUP || in pollForProxyData()
709 pfdProxyPlayback[1].revents & POLLNVAL) { in pollForProxyData()
712 pfdProxyPlayback[0].revents = 0; in pollForProxyData()
713 pfdProxyPlayback[1].revents = 0; in pollForProxyData()
[all …]
/hardware/invensense/65xx/libsensors_iio/
Dsensors_mpl.cpp143 mPollFds[mpl].revents = 0; in sensors_poll_context_t()
147 mPollFds[compass].revents = 0; in sensors_poll_context_t()
151 mPollFds[dmpOrient].revents = 0; in sensors_poll_context_t()
155 mPollFds[dmpSign].revents = 0; in sensors_poll_context_t()
159 mPollFds[dmpPed].revents = 0; in sensors_poll_context_t()
171 mPollFds[numSensorDrivers].revents = 0; in sensors_poll_context_t()
218 if (mPollFds[i].revents & (POLLIN | POLLPRI)) { in pollEvents()
222 mPollFds[i].revents = 0; in pollEvents()
225 mPollFds[i].revents = 0; in pollEvents()
229 mPollFds[dmpOrient].revents= 0; in pollEvents()
[all …]
/hardware/invensense/6515/libsensors_iio/
Dsensors_mpl.cpp171 mPollFds[mpl].revents = 0; in sensors_poll_context_t()
175 mPollFds[compass].revents = 0; in sensors_poll_context_t()
179 mPollFds[dmpOrient].revents = 0; in sensors_poll_context_t()
183 mPollFds[dmpSign].revents = 0; in sensors_poll_context_t()
187 mPollFds[dmpPed].revents = 0; in sensors_poll_context_t()
269 if (mPollFds[i].revents & (POLLIN | POLLPRI)) { in pollEvents()
273 mPollFds[i].revents = 0; in pollEvents()
276 mPollFds[i].revents = 0; in pollEvents()
280 mPollFds[dmpOrient].revents= 0; in pollEvents()
289 mPollFds[i].revents = 0; in pollEvents()
[all …]
/hardware/interfaces/camera/provider/default/
DExternalCameraProvider.cpp314 mPollFd.revents = 0; in threadLoop()
318 mPollFd.revents = 0; in threadLoop()
320 } else if (mPollFd.revents & POLLERR) { in threadLoop()
322 mPollFd.revents = 0; in threadLoop()
324 } else if (mPollFd.revents & POLLHUP) { in threadLoop()
326 mPollFd.revents = 0; in threadLoop()
328 } else if (mPollFd.revents & POLLNVAL) { in threadLoop()
330 mPollFd.revents = 0; in threadLoop()
334 mPollFd.revents = 0; in threadLoop()
/hardware/interfaces/wifi/netlinkinterceptor/vts/functional/
Dinterceptor_aidl_test.cpp107 static bool isSocketReadable(const short revents) { in isSocketReadable() argument
108 return 0 != (revents & POLLIN); in isSocketReadable()
111 static bool isSocketBad(const short revents) { in isSocketBad() argument
112 return 0 != (revents & (POLLERR | POLLHUP | POLLNVAL)); in isSocketBad()
124 const auto nlsockEvents = fds[0].revents; in multicastReceiver()
/hardware/qcom/sm8150/media/hypv-intercept/
Dhypv_intercept.cpp298 if ((exit_fd.revents & POLLIN) || (exit_fd.revents & POLLERR)) { in exit_thread()
331 fds[1].revents = fds[0].revents = 0; in hypv_poll()
356 fds[1].revents = POLLIN; in hypv_poll()
360 fds[0].revents = handle->event_flags[handle->event_q_front++]; in hypv_poll()
363 fds[0].fd, fds[0].revents, in hypv_poll()
/hardware/st/nfc/st21nfc/adaptation/
Di2clayer.cc101 event_table[0].revents = 0; in I2cWorkerThread()
105 event_table[1].revents = 0; in I2cWorkerThread()
109 event_table[2].revents = 0; in I2cWorkerThread()
125 if (event_table[0].revents & POLLIN) { in I2cWorkerThread()
190 if (event_table[1].revents & POLLIN) { in I2cWorkerThread()
225 if (event_table[2].revents & POLLPRI && eventNum > 2) { in I2cWorkerThread()
/hardware/st/nfc/1.0/adaptation/
Di2clayer.c89 event_table[0].revents = 0; in I2cWorkerThread()
93 event_table[1].revents = 0; in I2cWorkerThread()
104 if (event_table[0].revents & POLLIN) { in I2cWorkerThread()
164 if (event_table[1].revents & POLLIN) { in I2cWorkerThread()
/hardware/libhardware_legacy/
Duevent.c82 fds.revents = 0; in uevent_next_event()
85 if(nr > 0 && (fds.revents & POLLIN)) { in uevent_next_event()
/hardware/interfaces/tv/cec/1.0/default/
DHdmiCecDefault.cpp363 ufds[0].revents = 0; in event_thread()
364 ufds[1].revents = 0; in event_thread()
365 ufds[2].revents = 0; in event_thread()
373 if (ufds[2].revents == POLLIN) { /* Exit */ in event_thread()
377 if (ufds[1].revents == POLLERR) { /* CEC Event */ in event_thread()
402 if (ufds[0].revents == POLLIN) { /* CEC Driver */ in event_thread()
/hardware/qcom/display/msm8909/sdm/libs/core/drm/
Dhw_events_drm.cpp233 if ((poll_fd.revents & POLLIN) && in DisplayEventHandler()
242 if (poll_fd.fd >= 0 && (poll_fd.revents & POLLPRI) && in DisplayEventHandler()
273 if (poll_fds_[vsync_index_].revents & (POLLIN | POLLPRI)) { in HandleVSync()
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/drm/
Dhw_events_drm.cpp233 if ((poll_fd.revents & POLLIN) && in DisplayEventHandler()
242 if (poll_fd.fd >= 0 && (poll_fd.revents & POLLPRI) && in DisplayEventHandler()
273 if (poll_fds_[vsync_index_].revents & (POLLIN | POLLPRI)) { in HandleVSync()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c301 if ((poll_cb->poll_fds[0].revents & POLLIN) && in mm_camera_poll_fn()
302 (poll_cb->poll_fds[0].revents & POLLRDNORM)) { in mm_camera_poll_fn()
310 (poll_cb->poll_fds[i].revents & POLLPRI)) { in mm_camera_poll_fn()
318 (poll_cb->poll_fds[i].revents & POLLIN) && in mm_camera_poll_fn()
319 (poll_cb->poll_fds[i].revents & POLLRDNORM)) { in mm_camera_poll_fn()
/hardware/qcom/display/msm8998/sdm/libs/core/drm/
Dhw_events_drm.cpp239 if ((poll_fd.revents & POLLIN) && in DisplayEventHandler()
250 if (poll_fd.fd >= 0 && (poll_fd.revents & POLLPRI) && in DisplayEventHandler()
281 if (poll_fds_[vsync_index_].revents & (POLLIN | POLLPRI)) { in HandleVSync()
/hardware/qcom/audio/hal/audio_extn/
Dsndmonitor.c504 #define READY_TO_READ(p) ((p)->revents & (POLLIN|POLLPRI)) in monitor_thread_loop()
505 #define ERROR_IN_FD(p) ((p)->revents & (POLLERR|POLLHUP|POLLNVAL)) in monitor_thread_loop()
519 pfd[0].revents); in monitor_thread_loop()
534 pfd[i].revents); in monitor_thread_loop()
550 pfd[i].revents); in monitor_thread_loop()
/hardware/qcom/wlan/wcn6740/cld80211-lib/
Dcld80211_lib.c440 pfd[0].revents = 0; in cld80211_recv()
441 pfd[1].revents = 0; in cld80211_recv()
445 } else if (pfd[0].revents & (POLLIN | POLLHUP | POLLERR)) { in cld80211_recv()
446 cld80211_handle_event(pfd[0].revents, ctx->sock, cb); in cld80211_recv()
/hardware/qcom/wlan/legacy/cld80211-lib/
Dcld80211_lib.c429 pfd[0].revents = 0; in cld80211_recv()
430 pfd[1].revents = 0; in cld80211_recv()
434 } else if (pfd[0].revents & (POLLIN | POLLHUP | POLLERR)) { in cld80211_recv()
435 cld80211_handle_event(pfd[0].revents, ctx->sock, cb); in cld80211_recv()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Dmpu_iio.c465 VARVAL("%d", dmp_feat[i].pollfd->revents); in dump_dmp_event_struct()
474 VARVAL("%d", pollfds[i].revents); in dump_dmp_event_struct()
495 pollfds[j].revents = 0; in init_dmp_event_fds()
529 if (dmp_feat[i].pollfd->revents != 0) { in poll_dmp_event_fds()
543 dmp_feat[i].pollfd->revents = 0; in poll_dmp_event_fds()
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/fb/
Dhw_events.cpp192 if ((poll_fd.revents & POLLIN) && (Sys::read_(poll_fd.fd, data, kMaxStringLength) > 0)) { in DisplayEventHandler()
196 if ((poll_fd.revents & POLLPRI) && in DisplayEventHandler()
/hardware/qcom/display/msm8998/sdm/libs/core/fb/
Dhw_events.cpp203 if ((poll_fd.revents & POLLIN) && (Sys::read_(poll_fd.fd, data, kMaxStringLength) > 0)) { in DisplayEventHandler()
207 if ((poll_fd.revents & POLLPRI) && in DisplayEventHandler()
/hardware/qcom/display/msm8909/sdm/libs/core/fb/
Dhw_events.cpp192 if ((poll_fd.revents & POLLIN) && (Sys::read_(poll_fd.fd, data, kMaxStringLength) > 0)) { in DisplayEventHandler()
196 if ((poll_fd.revents & POLLPRI) && in DisplayEventHandler()
/hardware/google/pixel/power-libperfmgr/disp-power/
DInteractionHandler.cpp256 else if (pfd[0].revents) in WaitForIdle()
258 else if (pfd[1].revents) in WaitForIdle()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/gesture_test/
Dinv_gesture_test.c595 pfd[i].revents = 0; in init_fds()
606 if(pfd[i].revents != 0) { in parse_events()
632 pfd[i].revents = 0; // no need: reset anyway in parse_events()

123