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