Searched refs:c_ctx (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/crypto/hisilicon/sec2/ |
| H A D | sec_crypto.c | 714 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; in sec_cipher_init() local 719 c_ctx->c_key = dma_alloc_coherent(ctx->dev, SEC_MAX_KEY_SIZE, in sec_cipher_init() 720 &c_ctx->c_key_dma, GFP_KERNEL); in sec_cipher_init() 721 if (!c_ctx->c_key) in sec_cipher_init() 729 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; in sec_cipher_uninit() local 734 memzero_explicit(c_ctx->c_key, SEC_MAX_KEY_SIZE); in sec_cipher_uninit() 736 c_ctx->c_key, c_ctx->c_key_dma); in sec_cipher_uninit() 767 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; in sec_skcipher_fbtfm_init() local 769 c_ctx->fallback = false; in sec_skcipher_fbtfm_init() 771 c_ctx->fbtfm = crypto_alloc_sync_skcipher(alg, 0, in sec_skcipher_fbtfm_init() [all …]
|
| H A D | sec.h | 195 struct sec_cipher_ctx c_ctx; member
|
| /linux/drivers/crypto/chelsio/ |
| H A D | chcr_algo.c | 772 struct chcr_context *ctx = c_ctx(tfm); in create_cipher_wr() 853 create_wreq(c_ctx(tfm), chcr_req, &(wrparam->req->base), reqctx->imm, 0, in create_cipher_wr() 888 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_cipher_fallback_setkey() 901 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_aes_cbc_setkey() 932 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_aes_ctr_setkey() 962 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_aes_rfc3686_setkey() 1029 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(tfm)); in chcr_update_tweak() 1133 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(tfm)); in chcr_handle_cipher_resp() 1134 struct uld_ctx *u_ctx = ULD_CTX(c_ctx(tfm)); in chcr_handle_cipher_resp() 1135 struct chcr_dev *dev = c_ctx(tfm)->dev; in chcr_handle_cipher_resp() [all …]
|
| H A D | chcr_crypto.h | 163 static inline struct chcr_context *c_ctx(struct crypto_skcipher *tfm) in c_ctx() function
|