Lines Matching refs:nx_ctx
27 struct nx_crypto_ctx *nx_ctx = crypto_skcipher_ctx(tfm);
28 struct nx_csbcpb *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, req->iv, req->dst, req->src,
81 if (!nx_ctx->op.inlen || !nx_ctx->op.outlen) {
86 rc = nx_hcall_sync(nx_ctx, &nx_ctx->op,
92 atomic_inc(&(nx_ctx->stats->aes_ops));
94 &(nx_ctx->stats->aes_bytes));
99 spin_unlock_irqrestore(&nx_ctx->lock, irq_flags);