Lines Matching defs:npfds
679 int i, npfds, pollio, err, err_poll;
681 npfds = snd_hctl_poll_descriptors_count(hctl);
682 if (npfds <= 0 || npfds >= 16) {
683 SNDERR("Invalid poll_fds %d", npfds);
686 pfd = alloca(sizeof(*pfd) * npfds);
687 revents = alloca(sizeof(*revents) * npfds);
688 err = snd_hctl_poll_descriptors(hctl, pfd, npfds);
691 if (err != npfds) {
697 err_poll = poll(pfd, npfds, timeout);
705 err = snd_hctl_poll_descriptors_revents(hctl, pfd, npfds, revents);
708 for (i = 0; i < npfds; i++) {