Lines Matching refs:pfds
90 DYNLINK_FUNC(int,snd_pcm_poll_descriptors_revents,(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned short *revents)) \
92 DYNLINK_FUNC(int,snd_pcm_poll_descriptors,(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int space)) \
110 struct pollfd *pfds;
205 struct pollfd *pfds = hlp->pfds;
207 if (pfds) {
209 qemu_set_fd_handler (pfds[i].fd, NULL, NULL, NULL);
211 qemu_free (pfds);
213 hlp->pfds = NULL;
260 count = poll (hlp->pfds, hlp->count, 0);
272 err = FF(snd_pcm_poll_descriptors_revents) (hlp->handle, hlp->pfds,
316 struct pollfd *pfds;
325 pfds = audio_calloc ("alsa_poll_helper", count, sizeof (*pfds));
326 if (!pfds) {
331 err = FF(snd_pcm_poll_descriptors) (handle, pfds, count);
335 qemu_free (pfds);
340 if (pfds[i].events & POLLIN) {
341 err = qemu_set_fd_handler (pfds[i].fd, alsa_poll_handler,
344 if (pfds[i].events & POLLOUT) {
346 dolog ("POLLOUT %d %d\n", i, pfds[i].fd);
348 err = qemu_set_fd_handler (pfds[i].fd, NULL,
353 pfds[i].events, i, pfds[i].fd, err);
358 pfds[i].events, i, pfds[i].fd, err);
361 qemu_set_fd_handler (pfds[i].fd, NULL, NULL, NULL);
363 qemu_free (pfds);
367 hlp->pfds = pfds;