Lines Matching refs:nctx

75 	struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(tfm);  in nitrox_skcipher_init()  local
79 nctx->ndev = nitrox_get_first_device(); in nitrox_skcipher_init()
80 if (!nctx->ndev) in nitrox_skcipher_init()
84 fctx = crypto_alloc_context(nctx->ndev); in nitrox_skcipher_init()
86 nitrox_put_device(nctx->ndev); in nitrox_skcipher_init()
89 nctx->u.ctx_handle = (uintptr_t)fctx; in nitrox_skcipher_init()
97 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(tfm); in nitrox_skcipher_exit() local
100 if (nctx->u.ctx_handle) { in nitrox_skcipher_exit()
101 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_skcipher_exit()
107 nitrox_put_device(nctx->ndev); in nitrox_skcipher_exit()
109 nctx->u.ctx_handle = 0; in nitrox_skcipher_exit()
110 nctx->ndev = NULL; in nitrox_skcipher_exit()
118 struct nitrox_crypto_ctx *nctx = crypto_tfm_ctx(tfm); in nitrox_skcipher_setkey() local
131 fctx = nctx->u.fctx; in nitrox_skcipher_setkey()
169 struct nitrox_crypto_ctx *nctx = crypto_skcipher_ctx(cipher); in nitrox_skcipher_crypt() local
190 creq->ctx_handle = nctx->u.ctx_handle; in nitrox_skcipher_crypt()
199 nkreq->nctx = nctx; in nitrox_skcipher_crypt()
203 return nitrox_process_se_request(nctx->ndev, creq, in nitrox_skcipher_crypt()
242 struct nitrox_crypto_ctx *nctx = crypto_tfm_ctx(tfm); in nitrox_aes_xts_setkey() local
258 fctx = nctx->u.fctx; in nitrox_aes_xts_setkey()
269 struct nitrox_crypto_ctx *nctx = crypto_tfm_ctx(tfm); in nitrox_aes_ctr_rfc3686_setkey() local
276 fctx = nctx->u.fctx; in nitrox_aes_ctr_rfc3686_setkey()