/aosp12/packages/modules/adb/fdevent/ |
H A D | fdevent_poll.cpp | 90 for (const auto& pollfd : pollfds) { in dump_pollfds() local 92 if (pollfd.events & POLLIN) { in dump_pollfds() 95 if (pollfd.events & POLLOUT) { in dump_pollfds() 98 android::base::StringAppendF(&result, " %d(%s)", pollfd.fd, op.c_str()); in dump_pollfds() 154 for (const auto& pollfd : pollfds) { in Loop() local 156 if (pollfd.revents & POLLIN) { in Loop() 159 if (pollfd.revents & POLLOUT) { in Loop() 162 if (pollfd.revents & (POLLERR | POLLHUP | POLLNVAL)) { in Loop() 168 if (pollfd.revents & POLLRDHUP) { in Loop() 173 auto it = this->installed_fdevents_.find(pollfd.fd); in Loop()
|
H A D | fdevent_poll.h | 33 adb_pollfd pollfd; member 36 memset(&pollfd, 0, sizeof(pollfd)); in PollNode() 37 pollfd.fd = fde->fd.get(); in PollNode() 42 pollfd.events = POLLRDHUP; in PollNode()
|
/aosp12/bionic/tests/headers/posix/ |
H A D | poll_h.c | 34 TYPE(struct pollfd); in poll_h() 35 STRUCT_MEMBER(struct pollfd, int, fd); in poll_h() 36 STRUCT_MEMBER(struct pollfd, short, events); in poll_h() 37 STRUCT_MEMBER(struct pollfd, short, revents); in poll_h() 52 FUNCTION(poll, int (*f)(struct pollfd[], nfds_t, int)); in poll_h()
|
/aosp12/bionic/libc/include/bits/fortify/ |
H A D | poll.h | 33 int __poll_chk(struct pollfd*, nfds_t, int, size_t) __INTRODUCED_IN(23); 34 int __ppoll_chk(struct pollfd*, nfds_t, const struct timespec*, const sigset_t*, size_t) __INTRODUC… 35 int __ppoll64_chk(struct pollfd*, nfds_t, const struct timespec*, const sigset64_t*, size_t) __INTR… 43 int poll(struct pollfd* const fds __pass_object_size, nfds_t fd_count, int timeout) in poll() 59 int ppoll(struct pollfd* const fds __pass_object_size, nfds_t fd_count, const struct timespec* time… in ppoll() 76 int ppoll64(struct pollfd* const fds __pass_object_size, nfds_t fd_count, const struct timespec* ti… in ppoll64()
|
/aosp12/system/netd/server/ |
H A D | IptablesRestoreController.cpp | 63 struct pollfd pollfd = { .fd = stdIn, .events = POLLOUT }; in outputReady() local 64 int ret = poll(&pollfd, 1, 0); in outputReady() 69 return (ret == 1) && !(pollfd.revents & POLLERR); in outputReady() 110 struct pollfd pollFds[2]; 293 const struct pollfd &pollfd = process->pollFds[i]; in drainAndWaitForAck() local 294 if (pollfd.revents & POLLIN) { in drainAndWaitForAck() 297 size = TEMP_FAILURE_RETRY(read(pollfd.fd, buffer, sizeof(buffer))); in drainAndWaitForAck() 326 if (pollfd.revents & POLLHUP) { in drainAndWaitForAck()
|
H A D | MDnsSdListener.cpp | 584 mPollFds = (struct pollfd *)calloc(sizeof(struct pollfd), mPollSize); in run() 587 ((int)sizeof(struct pollfd)) * mPollSize); in run() 647 mPollFds = (struct pollfd *)calloc(sizeof(struct pollfd), mPollSize); in rescan() 650 ((int)sizeof(struct pollfd)) * mPollSize); in rescan() 654 memset(mPollFds, 0, sizeof(struct pollfd) * mPollSize); in rescan()
|
/aosp12/bionic/libc/include/ |
H A D | poll.h | 52 int poll(struct pollfd* _Nullable __fds, nfds_t __count, int __timeout_ms); 64 int ppoll(struct pollfd* _Nullable __fds, nfds_t __count, const struct timespec* _Nullable __timeou… 69 int ppoll64(struct pollfd* _Nullable __fds, nfds_t __count, const struct timespec* _Nullable __tim…
|
/aosp12/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/ |
H A D | mpu_iio.c | 56 struct pollfd *pollfd; member 62 static struct pollfd pollfds[FEAT_NUM]; 462 VARVAL("%p", dmp_feat[i].pollfd); in dump_dmp_event_struct() 463 if (dmp_feat[i].pollfd) { in dump_dmp_event_struct() 464 VARVAL("%d", dmp_feat[i].pollfd->events); in dump_dmp_event_struct() 465 VARVAL("%d", dmp_feat[i].pollfd->revents); in dump_dmp_event_struct() 466 VARVAL("%d", dmp_feat[i].pollfd->fd); in dump_dmp_event_struct() 497 dmp_feat[i].pollfd = &pollfds[j]; 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() [all …]
|
/aosp12/bionic/libc/bionic/ |
H A D | poll.cpp | 38 extern "C" int __ppoll(pollfd*, unsigned int, timespec*, const sigset64_t*, size_t); 41 int poll(pollfd* fds, nfds_t fd_count, int ms) { in poll() 51 int ppoll(pollfd* fds, nfds_t fd_count, const timespec* ts, const sigset_t* ss) { in ppoll() 63 int ppoll64(pollfd* fds, nfds_t fd_count, const timespec* ts, const sigset64_t* ss) { in ppoll64()
|
/aosp12/hardware/qcom/display/msm8996/sdm/libs/core/fb/ |
H A D | hw_events.h | 67 pollfd InitializePollFd(HWEventData *event_data); 72 vector<pollfd> poll_fds_;
|
H A D | hw_events.cpp | 80 pollfd HWEvents::InitializePollFd(HWEventData *event_data) { in InitializePollFd() 83 pollfd poll_fd; in InitializePollFd() 207 pollfd &poll_fd = poll_fds_[event]; in DisplayEventHandler()
|
/aosp12/hardware/qcom/display/msm8909/sdm/libs/core/fb/ |
H A D | hw_events.h | 68 pollfd InitializePollFd(HWEventData *event_data); 73 vector<pollfd> poll_fds_ = {};
|
H A D | hw_events.cpp | 52 pollfd HWEvents::InitializePollFd(HWEventData *event_data) { in InitializePollFd() 55 pollfd poll_fd = {0}; in InitializePollFd() 189 pollfd &poll_fd = poll_fds_[event]; in DisplayEventHandler()
|
/aosp12/hardware/qcom/display/msm8909w_3100/sdm/libs/core/fb/ |
H A D | hw_events.h | 68 pollfd InitializePollFd(HWEventData *event_data); 73 vector<pollfd> poll_fds_ = {};
|
H A D | hw_events.cpp | 52 pollfd HWEvents::InitializePollFd(HWEventData *event_data) { in InitializePollFd() 55 pollfd poll_fd = {0}; in InitializePollFd() 189 pollfd &poll_fd = poll_fds_[event]; in DisplayEventHandler()
|
/aosp12/hardware/qcom/display/msm8998/sdm/libs/core/fb/ |
H A D | hw_events.h | 70 pollfd InitializePollFd(HWEventData *event_data); 75 vector<pollfd> poll_fds_ = {};
|
H A D | hw_events.cpp | 52 pollfd HWEvents::InitializePollFd(HWEventData *event_data) { in InitializePollFd() 55 pollfd poll_fd = {0}; in InitializePollFd() 200 pollfd &poll_fd = poll_fds_[event]; in DisplayEventHandler()
|
/aosp12/hardware/qcom/sdm845/display/sdm/libs/core/fb/ |
H A D | hw_events.h | 74 pollfd InitializePollFd(HWEventData *event_data); 79 vector<pollfd> poll_fds_ = {};
|
H A D | hw_events.cpp | 52 pollfd HWEvents::InitializePollFd(HWEventData *event_data) { in InitializePollFd() 55 pollfd poll_fd = {0}; in InitializePollFd() 201 pollfd &poll_fd = poll_fds_[event]; in DisplayEventHandler()
|
/aosp12/hardware/qcom/sm8150/display/sdm/libs/core/fb/ |
H A D | hw_events.h | 73 pollfd InitializePollFd(HWEventData *event_data); 78 vector<pollfd> poll_fds_ = {};
|
H A D | hw_events.cpp | 52 pollfd HWEvents::InitializePollFd(HWEventData *event_data) { in InitializePollFd() 55 pollfd poll_fd = {0}; in InitializePollFd() 200 pollfd &poll_fd = poll_fds_[event]; in DisplayEventHandler()
|
/aosp12/hardware/qcom/sm8150/media/hypv-intercept/ |
H A D | hypv_intercept.cpp | 287 struct pollfd *pfds = (struct pollfd *)fds; in exit_thread() 290 struct pollfd exit_fd; in exit_thread() 306 int hypv_poll(struct pollfd *fds, nfds_t nfds, int timeout) in hypv_poll()
|
/aosp12/bionic/tests/ |
H A D | clang_fortify_tests.cpp | 409 struct pollfd poll_fd = { pipe_fds[0], POLLRDHUP, 0 }; in FORTIFY_TEST() 411 struct pollfd few_fds[] = { poll_fd, poll_fd }; in FORTIFY_TEST() 422 struct pollfd few[2]; in FORTIFY_TEST() 423 struct pollfd extra[1]; in FORTIFY_TEST() 425 static_assert(sizeof(fds) >= sizeof(struct pollfd) * 3, ""); in FORTIFY_TEST()
|
/aosp12/frameworks/base/services/usb/java/com/android/server/usb/ |
H A D | UsbMidiDevice.java | 190 StructPollfd pollfd = new StructPollfd(); in openLocked() local 191 pollfd.fd = fd; in openLocked() 192 pollfd.events = (short)OsConstants.POLLIN; in openLocked() 193 mPollFDs[i] = pollfd; in openLocked()
|
/aosp12/art/dt_fd_forward/ |
H A D | dt_fd_forward.cc | 187 struct pollfd pollfd = { read_fd_, POLLRDHUP, 0 }; in ReadUpToMax() local 188 res = TEMP_FAILURE_RETRY(poll(&pollfd, /*nfds*/1, /*timeout*/0)); in ReadUpToMax() 189 if (res < 0 || (pollfd.revents & POLLERR) == POLLERR) { in ReadUpToMax() 193 return ((pollfd.revents & (POLLRDHUP | POLLHUP)) == 0) ? IOResult::kOk : IOResult::kEOF; in ReadUpToMax() 204 struct pollfd pollfds[2]; in ReadFully()
|