Home
last modified time | relevance | path

Searched refs:pfds (Results 1 – 4 of 4) sorted by relevance

/drivers/hdf_core/framework/core/adapter/syscall/src/
Dhdf_syscall_adapter.c189 static int32_t AssignPfds(struct HdfDevListenerThread *thread, struct pollfd **pfds, uint16_t *pfdS… in AssignPfds() argument
191 struct pollfd *pfdPtr = *pfds; in AssignPfds()
204 OsalMemFree(*pfds); in AssignPfds()
205 *pfds = pfdPtr; in AssignPfds()
209 if (thread->pfds[i].fd != SYSCALL_INVALID_FD) { in AssignPfds()
210 pfdPtr[pfdCount].fd = thread->pfds[i].fd; in AssignPfds()
211 pfdPtr[pfdCount].events = thread->pfds[i].events; in AssignPfds()
242 struct pollfd *pfds = NULL; in HdfDevEventListenTask() local
250 pollCount = AssignPfds(thread, &pfds, &pfdSize); in HdfDevEventListenTask()
255 int32_t pollSize = poll(pfds, pollCount, -1); in HdfDevEventListenTask()
[all …]
/drivers/peripheral/usb/ddk/device/src/
Dadapter_if.c1119 static void Ep0Event(struct UsbFnEventAll *event, struct pollfd *pfds) in Ep0Event() argument
1124 if ((uint32_t)pfds[i].revents & POLLIN) { in Ep0Event()
1130 } else if ((uint32_t)pfds[i].revents & POLLOUT) { in Ep0Event()
1140 static void EpEvent(struct UsbFnEventAll *event, struct pollfd *pfds) in EpEvent() argument
1144 if ((pfds[i + event->ep0Num].revents & POLLIN)) { in EpEvent()
1158 struct pollfd *pfds = NULL; in UsbFnAdapterPollEvent() local
1166 pfds = UsbFnMemCalloc((event->ep0Num + event->epNum) * sizeof(struct pollfd)); in UsbFnAdapterPollEvent()
1167 if (pfds == NULL) { in UsbFnAdapterPollEvent()
1172 UsbFnMemFree(pfds); in UsbFnAdapterPollEvent()
1176 pfds[i].fd = event->ep0[i]; in UsbFnAdapterPollEvent()
[all …]
Dadapter_if_liteos.c827 static int32_t Ep0Event(struct UsbFnEventAll * const event, struct FconfigPollFd * const pfds) in Ep0Event() argument
832 if (pfds[i].revents & POLLIN) { in Ep0Event()
839 } else if (pfds[i].revents & POLLOUT) { in Ep0Event()
851 static int32_t EpEvent(struct UsbFnEventAll * const event, struct FconfigPollFd * const pfds) in EpEvent() argument
856 if ((pfds[i + event->ep0Num].revents & POLLIN)) { in EpEvent()
871 struct FconfigPollFd pfds[16] = {0}; in UsbFnAdapterPollEvent() local
872 struct FconfigPollFd *pfd = &pfds[0]; in UsbFnAdapterPollEvent()
880 if (memset_s(&pfds, sizeof(pfds), 0, sizeof(pfds)) != EOK) { in UsbFnAdapterPollEvent()
890 pfds[i].fd = event->ep0[i]; in UsbFnAdapterPollEvent()
891 pfds[i].events = POLLIN | POLLOUT; in UsbFnAdapterPollEvent()
[all …]
/drivers/hdf_core/framework/core/adapter/syscall/include/
Dhdf_syscall_adapter.h33 struct pollfd *pfds; member