Lines Matching refs:req
17 static int rk_cipher_need_fallback(struct skcipher_request *req)
19 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
24 if (!req->cryptlen)
27 len = req->cryptlen;
28 sgs = req->src;
29 sgd = req->dst;
75 struct skcipher_request *req)
79 if (rk_cipher_need_fallback(req))
80 return rk_cipher_fallback(req);
82 return crypto_transfer_skcipher_request_to_engine(engine, req);
132 static int rk_aes_ecb_encrypt(struct skcipher_request *req)
134 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
136 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req);
140 return rk_handle_req(dev, req);
143 static int rk_aes_ecb_decrypt(struct skcipher_request *req)
145 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
147 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req);
151 return rk_handle_req(dev, req);
154 static int rk_aes_cbc_encrypt(struct skcipher_request *req)
156 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
158 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req);
162 return rk_handle_req(dev, req);
165 static int rk_aes_cbc_decrypt(struct skcipher_request *req)
167 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
169 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req);
173 return rk_handle_req(dev, req);
176 static int rk_des_ecb_encrypt(struct skcipher_request *req)
178 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
180 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req);
184 return rk_handle_req(dev, req);
187 static int rk_des_ecb_decrypt(struct skcipher_request *req)
189 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
191 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req);
195 return rk_handle_req(dev, req);
198 static int rk_des_cbc_encrypt(struct skcipher_request *req)
200 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
202 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req);
206 return rk_handle_req(dev, req);
209 static int rk_des_cbc_decrypt(struct skcipher_request *req)
211 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
213 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req);
217 return rk_handle_req(dev, req);
220 static int rk_des3_ede_ecb_encrypt(struct skcipher_request *req)
222 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
224 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req);
228 return rk_handle_req(dev, req);
231 static int rk_des3_ede_ecb_decrypt(struct skcipher_request *req)
233 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
235 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req);
239 return rk_handle_req(dev, req);
242 static int rk_des3_ede_cbc_encrypt(struct skcipher_request *req)
244 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
246 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req);
250 return rk_handle_req(dev, req);
253 static int rk_des3_ede_cbc_decrypt(struct skcipher_request *req)
255 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
257 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req);
262 return rk_handle_req(dev, req);
265 static void rk_ablk_hw_init(struct rk_crypto_info *dev, struct skcipher_request *req)
267 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req);
269 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req);