Lines Matching refs:pfd
218 struct pollfd *pfd = NULL; in threadLoop() local
270 pfd = new pollfd[mSndCardFd.size() + mAudioEvents.size()]; in threadLoop()
271 bzero(pfd, (sizeof(*pfd) * mSndCardFd.size() + in threadLoop()
272 sizeof(*pfd) * mAudioEvents.size())); in threadLoop()
274 pfd[i].fd = mSndCardFd[i].second; in threadLoop()
275 pfd[i].events = POLLPRI; in threadLoop()
280 pfd[i+mSndCardFd.size()].fd = mAudioEvents[i].second; in threadLoop()
281 pfd[i+mSndCardFd.size()].events = POLLPRI; in threadLoop()
286 if (!read(pfd[i].fd, (void *)rd_buf, 8)) { in threadLoop()
291 lseek(pfd[i].fd, 0, SEEK_SET); in threadLoop()
335 checkEventState(pfd[i+mSndCardFd.size()].fd, i); in threadLoop()
340 if (poll(pfd, (mSndCardFd.size() + mAudioEvents.size()), -1) < 0) { in threadLoop()
348 if (pfd[i].revents & POLLPRI) { in threadLoop()
349 if (!read(pfd[i].fd, (void *)rd_buf, 8)) { in threadLoop()
355 lseek(pfd[i].fd, 0, SEEK_SET); in threadLoop()
396 if (pfd[i + mSndCardFd.size()].revents & POLLPRI) { in threadLoop()
398 pfd[i + mSndCardFd.size()].revents, in threadLoop()
401 checkEventState(pfd[i + mSndCardFd.size()].fd, i); in threadLoop()
408 delete [] pfd; in threadLoop()