Home
last modified time | relevance | path

Searched refs:modeReg (Results 1 – 5 of 5) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ltc/
Dfsl_ltc.c504 ltc_mode_t modeReg; in ltc_symmetric_alg_state() local
524 modeReg = (uint32_t)alg | (uint32_t)enc | (uint32_t)as | (uint32_t)mode; in ltc_symmetric_alg_state()
527 base->MD = modeReg; in ltc_symmetric_alg_state()
750 ltc_mode_t modeReg; /* read and write LTC mode register */ in ltc_process_message_in_sessions() local
762 modeReg = base->MD; in ltc_process_message_in_sessions()
764 if (modeReg == 0x00100100u) in ltc_process_message_in_sessions()
767 modeReg = 0x00101100u; in ltc_process_message_in_sessions()
770 if (modeReg == 0x00100200u) in ltc_process_message_in_sessions()
773 modeReg = 0x00101200u; in ltc_process_message_in_sessions()
799 base->MD = modeReg; in ltc_process_message_in_sessions()
[all …]
Dfsl_ltc_edma.c80 handle->modeReg = base->MD; in ltc_process_message_in_sessions_EDMA()
163 base->MD = handle->modeReg; in ltc_process_message_in_sessions_EDMA()
192 handle->modeReg = base->MD; in ltc_process_message_in_sessions_ctr_EDMA()
275 base->MD = handle->modeReg; in ltc_process_message_in_sessions_ctr_EDMA()
286 ltc_mode_t modeReg; in ltc_process_message_in_sessions_ctr_EDMA() local
288modeReg = (uint32_t)kLTC_AlgorithmAES | (uint32_t)kLTC_ModeCTR | (uint32_t)kLTC_ModeEncrypt; in ltc_process_message_in_sessions_ctr_EDMA()
290 base->MD = modeReg | (uint32_t)kLTC_ModeFinalize; in ltc_process_message_in_sessions_ctr_EDMA()
304 base->MD = modeReg | (uint32_t)kLTC_ModeUpdate; in ltc_process_message_in_sessions_ctr_EDMA()
Dfsl_ltc_edma.h56 uint32_t modeReg; /*!< LTC mode register.*/ member
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/caam/
Dfsl_caam.c2513 uint32_t modeReg = 0u; in caam_hash_algo2mode() local
2520 modeReg = (uint32_t)kCAAM_AlgorithmAES | (uint32_t)kCAAM_ModeXCBCMAC; in caam_hash_algo2mode()
2524 modeReg = (uint32_t)kCAAM_AlgorithmAES | (uint32_t)kCAAM_ModeCMAC; in caam_hash_algo2mode()
2528 modeReg = (uint32_t)kCAAM_AlgorithmSHA1; in caam_hash_algo2mode()
2532 modeReg = (uint32_t)kCAAM_AlgorithmSHA224; in caam_hash_algo2mode()
2536 modeReg = (uint32_t)kCAAM_AlgorithmSHA256; in caam_hash_algo2mode()
2540 modeReg = (uint32_t)kCAAM_AlgorithmSHA384; in caam_hash_algo2mode()
2544 modeReg = (uint32_t)kCAAM_AlgorithmSHA512; in caam_hash_algo2mode()
2552 modeReg |= algState; in caam_hash_algo2mode()
2558 return modeReg; in caam_hash_algo2mode()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/cau3/
Dfsl_cau3.c2633 cau3_mode_t modeReg; in cau3_pkha_init_mode() local
2637 modeReg = (uint32_t)kCAU3_AlgorithmPKHA; in cau3_pkha_init_mode()
2638 modeReg |= (uint32_t)params->func; in cau3_pkha_init_mode()
2643 cau3_pkha_mode_set_src_reg_copy(&modeReg, params->srcReg); in cau3_pkha_init_mode()
2644 cau3_pkha_mode_set_dst_reg_copy(&modeReg, params->dstReg); in cau3_pkha_init_mode()
2645 cau3_pkha_mode_set_src_seg_copy(&modeReg, params->srcQuad); in cau3_pkha_init_mode()
2646 cau3_pkha_mode_set_dst_seg_copy(&modeReg, params->dstQuad); in cau3_pkha_init_mode()
2651 modeReg |= ((uint32_t)params->arithType << 17u); in cau3_pkha_init_mode()
2654 modeReg |= ((uint32_t)params->montFormIn << 19u); in cau3_pkha_init_mode()
2655 modeReg |= ((uint32_t)params->montFormOut << 18u); in cau3_pkha_init_mode()
[all …]