Lines Matching refs:op

118 	enum crypto_op op;  member
132 enum hash_op op; member
142 enum hash_op op; member
258 struct sec_accel_config op; in mv_process_current_q() local
260 switch (req_ctx->op) { in mv_process_current_q()
262 op.config = CFG_OP_CRYPT_ONLY | CFG_ENCM_AES | CFG_ENC_MODE_ECB; in mv_process_current_q()
266 op.config = CFG_OP_CRYPT_ONLY | CFG_ENCM_AES | CFG_ENC_MODE_CBC; in mv_process_current_q()
267 op.enc_iv = ENC_IV_POINT(SRAM_DATA_IV) | in mv_process_current_q()
274 op.config |= CFG_DIR_DEC; in mv_process_current_q()
278 op.config |= CFG_DIR_ENC; in mv_process_current_q()
285 op.config |= CFG_AES_LEN_128; in mv_process_current_q()
288 op.config |= CFG_AES_LEN_192; in mv_process_current_q()
291 op.config |= CFG_AES_LEN_256; in mv_process_current_q()
294 op.enc_p = ENC_P_SRC(SRAM_DATA_IN_START) | in mv_process_current_q()
296 op.enc_key_p = SRAM_DATA_KEY_P; in mv_process_current_q()
299 op.enc_len = cpg->p.crypt_len; in mv_process_current_q()
300 memcpy(cpg->sram + SRAM_CONFIG, &op, in mv_process_current_q()
316 if (req_ctx->op != COP_AES_CBC) in mv_crypto_algo_completion()
328 struct sec_accel_config op = { 0 }; in mv_process_hash_current() local
331 switch (req_ctx->op) { in mv_process_hash_current()
334 op.config = CFG_OP_MAC_ONLY | CFG_MACM_SHA1; in mv_process_hash_current()
337 op.config = CFG_OP_MAC_ONLY | CFG_MACM_HMAC_SHA1; in mv_process_hash_current()
343 op.mac_src_p = in mv_process_hash_current()
350 op.mac_digest = in mv_process_hash_current()
352 op.mac_iv = in mv_process_hash_current()
361 op.config |= CFG_NOT_FRAG; in mv_process_hash_current()
363 op.config |= CFG_FIRST_FRAG; in mv_process_hash_current()
368 op.config |= CFG_LAST_FRAG; in mv_process_hash_current()
370 op.config |= CFG_MID_FRAG; in mv_process_hash_current()
381 memcpy(cpg->sram + SRAM_CONFIG, &op, sizeof(struct sec_accel_config)); in mv_process_hash_current()
657 req_ctx->op = COP_AES_ECB; in mv_enc_aes_ecb()
668 req_ctx->op = COP_AES_ECB; in mv_dec_aes_ecb()
679 req_ctx->op = COP_AES_CBC; in mv_enc_aes_cbc()
690 req_ctx->op = COP_AES_CBC; in mv_dec_aes_cbc()
703 static void mv_init_hash_req_ctx(struct mv_req_hash_ctx *ctx, int op, in mv_init_hash_req_ctx() argument
708 ctx->op = op; in mv_init_hash_req_ctx()
725 mv_init_hash_req_ctx(ahash_request_ctx(req), tfm_ctx->op, 0, 0, in mv_hash_init()
757 mv_init_hash_req_ctx(ahash_request_ctx(req), tfm_ctx->op, 1, in mv_hash_digest()
839 enum hash_op op, int count_add) in mv_cra_hash_init() argument
847 ctx->op = op; in mv_cra_hash_init()