Home
last modified time | relevance | path

Searched refs:lcs (Results 1 – 25 of 47) sorted by relevance

12

/trusted-firmware-m-latest/platform/ext/accelerator/cc312/cc312-rom/
Dcc3xx_lcs.c14 cc3xx_err_t cc3xx_lowlevel_lcs_get(cc3xx_lcs_t* lcs) in cc3xx_lowlevel_lcs_get() argument
29 *lcs = cc3xx_lcs_cm; in cc3xx_lowlevel_lcs_get()
32 *lcs = cc3xx_lcs_dm; in cc3xx_lowlevel_lcs_get()
35 *lcs = cc3xx_lcs_se; in cc3xx_lowlevel_lcs_get()
38 *lcs = cc3xx_lcs_rma; in cc3xx_lowlevel_lcs_get()
47 const char* cc3xx_lowlevel_lcs_get_name(cc3xx_lcs_t lcs) in cc3xx_lowlevel_lcs_get_name() argument
49 switch (lcs) { in cc3xx_lowlevel_lcs_get_name()
Dcc3xx_lcs.h25 cc3xx_err_t cc3xx_lowlevel_lcs_get(cc3xx_lcs_t* lcs);
34 const char* cc3xx_lowlevel_lcs_get_name(cc3xx_lcs_t lcs);
/trusted-firmware-m-latest/platform/ext/target/armchina/mps3/common/provisioning/
Dbl2_provisioning.c42 enum plat_otp_lcs_t lcs; in tfm_plat_provisioning_is_required() local
44 err = tfm_plat_otp_read(PLAT_OTP_ID_LCS, sizeof(lcs), (uint8_t*)&lcs); in tfm_plat_provisioning_is_required()
49 return lcs == PLAT_OTP_LCS_ASSEMBLY_AND_TEST in tfm_plat_provisioning_is_required()
50 || lcs == PLAT_OTP_LCS_PSA_ROT_PROVISIONING; in tfm_plat_provisioning_is_required()
56 enum plat_otp_lcs_t lcs; in tfm_plat_provisioning_perform() local
58 err = tfm_plat_otp_read(PLAT_OTP_ID_LCS, sizeof(lcs), (uint8_t*)&lcs); in tfm_plat_provisioning_perform()
72 if (lcs == PLAT_OTP_LCS_ASSEMBLY_AND_TEST) { in tfm_plat_provisioning_perform()
/trusted-firmware-m-latest/platform/ext/common/provisioning_bundle/
Dbl2_provisioning.c42 enum plat_otp_lcs_t lcs; in tfm_plat_provisioning_is_required() local
44 err = tfm_plat_otp_read(PLAT_OTP_ID_LCS, sizeof(lcs), (uint8_t*)&lcs); in tfm_plat_provisioning_is_required()
49 return lcs == PLAT_OTP_LCS_ASSEMBLY_AND_TEST in tfm_plat_provisioning_is_required()
50 || lcs == PLAT_OTP_LCS_PSA_ROT_PROVISIONING; in tfm_plat_provisioning_is_required()
56 enum plat_otp_lcs_t lcs; in tfm_plat_provisioning_perform() local
58 err = tfm_plat_otp_read(PLAT_OTP_ID_LCS, sizeof(lcs), (uint8_t*)&lcs); in tfm_plat_provisioning_perform()
72 if (lcs == PLAT_OTP_LCS_ASSEMBLY_AND_TEST) { in tfm_plat_provisioning_perform()
/trusted-firmware-m-latest/platform/ext/target/arm/corstone1000/bl1/
Dprovisioning.c44 enum plat_otp_lcs_t lcs; in tfm_plat_provisioning_is_required() local
46 err = tfm_plat_otp_read(PLAT_OTP_ID_LCS, sizeof(lcs), (uint8_t*)&lcs); in tfm_plat_provisioning_is_required()
51 return lcs == PLAT_OTP_LCS_ASSEMBLY_AND_TEST in tfm_plat_provisioning_is_required()
52 || lcs == PLAT_OTP_LCS_PSA_ROT_PROVISIONING; in tfm_plat_provisioning_is_required()
113 enum plat_otp_lcs_t lcs; in tfm_plat_provisioning_perform() local
115 err = tfm_plat_otp_read(PLAT_OTP_ID_LCS, sizeof(lcs), (uint8_t*)&lcs); in tfm_plat_provisioning_perform()
129 if (lcs == PLAT_OTP_LCS_ASSEMBLY_AND_TEST) { in tfm_plat_provisioning_perform()
/trusted-firmware-m-latest/bl1/bl1_1/lib/
Dprovisioning.c53 enum plat_otp_lcs_t lcs; in tfm_plat_provisioning_is_required() local
55 err = tfm_plat_otp_read(PLAT_OTP_ID_LCS, sizeof(lcs), (uint8_t *)&lcs); in tfm_plat_provisioning_is_required()
60 return lcs == PLAT_OTP_LCS_ASSEMBLY_AND_TEST in tfm_plat_provisioning_is_required()
61 || lcs == PLAT_OTP_LCS_PSA_ROT_PROVISIONING; in tfm_plat_provisioning_is_required()
116 enum plat_otp_lcs_t lcs; in tfm_plat_provisioning_perform() local
118 err = tfm_plat_otp_read(PLAT_OTP_ID_LCS, sizeof(lcs), (uint8_t *)&lcs); in tfm_plat_provisioning_perform()
132 if (lcs == PLAT_OTP_LCS_ASSEMBLY_AND_TEST) { in tfm_plat_provisioning_perform()
/trusted-firmware-m-latest/platform/ext/target/arm/mps4/corstone315/provisioning/
Dbl1_provisioning.c33 enum lcm_lcs_t lcs; in tfm_plat_provisioning_is_required() local
36 err = lcm_get_lcs(&LCM_DEV_S, &lcs); in tfm_plat_provisioning_is_required()
41 provisioning_required = (lcs == LCM_LCS_CM || lcs == LCM_LCS_DM); in tfm_plat_provisioning_is_required()
144 enum lcm_lcs_t lcs; in tfm_plat_provisioning_perform() local
162 lcm_err = lcm_get_lcs(&LCM_DEV_S, &lcs); in tfm_plat_provisioning_perform()
167 if (lcs == LCM_LCS_CM) { in tfm_plat_provisioning_perform()
179 lcm_err = lcm_get_lcs(&LCM_DEV_S, &lcs); in tfm_plat_provisioning_perform()
183 if (lcs == LCM_LCS_DM) { in tfm_plat_provisioning_perform()
/trusted-firmware-m-latest/platform/ext/common/
Dprovisioning.c147 enum plat_otp_lcs_t lcs; in tfm_plat_provisioning_is_required() local
149 err = tfm_plat_otp_read(PLAT_OTP_ID_LCS, sizeof(lcs), (uint8_t*)&lcs); in tfm_plat_provisioning_is_required()
154 return lcs == PLAT_OTP_LCS_ASSEMBLY_AND_TEST in tfm_plat_provisioning_is_required()
155 || lcs == PLAT_OTP_LCS_PSA_ROT_PROVISIONING; in tfm_plat_provisioning_is_required()
264 enum plat_otp_lcs_t lcs; in tfm_plat_provisioning_perform() local
266 err = tfm_plat_otp_read(PLAT_OTP_ID_LCS, sizeof(lcs), (uint8_t*)&lcs); in tfm_plat_provisioning_perform()
280 if (lcs == PLAT_OTP_LCS_ASSEMBLY_AND_TEST) { in tfm_plat_provisioning_perform()
302 err = tfm_plat_otp_read(PLAT_OTP_ID_LCS, sizeof(lcs), (uint8_t*)&lcs); in tfm_plat_provisioning_perform()
306 if (lcs == PLAT_OTP_LCS_PSA_ROT_PROVISIONING) { in tfm_plat_provisioning_perform()
/trusted-firmware-m-latest/bl2/src/
Dprovisioning.c279 enum plat_otp_lcs_t lcs; in tfm_plat_provisioning_is_required() local
281 err = tfm_plat_otp_read(PLAT_OTP_ID_LCS, sizeof(lcs), (uint8_t*)&lcs); in tfm_plat_provisioning_is_required()
286 return lcs == PLAT_OTP_LCS_ASSEMBLY_AND_TEST in tfm_plat_provisioning_is_required()
287 || lcs == PLAT_OTP_LCS_PSA_ROT_PROVISIONING; in tfm_plat_provisioning_is_required()
338 enum plat_otp_lcs_t lcs; in tfm_plat_provisioning_perform() local
340 err = tfm_plat_otp_read(PLAT_OTP_ID_LCS, sizeof(lcs), (uint8_t*)&lcs); in tfm_plat_provisioning_perform()
355 if (lcs == PLAT_OTP_LCS_ASSEMBLY_AND_TEST) { in tfm_plat_provisioning_perform()
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/host/src/cc_mng/
Dmbedtls_cc_mng_int.c104 uint32_t lcs = 0, isHbkFull = 0; in mbedtls_mng_swVersionGet() local
116 error = mbedtls_mng_lcsGet(&lcs); in mbedtls_mng_swVersionGet()
122 if (lcs == CC_MNG_LCS_RMA){ in mbedtls_mng_swVersionGet()
136 if ((lcs != CC_MNG_LCS_CM) && (isHbkFull != CC_TRUE)) { in mbedtls_mng_swVersionGet()
147 if ((lcs != CC_MNG_LCS_CM) && (isHbkFull == CC_TRUE)) { in mbedtls_mng_swVersionGet()
158 if ((lcs != CC_MNG_LCS_CM) && (isHbkFull == CC_TRUE)) { in mbedtls_mng_swVersionGet()
211 uint32_t lcs = 0, isHbkFull = 0; in mbedtls_mng_pubKeyHashGet() local
219 error = mbedtls_mng_lcsGet(&lcs); in mbedtls_mng_pubKeyHashGet()
225 if (lcs == CC_MNG_LCS_CM) { in mbedtls_mng_pubKeyHashGet()
262 if (lcs == CC_MNG_LCS_DM) { in mbedtls_mng_pubKeyHashGet()
[all …]
/trusted-firmware-m-latest/platform/ext/target/arm/rse/common/provisioning/
Dbl1_provisioning.c59 enum lcm_lcs_t lcs; in tfm_plat_provisioning_is_required() local
62 err = lcm_get_lcs(&LCM_DEV_S, &lcs); in tfm_plat_provisioning_is_required()
67 provisioning_required = (lcs == LCM_LCS_CM || lcs == LCM_LCS_DM); in tfm_plat_provisioning_is_required()
69 if (lcs == LCM_LCS_RMA) { in tfm_plat_provisioning_is_required()
71 } else if (lcs == LCM_LCS_SE) { in tfm_plat_provisioning_is_required()
243 enum lcm_lcs_t lcs; in tfm_plat_provisioning_perform() local
262 lcm_err = lcm_get_lcs(&LCM_DEV_S, &lcs); in tfm_plat_provisioning_perform()
267 if (lcs == LCM_LCS_CM) { in tfm_plat_provisioning_perform()
296 lcm_err = lcm_get_lcs(&LCM_DEV_S, &lcs); in tfm_plat_provisioning_perform()
300 if (lcs == LCM_LCS_DM) { in tfm_plat_provisioning_perform()
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/
Drun_integration_otp.c76 RunItError_t runIt_getLcs(unsigned int *lcs) in runIt_getLcs() argument
87 *lcs = regVal; in runIt_getLcs()
92 RunItError_t runIt_checkLcs(unsigned int lcs) in runIt_checkLcs() argument
104 if(regVal != lcs) in runIt_checkLcs()
106 RUNIT_PRINT_ERROR("actual LCS %d != expected LCS %d\n", regVal, lcs); in runIt_checkLcs()
Drun_integration_otp.h25 RunItError_t runIt_getLcs(unsigned int *lcs);
34 RunItError_t runIt_checkLcs(unsigned int lcs);
/trusted-firmware-m-latest/platform/ext/target/arm/rse/common/
Dplatform_fatal_error.c18 enum lcm_lcs_t lcs = LCM_LCS_SE; in log_error_permissions_check() local
33 if (lcm_get_lcs(&LCM_DEV_S, &lcs) != LCM_ERROR_NONE) { in log_error_permissions_check()
40 if (tp_mode == LCM_TP_MODE_TCI || (lcs != LCM_LCS_SE && sp_enabled != LCM_TRUE)) { in log_error_permissions_check()
Drse_key_derivation.c49 enum plat_otp_lcs_t lcs; in rse_get_boot_state() local
57 rc = tfm_plat_otp_read(PLAT_OTP_ID_LCS, sizeof(lcs), (uint8_t *)&lcs); in rse_get_boot_state()
79 err = cc3xx_lowlevel_hash_update((uint8_t *)&lcs, sizeof(lcs)); in rse_get_boot_state()
Dotp_lcm.c575 static enum tfm_plat_err_t check_keys_for_tampering(enum lcm_lcs_t lcs) in check_keys_for_tampering() argument
604 if (lcs == LCM_LCS_DM || lcs == LCM_LCS_SE) { in check_keys_for_tampering()
633 if (lcs == LCM_LCS_SE) { in check_keys_for_tampering()
665 static enum lcm_lcs_t map_otp_lcs_to_lcm_lcs(enum plat_otp_lcs_t lcs) in map_otp_lcs_to_lcm_lcs() argument
667 switch (lcs) { in map_otp_lcs_to_lcm_lcs()
681 static enum plat_otp_lcs_t map_lcm_lcs_to_otp_lcs(enum lcm_lcs_t lcs) in map_lcm_lcs_to_otp_lcs() argument
683 switch (lcs) { in map_lcm_lcs_to_otp_lcs()
700 enum plat_otp_lcs_t *lcs = (enum plat_otp_lcs_t*) out; in otp_read_lcs() local
710 *lcs = map_lcm_lcs_to_otp_lcs(lcm_lcs); in otp_read_lcs()
719 enum lcm_lcs_t lcs; in tfm_plat_otp_init() local
[all …]
/trusted-firmware-m-latest/platform/ext/target/arm/mps4/corstone315/bl1/
Dboot_hal_bl1_1.c141 enum lcm_lcs_t lcs; in pre_fsbl_flow() local
142 lcm_get_lcs(&LCM_DEV_S, &lcs); in pre_fsbl_flow()
143 if (lcs == LCM_LCS_INVALID) { in pre_fsbl_flow()
152 if ((lcs == LCM_LCS_CM) || (lcs == LCM_LCS_DM)) { in pre_fsbl_flow()
154 } else if (lcs == LCM_LCS_SE) { in pre_fsbl_flow()
/trusted-firmware-m-latest/platform/ext/target/arm/rse/common/device/source/
Dstartup_rse_bl1_1.c209 enum lcm_lcs_t lcs; in setup_tram_encryption() local
244 lcm_get_lcs(&lcm_dev_s, &lcs); in setup_tram_encryption()
253 if (sp_enabled == LCM_TRUE && (lcs == LCM_LCS_CM || lcs == LCM_LCS_DM)) { in setup_tram_encryption()
266 if (sp_enabled == LCM_TRUE && (lcs == LCM_LCS_CM || lcs == LCM_LCS_DM)) { in setup_tram_encryption()
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/platform/nvm/cc3x_nvm_rt/
Dnvm_otp.c76 uint32_t lcs; in NVM_ReadHASHPubKey() local
83 error = CC_BsvLcsGet(hwBaseAddress, &lcs); in NVM_ReadHASHPubKey()
88 if ( (lcs == CC_BSV_CHIP_MANUFACTURE_LCS) || in NVM_ReadHASHPubKey()
89 (lcs == CC_BSV_RMA_LCS) ){ in NVM_ReadHASHPubKey()
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/
Drun_integration_asset_prov.c174 uint32_t lcs = 0xffffffff; in runIt_assetProv() local
196 RUNIT_ASSERT(runIt_getLcs(&lcs) == RUNIT_ERROR__OK); in runIt_assetProv()
197 RUNIT_PRINT_DBG("lcs[%"PRIu32"]\n", (uint32_t)lcs); in runIt_assetProv()
212 …RUNIT_SUB_TEST_RESULT_W_PARAMS(TEST_NAME, "LCS[%"PRIu32"] ASSET[%"PRIu32"B]", (uint32_t)lcs, (uint… in runIt_assetProv()
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/cc3x_verifier/
Dbootimagesverifier_swcomp.c65 uint32_t lcs; in CCCertValidateSWComps() local
91 error = NVM_GetLCS(hwBaseAddress, &lcs); in CCCertValidateSWComps()
113 if (lcs == CC_BSV_SECURE_LCS) { in CCCertValidateSWComps()
145 if (lcs == CC_BSV_RMA_LCS) { in CCCertValidateSWComps()
/trusted-firmware-m-latest/platform/ext/target/arm/mps4/corstone315/
Dotp_lcm.c494 static enum tfm_plat_err_t check_keys_for_tampering(enum lcm_lcs_t lcs) in check_keys_for_tampering() argument
500 if (lcs == LCM_LCS_DM || lcs == LCM_LCS_SE) { in check_keys_for_tampering()
510 if (lcs == LCM_LCS_SE) { in check_keys_for_tampering()
530 static enum lcm_lcs_t map_otp_lcs_to_lcm_lcs(enum plat_otp_lcs_t lcs) in map_otp_lcs_to_lcm_lcs() argument
532 switch (lcs) { in map_otp_lcs_to_lcm_lcs()
546 static enum plat_otp_lcs_t map_lcm_lcs_to_otp_lcs(enum lcm_lcs_t lcs) in map_lcm_lcs_to_otp_lcs() argument
548 switch (lcs) { in map_lcm_lcs_to_otp_lcs()
565 enum plat_otp_lcs_t *lcs = (enum plat_otp_lcs_t*) out; in otp_read_lcs() local
575 *lcs = map_lcm_lcs_to_otp_lcs(lcm_lcs); in otp_read_lcs()
584 enum lcm_lcs_t lcs; in tfm_plat_otp_init() local
[all …]
/trusted-firmware-m-latest/platform/ext/accelerator/cc312/
Dotp_cc312.c587 static enum plat_otp_lcs_t map_cc312_lcs_to_otp_lcs(enum cc312_lifecycle_t lcs) { in map_cc312_lcs_to_otp_lcs() argument
588 switch (lcs) { in map_cc312_lcs_to_otp_lcs()
604 enum plat_otp_lcs_t *lcs = (enum plat_otp_lcs_t*) out; in otp_read_lcs() local
612 *lcs = map_cc312_lcs_to_otp_lcs(cc_lcs); in otp_read_lcs()
620 uint32_t lcs; in tfm_plat_otp_init() local
651 otp_read_lcs(sizeof(lcs), (uint8_t*)&lcs); in tfm_plat_otp_init()
652 if (lcs == PLAT_OTP_LCS_SECURED) { in tfm_plat_otp_init()
793 uint32_t lcs; in otp_write_lcs() local
799 if (in_len != sizeof(lcs)) { in otp_write_lcs()
803 err = otp_read_lcs(sizeof(lcs), (uint8_t*)&lcs); in otp_write_lcs()
[all …]
/trusted-firmware-m-latest/platform/ext/target/arm/drivers/lcm/
Dlcm_drv.c140 enum lcm_lcs_t lcs; in lcm_init() local
143 err = lcm_get_lcs(dev, &lcs); in lcm_init()
148 if (lcs == LCM_LCS_SE) { in lcm_init()
153 } else if (lcs == LCM_LCS_RMA) { in lcm_init()
175 enum lcm_lcs_t lcs; in lcm_set_tp_mode() local
181 err = lcm_get_lcs(dev, &lcs); in lcm_set_tp_mode()
186 if (lcs != LCM_LCS_CM) { in lcm_set_tp_mode()
356 enum lcm_error_t lcm_get_lcs(struct lcm_dev_t *dev, enum lcm_lcs_t *lcs) in lcm_get_lcs() argument
373 *lcs = (enum lcm_lcs_t)p_lcm->lcs_value; in lcm_get_lcs()
375 if (*lcs == LCM_LCS_INVALID) { in lcm_get_lcs()
[all …]
/trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/host/src/cc3x_productionlib/dmpu/
Ddmpu.c116 uint32_t lcs = 0; in CCProd_Dmpu() local
153 error = mbedtls_mng_lcsGet(&lcs); in CCProd_Dmpu()
160 if (lcs != CC_MNG_LCS_DM) { in CCProd_Dmpu()
161 CC_PAL_LOG_ERR("LCS is %d not valid\n", lcs); in CCProd_Dmpu()

12