Home
last modified time | relevance | path

Searched refs:revents (Results 1 – 25 of 108) sorted by relevance

12345

/OK3568_Linux_fs/external/xserver/os/
H A Dospoll.c66 short revents; member
107 short revents; member
109 void (*callback)(int fd, int revents, void *data);
296 ospoll->fds[pos].revents = 0; in ospoll_add()
408 ospoll->fds[pos].revents = 0; in ospoll_add()
409 ospoll->osfds[pos].revents = 0; in ospoll_add()
505 ospoll->fds[pos].revents &= ~POLLIN; in ospoll_listen()
509 ospoll->fds[pos].revents &= ~POLLOUT; in ospoll_listen()
522 ospoll->osfds[pos].revents &= ~POLLIN; in ospoll_listen()
526 ospoll->osfds[pos].revents &= ~POLLOUT; in ospoll_listen()
[all …]
H A Dxserver_poll.c221 pCur->revents = 0; in map_select_results()
223 pCur->revents |= POLLPRI; in map_select_results()
226 pCur->revents |= POLLIN; in map_select_results()
229 pCur->revents |= POLLOUT; in map_select_results()
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/
H A Dsock_server.c38 short revents = srvst->fds[idx].revents; in server_io_cb() local
44 if (revents & POLLIN) { in server_io_cb()
51 if (revents & POLLOUT) { in server_io_cb()
58 if (!(revents & ~(POLLIN | POLLOUT))) in server_io_cb()
83 srvst->fds[n].revents = 0; in server_add_state()
101 srvst->fds[srvst->nfds].revents = 0; in server_add_state()
109 short revents = srvst->fds[idx].revents; in tcp_server_accept_cb() local
116 if (!(revents & POLLIN)) in tcp_server_accept_cb()
140 short revents = srvst->fds[idx].revents; in udp_server_cb() local
142 if (!(revents & POLLIN)) in udp_server_cb()
[all …]
/OK3568_Linux_fs/kernel/tools/perf/tests/
H A Dfdarray.c7 static void fdarray__init_revents(struct fdarray *fda, short revents) in fdarray__init_revents() argument
15 fda->entries[fd].events = revents; in fdarray__init_revents()
16 fda->entries[fd].revents = revents; in fdarray__init_revents()
58 fda->entries[2].revents = POLLIN; in test__fdarray__filter()
70 fda->entries[0].revents = POLLIN; in test__fdarray__filter()
71 fda->entries[3].revents = POLLIN; in test__fdarray__filter()
/OK3568_Linux_fs/buildroot/dl/unixbench/git/UnixBench/src/
H A Dtime-polling.c249 short revents; in time_poll() local
273 if (pollfd_ptr->revents == 0) continue; in time_poll()
276 revents = pollfd_ptr->revents; in time_poll()
278 if (revents & POLLPRI) in time_poll()
280 if (revents & POLLIN) in time_poll()
282 if (revents & POLLOUT) in time_poll()
304 short revents; in time_poll2() local
331 revents = poll2ofd_array[i].revents; in time_poll2()
333 if (revents & POLLPRI) in time_poll2()
335 if (revents & POLLIN) in time_poll2()
[all …]
/OK3568_Linux_fs/kernel/tools/lib/api/fd/
H A Darray.c76 int fdarray__add(struct fdarray *fda, int fd, short revents, enum fdarray_flags flags) in fdarray__add() argument
85 fda->entries[fda->nr].events = revents; in fdarray__add()
91 int fdarray__filter(struct fdarray *fda, short revents, in fdarray__filter() argument
104 if (fda->entries[fd].revents & revents) { in fdarray__filter()
108 fda->entries[fd].revents = fda->entries[fd].events = 0; in fdarray__filter()
H A Darray.h44 int fdarray__add(struct fdarray *fda, int fd, short revents, enum fdarray_flags flags);
46 int fdarray__filter(struct fdarray *fda, short revents,
/OK3568_Linux_fs/app/forlinx/quectelCM/
H A DGobiNetCM.c144 pollfds[nevents].revents = 0; in GobiNetThread()
165 short revents = pollfds[ne].revents; in GobiNetThread() local
167 if (revents & (POLLERR | POLLHUP | POLLNVAL)) { in GobiNetThread()
169 dbg_time("epoll fd = %d, events = 0x%04x", fd, revents); in GobiNetThread()
173 if (revents & (POLLERR | POLLHUP | POLLNVAL)) in GobiNetThread()
177 if ((revents & POLLIN) == 0) in GobiNetThread()
H A Dquectel-mbim-proxy.c276 pollfds[nevents].revents= 0; in proxy_loop()
282 pollfds[nevents].revents= 0; in proxy_loop()
289 pollfds[nevents].revents= 0; in proxy_loop()
302 short revents = pollfds[ne].revents; in proxy_loop() local
304 if (revents & (POLLERR | POLLHUP | POLLNVAL)) { in proxy_loop()
305 mbim_debug("%s poll fd = %d, revents = %04x\n", __func__, fd, revents); in proxy_loop()
316 if (!(pollfds[ne].revents & POLLIN)) { in proxy_loop()
H A DQmiWwanCM.c149 if (pollfds[0].revents & POLLOUT) { in QmiWwanSendQMI()
158 …dbg_time("%s poll=%d, revents = 0x%x, errno: %d (%s)", __func__, ret, pollfds[0].revents, errno, s… in QmiWwanSendQMI()
364 short revents = pollfds[ne].revents; in QmiWwanThread() local
368 if (revents & (POLLERR | POLLHUP | POLLNVAL)) { in QmiWwanThread()
370 dbg_time("poll fd = %d, events = 0x%04x", fd, revents); in QmiWwanThread()
374 if (revents & (POLLHUP | POLLNVAL)) //EC20 bug, Can get POLLERR in QmiWwanThread()
378 if ((revents & POLLIN) == 0) in QmiWwanThread()
H A Dquectel-qmi-proxy.c620 if (pollfds[0].revents & POLLOUT) { in send_qmi_to_cdc_wdm()
637 if (pollfds[0].revents & POLLOUT) { in send_qmi_to_client()
807 pollfds[nevents].revents= 0; in qmi_proxy_loop()
813 pollfds[nevents].revents= 0; in qmi_proxy_loop()
822 pollfds[nevents].revents= 0; in qmi_proxy_loop()
849 short revents = pollfds[ne].revents; in qmi_proxy_loop() local
851 if (revents & (POLLERR | POLLHUP | POLLNVAL)) { in qmi_proxy_loop()
852 dprintf("%s poll fd = %d, revents = %04x\n", __func__, fd, revents); in qmi_proxy_loop()
864 if (!(pollfds[ne].revents & POLLIN)) { in qmi_proxy_loop()
H A Datc.c136 short revents = pollfds[ne].revents; in atc_read_thread() local
138 if (revents & (POLLERR | POLLHUP | POLLNVAL)) { in atc_read_thread()
140 dbg_time("epoll fd = %d, events = 0x%04x", fd, revents); in atc_read_thread()
141 if (revents & (POLLERR | POLLHUP | POLLNVAL)) in atc_read_thread()
145 if ((revents & POLLIN) == 0) in atc_read_thread()
/OK3568_Linux_fs/kernel/Documentation/userspace-api/media/v4l/
H A Dfunc-poll.rst46 ``revents`` field of the respective ``struct pollfd`` structure
48 flags in the ``revents`` field, output devices the ``POLLOUT`` and
53 function succeeds, but sets the ``POLLERR`` flag in the ``revents``
58 the ``revents`` field. For output devices this same situation will cause
60 ``POLLWRNORM`` flags in the ``revents`` field.
63 then ``POLLPRI`` will be set in the ``revents`` field and
94 non-zero ``revents`` fields, or zero if the call timed out. On error -1
/OK3568_Linux_fs/kernel/Documentation/userspace-api/media/mediactl/
H A Drequest-func-poll.rst44 ``revents`` field of the respective struct :c:type:`pollfd`
45 is non-zero). Request file descriptor set the ``POLLPRI`` flag in ``revents``
51 set the ``POLLERR`` flag in ``revents``.
57 structures which have non-zero ``revents`` fields, or zero if the call
/OK3568_Linux_fs/kernel/samples/uhid/
H A Duhid-example.c441 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[1].revents & POLLIN) { in main()
/OK3568_Linux_fs/kernel/samples/nitro_enclaves/
H A Dne_ioctl_sample.c229 printf("Poll received value 0x%x\n", fds[0].revents); in ne_poll_enclave_fd()
231 if (fds[0].revents & POLLHUP) { in ne_poll_enclave_fd()
237 if (fds[0].revents & POLLNVAL) { in ne_poll_enclave_fd()
715 if ((fds[0].revents & POLLIN) == 0) { in ne_start_enclave_check_booted()
716 printf("Poll received value %d\n", fds[0].revents); in ne_start_enclave_check_booted()
/OK3568_Linux_fs/kernel/Documentation/userspace-api/media/cec/
H A Dcec-func-poll.rst44 ``revents`` field of the respective struct :c:type:`pollfd`
46 the ``revents`` field if there are messages in the receive queue. If the
59 non-zero ``revents`` fields, or zero if the call timed out. On error -1
/OK3568_Linux_fs/kernel/tools/testing/selftests/pidfd/
H A Dpidfd_poll_test.c97 if (!(fds.revents & POLLIN)) in main()
100 fds.revents); in main()
/OK3568_Linux_fs/yocto/meta-rockchip/dynamic-layers/recipes-browser/chromium/chromium_103.0.5060/
H A D0005-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch22 - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI);
23 + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN);
/OK3568_Linux_fs/yocto/meta-rockchip/dynamic-layers/recipes-browser/chromium/chromium_105.0.5195/
H A D0005-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch22 - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI);
23 + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN);
/OK3568_Linux_fs/yocto/meta-rockchip/dynamic-layers/recipes-browser/chromium/chromium_100.0.4896/
H A D0005-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch22 - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI);
23 + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN);
/OK3568_Linux_fs/yocto/meta-rockchip/dynamic-layers/recipes-browser/chromium/chromium_98.0.4758/
H A D0007-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch22 - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI);
23 + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN);
/OK3568_Linux_fs/buildroot/package/qt5/qt5webengine-chromium/
H A D0009-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch22 - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI);
23 + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN);
/OK3568_Linux_fs/yocto/meta-rockchip/dynamic-layers/recipes-browser/chromium/chromium_96.0.4664/
H A D0006-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch22 - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI);
23 + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN);
/OK3568_Linux_fs/yocto/meta-rockchip/dynamic-layers/recipes-browser/chromium/chromium_109.0.5414/
H A D0006-media-gpu-v4l2-Use-POLLIN-for-pending-event.patch22 - *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLPRI);
23 + *event_pending = (pollfd != -1 && pollfds[pollfd].revents & POLLIN);

12345