Lines Matching refs:pfd
462 struct pollfd * pfd = (struct pollfd *)calloc(sizeof(struct pollfd), in monitor_thread_loop() local
464 if (!pfd) in monitor_thread_loop()
467 pfd[0].fd = sndmonitor.intpipe[0]; in monitor_thread_loop()
468 pfd[0].events = POLLPRI|POLLIN; in monitor_thread_loop()
474 pfd[i].fd = s->fd; in monitor_thread_loop()
475 pfd[i].events = POLLPRI; in monitor_thread_loop()
481 pfd[i].fd = d->fd; in monitor_thread_loop()
482 pfd[i].events = POLLPRI; in monitor_thread_loop()
487 if (poll(pfd, num_poll_fds, -1) < 0) { in monitor_thread_loop()
508 if (READY_TO_READ(&pfd[0])) { in monitor_thread_loop()
510 read(pfd[0].fd, buf, 1); in monitor_thread_loop()
513 } else if (ERROR_IN_FD(&pfd[0])) { in monitor_thread_loop()
519 pfd[0].revents); in monitor_thread_loop()
520 pfd[0].fd *= -1; in monitor_thread_loop()
526 if (READY_TO_READ(&pfd[i])) in monitor_thread_loop()
528 else if (ERROR_IN_FD(&pfd[i])) { in monitor_thread_loop()
534 pfd[i].revents); in monitor_thread_loop()
535 pfd[i].fd *= -1; in monitor_thread_loop()
542 if (READY_TO_READ(&pfd[i])) in monitor_thread_loop()
544 else if (ERROR_IN_FD(&pfd[i])) { in monitor_thread_loop()
550 pfd[i].revents); in monitor_thread_loop()
551 pfd[i].fd *= -1; in monitor_thread_loop()