Lines Matching refs:refcnt
66 refcount_t refcnt; member
75 refcount_t refcnt; member
85 refcount_t refcnt; member
130 refcount_t *refcnt; in cryptd_enqueue_request() local
136 refcnt = crypto_tfm_ctx(request->tfm); in cryptd_enqueue_request()
143 if (!refcount_read(refcnt)) in cryptd_enqueue_request()
146 refcount_inc(refcnt); in cryptd_enqueue_request()
245 int refcnt = refcount_read(&ctx->refcnt); in cryptd_skcipher_complete() local
251 if (err != -EINPROGRESS && refcnt && refcount_dec_and_test(&ctx->refcnt)) in cryptd_skcipher_complete()
482 int refcnt = refcount_read(&ctx->refcnt); in cryptd_hash_complete() local
488 if (err != -EINPROGRESS && refcnt && refcount_dec_and_test(&ctx->refcnt)) in cryptd_hash_complete()
722 int refcnt; in cryptd_aead_crypt() local
736 refcnt = refcount_read(&ctx->refcnt); in cryptd_aead_crypt()
742 if (err != -EINPROGRESS && refcnt && refcount_dec_and_test(&ctx->refcnt)) in cryptd_aead_crypt()
925 refcount_set(&ctx->refcnt, 1); in cryptd_alloc_skcipher()
943 return refcount_read(&ctx->refcnt) - 1; in cryptd_skcipher_queued()
951 if (refcount_dec_and_test(&ctx->refcnt)) in cryptd_free_skcipher()
975 refcount_set(&ctx->refcnt, 1); in cryptd_alloc_ahash()
1000 return refcount_read(&ctx->refcnt) - 1; in cryptd_ahash_queued()
1008 if (refcount_dec_and_test(&ctx->refcnt)) in cryptd_free_ahash()
1032 refcount_set(&ctx->refcnt, 1); in cryptd_alloc_aead()
1050 return refcount_read(&ctx->refcnt) - 1; in cryptd_aead_queued()
1058 if (refcount_dec_and_test(&ctx->refcnt)) in cryptd_free_aead()