Lines Matching refs:req_ctx
257 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_process_current_q() local
260 switch (req_ctx->op) { in mv_process_current_q()
273 if (req_ctx->decrypt) { in mv_process_current_q()
311 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_crypto_algo_completion() local
316 if (req_ctx->op != COP_AES_CBC) in mv_crypto_algo_completion()
326 struct mv_req_hash_ctx *req_ctx = ahash_request_ctx(req); in mv_process_hash_current() local
331 switch (req_ctx->op) { in mv_process_hash_current()
345 req_ctx-> in mv_process_hash_current()
356 is_last = req_ctx->last_chunk in mv_process_hash_current()
358 && (req_ctx->count <= MAX_HW_HASH_SIZE); in mv_process_hash_current()
359 if (req_ctx->first_hash) { in mv_process_hash_current()
365 req_ctx->first_hash = 0; in mv_process_hash_current()
373 writel(req_ctx->state[0], cpg->reg + DIGEST_INITIAL_VAL_A); in mv_process_hash_current()
374 writel(req_ctx->state[1], cpg->reg + DIGEST_INITIAL_VAL_B); in mv_process_hash_current()
375 writel(req_ctx->state[2], cpg->reg + DIGEST_INITIAL_VAL_C); in mv_process_hash_current()
376 writel(req_ctx->state[3], cpg->reg + DIGEST_INITIAL_VAL_D); in mv_process_hash_current()
377 writel(req_ctx->state[4], cpg->reg + DIGEST_INITIAL_VAL_E); in mv_process_hash_current()
404 struct mv_req_hash_ctx *req_ctx = ahash_request_ctx(req); in mv_hash_final_fallback() local
410 if (unlikely(req_ctx->first_hash)) { in mv_hash_final_fallback()
412 crypto_shash_update(shash, req_ctx->buffer, in mv_hash_final_fallback()
413 req_ctx->extra_bytes); in mv_hash_final_fallback()
417 rc = mv_hash_import_sha1_ctx(req_ctx, shash); in mv_hash_final_fallback()
655 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_enc_aes_ecb() local
657 req_ctx->op = COP_AES_ECB; in mv_enc_aes_ecb()
658 req_ctx->decrypt = 0; in mv_enc_aes_ecb()
666 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_dec_aes_ecb() local
668 req_ctx->op = COP_AES_ECB; in mv_dec_aes_ecb()
669 req_ctx->decrypt = 1; in mv_dec_aes_ecb()
677 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_enc_aes_cbc() local
679 req_ctx->op = COP_AES_CBC; in mv_enc_aes_cbc()
680 req_ctx->decrypt = 0; in mv_enc_aes_cbc()
688 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_dec_aes_cbc() local
690 req_ctx->op = COP_AES_CBC; in mv_dec_aes_cbc()
691 req_ctx->decrypt = 1; in mv_dec_aes_cbc()