Lines Matching refs:slot
114 int slot = POINTER_TO_INT(ptr1); in ws_echo_handler() local
155 LOG_INF("[%d] Connection closed", slot); in ws_echo_handler()
159 LOG_ERR("[%d] Connection error %d", slot, errno); in ws_echo_handler()
179 slot); in ws_echo_handler()
184 slot, offset); in ws_echo_handler()
187 LOG_INF("[%d] Sent %u packets", slot, cfg->counter); in ws_echo_handler()
300 int slot; in ws_echo_setup() local
302 slot = get_free_echo_slot(config); in ws_echo_setup()
303 if (slot < 0) { in ws_echo_setup()
309 config[slot].sock = ws_socket; in ws_echo_setup()
311 LOG_INF("[%d] Accepted a Websocket connection", slot); in ws_echo_setup()
313 k_thread_create(&ws_handler_thread[slot], in ws_echo_setup()
314 ws_handler_stack[slot], in ws_echo_setup()
315 K_THREAD_STACK_SIZEOF(ws_handler_stack[slot]), in ws_echo_setup()
317 INT_TO_POINTER(slot), &config[slot], &ws_handler_in_use[slot], in ws_echo_setup()
327 snprintk(name, sizeof(name), "ws[%d]", slot); in ws_echo_setup()
328 k_thread_name_set(&ws_handler_thread[slot], name); in ws_echo_setup()
337 int slot; in ws_netstats_setup() local
339 slot = get_free_netstats_slot(); in ws_netstats_setup()
340 if (slot < 0) { in ws_netstats_setup()
345 netstats_ctx[slot].sock = ws_socket; in ws_netstats_setup()
347 ret = k_work_reschedule(&netstats_ctx[slot].work, K_NO_WAIT); in ws_netstats_setup()