Home
last modified time | relevance | path

Searched refs:a_ctx (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c665 struct sec_auth_ctx *a_ctx = &ctx->a_ctx; in sec_auth_init() local
667 a_ctx->a_key = dma_alloc_coherent(ctx->dev, SEC_MAX_AKEY_SIZE, in sec_auth_init()
668 &a_ctx->a_key_dma, GFP_KERNEL); in sec_auth_init()
669 if (!a_ctx->a_key) in sec_auth_init()
677 struct sec_auth_ctx *a_ctx = &ctx->a_ctx; in sec_auth_uninit() local
679 memzero_explicit(a_ctx->a_key, SEC_MAX_AKEY_SIZE); in sec_auth_uninit()
681 a_ctx->a_key, a_ctx->a_key_dma); in sec_auth_uninit()
1123 struct sec_auth_ctx *a_ctx = &ctx->a_ctx; in sec_aead_setauthsize() local
1125 if (unlikely(a_ctx->fallback_aead_tfm)) in sec_aead_setauthsize()
1126 return crypto_aead_setauthsize(a_ctx->fallback_aead_tfm, authsize); in sec_aead_setauthsize()
[all …]
Dsec.h156 struct sec_auth_ctx a_ctx; member
/linux-6.1.9/drivers/crypto/chelsio/
Dchcr_algo.c215 struct chcr_dev *dev = a_ctx(tfm)->dev; in chcr_handle_aead_resp()
2367 struct uld_ctx *u_ctx = ULD_CTX(a_ctx(tfm)); in chcr_aead_common_exit()
2375 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); in chcr_aead_common_init()
2390 error = chcr_aead_dma_map(&ULD_CTX(a_ctx(tfm))->lldi.pdev->dev, req, in chcr_aead_common_init()
2419 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); in chcr_aead_fallback()
2437 struct chcr_context *ctx = a_ctx(tfm); in create_authenc_wr()
2563 create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, size, in create_authenc_wr()
2711 struct chcr_context *ctx = a_ctx(tfm); in chcr_add_aead_dst_ent()
2937 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); in ccm_format_packet()
2963 struct chcr_context *ctx = a_ctx(tfm); in fill_sec_cpl_for_aead()
[all …]
Dchcr_crypto.h158 static inline struct chcr_context *a_ctx(struct crypto_aead *tfm) in a_ctx() function