Searched refs:pfds (Results 1 – 5 of 5) sorted by relevance
| /tools/testing/selftests/hid/ |
| A D | hidraw.c | 137 struct pollfd pfds[1]; in TEST_F() local 142 pfds[0].fd = self->hidraw_fd; in TEST_F() 143 pfds[0].events = POLLIN; in TEST_F() 151 ready = poll(pfds, 1, 5000); in TEST_F() 154 if (pfds[0].revents & POLLIN) { in TEST_F() 169 ASSERT_TRUE(pfds[0].revents & POLLHUP); in TEST_F()
|
| A D | hid_common.h | 249 struct pollfd pfds[1]; in uhid_read_events_thread() local 253 pfds[0].fd = fd; in uhid_read_events_thread() 254 pfds[0].events = POLLIN; in uhid_read_events_thread() 259 ret = poll(pfds, 1, 100); in uhid_read_events_thread() 264 if (pfds[0].revents & POLLIN) { in uhid_read_events_thread()
|
| /tools/usb/ffs-aio-example/simple/device_app/ |
| 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()
|
| /tools/lib/api/ |
| A D | io.h | 55 struct pollfd pfds[] = { in io__fill_buffer() local 62 n = poll(pfds, 1, io->timeout_ms); in io__fill_buffer() 65 if (n > 0 && !(pfds[0].revents & POLLIN)) { in io__fill_buffer()
|
| /tools/perf/tests/ |
| A D | builtin-test.c | 428 struct pollfd pfds[1] = { in finish_test() local 462 poll(pfds, ARRAY_SIZE(pfds), /*timeout=*/100); in finish_test() 463 if (pfds[0].revents) { in finish_test()
|
Completed in 10 milliseconds