Home
last modified time | relevance | path

Searched refs:kcf_ctx (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/contrib/openzfs/module/icp/core/
H A Dkcf_sched.c48 kcf_context_t *kcf_ctx; in kcf_new_ctx() local
50 kcf_ctx = kmem_cache_alloc(kcf_context_cache, KM_SLEEP); in kcf_new_ctx()
51 if (kcf_ctx == NULL) in kcf_new_ctx()
55 kcf_ctx->kc_refcnt = 1; in kcf_new_ctx()
57 kcf_ctx->kc_prov_desc = pd; in kcf_new_ctx()
58 kcf_ctx->kc_sw_prov_desc = NULL; in kcf_new_ctx()
60 ctx = &kcf_ctx->kc_glbl_ctx; in kcf_new_ctx()
62 ctx->cc_framework_private = (void *)kcf_ctx; in kcf_new_ctx()
78 kcf_free_context(kcf_context_t *kcf_ctx) in kcf_free_context() argument
80 kcf_provider_desc_t *pd = kcf_ctx->kc_prov_desc; in kcf_free_context()
[all …]
/freebsd/sys/contrib/openzfs/module/icp/api/
H A Dkcf_mac.c251 kcf_context_t *kcf_ctx; in crypto_mac_update() local
255 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_mac_update()
256 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_mac_update()
280 kcf_context_t *kcf_ctx; in crypto_mac_final() local
284 ((kcf_ctx = (kcf_context_t *)ctx->cc_framework_private) == NULL) || in crypto_mac_final()
285 ((pd = kcf_ctx->kc_prov_desc) == NULL)) { in crypto_mac_final()
292 KCF_CONTEXT_COND_RELEASE(rv, kcf_ctx); in crypto_mac_final()
/freebsd/sys/contrib/openzfs/module/icp/include/sys/crypto/
H A Dsched_impl.h95 #define KCF_CONTEXT_COND_RELEASE(rv, kcf_ctx) { \ argument
97 KCF_CONTEXT_REFRELE(kcf_ctx); \