Home
last modified time | relevance | path

Searched refs:cra_refcnt (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/crypto/
H A Dinternal.h163 refcount_inc(&alg->cra_refcnt); in crypto_alg_get()
169 if (refcount_dec_and_test(&alg->cra_refcnt) && alg->cra_destroy) in crypto_alg_put()
H A Dproc.c45 seq_printf(m, "refcnt : %u\n", refcount_read(&alg->cra_refcnt)); in c_show()
H A Dalgapi.c68 refcount_set(&alg->cra_refcnt, 1); in crypto_check_alg()
308 refcount_set(&larval->alg.cra_refcnt, 1); in crypto_alloc_test_larval()
507 if (WARN_ON(refcount_read(&alg->cra_refcnt) != 1)) in crypto_unregister_alg()
608 BUG_ON(refcount_read(&inst->alg.cra_refcnt) != 1); in crypto_unregister_template()
H A Dcrypto_user_stat.c64 ualg->cru_refcnt = refcount_read(&alg->cra_refcnt); in crypto_reportstat_one()
H A Dcrypto_user_base.c113 ualg->cru_refcnt = refcount_read(&alg->cra_refcnt); in crypto_report_one()
323 if (refcount_read(&alg->cra_refcnt) > 2) in crypto_del_alg()
H A Dapi.c136 refcount_set(&larval->alg.cra_refcnt, 2); in crypto_larval_add()
/openbmc/linux/include/linux/
H A Dcrypto.h353 refcount_t cra_refcnt; member
/openbmc/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c1510 if (refcount_read(&otx_cpt_skciphers[i].base.cra_refcnt) != 1) in is_any_alg_used()
1513 if (refcount_read(&otx_cpt_aeads[i].base.cra_refcnt) != 1) in is_any_alg_used()
/openbmc/linux/drivers/crypto/chelsio/
H A Dchcr_algo.c4393 &driver_algs[i].alg.skcipher.base.cra_refcnt) in chcr_unregister_alg()
4402 &driver_algs[i].alg.aead.base.cra_refcnt) == 1) { in chcr_unregister_alg()
4410 &driver_algs[i].alg.hash.halg.base.cra_refcnt) in chcr_unregister_alg()