Lines Matching refs:lock

607 		k_mutex_init(&contexts[i].lock);  in net_context_get()
654 k_mutex_lock(&context->lock, K_FOREVER); in net_context_unref()
672 k_mutex_unlock(&context->lock); in net_context_unref()
687 k_mutex_lock(&context->lock, K_FOREVER); in net_context_put()
707 k_mutex_unlock(&context->lock); in net_context_put()
921 k_mutex_lock(&context->lock, K_FOREVER); in net_context_bind()
929 k_mutex_unlock(&context->lock); in net_context_bind()
962 k_mutex_unlock(&context->lock); in net_context_bind()
1028 k_mutex_lock(&context->lock, K_FOREVER); in net_context_bind()
1036 k_mutex_unlock(&context->lock); in net_context_bind()
1069 k_mutex_unlock(&context->lock); in net_context_bind()
1104 k_mutex_lock(&context->lock, K_FOREVER); in net_context_bind()
1128 k_mutex_unlock(&context->lock); in net_context_bind()
1162 k_mutex_lock(&context->lock, K_FOREVER); in net_context_bind()
1175 k_mutex_unlock(&context->lock); in net_context_bind()
1216 k_mutex_lock(&context->lock, K_FOREVER); in net_context_listen()
1219 k_mutex_unlock(&context->lock); in net_context_listen()
1223 k_mutex_unlock(&context->lock); in net_context_listen()
1330 k_mutex_lock(&context->lock, K_FOREVER); in net_context_connect()
1498 k_mutex_unlock(&context->lock); in net_context_connect()
1516 k_mutex_lock(&context->lock, K_FOREVER); in net_context_accept()
1544 k_mutex_unlock(&context->lock); in net_context_accept()
2627 k_mutex_lock(&context->lock, K_FOREVER); in net_context_send()
2655 k_mutex_unlock(&context->lock); in net_context_send()
2669 k_mutex_lock(&context->lock, K_FOREVER); in net_context_sendmsg()
2674 k_mutex_unlock(&context->lock); in net_context_sendmsg()
2690 k_mutex_lock(&context->lock, K_FOREVER); in net_context_sendto()
2695 k_mutex_unlock(&context->lock); in net_context_sendto()
2712 k_mutex_lock(&context->lock, K_FOREVER); in net_context_packet_received()
2733 k_mutex_unlock(&context->lock); in net_context_packet_received()
2742 k_mutex_unlock(&context->lock); in net_context_packet_received()
2921 k_mutex_lock(&context->lock, K_FOREVER); in net_context_recv()
2989 k_mutex_unlock(&context->lock); in net_context_recv()
2995 k_mutex_lock(&context->lock, K_FOREVER); in net_context_recv()
3000 k_mutex_unlock(&context->lock); in net_context_recv()
3015 k_mutex_lock(&context->lock, K_FOREVER); in net_context_update_recv_wnd()
3019 k_mutex_unlock(&context->lock); in net_context_update_recv_wnd()
3555 k_mutex_lock(&context->lock, K_FOREVER); in net_context_set_option()
3631 k_mutex_unlock(&context->lock); in net_context_set_option()
3648 k_mutex_lock(&context->lock, K_FOREVER); in net_context_get_option()
3716 k_mutex_unlock(&context->lock); in net_context_get_option()
3777 k_mutex_lock(&contexts[i].lock, K_FOREVER); in net_context_foreach()
3781 k_mutex_unlock(&contexts[i].lock); in net_context_foreach()