Home
last modified time | relevance | path

Searched refs:pev (Results 1 – 22 of 22) sorted by relevance

/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_service.c48 svc->pev[i].event.fd = -1; in cleanup_svc_events()
49 svc->pev[i].event.events = 0; in cleanup_svc_events()
86 svc->pev[i].event = fds[i]; in z_impl_net_socket_service_register()
87 svc->pev[i].user_data = user_data; in z_impl_net_socket_service_register()
102 struct zsock_pollfd *pev, in find_svc_and_event() argument
107 if (svc->pev[i].event.fd == pev->fd) { in find_svc_and_event()
108 *event = &svc->pev[i]; in find_svc_and_event()
122 void net_socket_service_callback(struct net_socket_service_event *pev) in net_socket_service_callback() argument
124 struct net_socket_service_desc *svc = pev->svc; in net_socket_service_callback()
125 struct net_socket_service_event ev = *pev; in net_socket_service_callback()
[all …]
Dsocketpair.c753 struct k_poll_event **pev, in zsock_poll_prepare_ctx() argument
769 if (*pev == pev_end) { in zsock_poll_prepare_ctx()
775 (*pev)->obj = &spair->readable; in zsock_poll_prepare_ctx()
786 if (*pev == pev_end) { in zsock_poll_prepare_ctx()
805 (*pev)->obj = &remote->writeable; in zsock_poll_prepare_ctx()
808 (*pev)->type = K_POLL_TYPE_SIGNAL; in zsock_poll_prepare_ctx()
809 (*pev)->mode = K_POLL_MODE_NOTIFY_ONLY; in zsock_poll_prepare_ctx()
810 (*pev)->state = K_POLL_STATE_NOT_READY; in zsock_poll_prepare_ctx()
812 (*pev)++; in zsock_poll_prepare_ctx()
827 struct k_poll_event **pev) in zsock_poll_update_ctx() argument
[all …]
Dsockets_inet.c1514 struct k_poll_event **pev, in zsock_poll_prepare_ctx() argument
1518 if (*pev == pev_end) { in zsock_poll_prepare_ctx()
1522 (*pev)->obj = &ctx->recv_q; in zsock_poll_prepare_ctx()
1523 (*pev)->type = K_POLL_TYPE_FIFO_DATA_AVAILABLE; in zsock_poll_prepare_ctx()
1524 (*pev)->mode = K_POLL_MODE_NOTIFY_ONLY; in zsock_poll_prepare_ctx()
1525 (*pev)->state = K_POLL_STATE_NOT_READY; in zsock_poll_prepare_ctx()
1526 (*pev)++; in zsock_poll_prepare_ctx()
1533 if (*pev == pev_end) { in zsock_poll_prepare_ctx()
1538 (*pev)->obj = net_tcp_conn_sem_get(ctx); in zsock_poll_prepare_ctx()
1540 (*pev)->obj = net_tcp_tx_sem_get(ctx); in zsock_poll_prepare_ctx()
[all …]
Dsockets_tls.c2996 struct k_poll_event **pev, in ztls_poll_prepare_ctx() argument
3011 (*pev)->obj = &ctx->tls_established; in ztls_poll_prepare_ctx()
3012 (*pev)->type = K_POLL_TYPE_SEM_AVAILABLE; in ztls_poll_prepare_ctx()
3013 (*pev)->mode = K_POLL_MODE_NOTIFY_ONLY; in ztls_poll_prepare_ctx()
3014 (*pev)->state = K_POLL_STATE_NOT_READY; in ztls_poll_prepare_ctx()
3015 (*pev)++; in ztls_poll_prepare_ctx()
3033 pfd, pev, pev_end); in ztls_poll_prepare_ctx()
3210 struct k_poll_event **pev) in ztls_poll_update_ctx() argument
3228 ((*pev)->obj == &ctx->tls_established)) { in ztls_poll_update_ctx()
3232 if ((*pev)->state != K_POLL_STATE_NOT_READY) { in ztls_poll_update_ctx()
[all …]
/Zephyr-latest/lib/os/zvfs/
Dzvfs_eventfd.c52 struct k_poll_event **pev, in zvfs_eventfd_poll_prepare() argument
56 if (*pev == pev_end) { in zvfs_eventfd_poll_prepare()
61 (*pev)->obj = &efd->read_sig; in zvfs_eventfd_poll_prepare()
62 (*pev)->type = K_POLL_TYPE_SIGNAL; in zvfs_eventfd_poll_prepare()
63 (*pev)->mode = K_POLL_MODE_NOTIFY_ONLY; in zvfs_eventfd_poll_prepare()
64 (*pev)->state = K_POLL_STATE_NOT_READY; in zvfs_eventfd_poll_prepare()
65 (*pev)++; in zvfs_eventfd_poll_prepare()
69 if (*pev == pev_end) { in zvfs_eventfd_poll_prepare()
74 (*pev)->obj = &efd->write_sig; in zvfs_eventfd_poll_prepare()
75 (*pev)->type = K_POLL_TYPE_SIGNAL; in zvfs_eventfd_poll_prepare()
[all …]
Dzvfs_poll.c27 struct k_poll_event *pev; in zvfs_poll_internal() local
38 pev = poll_events; in zvfs_poll_internal()
56 result = zvfs_fdtable_call_ioctl(vtable, ctx, ZFD_IOCTL_POLL_PREPARE, pfd, &pev, in zvfs_poll_internal()
109 ret = k_poll(poll_events, pev - poll_events, timeout); in zvfs_poll_internal()
119 pev = poll_events; in zvfs_poll_internal()
140 &pev); in zvfs_poll_internal()
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_tcp_receiver.c42 static void tcp_svc_handler(struct net_socket_service_event *pev);
124 static int tcp_recv_data(struct net_socket_service_event *pev) in tcp_recv_data() argument
137 if ((pev->event.revents & ZSOCK_POLLERR) || in tcp_recv_data()
138 (pev->event.revents & ZSOCK_POLLNVAL)) { in tcp_recv_data()
139 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in tcp_recv_data()
141 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in tcp_recv_data()
149 if (!(pev->event.revents & ZSOCK_POLLIN)) { in tcp_recv_data()
157 if (fds[SOCK_ID_IPV4_LISTEN].fd == pev->event.fd || in tcp_recv_data()
158 fds[SOCK_ID_IPV6_LISTEN].fd == pev->event.fd) { in tcp_recv_data()
159 sock = zsock_accept(pev->event.fd, in tcp_recv_data()
[all …]
Dzperf_udp_receiver.c49 static void udp_svc_handler(struct net_socket_service_event *pev);
315 static int udp_recv_data(struct net_socket_service_event *pev) in udp_recv_data() argument
328 if ((pev->event.revents & ZSOCK_POLLERR) || in udp_recv_data()
329 (pev->event.revents & ZSOCK_POLLNVAL)) { in udp_recv_data()
330 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in udp_recv_data()
332 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in udp_recv_data()
340 if (!(pev->event.revents & ZSOCK_POLLIN)) { in udp_recv_data()
344 ret = zsock_recvfrom(pev->event.fd, buf, sizeof(buf), 0, in udp_recv_data()
348 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in udp_recv_data()
355 udp_received(pev->event.fd, &addr, buf, ret); in udp_recv_data()
[all …]
/Zephyr-latest/samples/net/sockets/echo_service/src/
Dmain.c34 static void receive_data(bool is_udp, struct net_socket_service_event *pev,
37 static void tcp_service_handler(struct net_socket_service_event *pev) in tcp_service_handler() argument
46 receive_data(false, pev, buf, sizeof(buf)); in tcp_service_handler()
49 static void udp_service_handler(struct net_socket_service_event *pev) in udp_service_handler() argument
53 receive_data(true, pev, buf, sizeof(buf)); in udp_service_handler()
59 static void receive_data(bool is_udp, struct net_socket_service_event *pev, in receive_data() argument
62 struct pollfd *pfd = &pev->event; in receive_data()
/Zephyr-latest/subsys/net/lib/dns/
Ddispatcher.c121 static int recv_data(struct net_socket_service_event *pev) in recv_data() argument
123 struct socket_dispatch_table *table = pev->user_data; in recv_data()
132 dispatcher = table[pev->event.fd].ctx; in recv_data()
136 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in recv_data()
139 if ((pev->event.revents & ZSOCK_POLLERR) || in recv_data()
140 (pev->event.revents & ZSOCK_POLLNVAL)) { in recv_data()
141 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in recv_data()
161 ret = zsock_recvfrom(pev->event.fd, dns_data->data, in recv_data()
173 ret = dns_dispatch(dispatcher, pev->event.fd, in recv_data()
187 void dns_dispatcher_svc_handler(struct net_socket_service_event *pev) in dns_dispatcher_svc_handler() argument
[all …]
Dllmnr_responder.c70 static void svc_handler(struct net_socket_service_event *pev);
514 static int recv_data(struct net_socket_service_event *pev) in recv_data() argument
524 if ((pev->event.revents & ZSOCK_POLLERR) || in recv_data()
525 (pev->event.revents & ZSOCK_POLLNVAL)) { in recv_data()
526 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in recv_data()
528 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in recv_data()
542 ret = zsock_recvfrom(pev->event.fd, dns_data->data, in recv_data()
554 ret = dns_read(pev->event.fd, dns_data, len, in recv_data()
567 static void svc_handler(struct net_socket_service_event *pev) in svc_handler() argument
571 ret = recv_data(pev); in svc_handler()
Dmdns_responder.c52 extern void dns_dispatcher_svc_handler(struct net_socket_service_event *pev);
707 svc->pev[0].event.fd = ctx->sock; in register_dispatcher()
Dresolve.c39 extern void dns_dispatcher_svc_handler(struct net_socket_service_event *pev);
/Zephyr-latest/include/zephyr/net/
Dsocket_service.h43 typedef void (*net_socket_service_handler_t)(struct net_socket_service_event *pev);
79 struct net_socket_service_event *pev; member
110 .pev = __z_net_socket_svc_get_name(_name), \
/Zephyr-latest/drivers/modem/
Dmodem_socket.c342 struct zsock_pollfd *pfd, struct k_poll_event **pev, in modem_socket_poll_prepare() argument
346 if (*pev == pev_end) { in modem_socket_poll_prepare()
351 k_poll_event_init(*pev, K_POLL_TYPE_SIGNAL, K_POLL_MODE_NOTIFY_ONLY, in modem_socket_poll_prepare()
353 (*pev)++; in modem_socket_poll_prepare()
357 if (*pev == pev_end) { in modem_socket_poll_prepare()
370 struct k_poll_event **pev) in modem_socket_poll_update() argument
375 if ((*pev)->state != K_POLL_STATE_NOT_READY) { in modem_socket_poll_update()
378 (*pev)++; in modem_socket_poll_update()
386 (*pev)++; in modem_socket_poll_update()
Dmodem_socket.h83 struct k_poll_event **pev);
85 struct zsock_pollfd *pfd, struct k_poll_event **pev,
Dquectel-bg9x.c659 struct k_poll_event **pev; in offload_ioctl() local
663 pev = va_arg(args, struct k_poll_event **); in offload_ioctl()
666 return modem_socket_poll_prepare(&mdata.socket_config, obj, pfd, pev, pev_end); in offload_ioctl()
670 struct k_poll_event **pev; in offload_ioctl() local
673 pev = va_arg(args, struct k_poll_event **); in offload_ioctl()
675 return modem_socket_poll_update(obj, pfd, pev); in offload_ioctl()
Dublox-sara-r4.c1717 struct k_poll_event **pev; in offload_ioctl() local
1721 pev = va_arg(args, struct k_poll_event **); in offload_ioctl()
1724 return modem_socket_poll_prepare(&mdata.socket_config, obj, pfd, pev, pev_end); in offload_ioctl()
1728 struct k_poll_event **pev; in offload_ioctl() local
1731 pev = va_arg(args, struct k_poll_event **); in offload_ioctl()
1733 return modem_socket_poll_update(obj, pfd, pev); in offload_ioctl()
/Zephyr-latest/tests/net/socket/service/src/
Dmain.c34 static void server_handler(struct net_socket_service_event *pev) in server_handler() argument
36 ARG_UNUSED(pev); in server_handler()
41 static void tcp_server_handler(struct net_socket_service_event *pev) in tcp_server_handler() argument
43 ARG_UNUSED(pev); in tcp_server_handler()
/Zephyr-latest/drivers/net/
Dnsos_sockets.c289 struct k_poll_event **pev, struct k_poll_event *pev_end, in nsos_poll_prepare() argument
299 if (*pev == pev_end) { in nsos_poll_prepare()
304 k_poll_event_init(*pev, K_POLL_TYPE_SIGNAL, K_POLL_MODE_NOTIFY_ONLY, &poll->signal); in nsos_poll_prepare()
311 (*pev)++; in nsos_poll_prepare()
326 struct k_poll_event **pev, struct nsos_socket_poll *poll) in nsos_poll_update() argument
331 (*pev)++; in nsos_poll_update()
361 struct k_poll_event **pev; in nsos_ioctl() local
365 pev = va_arg(args, struct k_poll_event **); in nsos_ioctl()
368 return nsos_poll_prepare(obj, pfd, pev, pev_end, &sock->poll); in nsos_ioctl()
373 struct k_poll_event **pev; in nsos_ioctl() local
[all …]
/Zephyr-latest/subsys/net/lib/shell/
Dsockets.c102 NET_ASSERT(svc->pev != NULL); in walk_socket_services()
106 "%d,", svc->pev[i].event.fd); in walk_socket_services()
/Zephyr-latest/doc/releases/
Dmigration-guide-4.0.rst516 ``struct net_socket_service_event *pev`` parameter. (:github:`80041`)