Lines Matching refs:refcnt_lock
30 CRYPTO_RWLOCK *refcnt_lock;
58 return CRYPTO_UP_REF(&rand->refcnt, &ref, rand->refcnt_lock);
69 CRYPTO_DOWN_REF(&rand->refcnt, &ref, rand->refcnt_lock);
74 CRYPTO_THREAD_lock_free(rand->refcnt_lock);
83 || (rand->refcnt_lock = CRYPTO_THREAD_lock_new()) == NULL) {
327 return CRYPTO_UP_REF(&ctx->refcnt, &ref, ctx->refcnt_lock);
342 if (ctx == NULL || (ctx->refcnt_lock = CRYPTO_THREAD_lock_new()) == NULL) {
350 CRYPTO_THREAD_lock_free(ctx->refcnt_lock);
362 CRYPTO_THREAD_lock_free(ctx->refcnt_lock);
381 CRYPTO_DOWN_REF(&ctx->refcnt, &ref, ctx->refcnt_lock);
388 CRYPTO_THREAD_lock_free(ctx->refcnt_lock);