Lines Matching refs:nx_ctx
28 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm);
29 struct nx_csbcpb *csbcpb = nx_ctx->csbcpb;
31 nx_ctx_init(nx_ctx, HCOP_FC_AES);
36 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128];
40 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192];
44 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256];
60 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm);
65 memcpy(nx_ctx->priv.ctr.nonce,
77 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm);
78 struct nx_csbcpb *csbcpb = nx_ctx->csbcpb;
83 spin_lock_irqsave(&nx_ctx->lock, irq_flags);
88 rc = nx_build_sg_lists(nx_ctx, iv, req->dst, req->src,
94 if (!nx_ctx->op.inlen || !nx_ctx->op.outlen) {
99 rc = nx_hcall_sync(nx_ctx, &nx_ctx->op,
106 atomic_inc(&(nx_ctx->stats->aes_ops));
108 &(nx_ctx->stats->aes_bytes));
113 spin_unlock_irqrestore(&nx_ctx->lock, irq_flags);
120 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm);
123 memcpy(iv, nx_ctx->priv.ctr.nonce, CTR_RFC3686_NONCE_SIZE);