Home
last modified time | relevance | path

Searched refs:lws_lookup (Results 1 – 8 of 8) sorted by relevance

/third_party/libwebsockets/lib/plat/unix/
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()
58 assert(context->lws_lookup[wsi->desc.sockfd - in insert_wsi()
61 context->lws_lookup[wsi->desc.sockfd - \ in insert_wsi()
69 p = context->lws_lookup; in insert_wsi()
80 p = context->lws_lookup; in insert_wsi()
92 p = context->lws_lookup; in insert_wsi()
117 context->lws_lookup[fd - lws_plat_socket_offset()] = NULL; in delete_from_fd()
124 p = context->lws_lookup; in delete_from_fd()
138 p = context->lws_lookup; in delete_from_fd()
[all …]
Dunix-init.c110 context->lws_lookup = lws_zalloc(sizeof(struct lws *) * in lws_plat_init()
113 if (!context->lws_lookup) { in lws_plat_init()
174 if (context->lws_lookup) in lws_plat_context_late_destroy()
175 lws_free_set_NULL(context->lws_lookup); in lws_plat_context_late_destroy()
/third_party/libwebsockets/lib/plat/optee/
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
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()
204 if (context->lws_lookup == NULL) { in lws_plat_init()
/third_party/libwebsockets/lib/plat/freertos/
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()
96 if (context->lws_lookup == NULL) { in lws_plat_init()
Dfreertos-fds.c54 assert(context->lws_lookup[wsi->desc.sockfd - in insert_wsi()
57 context->lws_lookup[wsi->desc.sockfd - \ in insert_wsi()
Dprivate-lib-plat-freertos.h103 #define wsi_from_fd(A,B) A->lws_lookup[B - lws_plat_socket_offset()]
111 #define delete_from_fd(A,B) A->lws_lookup[B - lws_plat_socket_offset()] = 0
/third_party/libwebsockets/lib/core/
Dprivate-lib-core.h403 struct lws **lws_lookup; member