Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 51) sorted by relevance

123

/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32h5xx/hal/Src/
Dstm32h5xx_hal_gpio.c180 uint32_t tmp; in HAL_GPIO_Init() local
208 tmp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
209 tmp &= ~(0x0FUL << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
210 tmp |= ((pGPIO_Init->Alternate & 0x0FUL) << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
211 GPIOx->AFR[position >> 3U] = tmp; in HAL_GPIO_Init()
215 tmp = GPIOx->MODER; in HAL_GPIO_Init()
216 tmp &= ~(GPIO_MODER_MODE0 << (position * 2U)); in HAL_GPIO_Init()
217 tmp |= ((pGPIO_Init->Mode & GPIO_MODE) << (position * 2U)); in HAL_GPIO_Init()
218 GPIOx->MODER = tmp; in HAL_GPIO_Init()
228 tmp = GPIOx->OSPEEDR; in HAL_GPIO_Init()
[all …]
Dstm32h5xx_hal_rtc_ex.c2254 uint32_t tmp = READ_REG(TAMP->SMISR); in HAL_RTCEx_TamperIRQHandler() local
2257 if ((tmp & RTC_TAMPER_1) == RTC_TAMPER_1) in HAL_RTCEx_TamperIRQHandler()
2269 if ((tmp & RTC_TAMPER_2) == RTC_TAMPER_2) in HAL_RTCEx_TamperIRQHandler()
2283 if ((tmp & RTC_TAMPER_3) == RTC_TAMPER_3) in HAL_RTCEx_TamperIRQHandler()
2295 if ((tmp & RTC_TAMPER_4) == RTC_TAMPER_4) in HAL_RTCEx_TamperIRQHandler()
2307 if ((tmp & RTC_TAMPER_5) == RTC_TAMPER_5) in HAL_RTCEx_TamperIRQHandler()
2319 if ((tmp & RTC_TAMPER_6) == RTC_TAMPER_6) in HAL_RTCEx_TamperIRQHandler()
2334 if ((tmp & RTC_TAMPER_7) == RTC_TAMPER_7) in HAL_RTCEx_TamperIRQHandler()
2346 if ((tmp & RTC_TAMPER_8) == RTC_TAMPER_8) in HAL_RTCEx_TamperIRQHandler()
2360 if ((tmp & RTC_INT_TAMPER_1) == RTC_INT_TAMPER_1) in HAL_RTCEx_TamperIRQHandler()
[all …]
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32u5xx/hal/Src/
Dstm32u5xx_hal_gpio.c200 uint32_t tmp; in HAL_GPIO_Init() local
230 tmp = GPIOx->MODER; in HAL_GPIO_Init()
231 tmp &= ~(LPGPIO_MODER_MOD0 << position); in HAL_GPIO_Init()
232 tmp |= ((pGPIO_Init->Mode & GPIO_MODE_OUTPUT_PP) << position); in HAL_GPIO_Init()
233 GPIOx->MODER = tmp; in HAL_GPIO_Init()
240 tmp = p_gpio->AFR[(pin_position) >> 3U]; in HAL_GPIO_Init()
241 tmp &= ~(0x0FUL << (((pin_position) & 0x07U) * 4U)); in HAL_GPIO_Init()
242 tmp |= ((GPIO_AF11_LPGPIO & 0x0FUL) << (((pin_position) & 0x07U) * 4U)); in HAL_GPIO_Init()
243 p_gpio->AFR[(pin_position) >> 3U] = tmp; in HAL_GPIO_Init()
246 tmp = p_gpio->MODER; in HAL_GPIO_Init()
[all …]
Dstm32u5xx_hal_rtc_ex.c2182 uint32_t tmp; in HAL_RTCEx_TamperIRQHandler() local
2185 tmp = READ_REG(TAMP->SMISR); in HAL_RTCEx_TamperIRQHandler()
2188 WRITE_REG(TAMP->SCR, tmp); in HAL_RTCEx_TamperIRQHandler()
2191 if ((tmp & RTC_TAMPER_1) == RTC_TAMPER_1) in HAL_RTCEx_TamperIRQHandler()
2203 if ((tmp & RTC_TAMPER_2) == RTC_TAMPER_2) in HAL_RTCEx_TamperIRQHandler()
2215 if ((tmp & RTC_TAMPER_3) == RTC_TAMPER_3) in HAL_RTCEx_TamperIRQHandler()
2227 if ((tmp & RTC_TAMPER_4) == RTC_TAMPER_4) in HAL_RTCEx_TamperIRQHandler()
2239 if ((tmp & RTC_TAMPER_5) == RTC_TAMPER_5) in HAL_RTCEx_TamperIRQHandler()
2251 if ((tmp & RTC_TAMPER_6) == RTC_TAMPER_6) in HAL_RTCEx_TamperIRQHandler()
2263 if ((tmp & RTC_TAMPER_7) == RTC_TAMPER_7) in HAL_RTCEx_TamperIRQHandler()
[all …]
Dstm32u5xx_hal.c724 uint32_t tmp; in HAL_SYSCFG_ConfigAttributes() local
730 tmp = SYSCFG_S->SECCFGR; in HAL_SYSCFG_ConfigAttributes()
735 tmp |= Item; in HAL_SYSCFG_ConfigAttributes()
739 tmp &= ~Item; in HAL_SYSCFG_ConfigAttributes()
743 SYSCFG_S->SECCFGR = tmp; in HAL_SYSCFG_ConfigAttributes()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/common/
Dcc_common_conv_endian.c114 uint32_t i, tmp; in CC_CommonInPlaceConvertBytesWordsAndArrayEndianness() local
131 tmp = CC_COMMON_REVERSE32(buf_ptr[i]); in CC_CommonInPlaceConvertBytesWordsAndArrayEndianness()
134 tmp = buf_ptr[i]; in CC_CommonInPlaceConvertBytesWordsAndArrayEndianness()
137 buf_ptr[sizeWords-i-1] = tmp; in CC_CommonInPlaceConvertBytesWordsAndArrayEndianness()
370 uint32_t tmp; in CC_CommonConvertLswMswWordsToLsbMsbBytes()
371 tmp = in32Le[i / sizeof(uint32_t)]; in CC_CommonConvertLswMswWordsToLsbMsbBytes()
372 CC_COMMON_REVERSE32(tmp); in CC_CommonConvertLswMswWordsToLsbMsbBytes()
373 out8Le[i*sizeof(uint32_t) + 0] = tmp & 0xFF; in CC_CommonConvertLswMswWordsToLsbMsbBytes()
374 out8Le[i*sizeof(uint32_t) + 1] = (tmp >> 8) & 0xFF; in CC_CommonConvertLswMswWordsToLsbMsbBytes()
375 out8Le[i*sizeof(uint32_t) + 2] = (tmp >> 16) & 0xFF; in CC_CommonConvertLswMswWordsToLsbMsbBytes()
[all …]
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rsa/
Dcc_rsa_pkcs_ver15_util.c97 uint8_t tmp[TMP_SIZE]; in RsaGenRndNonZeroVect() local
126 … err = RndGenerateVectFunc(rndState_ptr, (unsigned char *)tmp, sizeof(tmp)); in RsaGenRndNonZeroVect()
128 if (CC_PalMemCmp(tmp, zero, TMP_SIZE) == 0) { in RsaGenRndNonZeroVect()
138 if (tmp[j] == 0) { in RsaGenRndNonZeroVect()
140 if (j == sizeof(tmp)) { in RsaGenRndNonZeroVect()
145 pVect[i] = tmp[j]; in RsaGenRndNonZeroVect()
151 if (j == sizeof(tmp)) { in RsaGenRndNonZeroVect()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/tests/TestAL/pal/linux/
Dtest_pal_file.c22 unsigned int tmp; in Test_PalFetchDataFromFile() local
33 while (!feof(data_file) && fscanf(data_file, "0x%02X,", &tmp)) in Test_PalFetchDataFromFile()
45 while (!feof(data_file) && fscanf(data_file, "0x%02X,", &tmp)) { in Test_PalFetchDataFromFile()
46 *cur_buf_pos = tmp; in Test_PalFetchDataFromFile()
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32u5xx/Device/Source/Templates/
Dsystem_stm32u5xx.c252 uint32_t pllr, pllsource, pllm , tmp, pllfracen, msirange; in SystemCoreClockUpdate() local
324 tmp = AHBPrescTable[((RCC->CFGR2 & RCC_CFGR2_HPRE) >> RCC_CFGR2_HPRE_Pos)]; in SystemCoreClockUpdate()
326 SystemCoreClock >>= tmp; in SystemCoreClockUpdate()
336 __IO uint32_t tmp; in SetSysClock() local
340 tmp = RCC->AHB3ENR; in SetSysClock()
341 UNUSED(tmp); in SetSysClock()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_productionlib/cmpu/
Dcmpu_derivation.c141 uint32_t tmp, curr, tmp1; in Derivation_incrementVector() local
145 tmp = CC_PROD_SET_WORD_AS_BE(tmp1); in Derivation_incrementVector()
146 curr = tmp; in Derivation_incrementVector()
147 tmp = ((tmp+1) & 0xFFFFFFFF); in Derivation_incrementVector()
150 tmp1 = CC_PROD_SET_WORD_AS_BE(tmp); in Derivation_incrementVector()
151 CC_PalMemCopy(&iv_ptr[i*sizeof(uint32_t)], (uint8_t *)&tmp1, sizeof(tmp)); in Derivation_incrementVector()
152 if (tmp > curr) { in Derivation_incrementVector()
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32l5xx/Device/Source/Templates/
Dsystem_stm32l5xx.c260 uint32_t tmp, msirange, pllvco, pllsource, pllm, pllr; in SystemCoreClockUpdate() local
321 tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> 4U)]; in SystemCoreClockUpdate()
323 SystemCoreClock >>= tmp; in SystemCoreClockUpdate()
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32l5xx/secure/
Dsystem_stm32l5xx.c246 uint32_t tmp, msirange, pllvco, pllsource, pllm, pllr; in SystemCoreClockUpdate() local
307 tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> 4U)]; in SystemCoreClockUpdate()
309 SystemCoreClock >>= tmp; in SystemCoreClockUpdate()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/tests/common/
Dtst_perf.c83 CCPalPerfData_t tmp = 0; in TST_PerfStatsCycleStart() local
84 CC_PAL_PERF_OPEN_NEW_ENTRY(tmp, 0); // type has no meaning in TST_PerfStatsCycleStart()
85 return tmp; in TST_PerfStatsCycleStart()
Dtst_common.c85 unsigned char tmp; in TST_MemCpyReversed() local
87 tmp = dst[sizeInBytes-i-1]; in TST_MemCpyReversed()
89 src[i] = tmp; in TST_MemCpyReversed()
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32u5xx/secure/
Dsystem_stm32u5xx.c246 uint32_t pllr, pllsource, pllm , tmp, pllfracen, msirange; in SystemCoreClockUpdate() local
318 tmp = AHBPrescTable[((RCC->CFGR2 & RCC_CFGR2_HPRE) >> RCC_CFGR2_HPRE_Pos)]; in SystemCoreClockUpdate()
320 SystemCoreClock >>= tmp; in SystemCoreClockUpdate()
/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/cc312-rom/
Dcc3xx_ec_weierstrass.c91 cc3xx_pka_reg_id_t tmp = cc3xx_lowlevel_pka_allocate_reg(); in double_point() local
99 cc3xx_lowlevel_pka_mod_mul(p->x, p->x, tmp); in double_point()
100 cc3xx_lowlevel_pka_mod_mul_si(tmp, 3, tmp); in double_point()
104 cc3xx_lowlevel_pka_mod_add(tmp_m, tmp, tmp_m); in double_point()
108 cc3xx_lowlevel_pka_mod_mul_si(tmp_s, 2, tmp); in double_point()
109 cc3xx_lowlevel_pka_mod_sub(res->x, tmp, res->x); in double_point()
125 cc3xx_lowlevel_pka_mod_sub(tmp_s, res->x, tmp); in double_point()
126 cc3xx_lowlevel_pka_mod_mul(tmp_m, tmp, tmp); in double_point()
127 cc3xx_lowlevel_pka_mod_sub(tmp, res->y, res->y); in double_point()
129 cc3xx_lowlevel_pka_free_reg(tmp); in double_point()
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32h5xx/secure/
Dsystem_stm32h5xx.c202 uint32_t pllp, pllsource, pllm, pllfracen, hsivalue, tmp; in SystemCoreClockUpdate() local
266 tmp = AHBPrescTable[((RCC->CFGR2 & RCC_CFGR2_HPRE) >> RCC_CFGR2_HPRE_Pos)]; in SystemCoreClockUpdate()
268 SystemCoreClock >>= tmp; in SystemCoreClockUpdate()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_mont/
Dpka_ec_mont.c51 uint32_t tmp, currBit; in EcMontPkaScalarMultWithLadderExe() local
72 tmp = scalar[(i+CC_BITS_IN_32BIT_WORD-1) / CC_BITS_IN_32BIT_WORD - 1]; in EcMontPkaScalarMultWithLadderExe()
78 tmp = scalar[i / CC_BITS_IN_32BIT_WORD]; in EcMontPkaScalarMultWithLadderExe()
82 currBit = (tmp >> (i & (CC_BITS_IN_32BIT_WORD - 1))) & 1; in EcMontPkaScalarMultWithLadderExe()
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32u5xx/Device/Source/
Dstartup_stm32u5xx_s.c388 __IO uint32_t tmp; in Reset_Handler() local
396 tmp = SCB->AIRCR; in Reset_Handler()
397 SCB->AIRCR = (~tmp & SCB_AIRCR_VECTKEYSTAT_Msk) | in Reset_Handler()
398 SCB_AIRCR_PRIS_Msk | (tmp & ~SCB_AIRCR_VECTKEY_Msk); in Reset_Handler()
404 tmp = RCC->APB3ENR; in Reset_Handler()
405 (void)tmp; in Reset_Handler()
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32l5xx/hal/Src/
Dstm32l5xx_hal.c807 uint32_t tmp; in HAL_SYSCFG_ConfigAttributes() local
813 tmp = SYSCFG_S->SECCFGR; in HAL_SYSCFG_ConfigAttributes()
818 tmp |= Item; in HAL_SYSCFG_ConfigAttributes()
822 tmp &= ~Item; in HAL_SYSCFG_ConfigAttributes()
826 SYSCFG_S->SECCFGR = tmp; in HAL_SYSCFG_ConfigAttributes()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/
DMakefile.defs284 …ILE) ; ( $(1) ) >>$(LOGFILE) 2>logerr.tmp ; err=$$? ; cat logerr.tmp ; cat logerr.tmp >> $(LOGFILE…
286 …LE) ; ( $(1) ) >>$(LOGFILE) 2>logerr.tmp ; err=$$$$? ; cat logerr.tmp ; cat logerr.tmp >> $(LOGFIL…
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/common/
Dpki_dbg.c31 uint32_t tmp[PKA_MAX_REGISTER_SIZE_IN_32BIT_WORDS] = {0}; in PkiDbgPrintReg() local
44 if ((sizeBytes > sizeof(tmp)) || in PkiDbgPrintReg()
48 PkaCopyDataFromPkaReg(tmp, sizeWords, reg); in PkiDbgPrintReg()
52 PKA_PRINTF("%02X", ((uint8_t*)tmp)[i] & 0xFF); in PkiDbgPrintReg()
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/stm32h5xx/Device/Source/
Dstartup_stm32h5xx_s.c516 __IO uint32_t tmp; in Reset_Handler() local
526 tmp = SCB->AIRCR; in Reset_Handler()
529 …SCB->AIRCR = (~tmp & SCB_AIRCR_VECTKEYSTAT_Msk) | SCB_AIRCR_PRIS_Msk | (tmp & ~SCB_AIRCR_VECTKEY_M… in Reset_Handler()
535 tmp = RCC->APB3ENR; in Reset_Handler()
536 (void)tmp; in Reset_Handler()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/utils/
Dmbedtls_cc_util_key_derivation.c41 uint8_t tmp[CC_UTIL_AES_CMAC_RESULT_SIZE_IN_BYTES]; in mbedtls_util_key_derivation() local
151 srcToCopy = ((CC_UTIL_PRF_CMAC == prfType) ? tmp : (uint8_t*)&hmacResultBuff); in mbedtls_util_key_derivation()
155 … rc = UtilCmacDeriveKey(utilKeyType, (CCAesUserKeyData_t*)pUserKey, dataIn, dataSize, tmp); in mbedtls_util_key_derivation()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_psa_mac.c335 uint8_t tmp[MD_MAX_SIZE]; in hmac_finish() local
363 status = cc3xx_hash_finish(hmac, tmp, sizeof(tmp), &hash_size); in hmac_finish()
378 status = cc3xx_hash_update(hmac, tmp, hash_size); in hmac_finish()
383 status = cc3xx_hash_finish(hmac, tmp, sizeof(tmp), &hash_size); in hmac_finish()
388 CC_PalMemCopy(mac, tmp, mac_size); in hmac_finish()
391 CC_PalMemSetZero(tmp, hash_size); in hmac_finish()

123