Home
last modified time | relevance | path

Searched refs:npfds (Results 1 – 9 of 9) sorted by relevance

/third_party/NuttX/fs/vfs/
Dfs_select.c103 int npfds; in do_select() local
118 for (fd = 0, npfds = 0; fd < nfds; fd++) in do_select()
128 npfds++; in do_select()
134 if (npfds != 0) in do_select()
138 if (npfds <= POLL_STACK_CNT) in do_select()
141 (void)memset_s(pollset, npfds * sizeof(struct pollfd), 0, npfds * sizeof(struct pollfd)); in do_select()
145 pollset = (struct pollfd *)zalloc(npfds * sizeof(struct pollfd)); in do_select()
226 DEBUGASSERT(ndx == npfds); in do_select()
245 ret = poll(pollset, npfds, msec); in do_select()
269 for (ndx = 0; ndx < npfds; ndx++) in do_select()
/third_party/alsa-lib/src/control/
Dhcontrol.c679 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()
[all …]
Dcontrol.c1319 int npfds, err, err_poll; in snd_ctl_wait() local
1321 npfds = snd_ctl_poll_descriptors_count(ctl); in snd_ctl_wait()
1322 if (npfds <= 0 || npfds >= 16) { in snd_ctl_wait()
1323 SNDERR("Invalid poll_fds %d\n", npfds); in snd_ctl_wait()
1326 pfd = alloca(sizeof(*pfd) * npfds); in snd_ctl_wait()
1327 err = snd_ctl_poll_descriptors(ctl, pfd, npfds); in snd_ctl_wait()
1330 if (err != npfds) { in snd_ctl_wait()
1335 err_poll = poll(pfd, npfds, timeout); in snd_ctl_wait()
1340 err = snd_ctl_poll_descriptors_revents(ctl, pfd, npfds, &revents); in snd_ctl_wait()
/third_party/alsa-lib/test/
Dplaymidi1.c119 int npfds = snd_seq_poll_descriptors_count(seq_handle, POLLOUT); in write_ev() local
120 struct pollfd *pfds = alloca(sizeof(*pfds) * npfds); in write_ev()
121 snd_seq_poll_descriptors(seq_handle, pfds, npfds, POLLOUT); in write_ev()
122 if ((rc = poll(pfds, npfds, -1)) < 0) { in write_ev()
377 int npfds = snd_seq_poll_descriptors_count(seq_handle, POLLIN); in wait_for_event() local
378 struct pollfd *pfds = alloca(sizeof(*pfds) * npfds); in wait_for_event()
379 snd_seq_poll_descriptors(seq_handle, pfds, npfds, POLLIN); in wait_for_event()
380 if ((left = poll(pfds, npfds, -1)) < 0) { in wait_for_event()
/third_party/alsa-utils/seq/aseqdump/
Daseqdump.c365 int npfds; in main() local
417 npfds = snd_seq_poll_descriptors_count(seq, POLLIN); in main()
418 pfds = alloca(sizeof(*pfds) * npfds); in main()
420 snd_seq_poll_descriptors(seq, pfds, npfds, POLLIN); in main()
421 if (poll(pfds, npfds, -1) < 0) in main()
/third_party/alsa-utils/amidi/
Damidi.c647 int npfds; in main() local
650 npfds = 1 + snd_rawmidi_poll_descriptors_count(input); in main()
651 pfds = alloca(npfds * sizeof(struct pollfd)); in main()
664 snd_rawmidi_poll_descriptors(input, &pfds[1], npfds - 1); in main()
686 err = poll(pfds, npfds, -1); in main()
699 err = snd_rawmidi_poll_descriptors_revents(input, &pfds[1], npfds - 1, &revents); in main()
/third_party/gstreamer/gstplugins_base/ext/alsa/
Dgstalsamidisrc.c583 int npfds, i; in gst_alsa_midi_src_start() local
585 npfds = snd_seq_poll_descriptors_count (alsamidisrc->seq, POLLIN); in gst_alsa_midi_src_start()
586 pfds = g_newa (struct pollfd, npfds); in gst_alsa_midi_src_start()
588 snd_seq_poll_descriptors (alsamidisrc->seq, pfds, npfds, POLLIN); in gst_alsa_midi_src_start()
591 for (i = 0; i < npfds; ++i) { in gst_alsa_midi_src_start()
/third_party/alsa-utils/seq/aplaymidi/
Darecordmidi.c749 int npfds; in main() local
890 npfds = snd_seq_poll_descriptors_count(seq, POLLIN); in main()
891 pfds = alloca(sizeof(*pfds) * npfds); in main()
893 snd_seq_poll_descriptors(seq, pfds, npfds, POLLIN); in main()
894 if (poll(pfds, npfds, -1) < 0) in main()
/third_party/alsa-lib/src/pcm/
Dpcm.c2881 int npfds, err, err_poll; in snd_pcm_wait_nocheck() local
2883 npfds = __snd_pcm_poll_descriptors_count(pcm); in snd_pcm_wait_nocheck()
2884 if (npfds <= 0 || npfds >= 16) { in snd_pcm_wait_nocheck()
2885 SNDERR("Invalid poll_fds %d\n", npfds); in snd_pcm_wait_nocheck()
2888 pfd = alloca(sizeof(*pfd) * npfds); in snd_pcm_wait_nocheck()
2889 err = __snd_pcm_poll_descriptors(pcm, pfd, npfds); in snd_pcm_wait_nocheck()
2892 if (err != npfds) { in snd_pcm_wait_nocheck()
2898 err_poll = poll(pfd, npfds, timeout); in snd_pcm_wait_nocheck()
2907 err = __snd_pcm_poll_revents(pcm, pfd, npfds, &revents); in snd_pcm_wait_nocheck()