Searched refs:a_ctx (Results 1 – 4 of 4) sorted by relevance
/drivers/crypto/hisilicon/sec2/ |
D | sec_crypto.c | 618 struct sec_auth_ctx *a_ctx = &ctx->a_ctx; in sec_auth_init() local 620 a_ctx->a_key = dma_alloc_coherent(ctx->dev, SEC_MAX_AKEY_SIZE, in sec_auth_init() 621 &a_ctx->a_key_dma, GFP_KERNEL); in sec_auth_init() 622 if (!a_ctx->a_key) in sec_auth_init() 630 struct sec_auth_ctx *a_ctx = &ctx->a_ctx; in sec_auth_uninit() local 632 memzero_explicit(a_ctx->a_key, SEC_MAX_AKEY_SIZE); in sec_auth_uninit() 634 a_ctx->a_key, a_ctx->a_key_dma); in sec_auth_uninit() 1074 struct sec_auth_ctx *a_ctx = &ctx->a_ctx; in sec_aead_setauthsize() local 1076 if (unlikely(a_ctx->fallback_aead_tfm)) in sec_aead_setauthsize() 1077 return crypto_aead_setauthsize(a_ctx->fallback_aead_tfm, authsize); in sec_aead_setauthsize() [all …]
|
D | sec.h | 155 struct sec_auth_ctx a_ctx; member
|
/drivers/crypto/chelsio/ |
D | chcr_algo.c | 215 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 …]
|
D | chcr_crypto.h | 158 static inline struct chcr_context *a_ctx(struct crypto_aead *tfm) in a_ctx() function
|