Searched refs:cr (Results 1 – 10 of 10) sorted by relevance
| /optee_os/core/drivers/crypto/stm32/ |
| H A D | stm32_cryp.c | 165 #define IS_ALGOMODE(cr, mod) \ argument 166 (((cr) & _CRYP_CR_ALGOMODE_MSK) == (_CRYP_CR_ALGOMODE_##mod << \ 169 #define SET_ALGOMODE(mod, cr) \ argument 170 clrsetbits(&(cr), _CRYP_CR_ALGOMODE_MSK, (_CRYP_CR_ALGOMODE_##mod << \ 173 #define GET_ALGOMODE(cr) \ argument 174 (((cr) & _CRYP_CR_ALGOMODE_MSK) >> _CRYP_CR_ALGOMODE_OFF) 184 static bool algo_mode_needs_iv(uint32_t cr) in algo_mode_needs_iv() argument 186 return !IS_ALGOMODE(cr, TDES_ECB) && !IS_ALGOMODE(cr, DES_ECB) && in algo_mode_needs_iv() 187 !IS_ALGOMODE(cr, AES_ECB); in algo_mode_needs_iv() 190 static bool algo_mode_is_ecb_cbc(uint32_t cr) in algo_mode_is_ecb_cbc() argument [all …]
|
| H A D | stm32_saes.c | 135 #define IS_CHAINING_MODE(mode, cr) \ argument 136 (((cr) & _SAES_CR_CHMOD_MASK) == (_SAES_CR_CHMOD_##mode << \ 139 #define SET_CHAINING_MODE(mode, cr) \ argument 140 set_field_u32(cr, _SAES_CR_CHMOD_MASK, _SAES_CR_CHMOD_##mode) 150 static bool does_chaining_mode_need_iv(uint32_t cr) in does_chaining_mode_need_iv() argument 152 return !IS_CHAINING_MODE(ECB, cr); in does_chaining_mode_need_iv() 155 static bool is_encrypt(uint32_t cr) in is_encrypt() argument 157 return (cr & _SAES_CR_MODE_MASK) == in is_encrypt() 161 static bool is_decrypt(uint32_t cr) in is_decrypt() argument 163 return (cr & _SAES_CR_MODE_MASK) == in is_decrypt() [all …]
|
| H A D | stm32_hash.h | 51 uint32_t cr; member
|
| H A D | stm32_cryp.h | 47 uint32_t cr; member
|
| H A D | stm32_saes.h | 35 uint32_t cr; member
|
| H A D | stm32_hash.c | 279 c->cr = io_read32(base + _HASH_CR); in save_context() 308 io_write32(base + _HASH_CR, c->cr | _HASH_CR_INIT); in restore_context()
|
| /optee_os/core/lib/libtomcrypt/src/misc/base64/ |
| H A D | base64_encode.c | 28 cr = 4, enumerator 30 crlf = lf | cr, 72 if (mode & cr) *p++ = '\r'; in s_base64_encode_internal()
|
| /optee_os/core/drivers/ |
| H A D | atmel_rtc.c | 153 uint32_t cr = 0; in atmel_rtc_set_time() local 159 cr = atmel_rtc_read(RTC_CR); in atmel_rtc_set_time() 160 } while (cr & (RTC_CR_UPDCAL | RTC_CR_UPDTIM)); in atmel_rtc_set_time() 163 atmel_rtc_write(RTC_CR, cr | RTC_CR_UPDCAL | RTC_CR_UPDTIM); in atmel_rtc_set_time() 195 atmel_rtc_write(RTC_CR, cr); in atmel_rtc_set_time()
|
| H A D | stm32_rtc.c | 393 uint32_t cr = io_read32(rtc_base + RTC_CR); in stm32_rtc_it_handler() local 395 if ((status & RTC_SR_ALRAF) && (cr & RTC_CR_ALRAIE)) { in stm32_rtc_it_handler() 580 uint32_t cr = io_read32(base + RTC_CR); in stm32_rtc_init() local 585 if (cr & RTC_CR_FMT && !IS_ENABLED(CFG_STM32_RTC_HIGH_ACCURACY)) in stm32_rtc_init() 622 if (cr & RTC_CR_FMT && prer == (pred_s | pred_a)) in stm32_rtc_init() 641 cr &= ~RTC_CR_FMT; in stm32_rtc_init() 642 io_write32(base + RTC_CR, cr); in stm32_rtc_init() 829 uint32_t cr = io_read32(rtc_base + RTC_CR); in stm32_rtc_read_alarm() local 866 alarm->enabled = cr & RTC_CR_ALRAE; in stm32_rtc_read_alarm() 942 uint32_t cr = io_read32(rtc_base + RTC_CR); in stm32_rtc_set_alarm() local [all …]
|
| H A D | stm32_rng.c | 74 uint32_t cr; member 623 stm32_rng->rng_config = stm32_rng->ddata->cr; in stm32_rng_parse_fdt() 692 .cr = 0x00F00D00, 714 .cr = 0x00F00D00,
|