Home
last modified time | relevance | path

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

/linux-4.1.27/tools/lib/api/fd/
Darray.c73 int fdarray__add(struct fdarray *fda, int fd, short revents) in fdarray__add() argument
82 fda->entries[fda->nr].events = revents; in fdarray__add()
87 int fdarray__filter(struct fdarray *fda, short revents, in fdarray__filter() argument
96 if (fda->entries[fd].revents & revents) { in fdarray__filter()
Darray.h34 int fdarray__add(struct fdarray *fda, int fd, short revents);
36 int fdarray__filter(struct fdarray *fda, short revents,
/linux-4.1.27/tools/perf/tests/
Dfdarray.c5 static void fdarray__init_revents(struct fdarray *fda, short revents) in fdarray__init_revents() argument
13 fda->entries[fd].revents = revents; in fdarray__init_revents()
55 fda->entries[2].revents = POLLIN; in test__fdarray__filter()
74 fda->entries[0].revents = POLLIN; in test__fdarray__filter()
76 fda->entries[3].revents = POLLIN; in test__fdarray__filter()
/linux-4.1.27/arch/um/os-Linux/
Dirq.c43 if (pollfds[i].revents != 0) { in os_waiting_for_events()
44 irq_fd->current_events = pollfds[i].revents; in os_waiting_for_events()
73 .revents = 0 }); in os_create_pollfd()
Dsigio.c70 if (p->revents == 0) in write_sigio_thread()
252 .revents = 0 }); in setup_initial_poll()
356 .revents = 0 }); in sigio_broken()
/linux-4.1.27/samples/uhid/
Duhid-example.c440 if (pfds[0].revents & POLLHUP) { in main()
444 if (pfds[1].revents & POLLHUP) { in main()
449 if (pfds[0].revents & POLLIN) { in main()
454 if (pfds[1].revents & POLLIN) { in main()
/linux-4.1.27/Documentation/mic/mpssd/
Dmpssd.c481 pollfd.revents = 0; in wait_for_card_driver()
489 if (pollfd.revents) { in wait_for_card_driver()
494 mic->name, __func__, pollfd.revents); in wait_for_card_driver()
568 net_poll[NET_FD_VIRTIO_NET].revents = 0; in virtio_net()
569 net_poll[NET_FD_TUN].revents = 0; in virtio_net()
585 if (net_poll[NET_FD_TUN].revents & POLLIN) { in virtio_net()
643 if (net_poll[NET_FD_VIRTIO_NET].revents & POLLIN) { in virtio_net()
706 if (net_poll[NET_FD_VIRTIO_NET].revents & POLLERR) in virtio_net()
781 console_poll[MONITOR_FD].revents = 0; in virtio_console()
782 console_poll[VIRTIO_CONSOLE_FD].revents = 0; in virtio_console()
[all …]
/linux-4.1.27/arch/sparc/kernel/
Dsparc_ksyms_32.c19 short revents; member
Dsparc_ksyms_64.c22 short revents; member
/linux-4.1.27/include/uapi/asm-generic/
Dpoll.h38 short revents; member
/linux-4.1.27/fs/
Deventpoll.c1267 int error, revents, pwake = 0; in ep_insert() local
1307 revents = ep_item_poll(epi, &epq.pt); in ep_insert()
1338 if ((revents & event->events) && !ep_is_linked(&epi->rdllink)) { in ep_insert()
1395 unsigned int revents; in ep_modify() local
1438 revents = ep_item_poll(epi, &pt); in ep_modify()
1444 if (revents & event->events) { in ep_modify()
1471 unsigned int revents; in ep_send_events_proc() local
1506 revents = ep_item_poll(epi, &pt); in ep_send_events_proc()
1514 if (revents) { in ep_send_events_proc()
1515 if (__put_user(revents, &uevent->events) || in ep_send_events_proc()
Dselect.c776 pollfd->revents = mask; in do_pollfd()
919 if (__put_user(fds[j].revents, &ufds->revents)) in do_sys_poll()
/linux-4.1.27/Documentation/timers/
Dhpet_example.c181 pfd.revents = 0; in hpet_poll()
196 pfd.revents); in hpet_poll()
/linux-4.1.27/tools/testing/selftests/net/
Dpsock_tpacket.c247 pfd.revents = 0; in walk_v1_v2_rx()
385 pfd.revents = 0; in walk_v1_v2_tx()
554 pfd.revents = 0; in walk_v3_rx()
/linux-4.1.27/Documentation/connector/
Ducon.c206 pfd.revents = 0; in main()
/linux-4.1.27/Documentation/networking/
Dnetlink_mmap.txt252 pfds[0].revents = 0;
258 if (pfds[0].revents & POLLERR)
262 if (!(pfds[0].revents & POLLIN))
Dpacket_mmap.txt493 pfd.revents = 0;
528 pfd.revents = 0;
955 pfd.revents = 0;
Dtimestamping.txt326 POLLERR in pollfd.revents if any data is ready on the error queue.
/linux-4.1.27/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c175 if (ret && (pfds[0].revents & POLLIN)) { in handle_ep0()
/linux-4.1.27/tools/hv/
Dhv_vss_daemon.c276 pfd.revents = 0; in main()
Dhv_kvp_daemon.c1543 pfd.revents = 0; in main()
/linux-4.1.27/tools/virtio/
Dvirtio_test.c148 if (dev->fds[i].revents & POLLIN) { in wait_for_interrupt()
/linux-4.1.27/tools/firewire/
Dnosy-dump.c993 if (pollfds[1].revents) { in main()
1003 if (pollfds[0].revents) in main()
/linux-4.1.27/Documentation/usb/
Dgadget_printer.txt215 if (retval && (fd[0].revents & POLLRDNORM)) {
273 if (retval && (fd[0].revents & POLLWRNORM)) {
/linux-4.1.27/include/uapi/linux/
Dfuse.h657 uint32_t revents; member
/linux-4.1.27/tools/usb/usbip/src/
Dusbipd.c564 if (fds[i].revents & POLLIN) { in do_standalone_mode()
/linux-4.1.27/tools/perf/
Dbuiltin-kvm.c955 if (fda->entries[nr_stdin].revents & POLLIN) in kvm_events_live_report()
/linux-4.1.27/fs/fuse/
Dfile.c2731 return outarg.revents; in fuse_file_poll()