Lines Matching refs:poll_fd
348 struct pollfd *poll_fd) in server_fill_pollfd() argument
352 poll_fd->fd = client->server_fd; in server_fill_pollfd()
366 poll_fd->events = events; in server_fill_pollfd()
367 poll_fd->revents = 0; in server_fill_pollfd()
829 struct pollfd poll_fd; in check_server_connected_wait() local
831 poll_fd.fd = client->server_event_fd; in check_server_connected_wait()
832 poll_fd.events = POLLIN; in check_server_connected_wait()
833 poll_fd.revents = 0; in check_server_connected_wait()
842 rc = cras_poll(&poll_fd, 1, timeout, NULL); in check_server_connected_wait()
865 struct pollfd poll_fd[2]; in connect_to_server() local
884 poll_fd[0].fd = cras_file_wait_get_fd(client->sock_file_wait); in connect_to_server()
885 poll_fd[0].events = POLLIN; in connect_to_server()
892 server_fill_pollfd(client, &(poll_fd[1])); in connect_to_server()
893 rc = cras_poll(poll_fd, 2, timeout, NULL); in connect_to_server()
897 if (poll_fd[0].revents) { in connect_to_server()
899 client, poll_fd[0].revents); in connect_to_server()
903 if (poll_fd[1].revents) { in connect_to_server()
904 rc = server_fd_dispatch(client, poll_fd[1].revents); in connect_to_server()