Lines Matching refs:nctx
37 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aes_gcm_setkey() local
46 fctx = nctx->u.fctx; in nitrox_aes_gcm_setkey()
61 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aead_setauthsize() local
62 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aead_setauthsize()
216 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aes_gcm_enc() local
219 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_enc()
234 rctx->ctx_handle = nctx->u.ctx_handle; in nitrox_aes_gcm_enc()
243 return nitrox_process_se_request(nctx->ndev, creq, nitrox_aead_callback, in nitrox_aes_gcm_enc()
250 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aes_gcm_dec() local
253 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aes_gcm_dec()
268 rctx->ctx_handle = nctx->u.ctx_handle; in nitrox_aes_gcm_dec()
277 return nitrox_process_se_request(nctx->ndev, creq, nitrox_aead_callback, in nitrox_aes_gcm_dec()
283 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aead_init() local
287 nctx->ndev = nitrox_get_first_device(); in nitrox_aead_init()
288 if (!nctx->ndev) in nitrox_aead_init()
292 chdr = crypto_alloc_context(nctx->ndev); in nitrox_aead_init()
294 nitrox_put_device(nctx->ndev); in nitrox_aead_init()
297 nctx->chdr = chdr; in nitrox_aead_init()
298 nctx->u.ctx_handle = (uintptr_t)((u8 *)chdr->vaddr + in nitrox_aead_init()
300 nctx->u.fctx->flags.f = 0; in nitrox_aead_init()
308 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_gcm_common_init() local
315 flags = &nctx->u.fctx->flags; in nitrox_gcm_common_init()
343 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_aead_exit() local
346 if (nctx->u.ctx_handle) { in nitrox_aead_exit()
347 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_aead_exit()
351 crypto_free_context((void *)nctx->chdr); in nitrox_aead_exit()
353 nitrox_put_device(nctx->ndev); in nitrox_aead_exit()
355 nctx->u.ctx_handle = 0; in nitrox_aead_exit()
356 nctx->ndev = NULL; in nitrox_aead_exit()
362 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_rfc4106_setkey() local
363 struct flexi_crypto_context *fctx = nctx->u.fctx; in nitrox_rfc4106_setkey()
443 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_rfc4106_enc() local
456 aead_rctx->ctx_handle = nctx->u.ctx_handle; in nitrox_rfc4106_enc()
468 return nitrox_process_se_request(nctx->ndev, creq, in nitrox_rfc4106_enc()
475 struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead); in nitrox_rfc4106_dec() local
489 aead_rctx->ctx_handle = nctx->u.ctx_handle; in nitrox_rfc4106_dec()
501 return nitrox_process_se_request(nctx->ndev, creq, in nitrox_rfc4106_dec()