Searched refs:c_ctx (Results 1 – 4 of 4) sorted by relevance
/linux-5.19.10/drivers/crypto/hisilicon/sec2/ |
D | sec_crypto.c | 600 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; in sec_cipher_init() local 602 c_ctx->c_key = dma_alloc_coherent(ctx->dev, SEC_MAX_KEY_SIZE, in sec_cipher_init() 603 &c_ctx->c_key_dma, GFP_KERNEL); in sec_cipher_init() 604 if (!c_ctx->c_key) in sec_cipher_init() 612 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; in sec_cipher_uninit() local 614 memzero_explicit(c_ctx->c_key, SEC_MAX_KEY_SIZE); in sec_cipher_uninit() 616 c_ctx->c_key, c_ctx->c_key_dma); in sec_cipher_uninit() 644 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; in sec_skcipher_fbtfm_init() local 646 c_ctx->fallback = false; in sec_skcipher_fbtfm_init() 652 c_ctx->fbtfm = crypto_alloc_sync_skcipher(alg, 0, in sec_skcipher_fbtfm_init() [all …]
|
D | sec.h | 154 struct sec_cipher_ctx c_ctx; member
|
/linux-5.19.10/drivers/crypto/chelsio/ |
D | chcr_algo.c | 801 struct chcr_context *ctx = c_ctx(tfm); in create_cipher_wr() 882 create_wreq(c_ctx(tfm), chcr_req, &(wrparam->req->base), reqctx->imm, 0, in create_cipher_wr() 917 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_cipher_fallback_setkey() 930 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_aes_cbc_setkey() 961 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_aes_ctr_setkey() 991 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_aes_rfc3686_setkey() 1058 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(tfm)); in chcr_update_tweak() 1162 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(tfm)); in chcr_handle_cipher_resp() 1163 struct uld_ctx *u_ctx = ULD_CTX(c_ctx(tfm)); in chcr_handle_cipher_resp() 1164 struct chcr_dev *dev = c_ctx(tfm)->dev; in chcr_handle_cipher_resp() [all …]
|
D | chcr_crypto.h | 163 static inline struct chcr_context *c_ctx(struct crypto_skcipher *tfm) in c_ctx() function
|