Lines Matching refs:locked
260 bool locked = false; in stm32_bsec_shadow_register() local
263 result = stm32_bsec_read_sr_lock(otp_id, &locked); in stm32_bsec_shadow_register()
267 if (locked) in stm32_bsec_shadow_register()
335 bool locked = false; in stm32_bsec_write_otp() local
338 result = stm32_bsec_read_sw_lock(otp_id, &locked); in stm32_bsec_write_otp()
342 if (locked) in stm32_bsec_write_otp()
363 bool locked = false; in stm32_bsec_program_otp() local
366 result = stm32_bsec_read_sp_lock(otp_id, &locked); in stm32_bsec_program_otp()
370 if (locked) in stm32_bsec_program_otp()
547 static TEE_Result read_bsec_lock(uint32_t otp_id, bool *locked, in read_bsec_lock() argument
560 *locked = (io_read32(lock_addr) & otp_mask) != 0; in read_bsec_lock()
565 TEE_Result stm32_bsec_read_sr_lock(uint32_t otp_id, bool *locked) in stm32_bsec_read_sr_lock() argument
567 return read_bsec_lock(otp_id, locked, BSEC_SRLOCK_OFF); in stm32_bsec_read_sr_lock()
570 TEE_Result stm32_bsec_read_sw_lock(uint32_t otp_id, bool *locked) in stm32_bsec_read_sw_lock() argument
572 return read_bsec_lock(otp_id, locked, BSEC_SWLOCK_OFF); in stm32_bsec_read_sw_lock()
575 TEE_Result stm32_bsec_read_sp_lock(uint32_t otp_id, bool *locked) in stm32_bsec_read_sp_lock() argument
577 return read_bsec_lock(otp_id, locked, BSEC_SPLOCK_OFF); in stm32_bsec_read_sp_lock()
580 TEE_Result stm32_bsec_read_permanent_lock(uint32_t otp_id, bool *locked) in stm32_bsec_read_permanent_lock() argument
582 return read_bsec_lock(otp_id, locked, BSEC_WRLOCK_OFF); in stm32_bsec_read_permanent_lock()
775 bool locked = false; in bsec_dt_otp_nsec_access() local
779 if (stm32_bsec_read_permanent_lock(otp_id, &locked)) in bsec_dt_otp_nsec_access()
791 if (locked != locked_2) { in bsec_dt_otp_nsec_access()
794 locked = true; in bsec_dt_otp_nsec_access()
798 if (locked) { in bsec_dt_otp_nsec_access()