Searched refs:pfds (Results 1 – 4 of 4) sorted by relevance
/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 qemu_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/bluetooth/bluedroid/btif/co/ |
D | bta_hh_co.c | 163 struct pollfd pfds[1]; in btif_hh_poll_event_thread() local 165 pfds[0].fd = p_dev->fd; in btif_hh_poll_event_thread() 166 pfds[0].events = POLLIN; in btif_hh_poll_event_thread() 169 ret = poll(pfds, 1, 500); in btif_hh_poll_event_thread() 174 if (pfds[0].revents & POLLIN) { in btif_hh_poll_event_thread()
|
/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 …]
|