Lines Matching refs:pfd
212 struct pollfd pfd;
219 pfd.fd = sfd;
220 pfd.events = POLLIN;
222 if (poll(&pfd, 1, 0) == 0)
228 //BTIF_TRACE_EVENT1("poll revents 0x%x", pfd.revents);
416 struct pollfd pfd;
419 pfd.events = POLLIN|POLLHUP;
420 pfd.fd = uipc_main.ch[ch_id].fd;
427 ret = poll(&pfd, 1, 1);
428 BTIF_TRACE_EVENT3("uipc_flush_ch_locked polling : fd %d, rxev %x, ret %d", pfd.fd, pfd.revents, ret);
430 if (pfd.revents | (POLLERR|POLLHUP))
438 read(pfd.fd, &buf, 1);
773 struct pollfd pfd;
792 pfd.fd = fd;
793 pfd.events = POLLIN|POLLHUP;
797 if (poll(&pfd, 1, uipc_main.ch[ch_id].read_poll_tmo_ms) == 0)
803 //BTIF_TRACE_EVENT1("poll revents %x", pfd.revents);
805 if (pfd.revents & (POLLHUP|POLLNVAL) )