Home
last modified time | relevance | path

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

/openbmc/linux/drivers/crypto/hisilicon/sec2/
H A Dsec_crypto.c666 struct sec_auth_ctx *a_ctx = &ctx->a_ctx; in sec_auth_init() local
668 a_ctx->a_key = dma_alloc_coherent(ctx->dev, SEC_MAX_AKEY_SIZE, in sec_auth_init()
669 &a_ctx->a_key_dma, GFP_KERNEL); in sec_auth_init()
670 if (!a_ctx->a_key) in sec_auth_init()
678 struct sec_auth_ctx *a_ctx = &ctx->a_ctx; in sec_auth_uninit() local
680 memzero_explicit(a_ctx->a_key, SEC_MAX_AKEY_SIZE); in sec_auth_uninit()
682 a_ctx->a_key, a_ctx->a_key_dma); in sec_auth_uninit()
1124 struct sec_auth_ctx *a_ctx = &ctx->a_ctx; in sec_aead_setauthsize() local
1126 return crypto_aead_setauthsize(a_ctx->fallback_aead_tfm, authsize); in sec_aead_setauthsize()
1129 static int sec_aead_fallback_setkey(struct sec_auth_ctx *a_ctx, in sec_aead_fallback_setkey() argument
[all …]
H A Dsec.h155 struct sec_auth_ctx a_ctx; member
/openbmc/linux/drivers/crypto/chelsio/
H A Dchcr_algo.c215 struct chcr_dev *dev = a_ctx(tfm)->dev; in chcr_handle_aead_resp()
2368 struct uld_ctx *u_ctx = ULD_CTX(a_ctx(tfm)); in chcr_aead_common_exit()
2376 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); in chcr_aead_common_init()
2391 error = chcr_aead_dma_map(&ULD_CTX(a_ctx(tfm))->lldi.pdev->dev, req, in chcr_aead_common_init()
2420 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); in chcr_aead_fallback()
2438 struct chcr_context *ctx = a_ctx(tfm); in create_authenc_wr()
2564 create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, size, in create_authenc_wr()
2712 struct chcr_context *ctx = a_ctx(tfm); in chcr_add_aead_dst_ent()
2938 struct chcr_aead_ctx *aeadctx = AEAD_CTX(a_ctx(tfm)); in ccm_format_packet()
2964 struct chcr_context *ctx = a_ctx(tfm); in fill_sec_cpl_for_aead()
[all …]
H A Dchcr_crypto.h158 static inline struct chcr_context *a_ctx(struct crypto_aead *tfm) in a_ctx() function