Lines Matching refs:pfd
636 pollfd pfd[2]; in wifi_event_loop() local
637 memset(&pfd[0], 0, sizeof(pollfd) * 2); in wifi_event_loop()
639 pfd[0].fd = nl_socket_get_fd(info->event_sock); in wifi_event_loop()
640 pfd[0].events = POLLIN; in wifi_event_loop()
641 pfd[1].fd = info->cleanup_socks[1]; in wifi_event_loop()
642 pfd[1].events = POLLIN; in wifi_event_loop()
649 pfd[0].revents = 0; in wifi_event_loop()
650 pfd[1].revents = 0; in wifi_event_loop()
652 int result = TEMP_FAILURE_RETRY(poll(pfd, 2, timeout)); in wifi_event_loop()
655 } else if (pfd[0].revents & POLLERR) { in wifi_event_loop()
657 ssize_t result2 = TEMP_FAILURE_RETRY(read(pfd[0].fd, buf, sizeof(buf))); in wifi_event_loop()
660 } else if (pfd[0].revents & POLLHUP) { in wifi_event_loop()
663 } else if (pfd[0].revents & POLLIN) { in wifi_event_loop()
666 } else if (pfd[1].revents & POLLIN) { in wifi_event_loop()
668 ssize_t result2 = TEMP_FAILURE_RETRY(read(pfd[1].fd, buf, sizeof(buf))); in wifi_event_loop()
673 if (TEMP_FAILURE_RETRY(write(pfd[1].fd, "Done", 4)) < 1) { in wifi_event_loop()
681 ALOGE("Unknown event - %0x, %0x", pfd[0].revents, pfd[1].revents); in wifi_event_loop()