Lines Matching refs:result

247 	uint32_t result;  in bsec_set_config()  local
266 result = bsec_power_safmem((bool)cfg->power & in bsec_set_config()
268 if (result != BSEC_OK) { in bsec_set_config()
269 return result; in bsec_set_config()
329 uint32_t result; in bsec_shadow_register() local
337 result = bsec_read_sr_lock(otp, &value); in bsec_shadow_register()
338 if (result != BSEC_OK) { in bsec_shadow_register()
339 ERROR("BSEC: %u Sticky-read bit read Error %u\n", otp, result); in bsec_shadow_register()
340 return result; in bsec_shadow_register()
349 result = bsec_power_safmem(true); in bsec_shadow_register()
351 if (result != BSEC_OK) { in bsec_shadow_register()
352 return result; in bsec_shadow_register()
366 result = bsec_check_error(otp, true); in bsec_shadow_register()
376 return result; in bsec_shadow_register()
409 uint32_t result; in bsec_write_otp() local
416 result = bsec_read_sw_lock(otp, &value); in bsec_write_otp()
417 if (result != BSEC_OK) { in bsec_write_otp()
418 ERROR("BSEC: %u Sticky-write bit read Error %u\n", otp, result); in bsec_write_otp()
419 return result; in bsec_write_otp()
435 return result; in bsec_write_otp()
447 uint32_t result; in bsec_program_otp() local
456 result = bsec_read_sp_lock(otp, &sp_lock); in bsec_program_otp()
457 if (result != BSEC_OK) { in bsec_program_otp()
458 ERROR("BSEC: %u Sticky-prog bit read Error %u\n", otp, result); in bsec_program_otp()
459 return result; in bsec_program_otp()
462 result = bsec_read_permanent_lock(otp, &perm_lock); in bsec_program_otp()
463 if (result != BSEC_OK) { in bsec_program_otp()
464 ERROR("BSEC: %u permanent bit read Error %u\n", otp, result); in bsec_program_otp()
465 return result; in bsec_program_otp()
479 result = bsec_power_safmem(true); in bsec_program_otp()
481 if (result != BSEC_OK) { in bsec_program_otp()
482 return result; in bsec_program_otp()
499 result = BSEC_PROG_FAIL; in bsec_program_otp()
501 result = bsec_check_error(otp, true); in bsec_program_otp()
512 return result; in bsec_program_otp()
522 uint32_t result; in bsec_permanent_lock_otp() local
536 result = bsec_power_safmem(true); in bsec_permanent_lock_otp()
538 if (result != BSEC_OK) { in bsec_permanent_lock_otp()
539 return result; in bsec_permanent_lock_otp()
567 result = BSEC_PROG_FAIL; in bsec_permanent_lock_otp()
569 result = bsec_check_error(otp, false); in bsec_permanent_lock_otp()
580 return result; in bsec_permanent_lock_otp()
924 uint32_t result; in bsec_shadow_read_otp() local
926 result = bsec_shadow_register(word); in bsec_shadow_read_otp()
927 if (result != BSEC_OK) { in bsec_shadow_read_otp()
928 ERROR("BSEC: %u Shadowing Error %u\n", word, result); in bsec_shadow_read_otp()
929 return result; in bsec_shadow_read_otp()
932 result = bsec_read_otp(otp_value, word); in bsec_shadow_read_otp()
933 if (result != BSEC_OK) { in bsec_shadow_read_otp()
934 ERROR("BSEC: %u Read Error %u\n", word, result); in bsec_shadow_read_otp()
937 return result; in bsec_shadow_read_otp()