Lines Matching refs:fds
1781 struct pollfd *fds; in handle_events() local
1790 fds = malloc(sizeof(*fds) * nfds); in handle_events()
1791 if (!fds) in handle_events()
1798 fds[i].fd = fd; in handle_events()
1799 fds[i].events = pollfd->events; in handle_events()
1800 fds[i].revents = 0; in handle_events()
1811 r = poll(fds, nfds, timeout_ms); in handle_events()
1814 free(fds); in handle_events()
1817 free(fds); in handle_events()
1820 free(fds); in handle_events()
1826 if (fds[0].revents) { in handle_events()
1837 fds[0].revents = 0; in handle_events()
1844 if (usbi_using_timerfd(ctx) && fds[1].revents) { in handle_events()
1861 fds[1].revents = 0; in handle_events()
1867 r = usbi_backend->handle_events(ctx, fds, nfds, r); in handle_events()
1872 free(fds); in handle_events()