Lines Matching refs:pfd
445 struct pollfd *pfd; in eloop_sock_table_set_fds() local
470 pfd = pollfds_map[fd]; in eloop_sock_table_set_fds()
471 if (!pfd) { in eloop_sock_table_set_fds()
472 pfd = &(pollfds[nxt]); in eloop_sock_table_set_fds()
473 pfd->events = 0; in eloop_sock_table_set_fds()
474 pfd->fd = fd; in eloop_sock_table_set_fds()
476 pollfds_map[fd] = pfd; in eloop_sock_table_set_fds()
479 pfd->events |= POLLOUT; in eloop_sock_table_set_fds()
496 pfd = pollfds_map[fd]; in eloop_sock_table_set_fds()
497 if (!pfd) { in eloop_sock_table_set_fds()
498 pfd = &(pollfds[nxt]); in eloop_sock_table_set_fds()
499 pfd->events = POLLIN; in eloop_sock_table_set_fds()
500 pfd->fd = fd; in eloop_sock_table_set_fds()
502 pollfds_map[fd] = pfd; in eloop_sock_table_set_fds()
518 struct pollfd *pfd; in eloop_sock_table_dispatch_table() local
525 pfd = find_pollfd(pollfds_map, table->table[i].sock, in eloop_sock_table_dispatch_table()
527 if (!pfd) in eloop_sock_table_dispatch_table()
530 if (!(pfd->revents & revents)) in eloop_sock_table_dispatch_table()
1303 struct pollfd pfd; in eloop_wait_for_read_sock() local
1308 os_memset(&pfd, 0, sizeof(pfd)); in eloop_wait_for_read_sock()
1309 pfd.fd = sock; in eloop_wait_for_read_sock()
1310 pfd.events = POLLIN; in eloop_wait_for_read_sock()
1312 poll(&pfd, 1, -1); in eloop_wait_for_read_sock()