Lines Matching refs:conf
225 struct config *conf = (struct config *)p1; in smp_udp_receive_thread() local
231 (void)k_sem_take(&conf->network_ready_sem, K_FOREVER); in smp_udp_receive_thread()
232 rc = create_socket(conf->proto, &conf->sock); in smp_udp_receive_thread()
239 LOG_INF("Started (%s)", smp_udp_proto_to_name(conf->proto)); in smp_udp_receive_thread()
245 int len = zsock_recvfrom(conf->sock, conf->recv_buffer, in smp_udp_receive_thread()
259 net_buf_add_mem(nb, conf->recv_buffer, len); in smp_udp_receive_thread()
263 smp_rx_req(&conf->smp_transport, nb); in smp_udp_receive_thread()
265 LOG_ERR("recvfrom error (%s): %i, %d", smp_udp_proto_to_name(conf->proto), in smp_udp_receive_thread()
302 static void create_thread(struct config *conf, const char *name) in create_thread() argument
304 k_thread_create(&(conf->thread), conf->stack, in create_thread()
305 K_KERNEL_STACK_SIZEOF(conf->stack), in create_thread()
306 smp_udp_receive_thread, conf, NULL, NULL, in create_thread()
309 k_thread_name_set(&(conf->thread), name); in create_thread()
310 k_thread_start(&(conf->thread)); in create_thread()