Lines Matching defs:pfds
839 static int32_t Ep0Event(struct UsbFnEventAll * const event, struct FconfigPollFd * const pfds)
844 if (pfds[i].revents & POLLIN) {
851 } else if (pfds[i].revents & POLLOUT) {
863 static int32_t EpEvent(struct UsbFnEventAll * const event, struct FconfigPollFd * const pfds)
868 if ((pfds[i + event->ep0Num].revents & POLLIN)) {
883 struct FconfigPollFd pfds[16] = {0};
884 struct FconfigPollFd *pfd = &pfds[0];
892 if (memset_s(&pfds, sizeof(pfds), 0, sizeof(pfds)) != EOK) {
902 pfds[i].fd = event->ep0[i];
903 pfds[i].events = POLLIN | POLLOUT;
910 pfds[i + event->ep0Num].fd = event->epx[i];
911 pfds[i + event->ep0Num].events = POLLIN;
914 pfds[i].revents = (uint32_t)handle_poll(pfds[i].fd, timeout);
915 if (pfds[i].revents < 0) {