Searched defs:pollfd (Results 1 - 19 of 19) sorted by path

/external/chromium_org/content/common/gpu/media/
H A Dexynos_v4l2_video_device.cc49 struct pollfd pollfds[2];
51 int pollfd = -1; local
61 pollfd = nfds;
69 *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI);
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/include/sys/
H A Dpoll.h25 struct pollfd { struct
33 int poll(struct pollfd* __fds, nfds_t __nfds, int __timeout);
/external/chromium_org/native_client_sdk/src/tests/nacl_io_socket_test/
H A Dsocket_test.cc384 struct pollfd pollfd = { sock_, POLLIN|POLLOUT, 0 }; local
385 ASSERT_EQ(1, ki_poll(&pollfd, 1, -1));
386 ASSERT_EQ(POLLOUT, pollfd.revents);
703 struct pollfd pollfd = { server_sock, POLLIN|POLLOUT, 0 }; local
704 ASSERT_EQ(0, ki_poll(&pollfd, 1, 0));
714 pollfd.fd = server_sock;
715 pollfd.events = POLLIN | POLLOUT;
716 ASSERT_EQ(1, ki_poll(&pollfd,
[all...]
/external/chromium_org/third_party/libusb/src/libusb/
H A Dio.c1930 struct pollfd *fds = NULL;
1947 struct libusb_pollfd *pollfd = &ipollfd->pollfd; local
1948 int fd = pollfd->fd;
1951 fds[i].events = pollfd->events;
2429 ipollfd->pollfd.fd = fd;
2430 ipollfd->pollfd.events = events;
2449 if (ipollfd->pollfd.fd == fd) {
H A Dlibusbi.h259 /* user callbacks for pollfd changes */
460 struct libusb_pollfd pollfd; member in struct:usbi_pollfd
931 * The function is passed an array of pollfd structures (size nfds)
955 struct pollfd *fds, POLL_NFDS_TYPE nfds, int num_ready);
/external/chromium_org/third_party/libusb/src/libusb/os/
H A Ddarwin_usb.c1807 static int op_handle_events(struct libusb_context *ctx, struct pollfd *fds, POLL_NFDS_TYPE nfds, int num_ready) {
1815 struct pollfd *pollfd = &fds[i]; local
1817 usbi_dbg ("checking fd %i with revents = %x", pollfd->fd, pollfd->revents);
1819 if (!pollfd->revents)
1824 if (pollfd->revents & POLLERR) {
1830 ret = read (pollfd->fd, &message, sizeof (message));
H A Dlinux_usbfs.c2491 struct pollfd *fds, POLL_NFDS_TYPE nfds, int num_ready)
2498 struct pollfd *pollfd = &fds[i]; local
2502 if (!pollfd->revents)
2508 if (hpriv->fd == pollfd->fd)
2512 if (pollfd->revents & POLLERR) {
H A Dopenbsd_usb.c77 static int obsd_handle_events(struct libusb_context *ctx, struct pollfd *,
532 obsd_handle_events(struct libusb_context *ctx, struct pollfd *fds, nfds_t nfds,
538 struct pollfd *pollfd; local
545 pollfd = &fds[i];
547 if (!pollfd->revents)
556 if (hpriv->pipe[0] == pollfd->fd)
563 usbi_dbg("fd %d is not an event pipe!", pollfd->fd);
568 if (pollfd->revents & POLLERR) {
H A Dpoll_windows.h61 struct pollfd { struct
88 int usbi_poll(struct pollfd *fds, unsigned int nfds, int timeout);
/external/chromium_org/third_party/npapi/npspy/extern/nspr/md/
H A D_unixos.h525 struct pollfd { struct
545 #define POLLNVAL 0x0020 /* invalid pollfd entry */
547 extern int poll(struct pollfd *, unsigned long, int);
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_posix.cc967 CHECK_TYPE_SIZE(pollfd); variable
968 CHECK_SIZE_AND_OFFSET(pollfd, fd);
969 CHECK_SIZE_AND_OFFSET(pollfd, events);
970 CHECK_SIZE_AND_OFFSET(pollfd, revents);
/external/fio/os/windows/posix/include/sys/
H A Dpoll.h6 struct pollfd struct
13 int poll(struct pollfd fds[], nfds_t nfds, int timeout);
/external/kernel-headers/original/uapi/asm-generic/
H A Dpoll.h35 struct pollfd { struct
/external/libusb/libusb/
H A Dio.c1781 struct pollfd *fds;
1795 struct libusb_pollfd *pollfd = &ipollfd->pollfd; local
1796 int fd = pollfd->fd;
1799 fds[i].events = pollfd->events;
2191 ipollfd->pollfd.fd = fd;
2192 ipollfd->pollfd.events = events;
2211 if (ipollfd->pollfd.fd == fd) {
H A Dlibusbi.h175 /* user callbacks for pollfd changes */
316 struct libusb_pollfd pollfd; member in struct:usbi_pollfd
740 * The function is passed an array of pollfd structures (size nfds)
764 struct pollfd *fds, nfds_t nfds, int num_ready);
/external/libusb/libusb/os/
H A Ddarwin_usb.c1384 static int op_handle_events(struct libusb_context *ctx, struct pollfd *fds, nfds_t nfds, int num_ready) {
1393 struct pollfd *pollfd = &fds[i]; local
1397 usbi_info (ctx, "checking fd %i with revents = %x", fds[i], pollfd->revents);
1399 if (!pollfd->revents)
1405 if (hpriv->fds[0] == pollfd->fd)
1409 if (!(pollfd->revents & POLLERR)) {
H A Dlinux_usbfs.c2102 struct pollfd *fds, nfds_t nfds, int num_ready)
2109 struct pollfd *pollfd = &fds[i]; local
2113 if (!pollfd->revents)
2119 if (hpriv->fd == pollfd->fd)
2123 if (pollfd->revents & POLLERR) {
/external/linux-tools-perf/perf-3.12.0/tools/perf/bench/
H A Dsched-messaging.c76 struct pollfd pollfd = { .fd = wakefd, .events = POLLIN }; local
83 if (poll(&pollfd, 1, -1) != 1)
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
H A Devlist.h12 struct pollfd;
44 struct pollfd *pollfd; member in struct:perf_evlist

Completed in 6689 milliseconds