Lines Matching refs:pfd
458 static void clear_events(struct pollfd *pfd) in clear_events() argument
460 pfd->events = 0; in clear_events()
461 pfd->revents = 0; in clear_events()
1598 struct pollfd *pfd; in open_ios() local
1610 pfd = tp->pfds; in open_ios()
1628 pfd->fd = iop->ifd; in open_ios()
1629 pfd->events = POLLIN; in open_ios()
1649 pfd++; in open_ios()
1666 struct pollfd *pfd = tp->pfds; in handle_pfds_file() local
1669 for (i = 0; nevs > 0 && i < ndevs; i++, pfd++, iop++) { in handle_pfds_file()
1670 if (pfd->revents & POLLIN || force_read) { in handle_pfds_file()
1675 pfd->events = 0; in handle_pfds_file()
1692 clear_events(pfd); in handle_pfds_file()
1696 clear_events(pfd); in handle_pfds_file()
1710 struct pollfd *pfd = tp->pfds; in handle_pfds_netclient() local
1713 for (i = 0; i < ndevs; i++, pfd++, iop++, sp++) { in handle_pfds_netclient()
1714 if (pfd->revents & POLLIN || force_read) { in handle_pfds_netclient()
1717 pfd->events = 0; in handle_pfds_netclient()
1727 clear_events(pfd); in handle_pfds_netclient()
1744 struct pollfd *pfd = tp->pfds; in handle_pfds_entries() local
1748 for (i = 0; i < ndevs; i++, pfd++, iop++) { in handle_pfds_entries()
1749 if (pfd->revents & POLLIN || force_read) { in handle_pfds_entries()
1761 clear_events(pfd); in handle_pfds_entries()
1765 clear_events(pfd); in handle_pfds_entries()
2462 struct pollfd *pfd; in handle_client_data() local
2465 pfd = &ns->pfds[1]; in handle_client_data()
2467 if (pfd->revents & POLLIN) { in handle_client_data()
2473 pfd++; in handle_client_data()
2479 struct pollfd *pfd; in net_setup_pfds() local
2485 pfd = &ns->pfds[1]; in net_setup_pfds()
2489 pfd->fd = nc->fd; in net_setup_pfds()
2490 pfd->events = POLLIN; in net_setup_pfds()
2491 pfd++; in net_setup_pfds()