Lines Matching refs:ret

24 	TEE_Result ret = TEE_ERROR_GENERIC;  in stm32mp15_read_uid()  local
30 ret = stm32_bsec_find_otp_in_nvmem_layout("uid_otp", &otp_idx, &offset, in stm32mp15_read_uid()
32 if (ret) in stm32mp15_read_uid()
33 return ret; in stm32mp15_read_uid()
93 TEE_Result ret = TEE_ERROR_GENERIC; in aes_gcm_encrypt_uid() local
102 ret = stm32mp15_read_uid(uid); in aes_gcm_encrypt_uid()
103 if (ret) in aes_gcm_encrypt_uid()
106 ret = crypto_authenc_alloc_ctx(&ctx, TEE_ALG_AES_GCM); in aes_gcm_encrypt_uid()
107 if (ret) in aes_gcm_encrypt_uid()
110 ret = crypto_authenc_init(ctx, TEE_MODE_ENCRYPT, key, key_len, nonce, in aes_gcm_encrypt_uid()
112 if (ret) in aes_gcm_encrypt_uid()
115 ret = crypto_authenc_enc_final(ctx, (uint8_t *)uid, sizeof(uid), in aes_gcm_encrypt_uid()
117 if (ret) in aes_gcm_encrypt_uid()
124 if (ret) in aes_gcm_encrypt_uid()
127 return ret; in aes_gcm_encrypt_uid()
132 TEE_Result ret = TEE_SUCCESS; in pos_from_dt() local
138 ret = stm32_bsec_find_otp_in_nvmem_layout("huk-otp", &otp_start, in pos_from_dt()
140 if (ret) in pos_from_dt()
141 return ret; in pos_from_dt()
177 TEE_Result ret = TEE_SUCCESS; in tee_otp_get_hw_unique_key() local
182 ret = get_otp_pos(otp_id); in tee_otp_get_hw_unique_key()
183 if (ret) in tee_otp_get_hw_unique_key()
184 return ret; in tee_otp_get_hw_unique_key()
187 ret = stm32mp15_read_otp(otp_id[i], key++, &lock); in tee_otp_get_hw_unique_key()
188 if (ret) in tee_otp_get_hw_unique_key()
195 ret = TEE_SUCCESS; in tee_otp_get_hw_unique_key()
200 ret = aes_gcm_encrypt_uid((uint8_t *)otp_key, len, hwkey->data, in tee_otp_get_hw_unique_key()
203 ret = TEE_ERROR_GENERIC; in tee_otp_get_hw_unique_key()
212 if (!ret && !stm32mp15_huk_init) { in tee_otp_get_hw_unique_key()
218 return ret; in tee_otp_get_hw_unique_key()