Lines Matching refs:pfd
739 pollfd pfd[2]; in wifi_event_loop() local
740 memset(&pfd[0], 0, sizeof(pollfd) * 2); in wifi_event_loop()
742 pfd[0].fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop()
743 pfd[0].events = POLLIN; in wifi_event_loop()
744 pfd[1].fd = info->cleanup_socks[1]; in wifi_event_loop()
745 pfd[1].events = POLLIN; in wifi_event_loop()
752 pfd[0].revents = 0; in wifi_event_loop()
753 pfd[1].revents = 0; in wifi_event_loop()
755 int result = TEMP_FAILURE_RETRY(poll(pfd, 2, timeout)); in wifi_event_loop()
758 } else if (pfd[0].revents & POLLERR) { in wifi_event_loop()
760 ssize_t result2 = TEMP_FAILURE_RETRY(read(pfd[0].fd, buf, sizeof(buf))); in wifi_event_loop()
767 } else if (pfd[0].revents & POLLHUP) { in wifi_event_loop()
770 } else if (pfd[0].revents & POLLIN && !info->clean_up) { in wifi_event_loop()
773 } else if (pfd[1].revents & POLLIN) { in wifi_event_loop()
776 ALOGE("Unknown event - %0x, %0x", pfd[0].revents, pfd[1].revents); in wifi_event_loop()