Lines Matching refs:op
123 enum crypto_op op; member
137 enum hash_op op; member
147 enum hash_op op; member
263 struct sec_accel_config op; in mv_process_current_q() local
265 switch (req_ctx->op) { in mv_process_current_q()
267 op.config = CFG_OP_CRYPT_ONLY | CFG_ENCM_AES | CFG_ENC_MODE_ECB; in mv_process_current_q()
271 op.config = CFG_OP_CRYPT_ONLY | CFG_ENCM_AES | CFG_ENC_MODE_CBC; in mv_process_current_q()
272 op.enc_iv = ENC_IV_POINT(SRAM_DATA_IV) | in mv_process_current_q()
279 op.config |= CFG_DIR_DEC; in mv_process_current_q()
283 op.config |= CFG_DIR_ENC; in mv_process_current_q()
290 op.config |= CFG_AES_LEN_128; in mv_process_current_q()
293 op.config |= CFG_AES_LEN_192; in mv_process_current_q()
296 op.config |= CFG_AES_LEN_256; in mv_process_current_q()
299 op.enc_p = ENC_P_SRC(SRAM_DATA_IN_START) | in mv_process_current_q()
301 op.enc_key_p = SRAM_DATA_KEY_P; in mv_process_current_q()
304 op.enc_len = cpg->p.crypt_len; in mv_process_current_q()
305 memcpy(cpg->sram + SRAM_CONFIG, &op, in mv_process_current_q()
321 if (req_ctx->op != COP_AES_CBC) in mv_crypto_algo_completion()
333 struct sec_accel_config op = { 0 }; in mv_process_hash_current() local
336 switch (req_ctx->op) { in mv_process_hash_current()
339 op.config = CFG_OP_MAC_ONLY | CFG_MACM_SHA1; in mv_process_hash_current()
342 op.config = CFG_OP_MAC_ONLY | CFG_MACM_HMAC_SHA1; in mv_process_hash_current()
348 op.mac_src_p = in mv_process_hash_current()
355 op.mac_digest = in mv_process_hash_current()
357 op.mac_iv = in mv_process_hash_current()
366 op.config |= CFG_NOT_FRAG; in mv_process_hash_current()
368 op.config |= CFG_FIRST_FRAG; in mv_process_hash_current()
373 op.config |= CFG_LAST_FRAG; in mv_process_hash_current()
375 op.config |= CFG_MID_FRAG; in mv_process_hash_current()
386 memcpy(cpg->sram + SRAM_CONFIG, &op, sizeof(struct sec_accel_config)); in mv_process_hash_current()
662 req_ctx->op = COP_AES_ECB; in mv_enc_aes_ecb()
673 req_ctx->op = COP_AES_ECB; in mv_dec_aes_ecb()
684 req_ctx->op = COP_AES_CBC; in mv_enc_aes_cbc()
695 req_ctx->op = COP_AES_CBC; in mv_dec_aes_cbc()
708 static void mv_init_hash_req_ctx(struct mv_req_hash_ctx *ctx, int op, in mv_init_hash_req_ctx() argument
713 ctx->op = op; in mv_init_hash_req_ctx()
730 mv_init_hash_req_ctx(ahash_request_ctx(req), tfm_ctx->op, 0, 0, in mv_hash_init()
762 mv_init_hash_req_ctx(ahash_request_ctx(req), tfm_ctx->op, 1, in mv_hash_digest()
844 enum hash_op op, int count_add) in mv_cra_hash_init() argument
852 ctx->op = op; in mv_cra_hash_init()