Lines Matching refs:req_ctx

262 	struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req);  in mv_process_current_q()  local
265 switch (req_ctx->op) { in mv_process_current_q()
278 if (req_ctx->decrypt) { in mv_process_current_q()
316 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_crypto_algo_completion() local
321 if (req_ctx->op != COP_AES_CBC) in mv_crypto_algo_completion()
331 struct mv_req_hash_ctx *req_ctx = ahash_request_ctx(req); in mv_process_hash_current() local
336 switch (req_ctx->op) { in mv_process_hash_current()
350 req_ctx-> in mv_process_hash_current()
361 is_last = req_ctx->last_chunk in mv_process_hash_current()
363 && (req_ctx->count <= MAX_HW_HASH_SIZE); in mv_process_hash_current()
364 if (req_ctx->first_hash) { in mv_process_hash_current()
370 req_ctx->first_hash = 0; in mv_process_hash_current()
378 writel(req_ctx->state[0], cpg->reg + DIGEST_INITIAL_VAL_A); in mv_process_hash_current()
379 writel(req_ctx->state[1], cpg->reg + DIGEST_INITIAL_VAL_B); in mv_process_hash_current()
380 writel(req_ctx->state[2], cpg->reg + DIGEST_INITIAL_VAL_C); in mv_process_hash_current()
381 writel(req_ctx->state[3], cpg->reg + DIGEST_INITIAL_VAL_D); in mv_process_hash_current()
382 writel(req_ctx->state[4], cpg->reg + DIGEST_INITIAL_VAL_E); in mv_process_hash_current()
409 struct mv_req_hash_ctx *req_ctx = ahash_request_ctx(req); in mv_hash_final_fallback() local
415 if (unlikely(req_ctx->first_hash)) { in mv_hash_final_fallback()
417 crypto_shash_update(shash, req_ctx->buffer, in mv_hash_final_fallback()
418 req_ctx->extra_bytes); in mv_hash_final_fallback()
422 rc = mv_hash_import_sha1_ctx(req_ctx, shash); in mv_hash_final_fallback()
660 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_enc_aes_ecb() local
662 req_ctx->op = COP_AES_ECB; in mv_enc_aes_ecb()
663 req_ctx->decrypt = 0; in mv_enc_aes_ecb()
671 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_dec_aes_ecb() local
673 req_ctx->op = COP_AES_ECB; in mv_dec_aes_ecb()
674 req_ctx->decrypt = 1; in mv_dec_aes_ecb()
682 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_enc_aes_cbc() local
684 req_ctx->op = COP_AES_CBC; in mv_enc_aes_cbc()
685 req_ctx->decrypt = 0; in mv_enc_aes_cbc()
693 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_dec_aes_cbc() local
695 req_ctx->op = COP_AES_CBC; in mv_dec_aes_cbc()
696 req_ctx->decrypt = 1; in mv_dec_aes_cbc()