| /f-stack/dpdk/lib/librte_cmdline/ |
| H A D | cmdline_os_unix.c | 34 struct pollfd pfd; in cmdline_poll_char() local 36 pfd.fd = cl->s_in; in cmdline_poll_char() 37 pfd.events = POLLIN; in cmdline_poll_char() 38 pfd.revents = 0; in cmdline_poll_char() 40 return poll(&pfd, 1, 0); in cmdline_poll_char()
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | ae_evport.c | 154 int fullmask, pfd; in aeApiAddEvent() local 165 pfd = aeApiLookupPending(state, fd); in aeApiAddEvent() 167 if (pfd != -1) { in aeApiAddEvent() 176 state->pending_masks[pfd] |= fullmask; in aeApiAddEvent() 185 int fullmask, pfd; in aeApiDelEvent() local 190 pfd = aeApiLookupPending(state, fd); in aeApiDelEvent() 192 if (pfd != -1) { in aeApiDelEvent() 201 state->pending_masks[pfd] &= ~mask; in aeApiDelEvent() 203 if (state->pending_masks[pfd] == AE_NONE) in aeApiDelEvent() 204 state->pending_fds[pfd] = -1; in aeApiDelEvent()
|
| H A D | ae.c | 485 struct pollfd pfd; in aeWait() local 488 memset(&pfd, 0, sizeof(pfd)); in aeWait() 489 pfd.fd = fd; in aeWait() 490 if (mask & AE_READABLE) pfd.events |= POLLIN; in aeWait() 491 if (mask & AE_WRITABLE) pfd.events |= POLLOUT; in aeWait() 493 if ((retval = poll(&pfd, 1, milliseconds))== 1) { in aeWait() 494 if (pfd.revents & POLLIN) retmask |= AE_READABLE; in aeWait() 495 if (pfd.revents & POLLOUT) retmask |= AE_WRITABLE; in aeWait() 496 if (pfd.revents & POLLERR) retmask |= AE_WRITABLE; in aeWait() 497 if (pfd.revents & POLLHUP) retmask |= AE_WRITABLE; in aeWait()
|
| /f-stack/dpdk/lib/librte_vhost/ |
| H A D | fd_man.c | 90 struct pollfd *pfd = &pfdset->rwfds[idx]; in fdset_add_fd() local 97 pfd->fd = fd; in fdset_add_fd() 98 pfd->events = rcb ? POLLIN : 0; in fdset_add_fd() 99 pfd->events |= wcb ? POLLOUT : 0; in fdset_add_fd() 100 pfd->revents = 0; in fdset_add_fd() 225 struct pollfd *pfd; in fdset_event_dispatch() local 263 pfd = &pfdset->rwfds[i]; in fdset_event_dispatch() 271 if (!pfd->revents) { in fdset_event_dispatch() 285 if (rcb && pfd->revents & (POLLIN | FDPOLLERR)) in fdset_event_dispatch() 287 if (wcb && pfd->revents & (POLLOUT | FDPOLLERR)) in fdset_event_dispatch()
|
| /f-stack/app/nginx-1.16.1/src/event/modules/ |
| H A D | ngx_devpoll_module.c | 352 struct pollfd pfd; in ngx_devpoll_process_events() local 419 pfd.fd = fd; in ngx_devpoll_process_events() 420 pfd.events = 0; in ngx_devpoll_process_events() 421 pfd.revents = 0; in ngx_devpoll_process_events() 423 rc = ioctl(dp, DP_ISPOLLED, &pfd); in ngx_devpoll_process_events() 443 revents, fd, rc, pfd.fd, pfd.revents); in ngx_devpoll_process_events() 445 pfd.fd = fd; in ngx_devpoll_process_events() 446 pfd.events = POLLREMOVE; in ngx_devpoll_process_events() 447 pfd.revents = 0; in ngx_devpoll_process_events() 449 if (write(dp, &pfd, sizeof(struct pollfd)) in ngx_devpoll_process_events()
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/randombytes/sysrandom/ |
| H A D | randombytes_sysrandom.c | 136 struct pollfd pfd; in randombytes_block_on_dev_random() local 144 pfd.fd = fd; in randombytes_block_on_dev_random() 145 pfd.events = POLLIN; in randombytes_block_on_dev_random() 146 pfd.revents = 0; in randombytes_block_on_dev_random() 148 pret = poll(&pfd, 1, -1); in randombytes_block_on_dev_random()
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | dmu_traverse.c | 211 ASSERT(pfd->pd_flags & TRAVERSE_PREFETCH_DATA); in prefetch_needed() 532 prefetch_data_t *pfd = arg; in traverse_prefetcher() local 537 ASSERT(pfd->pd_bytes_fetched >= 0); in traverse_prefetcher() 540 if (pfd->pd_cancel) in traverse_prefetcher() 543 if (!prefetch_needed(pfd, bp)) in traverse_prefetcher() 546 mutex_enter(&pfd->pd_mtx); in traverse_prefetcher() 547 while (!pfd->pd_cancel && pfd->pd_bytes_fetched >= zfs_pd_bytes_max) in traverse_prefetcher() 548 cv_wait_sig(&pfd->pd_cv, &pfd->pd_mtx); in traverse_prefetcher() 549 pfd->pd_bytes_fetched += BP_GET_LSIZE(bp); in traverse_prefetcher() 550 cv_broadcast(&pfd->pd_cv); in traverse_prefetcher() [all …]
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/randombytes/salsa20/ |
| H A D | randombytes_salsa20_random.c | 184 struct pollfd pfd; in randombytes_block_on_dev_random() local 192 pfd.fd = fd; in randombytes_block_on_dev_random() 193 pfd.events = POLLIN; in randombytes_block_on_dev_random() 194 pfd.revents = 0; in randombytes_block_on_dev_random() 196 pret = poll(&pfd, 1, -1); in randombytes_block_on_dev_random()
|
| /f-stack/dpdk/lib/librte_eal/linux/ |
| H A D | eal_interrupts.c | 1039 eal_intr_handle_interrupts(int pfd, unsigned totalfds) in eal_intr_handle_interrupts() argument 1045 nfds = epoll_wait(pfd, events, totalfds, in eal_intr_handle_interrupts() 1089 int pfd = epoll_create(1); in eal_intr_thread_main() local 1090 if (pfd < 0) in eal_intr_thread_main() 1098 if (epoll_ctl(pfd, EPOLL_CTL_ADD, intr_pipe.readfd, in eal_intr_thread_main() 1120 if (epoll_ctl(pfd, EPOLL_CTL_ADD, in eal_intr_thread_main() 1130 eal_intr_handle_interrupts(pfd, numfds); in eal_intr_thread_main() 1136 close(pfd); in eal_intr_thread_main() 1263 int pfd = epoll_create(255); in eal_init_tls_epfd() local 1265 if (pfd < 0) { in eal_init_tls_epfd() [all …]
|
| /f-stack/dpdk/drivers/net/af_packet/ |
| H A D | rte_eth_af_packet.c | 180 struct pollfd pfd; in eth_af_packet_tx() local 189 memset(&pfd, 0, sizeof(pfd)); in eth_af_packet_tx() 190 pfd.fd = pkt_q->sockfd; in eth_af_packet_tx() 191 pfd.events = POLLOUT; in eth_af_packet_tx() 192 pfd.revents = 0; in eth_af_packet_tx() 216 (poll(&pfd, 1, -1) < 0)) in eth_af_packet_tx()
|
| /f-stack/freebsd/net/route/ |
| H A D | fib_algo.c | 879 struct fib_data *old_fd, struct fib_data **pfd) in try_setup_fd_instance() argument 888 *pfd = NULL; in try_setup_fd_instance() 892 *pfd = fd; in try_setup_fd_instance() 973 struct fib_data *orig_fd, struct fib_data **pfd, bool attach) in setup_fd_instance() argument 1028 *pfd = new_fd; in setup_fd_instance()
|
| /f-stack/freebsd/arm/nvidia/tegra124/ |
| H A D | tegra124_clk_pll.c | 798 uint64_t vco, pfd; in plld2_set_freq() local 829 pfd = fin / m; in plld2_set_freq() 830 if (pfd > PLLD2_PFD_MAX || vco < PLLD2_PFD_MIN) in plld2_set_freq()
|
| /f-stack/freebsd/arm64/nvidia/tegra210/ |
| H A D | tegra210_clk_pll.c | 1021 uint64_t vco, pfd; in plld2_set_freq() local 1052 pfd = fin / m; in plld2_set_freq() 1053 if (pfd > PLLD2_PFD_MAX || vco < PLLD2_PFD_MIN) in plld2_set_freq()
|