Lines Matching refs:pollfd
49 struct pollfd *pollfd, *pollfd2;
75 struct pollfd *pollfd;
96 p->pollfd = pa_xnew(struct pollfd, p->n_pollfd_alloc);
97 p->pollfd2 = pa_xnew(struct pollfd, p->n_pollfd_alloc);
108 struct pollfd *e, *t;
119 p->pollfd2 = pa_xrealloc(p->pollfd2, p->n_pollfd_alloc * sizeof(struct pollfd));
128 size_t l = i->n_pollfd * sizeof(struct pollfd);
130 if (i->pollfd)
131 memcpy(e, i->pollfd, l);
135 i->pollfd = e;
137 i->pollfd = NULL;
143 t = p->pollfd;
144 p->pollfd = p->pollfd2;
148 p->pollfd2 = pa_xrealloc(p->pollfd2, p->n_pollfd_alloc * sizeof(struct pollfd));
174 pa_xfree(p->pollfd);
181 struct pollfd *f;
321 r = ppoll(p->pollfd, p->n_pollfd_used, (p->quit || p->timer_enabled) ? &ts : NULL, NULL);
324 r = pa_poll(p->pollfd, p->n_pollfd_used, (p->quit || p->timer_enabled) ? (int) ((timeout.tv_sec*1000) + (timeout.tv_usec / 1000)) : -1);
420 i->pollfd = NULL;
459 struct pollfd *pa_rtpoll_item_get_pollfd(pa_rtpoll_item *i, unsigned *n_fds) {
469 return i->pollfd;
513 pa_assert((i->pollfd[0].revents & ~POLLIN) == 0);
519 struct pollfd *pollfd;
526 pollfd = pa_rtpoll_item_get_pollfd(i, NULL);
528 pollfd->fd = pa_fdsem_get(f);
529 pollfd->events = POLLIN;
549 pa_assert((i->pollfd[0].revents & ~POLLIN) == 0);
589 struct pollfd *pollfd;
596 pollfd = pa_rtpoll_item_get_pollfd(i, NULL);
597 pollfd->fd = pa_asyncmsgq_read_fd(q);
598 pollfd->events = POLLIN;
617 pa_assert((i->pollfd[0].revents & ~POLLIN) == 0);
623 struct pollfd *pollfd;
630 pollfd = pa_rtpoll_item_get_pollfd(i, NULL);
631 pollfd->fd = pa_asyncmsgq_write_fd(q);
632 pollfd->events = POLLIN;