Lines Matching refs:pfds
322 struct pollfd pfds[max + 1]; local
344 pfds[0].fd = dmix->server_fd;
345 pfds[0].events = POLLIN | POLLERR | POLLHUP;
349 ret = poll(pfds, current + 1, 500);
350 …server_printf("DIRECT SERVER: poll ret = %i, revents[0] = 0x%x, errno = %i\n", ret, pfds[0].revent…
357 if (ret == 0 || (pfds[0].revents & (POLLERR | POLLHUP))) { /* timeout or error? */
371 if (pfds[0].revents & POLLIN) {
380 pfds[current+1].fd = sck;
381 pfds[current+1].events = POLLIN | POLLERR | POLLHUP;
389 struct pollfd *pfd = &pfds[i+1];
405 if (pfds[i+1].fd < 0) {
407 memcpy(&pfds[i+1], &pfds[i+2], sizeof(struct pollfd) * (max - i - 1));
674 int snd_pcm_direct_poll_descriptors(snd_pcm_t *pcm, struct pollfd *pfds, argument
681 if (space >= 1 && pfds) {
682 pfds->fd = pcm->poll_fd;
683 pfds->events = pcm->poll_events | POLLERR | POLLNVAL;
699 int snd_pcm_direct_poll_revents(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned sh… argument
705 assert(pfds && nfds == 1 && revents);
708 events = pfds[0].revents;