Lines Matching refs:pfd
1350 struct zsock_pollfd *pfd, in zsock_poll_prepare_ctx() argument
1354 if (pfd->events & ZSOCK_POLLIN) { in zsock_poll_prepare_ctx()
1366 if (pfd->events & ZSOCK_POLLOUT) { in zsock_poll_prepare_ctx()
1381 struct zsock_pollfd *pfd, in zsock_poll_update_ctx() argument
1387 if (pfd->events & ZSOCK_POLLOUT) { in zsock_poll_update_ctx()
1388 pfd->revents |= ZSOCK_POLLOUT; in zsock_poll_update_ctx()
1391 if (pfd->events & ZSOCK_POLLIN) { in zsock_poll_update_ctx()
1393 pfd->revents |= ZSOCK_POLLIN; in zsock_poll_update_ctx()
1399 pfd->revents |= ZSOCK_POLLHUP; in zsock_poll_update_ctx()
1417 struct zsock_pollfd *pfd; in zsock_poll_internal() local
1431 for (pfd = fds, i = nfds; i--; pfd++) { in zsock_poll_internal()
1436 if (pfd->fd < 0) { in zsock_poll_internal()
1440 ctx = get_sock_vtable(pfd->fd, in zsock_poll_internal()
1452 pfd, &pev, pev_end); in zsock_poll_internal()
1524 for (pfd = fds, i = nfds; i--; pfd++) { in zsock_poll_internal()
1528 pfd->revents = 0; in zsock_poll_internal()
1530 if (pfd->fd < 0) { in zsock_poll_internal()
1535 pfd->fd, in zsock_poll_internal()
1539 pfd->revents = ZSOCK_POLLNVAL; in zsock_poll_internal()
1548 pfd, &pev); in zsock_poll_internal()
1559 if (pfd->revents != 0) { in zsock_poll_internal()
2104 struct zsock_pollfd *pfd; in sock_ioctl_vmeth() local
2108 pfd = va_arg(args, struct zsock_pollfd *); in sock_ioctl_vmeth()
2112 return zsock_poll_prepare_ctx(obj, pfd, pev, pev_end); in sock_ioctl_vmeth()
2116 struct zsock_pollfd *pfd; in sock_ioctl_vmeth() local
2119 pfd = va_arg(args, struct zsock_pollfd *); in sock_ioctl_vmeth()
2122 return zsock_poll_update_ctx(obj, pfd, pev); in sock_ioctl_vmeth()