Lines Matching refs:nx_ctx
37 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); in ecb_aes_nx_set_key() local
38 struct nx_csbcpb *csbcpb = (struct nx_csbcpb *)nx_ctx->csbcpb; in ecb_aes_nx_set_key()
40 nx_ctx_init(nx_ctx, HCOP_FC_AES); in ecb_aes_nx_set_key()
45 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; in ecb_aes_nx_set_key()
49 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192]; in ecb_aes_nx_set_key()
53 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256]; in ecb_aes_nx_set_key()
71 struct nx_crypto_ctx *nx_ctx = crypto_blkcipher_ctx(desc->tfm); in ecb_aes_nx_crypt() local
72 struct nx_csbcpb *csbcpb = nx_ctx->csbcpb; in ecb_aes_nx_crypt()
77 spin_lock_irqsave(&nx_ctx->lock, irq_flags); in ecb_aes_nx_crypt()
87 rc = nx_build_sg_lists(nx_ctx, desc, dst, src, &to_process, in ecb_aes_nx_crypt()
92 if (!nx_ctx->op.inlen || !nx_ctx->op.outlen) { in ecb_aes_nx_crypt()
97 rc = nx_hcall_sync(nx_ctx, &nx_ctx->op, in ecb_aes_nx_crypt()
102 atomic_inc(&(nx_ctx->stats->aes_ops)); in ecb_aes_nx_crypt()
104 &(nx_ctx->stats->aes_bytes)); in ecb_aes_nx_crypt()
110 spin_unlock_irqrestore(&nx_ctx->lock, irq_flags); in ecb_aes_nx_crypt()