Lines Matching refs:req_ctx

232 	struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req);  in mv_process_current_q()  local
235 switch (req_ctx->op) { in mv_process_current_q()
248 if (req_ctx->decrypt) { in mv_process_current_q()
291 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_crypto_algo_completion() local
296 if (req_ctx->op != COP_AES_CBC) in mv_crypto_algo_completion()
305 struct mv_req_hash_ctx *req_ctx = ahash_request_ctx(req); in mv_process_hash_current() local
310 switch (req_ctx->op) { in mv_process_hash_current()
322 req_ctx-> in mv_process_hash_current()
333 is_last = req_ctx->last_chunk in mv_process_hash_current()
335 && (req_ctx->count <= MAX_HW_HASH_SIZE); in mv_process_hash_current()
336 if (req_ctx->first_hash) { in mv_process_hash_current()
342 req_ctx->first_hash = 0; in mv_process_hash_current()
378 struct mv_req_hash_ctx *req_ctx = ahash_request_ctx(req); in mv_hash_final_fallback() local
387 if (unlikely(req_ctx->first_hash)) { in mv_hash_final_fallback()
389 crypto_shash_update(&desc.shash, req_ctx->buffer, in mv_hash_final_fallback()
390 req_ctx->extra_bytes); in mv_hash_final_fallback()
394 rc = mv_hash_import_sha1_ctx(req_ctx, &desc.shash); in mv_hash_final_fallback()
638 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_enc_aes_ecb() local
640 req_ctx->op = COP_AES_ECB; in mv_enc_aes_ecb()
641 req_ctx->decrypt = 0; in mv_enc_aes_ecb()
649 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_dec_aes_ecb() local
651 req_ctx->op = COP_AES_ECB; in mv_dec_aes_ecb()
652 req_ctx->decrypt = 1; in mv_dec_aes_ecb()
660 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_enc_aes_cbc() local
662 req_ctx->op = COP_AES_CBC; in mv_enc_aes_cbc()
663 req_ctx->decrypt = 0; in mv_enc_aes_cbc()
671 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_dec_aes_cbc() local
673 req_ctx->op = COP_AES_CBC; in mv_dec_aes_cbc()
674 req_ctx->decrypt = 1; in mv_dec_aes_cbc()