/external/chromium_org/content/common/gpu/media/ |
exynos_v4l2_video_device.cc | 49 struct pollfd pollfds[2]; local 53 pollfds[0].fd = device_poll_interrupt_fd_; 54 pollfds[0].events = POLLIN | POLLERR; 59 pollfds[nfds].fd = device_fd_; 60 pollfds[nfds].events = POLLIN | POLLOUT | POLLERR | POLLPRI; 65 if (HANDLE_EINTR(poll(pollfds, nfds, -1)) == -1) { 69 *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI);
|
/external/ipsec-tools/ |
main.c | 132 static struct pollfd pollfds[10]; variable in typeref:struct:pollfd 153 pollfds[monitors].fd = fd; 154 pollfds[monitors].events = callback ? POLLIN : 0; 195 if (poll(pollfds, monitors, timeout) > 0) { 198 if (pollfds[i].revents & POLLHUP) { 199 do_plog(LLV_INFO, "Connection is closed\n", pollfds[i].fd); 204 if (pollfds[i].revents & POLLIN) { 205 callbacks[i](pollfds[i].fd);
|
/external/mtpd/ |
mtpd.c | 156 struct pollfd pollfds[3]; local 184 pollfds[0].fd = the_socket; 185 pollfds[0].events = POLLIN; 186 pollfds[1].fd = signals[0]; 187 pollfds[1].events = POLLIN; 188 pollfds[2].fd = control; 189 pollfds[2].events = 0; 192 if (poll(pollfds, 3, timeout ? timeout : -1) == -1 && errno != EINTR) { 196 if (pollfds[1].revents) { 199 if (pollfds[2].revents) [all...] |
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
event_test.cc | 251 pollfds[index].fd = fds[index]; 252 pollfds[index].events = POLLIN | POLLOUT; 253 pollfds[index].revents = -1; 269 struct pollfd pollfds[MAX_FDS]; member in class:SelectPollTest 283 ASSERT_EQ(2, kp->poll(pollfds, 2, 0)); 284 ASSERT_EQ(POLLIN | POLLOUT, pollfds[0].revents); 285 ASSERT_EQ(POLLIN | POLLOUT, pollfds[1].revents); 292 ASSERT_EQ(2, kp->poll(pollfds, 2, 0)); 294 // EXPECT_EQ(0, pollfds[0].revents); 296 ASSERT_EQ(POLLOUT, pollfds[1].revents) [all...] |
/bionic/libc/bionic/ |
system_properties.cpp | 506 pollfd pollfds[1]; local 507 pollfds[0].fd = fd; 508 pollfds[0].events = 0; 509 const int poll_result = TEMP_FAILURE_RETRY(poll(pollfds, 1, 250 /* ms */)); 510 if (poll_result == 1 && (pollfds[0].revents & POLLHUP) != 0) {
|
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
eventlib_p.h | 234 struct pollfd *pollfds; /* Allocated as needed */ member in struct:__anon1039
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
kernel_proxy.cc | 1124 std::vector<pollfd> pollfds; local 1147 pollfds.push_back(info); 1170 int result = poll(&pollfds[0], pollfds.size(), ms_timeout); 1175 for (size_t index = 0; index < pollfds.size(); index++) { 1176 pollfd* info = &pollfds[index]; [all...] |
/external/chromium_org/third_party/libusb/src/libusb/ |
libusbi.h | 251 struct list_head pollfds; member in struct:libusb_context [all...] |
/external/libusb/libusb/ |
libusbi.h | 167 struct list_head pollfds; member in struct:libusb_context
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/ |
builtin-kvm.c | 1066 struct pollfd *pollfds = NULL; local 1094 /* copy pollfds -- need to add timerfd and stdin */ 1096 pollfds = zalloc(sizeof(struct pollfd) * (nr_fds + 2)); 1097 if (!pollfds) { 1101 memcpy(pollfds, kvm->evlist->pollfd, 1110 pollfds[nr_fds].fd = kvm->timerfd; 1111 pollfds[nr_fds].events = POLLIN; 1114 pollfds[nr_fds].fd = fileno(stdin); 1115 pollfds[nr_fds].events = POLLIN; 1135 if (pollfds[nr_stdin].revents & POLLIN [all...] |