Lines Matching defs:rctx
107 struct sl3516_ce_cipher_req_ctx *rctx = skcipher_request_ctx(areq);
115 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm);
116 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags,
118 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst,
120 if (rctx->op_dir == CE_DECRYPTION)
121 err = crypto_skcipher_decrypt(&rctx->fallback_req);
123 err = crypto_skcipher_encrypt(&rctx->fallback_req);
132 struct sl3516_ce_cipher_req_ctx *rctx = skcipher_request_ctx(areq);
148 rctx->op_dir, areq->iv, crypto_skcipher_ivsize(tfm),
185 rctx->t_src[i].addr = sg_dma_address(sg);
187 rctx->t_src[i].len = todo;
189 areq->cryptlen, i, rctx->t_src[i].len, sg->offset, todo);
207 rctx->t_dst[i].addr = sg_dma_address(sg);
209 rctx->t_dst[i].len = todo;
211 areq->cryptlen, i, rctx->t_dst[i].len, sg->offset, todo);
226 rctx->pctrllen = sizeof(struct pkt_control_ecb);
229 rctx->tqflag = TQ0_TYPE_CTRL;
230 rctx->tqflag |= TQ1_CIPHER;
231 ecb->control.op_mode = rctx->op_dir;
236 rctx->h = &ecb->cipher;
238 rctx->tqflag |= TQ4_KEY0;
239 rctx->tqflag |= TQ5_KEY4;
240 rctx->tqflag |= TQ6_KEY6;
245 rctx->nr_sgs = nr_sgs;
246 rctx->nr_sgd = nr_sgd;
247 err = sl3516_ce_run_task(ce, rctx, crypto_tfm_alg_name(areq->base.tfm));
282 struct sl3516_ce_cipher_req_ctx *rctx = skcipher_request_ctx(areq);
285 memset(rctx, 0, sizeof(struct sl3516_ce_cipher_req_ctx));
286 rctx->op_dir = CE_DECRYPTION;
300 struct sl3516_ce_cipher_req_ctx *rctx = skcipher_request_ctx(areq);
303 memset(rctx, 0, sizeof(struct sl3516_ce_cipher_req_ctx));
304 rctx->op_dir = CE_ENCRYPTION;