/external/bluetooth/bluedroid/btif/src/ |
D | btif_sock_thread.c | 494 static void process_data_sock(int h, struct pollfd *pfds, int count) in process_data_sock() argument 500 if(pfds[i].revents) in process_data_sock() 503 asrt(pfds[i].fd == ts[h].ps[ps_i].pfd.fd); in process_data_sock() 507 print_events(pfds[i].revents); in process_data_sock() 508 if(IS_READ(pfds[i].revents)) in process_data_sock() 512 if(IS_WRITE(pfds[i].revents)) in process_data_sock() 516 if(IS_EXCEPTION(pfds[i].revents)) in process_data_sock() 525 ts[h].callback(pfds[i].fd, type, flags, user_id); in process_data_sock() 530 static void prepare_poll_fds(int h, struct pollfd* pfds) in prepare_poll_fds() argument 536 memset(pfds, 0, sizeof(pfds[0])*ts[h].poll_count); in prepare_poll_fds() [all …]
|
/external/qemu/audio/ |
D | alsaaudio.c | 90 …DYNLINK_FUNC(int,snd_pcm_poll_descriptors_revents,(snd_pcm_t *pcm, struct pollfd *pfds, unsigned i… 92 …DYNLINK_FUNC(int,snd_pcm_poll_descriptors,(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int space… 110 struct pollfd *pfds; member 205 struct pollfd *pfds = hlp->pfds; in alsa_fini_poll() local 207 if (pfds) { in alsa_fini_poll() 209 qemu_set_fd_handler (pfds[i].fd, NULL, NULL, NULL); in alsa_fini_poll() 211 g_free (pfds); in alsa_fini_poll() 213 hlp->pfds = NULL; in alsa_fini_poll() 260 count = poll (hlp->pfds, hlp->count, 0); in alsa_poll_handler() 272 err = FF(snd_pcm_poll_descriptors_revents) (hlp->handle, hlp->pfds, in alsa_poll_handler() [all …]
|
/external/chromium_org/android_webview/test/shell/src/org/chromium/android_webview/test/ |
D | TestContentProvider.java | 210 ParcelFileDescriptor[] pfds = null; in createImage() local 214 pfds = ParcelFileDescriptor.createPipe(); in createImage() 215 fileOut = new FileOutputStream(pfds[1].getFileDescriptor()); in createImage() 218 return new AssetFileDescriptor(pfds[0], 0, -1); in createImage() 221 if (pfds != null && pfds[1] != null) pfds[1].close(); in createImage()
|
/external/fio/engines/ |
D | binject.c | 25 struct pollfd *pfds; member 51 static int pollin_events(struct pollfd *pfds, int fds) in pollin_events() argument 56 if (pfds[i].revents & POLLIN) in pollin_events() 117 bd->pfds[i].fd = bf->fd; in fio_binject_getevents() 118 bd->pfds[i].events = POLLIN; in fio_binject_getevents() 123 ret = poll(bd->pfds, td->o.nr_files, -1); in fio_binject_getevents() 132 if (pollin_events(bd->pfds, td->o.nr_files)) in fio_binject_getevents() 385 free(bd->pfds); in fio_binject_cleanup() 403 bd->pfds = malloc(sizeof(struct pollfd) * td->o.nr_files); in fio_binject_init() 404 memset(bd->pfds, 0, sizeof(struct pollfd) * td->o.nr_files); in fio_binject_init()
|
D | sg.c | 26 struct pollfd *pfds; member 53 static int pollin_events(struct pollfd *pfds, int fds) in pollin_events() argument 58 if (pfds[i].revents & POLLIN) in pollin_events() 85 sd->pfds[i].fd = f->fd; in fio_sgio_getevents() 86 sd->pfds[i].events = POLLIN; in fio_sgio_getevents() 96 ret = poll(sd->pfds, td->o.nr_files, -1); in fio_sgio_getevents() 105 if (pollin_events(sd->pfds, td->o.nr_files)) in fio_sgio_getevents() 316 free(sd->pfds); in fio_sgio_cleanup() 332 sd->pfds = malloc(sizeof(struct pollfd) * td->o.nr_files); in fio_sgio_init() 333 memset(sd->pfds, 0, sizeof(struct pollfd) * td->o.nr_files); in fio_sgio_init()
|
/external/chromium_org/content/browser/renderer_host/ |
D | sandbox_ipc_linux.cc | 82 struct pollfd pfds[2]; in Run() local 83 pfds[0].fd = lifeline_fd_; in Run() 84 pfds[0].events = POLLIN; in Run() 85 pfds[1].fd = browser_socket_; in Run() 86 pfds[1].events = POLLIN; in Run() 91 HANDLE_EINTR(poll(pfds, arraysize(pfds), -1 /* no timeout */)); in Run() 107 if (pfds[0].revents) { in Run() 113 if (pfds[1].revents & (POLLERR | POLLHUP)) { in Run() 117 if (pfds[1].revents & POLLIN) { in Run()
|
/external/chromium_org/mojo/embedder/ |
D | platform_channel_pair_posix_unittest.cc | 36 struct pollfd pfds = {}; in WaitReadable() local 37 pfds.fd = h.fd; in WaitReadable() 38 pfds.events = POLLIN; in WaitReadable() 39 CHECK_EQ(poll(&pfds, 1, -1), 1); in WaitReadable()
|
/external/blktrace/ |
D | blktrace.c | 166 struct pollfd *pfds; member 231 struct pollfd *pfds; member 1593 free(tp->pfds); in close_ios() 1605 tp->pfds = calloc(ndevs, sizeof(struct pollfd)); in open_ios() 1606 memset(tp->pfds, 0, ndevs * sizeof(struct pollfd)); in open_ios() 1610 pfd = tp->pfds; in open_ios() 1666 struct pollfd *pfd = tp->pfds; in handle_pfds_file() 1710 struct pollfd *pfd = tp->pfds; in handle_pfds_netclient() 1744 struct pollfd *pfd = tp->pfds; in handle_pfds_entries() 1802 ndone = poll(tp->pfds, ndevs, to_val); in thread_main() [all …]
|
/external/bluetooth/bluedroid/btif/co/ |
D | bta_hh_co.c | 168 struct pollfd pfds[1]; in btif_hh_poll_event_thread() local 170 pfds[0].fd = p_dev->fd; in btif_hh_poll_event_thread() 171 pfds[0].events = POLLIN; in btif_hh_poll_event_thread() 174 ret = poll(pfds, 1, 50); in btif_hh_poll_event_thread() 179 if (pfds[0].revents & POLLIN) { in btif_hh_poll_event_thread()
|
/external/fio/ |
D | client.c | 1459 struct pollfd *pfds; in fio_handle_clients() local 1464 pfds = malloc(nr_clients * sizeof(struct pollfd)); in fio_handle_clients() 1483 pfds[i].fd = client->fd; in fio_handle_clients() 1484 pfds[i].events = POLLIN; in fio_handle_clients() 1505 ret = poll(pfds, nr_clients, ops->eta_msec); in fio_handle_clients() 1516 if (!(pfds[i].revents & POLLIN)) in fio_handle_clients() 1519 client = find_client_by_fd(pfds[i].fd); in fio_handle_clients() 1521 log_err("fio: unknown client fd %ld\n", (long) pfds[i].fd); in fio_handle_clients() 1537 free(pfds); in fio_handle_clients()
|