Lines Matching refs:pfd
450 struct pollfd *pfd; in eloop_sock_table_set_fds() local
475 pfd = pollfds_map[fd]; in eloop_sock_table_set_fds()
476 if (!pfd) { in eloop_sock_table_set_fds()
477 pfd = &(pollfds[nxt]); in eloop_sock_table_set_fds()
478 pfd->events = 0; in eloop_sock_table_set_fds()
479 pfd->fd = fd; in eloop_sock_table_set_fds()
481 pollfds_map[fd] = pfd; in eloop_sock_table_set_fds()
484 pfd->events |= POLLOUT; in eloop_sock_table_set_fds()
501 pfd = pollfds_map[fd]; in eloop_sock_table_set_fds()
502 if (!pfd) { in eloop_sock_table_set_fds()
503 pfd = &(pollfds[nxt]); in eloop_sock_table_set_fds()
504 pfd->events = POLLIN; in eloop_sock_table_set_fds()
505 pfd->fd = fd; in eloop_sock_table_set_fds()
507 pollfds_map[fd] = pfd; in eloop_sock_table_set_fds()
523 struct pollfd *pfd; in eloop_sock_table_dispatch_table() local
530 pfd = find_pollfd(pollfds_map, table->table[i].sock, in eloop_sock_table_dispatch_table()
532 if (!pfd) in eloop_sock_table_dispatch_table()
535 if (!(pfd->revents & revents)) in eloop_sock_table_dispatch_table()
1308 struct pollfd pfd; in eloop_wait_for_read_sock() local
1313 os_memset(&pfd, 0, sizeof(pfd)); in eloop_wait_for_read_sock()
1314 pfd.fd = sock; in eloop_wait_for_read_sock()
1315 pfd.events = POLLIN; in eloop_wait_for_read_sock()
1317 poll(&pfd, 1, -1); in eloop_wait_for_read_sock()