Lines Matching refs:result
257 TEE_Result result = 0; in stm32_bsec_shadow_register() local
263 result = stm32_bsec_read_sr_lock(otp_id, &locked); in stm32_bsec_shadow_register()
264 if (result) in stm32_bsec_shadow_register()
265 return result; in stm32_bsec_shadow_register()
275 result = power_up_safmem(); in stm32_bsec_shadow_register()
276 if (result) in stm32_bsec_shadow_register()
287 result = TEE_ERROR_BUSY; in stm32_bsec_shadow_register()
289 result = check_no_error(otp_id, true /* check-disturbed */); in stm32_bsec_shadow_register()
296 return result; in stm32_bsec_shadow_register()
315 TEE_Result result = 0; in stm32_bsec_shadow_read_otp() local
317 result = stm32_bsec_shadow_register(otp_id); in stm32_bsec_shadow_read_otp()
318 if (result) { in stm32_bsec_shadow_read_otp()
319 EMSG("BSEC %"PRIu32" Shadowing Error %#"PRIx32, otp_id, result); in stm32_bsec_shadow_read_otp()
320 return result; in stm32_bsec_shadow_read_otp()
323 result = stm32_bsec_read_otp(otp_value, otp_id); in stm32_bsec_shadow_read_otp()
324 if (result) in stm32_bsec_shadow_read_otp()
325 EMSG("BSEC %"PRIu32" Read Error %#"PRIx32, otp_id, result); in stm32_bsec_shadow_read_otp()
327 return result; in stm32_bsec_shadow_read_otp()
332 TEE_Result result = 0; in stm32_bsec_write_otp() local
338 result = stm32_bsec_read_sw_lock(otp_id, &locked); in stm32_bsec_write_otp()
339 if (result) in stm32_bsec_write_otp()
340 return result; in stm32_bsec_write_otp()
360 TEE_Result result = 0; in stm32_bsec_program_otp() local
366 result = stm32_bsec_read_sp_lock(otp_id, &locked); in stm32_bsec_program_otp()
367 if (result) in stm32_bsec_program_otp()
368 return result; in stm32_bsec_program_otp()
381 result = power_up_safmem(); in stm32_bsec_program_otp()
382 if (result) in stm32_bsec_program_otp()
394 result = TEE_ERROR_BUSY; in stm32_bsec_program_otp()
396 result = TEE_ERROR_BAD_PARAMETERS; in stm32_bsec_program_otp()
398 result = check_no_error(otp_id, true /* check-disturbed */); in stm32_bsec_program_otp()
405 return result; in stm32_bsec_program_otp()
410 TEE_Result result = 0; in stm32_bsec_permanent_lock_otp() local
451 result = power_up_safmem(); in stm32_bsec_permanent_lock_otp()
452 if (result) in stm32_bsec_permanent_lock_otp()
464 result = TEE_ERROR_BUSY; in stm32_bsec_permanent_lock_otp()
466 result = TEE_ERROR_BAD_PARAMETERS; in stm32_bsec_permanent_lock_otp()
468 result = check_no_error(otp_id, false /* not-disturbed */); in stm32_bsec_permanent_lock_otp()
479 return result; in stm32_bsec_permanent_lock_otp()
485 TEE_Result result = TEE_ERROR_GENERIC; in stm32_bsec_write_debug_conf() local
498 result = TEE_SUCCESS; in stm32_bsec_write_debug_conf()
502 return result; in stm32_bsec_write_debug_conf()