Home
last modified time | relevance | path

Searched refs:otp_idx (Results 1 – 4 of 4) sorted by relevance

/rk3399_ARM-atf/plat/st/common/
H A Dstm32mp_common.c142 int stm32_get_otp_index(const char *otp_name, uint32_t *otp_idx, in stm32_get_otp_index() argument
146 assert(otp_idx != NULL); in stm32_get_otp_index()
148 return dt_find_otp_name(otp_name, otp_idx, otp_len); in stm32_get_otp_index()
153 uint32_t otp_idx; in stm32_get_otp_value() local
158 if (stm32_get_otp_index(otp_name, &otp_idx, NULL) != 0) { in stm32_get_otp_value()
162 if (stm32_get_otp_value_from_idx(otp_idx, otp_val) != 0) { in stm32_get_otp_value()
170 int stm32_get_otp_value_from_idx(const uint32_t otp_idx, uint32_t *otp_val) in stm32_get_otp_value_from_idx() argument
177 ret = stm32_otp_shadow_read(otp_val, otp_idx); in stm32_get_otp_value_from_idx()
179 ret = stm32_otp_read(otp_val, otp_idx); in stm32_get_otp_value_from_idx()
184 ERROR("BSEC: idx=%u Read Error\n", otp_idx); in stm32_get_otp_value_from_idx()
H A Dstm32mp_trusted_boot.c33 uint32_t otp_idx; in copy_hash_from_otp() local
40 if (stm32_get_otp_index(otp_name, &otp_idx, &otp_len) != 0) { in copy_hash_from_otp()
54 if (stm32_get_otp_value_from_idx(otp_idx + i, &otp_val) != 0) { in copy_hash_from_otp()
H A Dstm32mp_crypto_lib.c514 uint32_t otp_idx; in plat_get_enc_key_info() local
523 if (stm32_get_otp_index(ENCKEY_OTP, &otp_idx, &otp_len) != 0) { in plat_get_enc_key_info()
541 if (stm32_get_otp_value_from_idx(otp_idx + i, &otp_val) != 0) { in plat_get_enc_key_info()
/rk3399_ARM-atf/plat/st/common/include/
H A Dstm32mp_common.h56 int stm32_get_otp_index(const char *otp_name, uint32_t *otp_idx,
59 int stm32_get_otp_value_from_idx(const uint32_t otp_idx, uint32_t *otp_val);