Lines Matching refs:nctx

110 	struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(tfm);  in nitrox_skcipher_init()  local
114 nctx->ndev = nitrox_get_first_device(); in nitrox_skcipher_init()
115 if (!nctx->ndev) in nitrox_skcipher_init()
119 chdr = crypto_alloc_context(nctx->ndev); in nitrox_skcipher_init()
121 nitrox_put_device(nctx->ndev); in nitrox_skcipher_init()
125 nctx->callback = nitrox_skcipher_callback; in nitrox_skcipher_init()
126 nctx->chdr = chdr; in nitrox_skcipher_init()
127 nctx->u.ctx_handle = (uintptr_t)((u8 *)chdr->vaddr + in nitrox_skcipher_init()
137 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(tfm); in nitrox_cbc_init() local
143 nctx->callback = nitrox_cbc_cipher_callback; in nitrox_cbc_init()
149 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(tfm); in nitrox_skcipher_exit() local
152 if (nctx->u.ctx_handle) { in nitrox_skcipher_exit()
153 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_skcipher_exit()
157 crypto_free_context((void *)nctx->chdr); in nitrox_skcipher_exit()
159 nitrox_put_device(nctx->ndev); in nitrox_skcipher_exit()
161 nctx->u.ctx_handle = 0; in nitrox_skcipher_exit()
162 nctx->ndev = NULL; in nitrox_skcipher_exit()
170 struct nitrox_crypto_ctx *nctx = crypto_tfm_ctx(tfm); in nitrox_skcipher_setkey() local
184 fctx = nctx->u.fctx; in nitrox_skcipher_setkey()
250 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(cipher); in nitrox_skcipher_crypt() local
272 creq->ctx_handle = nctx->u.ctx_handle; in nitrox_skcipher_crypt()
286 return nitrox_process_se_request(nctx->ndev, creq, nctx->callback, in nitrox_skcipher_crypt()
341 struct nitrox_crypto_ctx *nctx = crypto_tfm_ctx(tfm); in nitrox_aes_xts_setkey() local
355 fctx = nctx->u.fctx; in nitrox_aes_xts_setkey()
366 struct nitrox_crypto_ctx *nctx = crypto_tfm_ctx(tfm); in nitrox_aes_ctr_rfc3686_setkey() local
373 fctx = nctx->u.fctx; in nitrox_aes_ctr_rfc3686_setkey()