Lines Matching refs:poll_fd
365 struct pollfd *poll_fd) in server_fill_pollfd() argument
369 poll_fd->fd = client->server_fd; in server_fill_pollfd()
383 poll_fd->events = events; in server_fill_pollfd()
384 poll_fd->revents = 0; in server_fill_pollfd()
846 struct pollfd poll_fd; in check_server_connected_wait() local
848 poll_fd.fd = client->server_event_fd; in check_server_connected_wait()
849 poll_fd.events = POLLIN; in check_server_connected_wait()
850 poll_fd.revents = 0; in check_server_connected_wait()
859 rc = cras_poll(&poll_fd, 1, timeout, NULL); in check_server_connected_wait()
882 struct pollfd poll_fd[2]; in connect_to_server() local
901 poll_fd[0].fd = cras_file_wait_get_fd(client->sock_file_wait); in connect_to_server()
902 poll_fd[0].events = POLLIN; in connect_to_server()
909 server_fill_pollfd(client, &(poll_fd[1])); in connect_to_server()
910 rc = cras_poll(poll_fd, 2, timeout, NULL); in connect_to_server()
914 if (poll_fd[0].revents) { in connect_to_server()
916 client, poll_fd[0].revents); in connect_to_server()
920 if (poll_fd[1].revents) { in connect_to_server()
921 rc = server_fd_dispatch(client, poll_fd[1].revents); in connect_to_server()