Lines Matching full:contexts
50 static struct websocket_context contexts[CONFIG_WEBSOCKET_MAX_CONTEXTS]; variable
112 for (i = 0; i < ARRAY_SIZE(contexts); i++) { in websocket_get()
113 if (websocket_context_is_used(&contexts[i])) { in websocket_get()
117 websocket_context_ref(&contexts[i]); in websocket_get()
118 ctx = &contexts[i]; in websocket_get()
134 for (i = 0; i < ARRAY_SIZE(contexts); i++) { in websocket_find()
135 if (!websocket_context_is_used(&contexts[i])) { in websocket_find()
139 if (contexts[i].real_sock != real_sock) { in websocket_find()
143 ctx = &contexts[i]; in websocket_find()
680 if (!PART_OF_ARRAY(contexts, ctx)) { in websocket_send_msg()
970 if (!PART_OF_ARRAY(contexts, ctx)) { in websocket_recv_msg()
1221 for (i = 0; i < ARRAY_SIZE(contexts); i++) { in websocket_search()
1222 if (!websocket_context_is_used(&contexts[i])) { in websocket_search()
1226 if (contexts[i].sock != sock) { in websocket_search()
1230 ctx = &contexts[i]; in websocket_search()
1283 for (i = 0; i < ARRAY_SIZE(contexts); i++) { in websocket_context_foreach()
1284 if (!websocket_context_is_used(&contexts[i])) { in websocket_context_foreach()
1288 k_mutex_lock(&contexts[i].lock, K_FOREVER); in websocket_context_foreach()
1290 cb(&contexts[i], user_data); in websocket_context_foreach()
1292 k_mutex_unlock(&contexts[i].lock); in websocket_context_foreach()