Home
last modified time | relevance | path

Searched refs:lws_lookup (Results 1 - 9 of 9) sorted by relevance

/third_party/libwebsockets/lib/plat/unix/
H A Dunix-fds.c36 return context->lws_lookup[fd - lws_plat_socket_offset()]; in wsi_from_fd()
40 p = context->lws_lookup; in wsi_from_fd()
64 p = context->lws_lookup; in sanity_assert_no_wsi_traces()
93 if (sfd == LWS_SOCK_INVALID || !context->lws_lookup) in sanity_assert_no_sockfd_traces()
97 context->lws_lookup[sfd - lws_plat_socket_offset()]) { in sanity_assert_no_sockfd_traces()
104 p = context->lws_lookup; in sanity_assert_no_sockfd_traces()
132 assert(context->lws_lookup[wsi->desc.sockfd - in insert_wsi()
135 context->lws_lookup[wsi->desc.sockfd - \ in insert_wsi()
143 p = context->lws_lookup; in insert_wsi()
151 p = context->lws_lookup; in insert_wsi()
[all...]
H A Dunix-init.c130 context->lws_lookup = lws_zalloc(sizeof(struct lws *) * in lws_plat_init()
131 context->max_fds, "lws_lookup"); in lws_plat_init()
133 if (!context->lws_lookup) { in lws_plat_init()
134 lwsl_cx_err(context, "OOM on alloc lws_lookup array for %d conn", in lws_plat_init()
236 if (context->lws_lookup) in lws_plat_context_late_destroy()
237 lws_free_set_NULL(context->lws_lookup); in lws_plat_context_late_destroy()
/third_party/libwebsockets/lib/plat/optee/
H A Dprivate-lib-plat-optee.h44 #define wsi_from_fd(A,B) A->lws_lookup[B - lws_plat_socket_offset()]
45 #define insert_wsi(A,B) assert(A->lws_lookup[B->desc.sockfd - \
47 A->lws_lookup[B->desc.sockfd - \
49 #define delete_from_fd(A,B) A->lws_lookup[B - lws_plat_socket_offset()] = 0
H A Dlws-plat-optee.c155 if (context->lws_lookup) in lws_plat_context_late_destroy()
156 lws_free(context->lws_lookup); in lws_plat_context_late_destroy()
202 context->lws_lookup = lws_zalloc(sizeof(struct lws *) * in lws_plat_init()
203 context->max_fds, "lws_lookup"); in lws_plat_init()
204 if (context->lws_lookup == NULL) { in lws_plat_init()
205 lwsl_err("OOM on lws_lookup array for %d connections\n", in lws_plat_init()
/third_party/libwebsockets/lib/plat/freertos/
H A Dfreertos-init.c50 if (context->lws_lookup) in lws_plat_context_late_destroy()
51 lws_free(context->lws_lookup); in lws_plat_context_late_destroy()
94 context->lws_lookup = lws_zalloc(sizeof(struct lws *) * in lws_plat_init()
95 context->max_fds, "esp32 lws_lookup"); in lws_plat_init()
96 if (context->lws_lookup == NULL) { in lws_plat_init()
97 lwsl_err("OOM on lws_lookup array for %d connections\n", in lws_plat_init()
H A Dfreertos-fds.c54 assert(context->lws_lookup[wsi->desc.sockfd - in insert_wsi()
57 context->lws_lookup[wsi->desc.sockfd - \ in insert_wsi()
H A Dprivate-lib-plat-freertos.h117 #define wsi_from_fd(A,B) A->lws_lookup[B - lws_plat_socket_offset()]
125 #define delete_from_fd(A,B) A->lws_lookup[B - lws_plat_socket_offset()] = 0
/third_party/libwebsockets/minimal-examples/embedded/esp32/esp-c3dev/
H A Dprivate-lib-plat-freertos.h111 #define wsi_from_fd(A,B) A->lws_lookup[B - lws_plat_socket_offset()]
119 #define delete_from_fd(A,B) A->lws_lookup[B - lws_plat_socket_offset()] = 0
/third_party/libwebsockets/lib/core/
H A Dprivate-lib-core.h602 struct lws **lws_lookup; member

Completed in 5 milliseconds