Lines Matching refs:pollfd
248 struct pollfd *pollfd;
252 pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, &nbfds);
253 if (pollfd) {
255 if (pollfd->fd >= 0)
256 pa_close(pollfd->fd);
257 pollfd++;
442 struct pollfd *pollfd = NULL;
466 pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, &nbfds);
468 if (pollfd && !u->oob && !pollfd->revents) {
470 pollfd->events = POLLOUT;
471 pollfd->revents = 0;
473 pollfd++;
479 /* if oob: streaming managed by timing, pollfd for oob sockets */
480 if (pollfd && u->oob && !on_timeout) {
485 if (pollfd->revents & POLLERR) {
487 pollfd->revents = 0;
496 if (pollfd->revents & pollfd->events) {
497 pollfd->revents = 0;
498 read = pa_read(pollfd->fd, packet, sizeof(packet), NULL);
499 pa_raop_client_handle_oob_packet(u->raop, pollfd->fd, packet, read);
500 if (pa_raop_client_is_timing_fd(u->raop, pollfd->fd)) {
506 pollfd++;
566 * pollfd being possibly NULL when we access it later. That's a false
569 * connection is up, pollfd will be non-NULL. */
570 pa_assert(pollfd);
601 pollfd->events = POLLOUT;
602 pollfd->revents = 0;
636 pollfd->events = POLLOUT;
637 pollfd->revents = 0;
641 pollfd->revents = 0;
642 pollfd->events = 0;