Lines Matching refs:lock
217 if (ctx->cond.lock) { in zsock_received_cb()
218 (void)k_mutex_lock(ctx->cond.lock, K_FOREVER); in zsock_received_cb()
260 if (ctx->cond.lock) { in zsock_received_cb()
261 (void)k_mutex_unlock(ctx->cond.lock); in zsock_received_cb()
555 if (ctx->cond.lock) { in send_check_and_wait()
556 (void)k_mutex_unlock(ctx->cond.lock); in send_check_and_wait()
585 if (ctx->cond.lock) { in send_check_and_wait()
586 (void)k_mutex_lock(ctx->cond.lock, K_FOREVER); in send_check_and_wait()
898 if (ctx->cond.lock == NULL) { in zsock_wait_data()
910 ret = k_condvar_wait(&ctx->cond.recv, ctx->cond.lock, in zsock_wait_data()
2852 static void zsock_ctx_set_lock(struct net_context *ctx, struct k_mutex *lock) in zsock_ctx_set_lock() argument
2854 ctx->cond.lock = lock; in zsock_ctx_set_lock()
2906 struct k_mutex *lock; in sock_ioctl_vmeth() local
2908 lock = va_arg(args, struct k_mutex *); in sock_ioctl_vmeth()
2910 zsock_ctx_set_lock(obj, lock); in sock_ioctl_vmeth()