Lines Matching refs:refcnt
70 refcount_t refcnt; member
79 refcount_t refcnt; member
90 refcount_t refcnt; member
135 refcount_t *refcnt; in cryptd_enqueue_request() local
141 refcnt = crypto_tfm_ctx(request->tfm); in cryptd_enqueue_request()
148 if (!refcount_read(refcnt)) in cryptd_enqueue_request()
151 refcount_inc(refcnt); in cryptd_enqueue_request()
273 int refcnt = refcount_read(&ctx->refcnt); in cryptd_skcipher_complete() local
284 } else if (refcnt && refcount_dec_and_test(&ctx->refcnt)) in cryptd_skcipher_complete()
518 int refcnt = refcount_read(&ctx->refcnt); in cryptd_hash_complete() local
527 } else if (refcnt && refcount_dec_and_test(&ctx->refcnt)) in cryptd_hash_complete()
746 int refcnt; in cryptd_aead_crypt() local
769 refcnt = refcount_read(&ctx->refcnt); in cryptd_aead_crypt()
780 } else if (refcnt && refcount_dec_and_test(&ctx->refcnt)) in cryptd_aead_crypt()
970 refcount_set(&ctx->refcnt, 1); in cryptd_alloc_skcipher()
988 return refcount_read(&ctx->refcnt) - 1; in cryptd_skcipher_queued()
996 if (refcount_dec_and_test(&ctx->refcnt)) in cryptd_free_skcipher()
1020 refcount_set(&ctx->refcnt, 1); in cryptd_alloc_ahash()
1045 return refcount_read(&ctx->refcnt) - 1; in cryptd_ahash_queued()
1053 if (refcount_dec_and_test(&ctx->refcnt)) in cryptd_free_ahash()
1077 refcount_set(&ctx->refcnt, 1); in cryptd_alloc_aead()
1095 return refcount_read(&ctx->refcnt) - 1; in cryptd_aead_queued()
1103 if (refcount_dec_and_test(&ctx->refcnt)) in cryptd_free_aead()