Searched refs:lws_lookup (Results 1 – 9 of 9) sorted by relevance
36 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 …]
130 context->lws_lookup = lws_zalloc(sizeof(struct lws *) * in lws_plat_init()133 if (!context->lws_lookup) { 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()
44 #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
155 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()
50 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()
54 assert(context->lws_lookup[wsi->desc.sockfd - in insert_wsi()57 context->lws_lookup[wsi->desc.sockfd - \ in insert_wsi()
113 #define wsi_from_fd(A,B) A->lws_lookup[B - lws_plat_socket_offset()]121 #define delete_from_fd(A,B) A->lws_lookup[B - lws_plat_socket_offset()] = 0
111 #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
596 struct lws **lws_lookup; member