Lines Matching refs:region

180 status_t PRINCE_GenNewIV(prince_region_t region, uint8_t *iv_code, bool store, flash_config_t *flas…  in PRINCE_GenNewIV()  argument
194 …sicKey(PUF, (puf_key_index_register_t)(uint32_t)((uint32_t)kPUF_KeyIndex_02 + (uint32_t)region), 8, in PRINCE_GenNewIV()
205 (((uint32_t)region * sizeof(cfpa_cfg_iv_code_t))) + 4U], in PRINCE_GenNewIV()
251 status_t PRINCE_LoadIV(prince_region_t region, uint8_t *iv_code) in PRINCE_LoadIV() argument
264 if (((uint32_t)kPUF_KeyIndex_02 + (uint32_t)region) == (uint32_t)keyIndex) in PRINCE_LoadIV()
270 (void)PRINCE_SetRegionIV(PRINCE, (prince_region_t)region, prince_iv); in PRINCE_LoadIV()
305 …prince_region_t region, uint32_t start_address, uint32_t length, flash_config_t *flash_context, bo… in PRINCE_SetEncryptForAddressRange() argument
345 status = PRINCE_GenNewIV((prince_region_t)region, &prince_iv_code[0], true, flash_context); in PRINCE_SetEncryptForAddressRange()
352 status = PRINCE_LoadIV((prince_region_t)region, &prince_iv_code[0]); in PRINCE_SetEncryptForAddressRange()
395 (void)PRINCE_GetRegionSREnable(PRINCE, (prince_region_t)region, &srEnableRegisterActual); in PRINCE_SetEncryptForAddressRange()
402 … status = PRINCE_SetRegionBaseAddress(PRINCE, (prince_region_t)region, prince_region_base_address); in PRINCE_SetEncryptForAddressRange()
409 status = PRINCE_SetRegionSREnable(PRINCE, (prince_region_t)region, srEnableRegister); in PRINCE_SetEncryptForAddressRange()
420 ((uint32_t)region * sizeof(uint32_t))], in PRINCE_SetEncryptForAddressRange()
427 ~(((uint32_t)FLASH_CMPA_PRINCE_BASE_ADDR_ADDR0_PRG_MASK) << ((uint32_t)region * 4U)); in PRINCE_SetEncryptForAddressRange()
430 << ((uint32_t)region * 4U)); in PRINCE_SetEncryptForAddressRange()
456 status_t PRINCE_GetRegionSREnable(PRINCE_Type *base, prince_region_t region, uint32_t *sr_enable) in PRINCE_GetRegionSREnable() argument
460 switch (region) in PRINCE_GetRegionSREnable()
494 status_t PRINCE_GetRegionBaseAddress(PRINCE_Type *base, prince_region_t region, uint32_t *region_ba… in PRINCE_GetRegionBaseAddress() argument
498 switch (region) in PRINCE_GetRegionBaseAddress()
532 status_t PRINCE_SetRegionIV(PRINCE_Type *base, prince_region_t region, const uint8_t iv[8]) in PRINCE_SetRegionIV() argument
538 switch (region) in PRINCE_SetRegionIV()
582 status_t PRINCE_SetRegionBaseAddress(PRINCE_Type *base, prince_region_t region, uint32_t region_bas… in PRINCE_SetRegionBaseAddress() argument
601 switch (region) in PRINCE_SetRegionBaseAddress()
635 status_t PRINCE_SetRegionSREnable(PRINCE_Type *base, prince_region_t region, uint32_t sr_enable) in PRINCE_SetRegionSREnable() argument
639 switch (region) in PRINCE_SetRegionSREnable()
900 for (prince_region_t region = kPRINCE_Region0; region <= kPRINCE_Region2; region++) in PRINCE_Reconfigure() local
903 status = PRINCE_SetRegionBaseAddress(PRINCE, (prince_region_t)region, 0x0u); in PRINCE_Reconfigure()
909 status = PRINCE_SetRegionSREnable(PRINCE, region, srEnable[region]); in PRINCE_Reconfigure()
918 IvReg[2] = uuid[2] ^ region; in PRINCE_Reconfigure()
919 IvReg[3] = ivEraseCounter[region]; in PRINCE_Reconfigure()
929 status = PRINCE_SetRegionIV(PRINCE, (prince_region_t)region, (uint8_t *)IvReg); in PRINCE_Reconfigure()
936 if ((lock[region] == 0x1u) || (lock[region] == 0x2u) || (lock[region] == 0x3u)) in PRINCE_Reconfigure()
938 PRINCE_SetLock(PRINCE, (kPRINCE_Region0Lock << region)); in PRINCE_Reconfigure()