Lines Matching refs:nx_ctx
27 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm);
28 struct nx_csbcpb *csbcpb = (struct nx_csbcpb *)nx_ctx->csbcpb;
30 nx_ctx_init(nx_ctx, HCOP_FC_AES);
35 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128];
39 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192];
43 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256];
59 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm);
60 struct nx_csbcpb *csbcpb = nx_ctx->csbcpb;
65 spin_lock_irqsave(&nx_ctx->lock, irq_flags);
75 rc = nx_build_sg_lists(nx_ctx, NULL, req->dst, req->src,
80 if (!nx_ctx->op.inlen || !nx_ctx->op.outlen) {
85 rc = nx_hcall_sync(nx_ctx, &nx_ctx->op,
90 atomic_inc(&(nx_ctx->stats->aes_ops));
92 &(nx_ctx->stats->aes_bytes));
98 spin_unlock_irqrestore(&nx_ctx->lock, irq_flags);