Home
last modified time | relevance | path

Searched defs:sock (Results 1 – 25 of 58) sorted by relevance

123

/Zephyr-Core-3.4.0/drivers/wifi/esp_at/
Desp_socket.c24 struct esp_socket *sock = data->sockets; in esp_socket_get() local
45 int esp_socket_put(struct esp_socket *sock) in esp_socket_put()
52 struct esp_socket *esp_socket_ref(struct esp_socket *sock) in esp_socket_ref()
66 void esp_socket_unref(struct esp_socket *sock) in esp_socket_unref()
82 struct esp_socket *sock; in esp_socket_init() local
101 static struct net_pkt *esp_socket_prepare_pkt(struct esp_socket *sock, in esp_socket_prepare_pkt()
146 void esp_socket_rx(struct esp_socket *sock, struct net_buf *buf, in esp_socket_rx()
198 void esp_socket_close(struct esp_socket *sock) in esp_socket_close()
225 void esp_socket_workq_stop_and_flush(struct esp_socket *sock) in esp_socket_workq_stop_and_flush()
Desp_offload.c38 static int _sock_connect(struct esp_data *dev, struct esp_socket *sock) in _sock_connect()
95 struct esp_socket *sock = CONTAINER_OF(work, struct esp_socket, in esp_connect_work() local
116 struct esp_socket *sock; in esp_connect() local
191 static int _sock_send(struct esp_socket *sock, struct net_pkt *pkt) in _sock_send()
282 static bool esp_socket_can_send(struct esp_socket *sock) in esp_socket_can_send()
293 static int esp_socket_send_one_pkt(struct esp_socket *sock) in esp_socket_send_one_pkt()
336 struct esp_socket *sock = CONTAINER_OF(work, struct esp_socket, in esp_send_work() local
353 struct esp_socket *sock; in esp_sendto() local
411 static int cmd_ciprecvdata_parse(struct esp_socket *sock, in cmd_ciprecvdata_parse()
460 struct esp_socket *sock = dev->rx_sock; in MODEM_CMD_DIRECT_DEFINE() local
[all …]
Desp.h293 static inline atomic_val_t esp_socket_flags_update(struct esp_socket *sock, in esp_socket_flags_update()
307 atomic_val_t esp_socket_flags_clear_and_set(struct esp_socket *sock, in esp_socket_flags_clear_and_set()
315 static inline atomic_val_t esp_socket_flags_set(struct esp_socket *sock, in esp_socket_flags_set()
321 static inline bool esp_socket_flags_test_and_clear(struct esp_socket *sock, in esp_socket_flags_test_and_clear()
327 static inline bool esp_socket_flags_test_and_set(struct esp_socket *sock, in esp_socket_flags_test_and_set()
333 static inline atomic_val_t esp_socket_flags_clear(struct esp_socket *sock, in esp_socket_flags_clear()
339 static inline atomic_val_t esp_socket_flags(struct esp_socket *sock) in esp_socket_flags()
344 static inline struct esp_data *esp_socket_to_dev(struct esp_socket *sock) in esp_socket_to_dev()
349 static inline void __esp_socket_work_submit(struct esp_socket *sock, in __esp_socket_work_submit()
357 static inline int esp_socket_work_submit(struct esp_socket *sock, in esp_socket_work_submit()
[all …]
/Zephyr-Core-3.4.0/drivers/modem/
Dmodem_socket.c22 uint16_t modem_socket_next_packet_size(struct modem_socket_config *cfg, struct modem_socket *sock) in modem_socket_next_packet_size()
39 static uint16_t modem_socket_packet_get_total(struct modem_socket *sock) in modem_socket_packet_get_total()
55 static int modem_socket_packet_drop_first(struct modem_socket *sock) in modem_socket_packet_drop_first()
72 int modem_socket_packet_size_update(struct modem_socket_config *cfg, struct modem_socket *sock, in modem_socket_packet_size_update()
232 struct modem_socket *sock = modem_socket_from_fd(cfg, sock_fd); in modem_socket_put() local
268 struct modem_socket *sock; in modem_socket_poll() local
341 int modem_socket_poll_prepare(struct modem_socket_config *cfg, struct modem_socket *sock, in modem_socket_poll_prepare()
369 int modem_socket_poll_update(struct modem_socket *sock, struct zsock_pollfd *pfd, in modem_socket_poll_update()
392 void modem_socket_wait_data(struct modem_socket_config *cfg, struct modem_socket *sock) in modem_socket_wait_data()
401 void modem_socket_data_ready(struct modem_socket_config *cfg, struct modem_socket *sock) in modem_socket_data_ready()
[all …]
Dwncm14a2a.c241 struct wncm14a2a_socket *sock = NULL; in socket_get() local
256 struct wncm14a2a_socket *sock = NULL; in socket_from_id() local
272 static void socket_put(struct wncm14a2a_socket *sock) in socket_put()
307 static int send_at_cmd(struct wncm14a2a_socket *sock, in send_at_cmd()
339 static int send_data(struct wncm14a2a_socket *sock, struct net_pkt *pkt) in send_data()
431 struct wncm14a2a_socket *sock) in pkt_setup_ip_data()
636 struct wncm14a2a_socket *sock = NULL; in on_cmd_sockok() local
650 struct wncm14a2a_socket *sock = NULL; in on_cmd_sockerror() local
667 struct wncm14a2a_socket *sock = NULL; in on_cmd_sockexterror() local
697 struct wncm14a2a_socket *sock = NULL; in on_cmd_sockcreat() local
[all …]
Dquectel-bg9x.c119 struct modem_socket *sock = NULL; in on_cmd_sockread_common() local
197 static void socket_close(struct modem_socket *sock) in socket_close()
392 struct modem_socket *sock; in MODEM_CMD_DEFINE() local
413 struct modem_socket *sock; in MODEM_CMD_DEFINE() local
440 static ssize_t send_socket_data(struct modem_socket *sock, in send_socket_data()
525 struct modem_socket *sock = (struct modem_socket *) obj; in offload_sendto() local
581 struct modem_socket *sock = (struct modem_socket *)obj; in offload_recvfrom() local
690 struct modem_socket *sock = (struct modem_socket *) obj; in offload_connect() local
796 struct modem_socket *sock = (struct modem_socket *) obj; in offload_close() local
Dublox-sara-r4.c298 struct modem_socket *sock = (struct modem_socket *)obj; in send_socket_data() local
449 static ssize_t send_cert(struct modem_socket *sock, in send_cert()
740 struct modem_socket *sock = NULL; in MODEM_CMD_DEFINE() local
780 struct modem_socket *sock = NULL; in on_cmd_sockread_common() local
892 struct modem_socket *sock; in MODEM_CMD_DEFINE() local
907 struct modem_socket *sock; in MODEM_CMD_DEFINE() local
1381 static int create_socket(struct modem_socket *sock, const struct sockaddr *addr) in create_socket()
1488 struct modem_socket *sock = (struct modem_socket *)obj; in offload_close() local
1515 struct modem_socket *sock = (struct modem_socket *)obj; in offload_bind() local
1533 struct modem_socket *sock = (struct modem_socket *)obj; in offload_connect() local
[all …]
/Zephyr-Core-3.4.0/include/zephyr/posix/sys/
Dsocket.h42 static inline int shutdown(int sock, int how) in shutdown()
47 static inline int bind(int sock, const struct sockaddr *addr, socklen_t addrlen) in bind()
52 static inline int connect(int sock, const struct sockaddr *addr, in connect()
58 static inline int listen(int sock, int backlog) in listen()
63 static inline int accept(int sock, struct sockaddr *addr, socklen_t *addrlen) in accept()
68 static inline ssize_t send(int sock, const void *buf, size_t len, int flags) in send()
73 static inline ssize_t recv(int sock, void *buf, size_t max_len, int flags) in recv()
78 static inline ssize_t sendto(int sock, const void *buf, size_t len, int flags, in sendto()
85 static inline ssize_t sendmsg(int sock, const struct msghdr *message, in sendmsg()
91 static inline ssize_t recvfrom(int sock, void *buf, size_t max_len, int flags, in recvfrom()
[all …]
/Zephyr-Core-3.4.0/tests/net/socket/
Dsocket_helpers.h15 int ret, sock; in prepare_listen_sock_udp_v4() local
34 int ret, sock; in prepare_listen_sock_udp_v6() local
52 int *sock, struct sockaddr_in *sockaddr) in prepare_sock_udp_v4()
70 int *sock, struct sockaddr_in6 *sockaddr) in prepare_sock_udp_v6()
89 int *sock, struct sockaddr_in *sockaddr) in prepare_sock_tcp_v4()
107 int *sock, struct sockaddr_in6 *sockaddr) in prepare_sock_tcp_v6()
125 int *sock, struct sockaddr_in *sockaddr, in prepare_sock_tls_v4()
144 int *sock, struct sockaddr_in6 *sockaddr, in prepare_sock_tls_v6()
163 int *sock, struct sockaddr_in *sockaddr, in prepare_sock_dtls_v4()
182 int *sock, struct sockaddr_in6 *sockaddr, in prepare_sock_dtls_v6()
/Zephyr-Core-3.4.0/samples/net/sockets/websocket_client/src/
Dmain.c74 int *sock, struct sockaddr *addr, socklen_t addr_len) in setup_socket()
138 int *sock, struct sockaddr *addr, socklen_t addr_len) in connect_socket()
158 static int connect_cb(int sock, struct http_request *req, void *user_data) in connect_cb()
176 static ssize_t sendall_with_ws_api(int sock, const void *buf, size_t len) in sendall_with_ws_api()
182 static ssize_t sendall_with_bsd_api(int sock, const void *buf, size_t len) in sendall_with_bsd_api()
187 static void recv_data_wso_api(int sock, size_t amount, uint8_t *buf, in recv_data_wso_api()
231 static void recv_data_bsd_api(int sock, size_t amount, uint8_t *buf, in recv_data_bsd_api()
269 static bool send_and_wait_msg(int sock, size_t amount, const char *proto, in send_and_wait_msg()
/Zephyr-Core-3.4.0/tests/net/lib/lwm2m/lwm2m_engine/src/
Dstubs.c75 int z_impl_zsock_close(int sock) in z_impl_zsock_close()
82 ssize_t z_impl_zsock_sendto(int sock, const void *buf, size_t len, int flags, in z_impl_zsock_sendto()
92 ssize_t z_impl_zsock_recvfrom(int sock, void *buf, size_t max_len, int flags, in z_impl_zsock_recvfrom()
111 int z_impl_zsock_setsockopt(int sock, int level, int optname, const void *optval, socklen_t optlen) in z_impl_zsock_setsockopt()
116 int z_impl_zsock_fcntl(int sock, int cmd, int flags) in z_impl_zsock_fcntl()
/Zephyr-Core-3.4.0/subsys/net/lib/tftp/
Dtftp_client.c53 static int send_data(int sock, struct tftpc *client, uint32_t block_no, const uint8_t *data_buffer, in send_data()
145 static inline int send_err(int sock, struct tftpc *client, int err_code, char *err_msg) in send_err()
169 static inline int send_ack(int sock, struct tftphdr_ack *ackhdr) in send_ack()
176 static int send_request(int sock, struct tftpc *client, in send_request()
236 int sock; in tftp_get() local
362 int sock; in tftp_put() local
/Zephyr-Core-3.4.0/subsys/net/lib/sockets/
Dsockets.c39 #define VTABLE_CALL(fn, sock, ...) \ argument
68 static inline void *get_sock_vtable(int sock, in get_sock_vtable()
105 void *z_impl_zsock_get_context_object(int sock) in z_impl_zsock_get_context_object()
113 void *z_vrfy_zsock_get_context_object(int sock) in z_vrfy_zsock_get_context_object()
278 int z_impl_zsock_close(int sock) in z_impl_zsock_close()
305 static inline int z_vrfy_zsock_close(int sock) in z_vrfy_zsock_close()
312 int z_impl_zsock_shutdown(int sock, int how) in z_impl_zsock_shutdown()
342 static inline int z_vrfy_zsock_shutdown(int sock, int how) in z_vrfy_zsock_shutdown()
471 int z_impl_zsock_bind(int sock, const struct sockaddr *addr, socklen_t addrlen) in z_impl_zsock_bind()
477 static inline int z_vrfy_zsock_bind(int sock, const struct sockaddr *addr, in z_vrfy_zsock_bind()
[all …]
/Zephyr-Core-3.4.0/include/zephyr/net/
Dsocket.h386 static inline ssize_t zsock_send(int sock, const void *buf, size_t len, in zsock_send()
435 static inline ssize_t zsock_recv(int sock, void *buf, size_t max_len, in zsock_recv()
701 static inline int close(int sock) in close()
707 static inline int shutdown(int sock, int how) in shutdown()
713 static inline int bind(int sock, const struct sockaddr *addr, socklen_t addrlen) in bind()
719 static inline int connect(int sock, const struct sockaddr *addr, in connect()
726 static inline int listen(int sock, int backlog) in listen()
732 static inline int accept(int sock, struct sockaddr *addr, socklen_t *addrlen) in accept()
738 static inline ssize_t send(int sock, const void *buf, size_t len, int flags) in send()
744 static inline ssize_t recv(int sock, void *buf, size_t max_len, int flags) in recv()
[all …]
/Zephyr-Core-3.4.0/samples/subsys/video/tcpserversink/src/
Dmain.c21 static ssize_t sendall(int sock, const void *buf, size_t len) in sendall()
41 int i, ret, sock, client; in main() local
/Zephyr-Core-3.4.0/tests/net/socket/tls/src/
Dmain.c66 static void test_bind(int sock, struct sockaddr *addr, socklen_t addrlen) in test_bind()
73 static void test_listen(int sock) in test_listen()
80 static void test_connect(int sock, struct sockaddr *addr, socklen_t addrlen) in test_connect()
94 static void test_send(int sock, const void *buf, size_t len, int flags) in test_send()
101 static void test_sendmsg(int sock, const struct msghdr *msg, int flags) in test_sendmsg()
116 static void test_accept(int sock, int *new_sock, struct sockaddr *addr, in test_accept()
125 static void test_close(int sock) in test_close()
142 int sock = POINTER_TO_INT(p1); in client_connect_entry() local
149 static void spawn_client_connect_thread(int sock, struct sockaddr *addr) in spawn_client_connect_thread()
215 int sock; member
[all …]
/Zephyr-Core-3.4.0/drivers/wifi/eswifi/
Deswifi_socket_offload.c58 int sock = OBJ_TO_SD(obj); in eswifi_socket_connect() local
97 int sock = OBJ_TO_SD(obj); in eswifi_socket_listen() local
120 int sock = OBJ_TO_SD(obj); in __eswifi_socket_accept() local
149 int sock; in eswifi_socket_accept() local
268 int sock = OBJ_TO_SD(obj); in eswifi_socket_send() local
323 int sock = OBJ_TO_SD(obj); in eswifi_socket_recv() local
403 int sock = OBJ_TO_SD(obj); in eswifi_socket_close() local
470 int sock, ret; in eswifi_socket_poll() local
543 int sock = OBJ_TO_SD(obj); in eswifi_socket_bind() local
585 int sock; in eswifi_socket_create() local
/Zephyr-Core-3.4.0/samples/net/cloud/tagoio_http_post/src/
Dsockets.h10 int sock; member
/Zephyr-Core-3.4.0/samples/net/sockets/dumb_http_server_mt/src/
Dmain.c129 static ssize_t sendall(int sock, const void *buf, size_t len) in sendall()
145 static int setup(int *sock, struct sockaddr *bind_addr, in setup()
191 int *sock = ptr2; in client_conn_handler() local
260 static int process_tcp(int *sock, int *accepted) in process_tcp()
/Zephyr-Core-3.4.0/tests/net/lib/coap_client/src/
Dmain.c33 static ssize_t z_impl_zsock_recvfrom_custom_fake(int sock, void *buf, size_t max_len, int flags, in z_impl_zsock_recvfrom_custom_fake()
49 static ssize_t z_impl_zsock_sendto_custom_fake(int sock, void *buf, size_t len, in z_impl_zsock_sendto_custom_fake()
64 static ssize_t z_impl_zsock_recvfrom_custom_fake_response(int sock, void *buf, size_t max_len, in z_impl_zsock_recvfrom_custom_fake_response()
80 static ssize_t z_impl_zsock_recvfrom_custom_fake_empty_ack(int sock, void *buf, size_t max_len, in z_impl_zsock_recvfrom_custom_fake_empty_ack()
98 static ssize_t z_impl_zsock_recvfrom_custom_fake_unmatching(int sock, void *buf, size_t max_len, in z_impl_zsock_recvfrom_custom_fake_unmatching()
/Zephyr-Core-3.4.0/subsys/net/lib/zperf/
Dzperf_tcp_uploader.c23 static int tcp_upload(int sock, in tcp_upload()
114 int sock; in zperf_tcp_upload() local
Dzperf_udp_uploader.c48 static inline int zperf_upload_fin(int sock, in zperf_upload_fin()
134 static int udp_upload(int sock, int port, in udp_upload()
276 int sock; in zperf_udp_upload() local
/Zephyr-Core-3.4.0/subsys/net/lib/http/
Dhttp_client.c32 static int sendall(int sock, const void *buf, size_t len) in sendall()
48 static int http_send_data(int sock, char *send_buf, in http_send_data()
122 static int http_flush_data(int sock, const char *send_buf, size_t send_buf_len) in http_flush_data()
416 static int http_wait_data(int sock, struct http_request *req, int32_t timeout) in http_wait_data()
526 int http_client_req(int sock, struct http_request *req, in http_client_req()
/Zephyr-Core-3.4.0/samples/net/sockets/http_client/src/
Dmain.c38 int *sock, struct sockaddr *addr, socklen_t addr_len) in setup_socket()
91 static int payload_cb(int sock, struct http_request *req, void *user_data) in payload_cb()
130 int *sock, struct sockaddr *addr, socklen_t addr_len) in connect_socket()
/Zephyr-Core-3.4.0/samples/net/sockets/echo_server/src/
Dcommon.h41 int sock; member
49 int sock; member
54 int sock; member

123