Searched refs:pfd (Results 1 – 7 of 7) sorted by relevance
/device/google/contexthub/contexthubhal/ |
D | nanohubhal.cpp | 113 static bool init_inotify(pollfd *pfd) { in init_inotify() argument 117 pfd->fd = inotify_init1(IN_NONBLOCK); in init_inotify() 118 if (pfd->fd < 0) { in init_inotify() 120 } else if (inotify_add_watch(pfd->fd, NANOHUB_LOCK_DIR, IN_CREATE | IN_DELETE) < 0) { in init_inotify() 122 close(pfd->fd); in init_inotify() 124 pfd->events = POLLIN; in init_inotify() 131 static void discard_inotify_evt(pollfd &pfd) { in discard_inotify_evt() argument 132 if ((pfd.revents & POLLIN)) { in discard_inotify_evt() 134 int ret = read(pfd.fd, buf, sizeof(buf)); in discard_inotify_evt() 139 static void wait_on_dev_lock(pollfd &pfd) { in wait_on_dev_lock() argument [all …]
|
/device/linaro/dragonboard/qcom/qrtr/src/ |
D | waiter.c | 69 struct pollfd *pfd = (struct pollfd *)(ps + 1); in pollset_add_fd() local 70 pfd[ps->nfds].fd = fd; in pollset_add_fd() 71 pfd[ps->nfds].events = POLLERR | POLLIN; in pollset_add_fd() 77 struct pollfd *pfd = (struct pollfd *)(ps + 1); in pollset_wait() local 81 rc = poll(pfd, ps->nfds, ms); in pollset_wait() 87 if (pfd[i].revents & (POLLERR | POLLIN)) { in pollset_wait() 98 struct pollfd *pfd = (struct pollfd *)(ps + 1); in pollset_cause_fd() local 99 return (ps->cause >= 0 && pfd[ps->cause].fd == fd); in pollset_cause_fd()
|
/device/linaro/poplar/wifi/wifi_hal/ |
D | wifi_hal.cpp | 462 pollfd pfd[2]; in wifi_event_loop() local 463 memset(&pfd[0], 0, sizeof(pollfd) * 2); in wifi_event_loop() 465 pfd[0].fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop() 466 pfd[0].events = POLLIN; in wifi_event_loop() 467 pfd[1].fd = info->cleanup_socks[1]; in wifi_event_loop() 468 pfd[1].events = POLLIN; in wifi_event_loop() 475 pfd[0].revents = 0; in wifi_event_loop() 476 pfd[1].revents = 0; in wifi_event_loop() 478 int result = TEMP_FAILURE_RETRY(poll(pfd, 2, timeout)); in wifi_event_loop() 481 } else if (pfd[0].revents & POLLERR) { in wifi_event_loop() [all …]
|
/device/generic/goldfish/network/wifi_forwarder/ |
D | wifi_forwarder.cpp | 70 struct pollfd pfd = { fd, POLLIN, 0 }; in getPollData() local 71 fds->push_back(pfd); in getPollData() 75 struct pollfd pfd = { fd, POLLIN, 0 }; in getPollData() local 76 fds->push_back(pfd); in getPollData()
|
/device/generic/goldfish/fingerprint/ |
D | fingerprint.c | 708 struct pollfd pfd = { in listenerFunction() local 724 pfd.revents = 0; in listenerFunction() 732 int nfds = poll(&pfd, 1, 5000); in listenerFunction() 744 if (pfd.revents & POLLIN) { in listenerFunction() 746 disconnected = pfd.revents & (POLLERR | POLLHUP); in listenerFunction()
|
/device/linaro/hikey/hifi/xaf/host-apf/playback/tinyalsa/ |
D | pcm.c | 1150 struct pollfd pfd; in pcm_wait() local 1153 pfd.fd = pcm->fd; in pcm_wait() 1154 pfd.events = POLLOUT | POLLERR | POLLNVAL; in pcm_wait() 1158 err = poll(&pfd, 1, timeout); in pcm_wait() 1171 if (pfd.revents & (POLLERR | POLLNVAL)) { in pcm_wait() 1184 } while (!(pfd.revents & (POLLIN | POLLOUT))); in pcm_wait()
|
/device/google/contexthub/sensorhal/ |
D | hubconnection.cpp | 985 struct pollfd *pfd = &mPollFds[mInotifyPollIndex]; in waitOnNanohubLock() local 990 int ret = poll(pfd, 1, 5000); in waitOnNanohubLock() 991 if ((ret > 0) && (pfd->revents & POLLIN)) { in waitOnNanohubLock()
|