Lines Matching refs:pfd
779 pollfd pfd[2]; in wifi_event_loop() local
780 memset(&pfd[0], 0, sizeof(pollfd) * 2); in wifi_event_loop()
782 pfd[0].fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop()
783 pfd[0].events = POLLIN; in wifi_event_loop()
784 pfd[1].fd = info->cleanup_socks[1]; in wifi_event_loop()
785 pfd[1].events = POLLIN; in wifi_event_loop()
792 pfd[0].revents = 0; in wifi_event_loop()
793 pfd[1].revents = 0; in wifi_event_loop()
795 int result = TEMP_FAILURE_RETRY(poll(pfd, 2, timeout)); in wifi_event_loop()
798 } else if (pfd[0].revents & POLLERR) { in wifi_event_loop()
800 ssize_t result2 = TEMP_FAILURE_RETRY(read(pfd[0].fd, buf, sizeof(buf))); in wifi_event_loop()
807 } else if (pfd[0].revents & POLLHUP) { in wifi_event_loop()
810 } else if (pfd[0].revents & POLLIN && !info->clean_up) { in wifi_event_loop()
813 } else if (pfd[1].revents & POLLIN) { in wifi_event_loop()
816 ALOGE("Unknown event - %0x, %0x", pfd[0].revents, pfd[1].revents); in wifi_event_loop()