/drivers/hdf_core/framework/core/adapter/syscall/src/ |
H A D | hdf_syscall_adapter.c | 190 static int32_t AssignPfds(struct HdfDevListenerThread *thread, struct pollfd **pfds, uint16_t *pfdSize) in AssignPfds() argument 192 struct pollfd *pfdPtr = *pfds; in AssignPfds() 205 OsalMemFree(*pfds); in AssignPfds() 206 *pfds = pfdPtr; in AssignPfds() 210 if (thread->pfds[i].fd != SYSCALL_INVALID_FD) { in AssignPfds() 211 pfdPtr[pfdCount].fd = thread->pfds[i].fd; in AssignPfds() 212 pfdPtr[pfdCount].events = thread->pfds[i].events; in AssignPfds() 243 struct pollfd *pfds = NULL; in HdfDevEventListenTask() local 251 pollCount = AssignPfds(thread, &pfds, &pfdSize); in HdfDevEventListenTask() 256 int32_t pollSize = poll(pfds, pollCoun in HdfDevEventListenTask() 379 struct pollfd *pfds = thread->pfds; GetValidPfdIndexLocked() local 598 struct pollfd *pfds = thread->pfds; HdfListenThreadPollDel() local [all...] |
/kernel/linux/linux-5.10/samples/uhid/ |
H A D | uhid-example.c | 391 struct pollfd pfds[2]; in main() local 429 pfds[0].fd = STDIN_FILENO; in main() 430 pfds[0].events = POLLIN; in main() 431 pfds[1].fd = fd; in main() 432 pfds[1].events = POLLIN; in main() 436 ret = poll(pfds, 2, -1); in main() 441 if (pfds[0].revents & POLLHUP) { in main() 445 if (pfds[1].revents & POLLHUP) { in main() 450 if (pfds[0].revents & POLLIN) { in main() 455 if (pfds[ in main() [all...] |
/kernel/linux/linux-6.6/samples/uhid/ |
H A D | uhid-example.c | 391 struct pollfd pfds[2]; in main() local 429 pfds[0].fd = STDIN_FILENO; in main() 430 pfds[0].events = POLLIN; in main() 431 pfds[1].fd = fd; in main() 432 pfds[1].events = POLLIN; in main() 436 ret = poll(pfds, 2, -1); in main() 441 if (pfds[0].revents & POLLHUP) { in main() 445 if (pfds[1].revents & POLLHUP) { in main() 450 if (pfds[0].revents & POLLIN) { in main() 455 if (pfds[ in main() [all...] |
/kernel/liteos_a/testsuites/unittest/drivers/hid/smoke/ |
H A D | hid_test_001.cpp | 47 struct pollfd pfds[1]; in Testcase() local 67 pfds[0].fd = fd; in Testcase() 68 pfds[0].events = POLLIN; in Testcase() 70 ret = poll(pfds, 1, MOUSE_WAIT_TIME); in Testcase()
|
/drivers/peripheral/usb/ddk/device/src/ |
H A D | adapter_if.c | 1125 static void Ep0Event(struct UsbFnEventAll *event, struct pollfd *pfds) in Ep0Event() argument 1130 if ((uint32_t)pfds[i].revents & POLLIN) { in Ep0Event() 1136 } else if ((uint32_t)pfds[i].revents & POLLOUT) { in Ep0Event() 1146 static void EpEvent(struct UsbFnEventAll *event, struct pollfd *pfds) in EpEvent() argument 1150 if ((pfds[i + event->ep0Num].revents & POLLIN)) { in EpEvent() 1164 struct pollfd *pfds = NULL; in UsbFnAdapterPollEvent() local 1172 pfds = UsbFnMemCalloc((event->ep0Num + event->epNum) * sizeof(struct pollfd)); in UsbFnAdapterPollEvent() 1173 if (pfds == NULL) { in UsbFnAdapterPollEvent() 1178 UsbFnMemFree(pfds); in UsbFnAdapterPollEvent() 1182 pfds[ in UsbFnAdapterPollEvent() [all...] |
H A D | adapter_if_liteos.c | 839 static int32_t Ep0Event(struct UsbFnEventAll * const event, struct FconfigPollFd * const pfds) in Ep0Event() argument 844 if (pfds[i].revents & POLLIN) { in Ep0Event() 851 } else if (pfds[i].revents & POLLOUT) { in Ep0Event() 863 static int32_t EpEvent(struct UsbFnEventAll * const event, struct FconfigPollFd * const pfds) in EpEvent() argument 868 if ((pfds[i + event->ep0Num].revents & POLLIN)) { in EpEvent() 883 struct FconfigPollFd pfds[16] = {0}; in UsbFnAdapterPollEvent() local 884 struct FconfigPollFd *pfd = &pfds[0]; in UsbFnAdapterPollEvent() 892 if (memset_s(&pfds, sizeof(pfds), 0, sizeof(pfds)) ! in UsbFnAdapterPollEvent() [all...] |
/kernel/linux/linux-6.6/tools/lib/api/ |
H A D | io.h | 58 struct pollfd pfds[] = { in io__get_char() local 65 n = poll(pfds, 1, io->timeout_ms); in io__get_char() 68 if (n > 0 && !(pfds[0].revents & POLLIN)) { in io__get_char()
|
/kernel/linux/linux-5.10/tools/usb/ffs-aio-example/simple/device_app/ |
H A D | aio_simple.c | 169 struct pollfd pfds[1]; in handle_ep0() local 170 pfds[0].fd = ep0; in handle_ep0() 171 pfds[0].events = POLLIN; in handle_ep0() 173 ret = poll(pfds, 1, 0); in handle_ep0() 175 if (ret && (pfds[0].revents & POLLIN)) { in handle_ep0()
|
/kernel/linux/linux-6.6/tools/usb/ffs-aio-example/simple/device_app/ |
H A D | aio_simple.c | 187 struct pollfd pfds[1]; in handle_ep0() local 188 pfds[0].fd = ep0; in handle_ep0() 189 pfds[0].events = POLLIN; in handle_ep0() 191 ret = poll(pfds, 1, 0); in handle_ep0() 193 if (ret && (pfds[0].revents & POLLIN)) { in handle_ep0()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/af_unix/ |
H A D | test_unix_oob.c | 109 struct pollfd pfds[1]; in wait_for_data() local 111 pfds[0].fd = pfd; in wait_for_data() 112 pfds[0].events = event; in wait_for_data() 113 poll(pfds, 1, -1); in wait_for_data()
|
/drivers/hdf_core/framework/core/adapter/syscall/include/ |
H A D | hdf_syscall_adapter.h | 33 struct pollfd *pfds; member
|
/kernel/linux/linux-6.6/tools/testing/selftests/hid/ |
H A D | hid_bpf.c | 239 struct pollfd pfds[1]; in uhid_read_events_thread() local 243 pfds[0].fd = fd; in uhid_read_events_thread() 244 pfds[0].events = POLLIN; in uhid_read_events_thread() 249 ret = poll(pfds, 1, 100); in uhid_read_events_thread() 254 if (pfds[0].revents & POLLIN) { in uhid_read_events_thread()
|