/external/libusb/libusb/os/ |
D | poll_windows.c | 73 struct winfd poll_fd[MAX_FDS]; variable 111 if ( (poll_fd[_index].fd < 0) || (poll_fd[_index].handle == INVALID_HANDLE_VALUE) in cancel_io() 112 || (poll_fd[_index].handle == 0) || (poll_fd[_index].overlapped == NULL) ) { in cancel_io() 115 if (poll_fd[_index].itransfer && poll_fd[_index].cancel_fn) { in cancel_io() 117 (*poll_fd[_index].cancel_fn)(poll_fd[_index].itransfer); in cancel_io() 121 return (*pCancelIoEx)(poll_fd[_index].handle, poll_fd[_index].overlapped); in cancel_io() 124 return CancelIo(poll_fd[_index].handle); in cancel_io() 142 if ( (poll_fd[_index].fd < 0) || (poll_fd[_index].handle == INVALID_HANDLE_VALUE) in cancel_io() 143 || (poll_fd[_index].handle == 0) || (poll_fd[_index].overlapped == NULL) ) { in cancel_io() 146 if (poll_fd[_index].itransfer && poll_fd[_index].cancel_fn) { in cancel_io() [all …]
|
/external/adhd/cras/src/tests/ |
D | file_wait_unittest.cc | 54 struct pollfd poll_fd; in SimpleFileWait() local 74 poll_fd.events = POLLIN; in SimpleFileWait() 75 poll_fd.fd = cras_file_wait_get_fd(file_wait); in SimpleFileWait() 82 EXPECT_EQ(1, cras_poll(&poll_fd, 1, &timeout, NULL)); in SimpleFileWait() 99 struct pollfd poll_fd; in TEST() local 153 poll_fd.events = POLLIN; in TEST() 154 poll_fd.fd = cras_file_wait_get_fd(file_wait); in TEST() 155 EXPECT_NE(0, poll_fd.fd >= 0); in TEST() 160 EXPECT_EQ(1, cras_poll(&poll_fd, 1, &timeout, NULL)); in TEST() 172 EXPECT_EQ(1, cras_poll(&poll_fd, 1, &timeout, NULL)); in TEST() [all …]
|
D | util_unittest.cc | 269 struct pollfd poll_fd; in TEST() local 275 poll_fd.fd = pipe_fds[0]; in TEST() 276 poll_fd.events = POLLIN; in TEST() 277 ASSERT_NE(0, poll_fd.fd >= 0); in TEST() 283 EXPECT_EQ(1, cras_poll(&poll_fd, 1, NULL, NULL)); in TEST() 291 EXPECT_EQ(-ETIMEDOUT, cras_poll(&poll_fd, 1, &timeout, NULL)); in TEST() 294 EXPECT_EQ(-ETIMEDOUT, cras_poll(&poll_fd, 1, &timeout, NULL)); in TEST() 303 EXPECT_EQ(-ETIMEDOUT, cras_poll(&poll_fd, 1, &timeout, NULL)); in TEST()
|
D | timing_unittest.cc | 338 int poll_fd = 0; in TEST_F() local 361 poll_fd = dev_stream_poll_stream_fd(streams[0]->dstream.get()); in TEST_F() 362 EXPECT_EQ(FAKE_POLL_FD, poll_fd); in TEST_F() 378 int poll_fd = 0; in TEST_F() local 401 poll_fd = dev_stream_poll_stream_fd(streams[0]->dstream.get()); in TEST_F() 402 EXPECT_EQ(-1, poll_fd); in TEST_F()
|
/external/ltp/utils/sctp/func_tests/ |
D | test_tcp_style.c | 72 struct pollfd poll_fd; in main() local 169 poll_fd.fd = listen_sk; in main() 170 poll_fd.events = POLLIN; in main() 171 poll_fd.revents = 0; in main() 172 error = poll(&poll_fd, 1, -1); in main() 173 if ((1 != error) && (1 != poll_fd.revents)) in main() 176 error, errno, poll_fd.revents); in main()
|
/external/libxcam/xcore/ |
D | v4l2_device.cpp | 200 struct pollfd poll_fd; in poll_event() local 205 xcam_mem_clear (poll_fd); in poll_event() 206 poll_fd.fd = _fd; in poll_event() 207 poll_fd.events = (POLLPRI | POLLIN | POLLERR | POLLNVAL | POLLHUP); in poll_event() 209 ret = poll (&poll_fd, 1, timeout_msec); in poll_event() 210 if (ret > 0 && (poll_fd.revents & (POLLERR | POLLNVAL | POLLHUP))) { in poll_event()
|
/external/adhd/cras/src/server/ |
D | cras_alsa_card.c | 620 struct hctl_poll_fd *poll_fd; in cras_alsa_card_destroy() local 630 DL_FOREACH(alsa_card->hctl_poll_fds, poll_fd) { in cras_alsa_card_destroy() 631 cras_system_rm_select_fd(poll_fd->fd); in cras_alsa_card_destroy() 632 DL_DELETE(alsa_card->hctl_poll_fds, poll_fd); in cras_alsa_card_destroy() 633 free(poll_fd); in cras_alsa_card_destroy()
|
D | cras_alsa_io.c | 151 int poll_fd; member 326 if (aio->poll_fd >= 0) in close_dev() 329 aio->poll_fd); in close_dev() 346 audio_thread_rm_callback(aio->poll_fd); in dummy_hotword_cb() 347 aio->poll_fd = -1; in dummy_hotword_cb() 411 aio->poll_fd = -1; in configure_dev() 437 aio->poll_fd = ufds[i].fd; in configure_dev() 443 if (aio->poll_fd >= 0) in configure_dev() 444 audio_thread_add_callback(aio->poll_fd, in configure_dev()
|
/external/adhd/cras/src/alsa_plugin/ |
D | pcm_cras.c | 52 if (pcm_cras->io.poll_fd >= 0) in snd_pcm_cras_free() 53 close(pcm_cras->io.poll_fd); in snd_pcm_cras_free() 367 pcm_cras->io.poll_fd = -1; in snd_pcm_cras_open() 397 pcm_cras->io.poll_fd = fd[1]; in snd_pcm_cras_open()
|
D | ctl_cras.c | 342 cras->ext_ctl.poll_fd = -1; in SND_CTL_PLUGIN_DEFINE_FUNC()
|
/external/adhd/cras/src/libcras/ |
D | cras_client.c | 365 struct pollfd *poll_fd) in server_fill_pollfd() argument 369 poll_fd->fd = client->server_fd; in server_fill_pollfd() 383 poll_fd->events = events; in server_fill_pollfd() 384 poll_fd->revents = 0; in server_fill_pollfd() 846 struct pollfd poll_fd; in check_server_connected_wait() local 848 poll_fd.fd = client->server_event_fd; in check_server_connected_wait() 849 poll_fd.events = POLLIN; in check_server_connected_wait() 850 poll_fd.revents = 0; in check_server_connected_wait() 859 rc = cras_poll(&poll_fd, 1, timeout, NULL); in check_server_connected_wait() 882 struct pollfd poll_fd[2]; in connect_to_server() local [all …]
|