Lines Matching defs:rctx

93 	struct sun8i_cipher_req_ctx *rctx = skcipher_request_ctx(areq);
108 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm);
109 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags,
111 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst,
113 if (rctx->op_dir & CE_DECRYPTION)
114 err = crypto_skcipher_decrypt(&rctx->fallback_req);
116 err = crypto_skcipher_encrypt(&rctx->fallback_req);
126 struct sun8i_cipher_req_ctx *rctx = skcipher_request_ctx(areq);
146 rctx->op_dir, areq->iv, crypto_skcipher_ivsize(tfm),
153 flow = rctx->flow;
162 common |= rctx->op_dir | CE_COMM_INT;
187 rctx->addr_key = dma_map_single(ce->dev, op->key, op->keylen, DMA_TO_DEVICE);
188 if (dma_mapping_error(ce->dev, rctx->addr_key)) {
193 cet->t_key = cpu_to_le32(rctx->addr_key);
197 rctx->ivlen = ivsize;
198 if (rctx->op_dir & CE_DECRYPTION) {
204 rctx->addr_iv = dma_map_single(ce->dev, chan->bounce_iv, rctx->ivlen,
206 if (dma_mapping_error(ce->dev, rctx->addr_iv)) {
211 cet->t_iv = cpu_to_le32(rctx->addr_iv);
268 rctx->nr_sgs = nr_sgs;
269 rctx->nr_sgd = nr_sgd;
283 if (rctx->addr_iv)
284 dma_unmap_single(ce->dev, rctx->addr_iv, rctx->ivlen, DMA_TO_DEVICE);
286 if (rctx->op_dir & CE_DECRYPTION) {
296 dma_unmap_single(ce->dev, rctx->addr_key, op->keylen, DMA_TO_DEVICE);
308 struct sun8i_cipher_req_ctx *rctx = skcipher_request_ctx(breq);
311 flow = rctx->flow;
325 struct sun8i_cipher_req_ctx *rctx = skcipher_request_ctx(areq);
329 int nr_sgs = rctx->nr_sgs;
330 int nr_sgd = rctx->nr_sgd;
333 flow = rctx->flow;
348 dma_unmap_single(ce->dev, rctx->addr_iv, rctx->ivlen, DMA_TO_DEVICE);
350 if (rctx->op_dir & CE_DECRYPTION) {
360 dma_unmap_single(ce->dev, rctx->addr_key, op->keylen, DMA_TO_DEVICE);
379 struct sun8i_cipher_req_ctx *rctx = skcipher_request_ctx(areq);
383 rctx->op_dir = CE_DECRYPTION;
388 rctx->flow = e;
398 struct sun8i_cipher_req_ctx *rctx = skcipher_request_ctx(areq);
402 rctx->op_dir = CE_ENCRYPTION;
407 rctx->flow = e;