Lines Matching refs:result
262 uint32_t result; in bsec_shadow_register() local
270 result = bsec_read_sr_lock(otp, &value); in bsec_shadow_register()
271 if (result != BSEC_OK) { in bsec_shadow_register()
272 ERROR("BSEC: %u Sticky-read bit read Error %u\n", otp, result); in bsec_shadow_register()
273 return result; in bsec_shadow_register()
282 result = bsec_power_safmem(true); in bsec_shadow_register()
284 if (result != BSEC_OK) { in bsec_shadow_register()
285 return result; in bsec_shadow_register()
299 result = bsec_check_error(otp, true); in bsec_shadow_register()
309 return result; in bsec_shadow_register()
342 uint32_t result; in bsec_write_otp() local
349 result = bsec_read_sw_lock(otp, &value); in bsec_write_otp()
350 if (result != BSEC_OK) { in bsec_write_otp()
351 ERROR("BSEC: %u Sticky-write bit read Error %u\n", otp, result); in bsec_write_otp()
352 return result; in bsec_write_otp()
368 return result; in bsec_write_otp()
380 uint32_t result; in bsec_program_otp() local
389 result = bsec_read_sp_lock(otp, &sp_lock); in bsec_program_otp()
390 if (result != BSEC_OK) { in bsec_program_otp()
391 ERROR("BSEC: %u Sticky-prog bit read Error %u\n", otp, result); in bsec_program_otp()
392 return result; in bsec_program_otp()
395 result = bsec_read_permanent_lock(otp, &perm_lock); in bsec_program_otp()
396 if (result != BSEC_OK) { in bsec_program_otp()
397 ERROR("BSEC: %u permanent bit read Error %u\n", otp, result); in bsec_program_otp()
398 return result; in bsec_program_otp()
411 result = bsec_power_safmem(true); in bsec_program_otp()
413 if (result != BSEC_OK) { in bsec_program_otp()
414 return result; in bsec_program_otp()
431 result = BSEC_PROG_FAIL; in bsec_program_otp()
433 result = bsec_check_error(otp, true); in bsec_program_otp()
444 return result; in bsec_program_otp()
455 uint32_t result; in bsec_permanent_lock_otp() local
469 result = bsec_power_safmem(true); in bsec_permanent_lock_otp()
471 if (result != BSEC_OK) { in bsec_permanent_lock_otp()
472 return result; in bsec_permanent_lock_otp()
500 result = BSEC_PROG_FAIL; in bsec_permanent_lock_otp()
502 result = bsec_check_error(otp, false); in bsec_permanent_lock_otp()
513 return result; in bsec_permanent_lock_otp()
787 uint32_t result; in bsec_shadow_read_otp() local
789 result = bsec_shadow_register(otp); in bsec_shadow_read_otp()
790 if (result != BSEC_OK) { in bsec_shadow_read_otp()
791 ERROR("BSEC: %u Shadowing Error %u\n", otp, result); in bsec_shadow_read_otp()
792 return result; in bsec_shadow_read_otp()
795 result = bsec_read_otp(val, otp); in bsec_shadow_read_otp()
796 if (result != BSEC_OK) { in bsec_shadow_read_otp()
797 ERROR("BSEC: %u Read Error %u\n", otp, result); in bsec_shadow_read_otp()
800 return result; in bsec_shadow_read_otp()
828 uint32_t result = BSEC_STATE_INVALID; in bsec_get_secure_state() local
834 result = BSEC_STATE_INVALID; in bsec_get_secure_state()
838 result = BSEC_STATE_SEC_CLOSED; in bsec_get_secure_state()
840 result = BSEC_STATE_SEC_OPEN; in bsec_get_secure_state()
844 result = BSEC_STATE_INVALID; in bsec_get_secure_state()
848 return result; in bsec_get_secure_state()