/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...] |
/system/core/debuggerd/ |
debuggerd.cpp | 139 pollfd pollfds[1]; local 140 pollfds[0].fd = fd; 141 pollfds[0].events = POLLIN; 142 pollfds[0].revents = 0; 143 status = TEMP_FAILURE_RETRY(poll(pollfds, 1, 3000));
|
/system/core/liblog/ |
log_read_kern.c | 506 struct pollfd *p, *pollfds = NULL; local 544 pollfds = calloc(nfds, sizeof(struct pollfd)); 545 if (!pollfds) { 550 p = pollfds; 563 poll(pollfds, nfds, logger_list->timeout_ms)); 691 free(pollfds);
|
/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) {
|
/external/wpa_supplicant_8/src/utils/ |
eloop.c | 77 int max_poll_fds; /* number of pollfds currently allocated */ 78 struct pollfd *pollfds; member in struct:eloop_data 205 n = os_realloc_array(eloop.pollfds, nmax, 211 eloop.pollfds = n; 343 struct pollfd *pollfds, 359 pollfds[nxt].fd = fd; 360 pollfds[nxt].events = POLLIN; 361 pollfds[nxt].revents = 0; 362 pollfds_map[fd] = &(pollfds[nxt]); 377 pfd = &(pollfds[nxt]) [all...] |
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/ |
mpu_iio.c | 62 static struct pollfd pollfds[FEAT_NUM]; variable in typeref:struct:pollfd 472 VARVAL("%d", pollfds[i].fd); 473 VARVAL("%d", pollfds[i].events); 474 VARVAL("%d", pollfds[i].revents); 488 pollfds[j].fd = open(file_name, O_RDONLY | O_NONBLOCK); 489 if (pollfds[j].fd < 0) { 494 pollfds[j].events = POLLPRI | POLLERR; 495 pollfds[j].revents = 0; 497 dmp_feat[i].pollfd = &pollfds[j]; 506 close(pollfds[i].fd) [all...] |
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
eventlib_p.h | 234 struct pollfd *pollfds; /* Allocated as needed */ member in struct:__anon1037
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
kernel_proxy.cc | 1076 std::vector<pollfd> pollfds; local 1099 pollfds.push_back(info); 1119 int result = poll(&pollfds[0], pollfds.size(), ms_timeout); 1124 for (size_t index = 0; index < pollfds.size(); index++) { 1125 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/valgrind/main/coregrind/ |
vgdb.c | 840 struct pollfd pollfds[NumConnectionKind]; local 843 pollfds[FROM_GDB].fd = from_gdb; 844 pollfds[FROM_GDB].events = POLLIN; 845 pollfds[FROM_GDB].revents = 0; 846 pollfds[TO_GDB].fd = to_gdb; 847 pollfds[TO_GDB].events = 0; 848 pollfds[TO_GDB].revents = 0; 851 pollfds[FROM_PID].fd = from_pid; 852 pollfds[FROM_PID].events = POLLIN; 853 pollfds[FROM_PID].revents = 0 [all...] |
/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...] |
/external/ppp/pppd/ |
sys-solaris.c | 228 static struct pollfd pollfds[MAX_POLLFDS]; variable in typeref:struct:pollfd [all...] |