Lines Matching refs:locked
255 bool locked = false; in stm32_bsec_shadow_register() local
258 result = stm32_bsec_read_sr_lock(otp_id, &locked); in stm32_bsec_shadow_register()
262 if (locked) in stm32_bsec_shadow_register()
330 bool locked = false; in stm32_bsec_write_otp() local
333 result = stm32_bsec_read_sw_lock(otp_id, &locked); in stm32_bsec_write_otp()
337 if (locked) in stm32_bsec_write_otp()
358 bool locked = false; in stm32_bsec_program_otp() local
361 result = stm32_bsec_read_sp_lock(otp_id, &locked); in stm32_bsec_program_otp()
365 if (locked) in stm32_bsec_program_otp()
540 static TEE_Result read_bsec_lock(uint32_t otp_id, bool *locked, in read_bsec_lock() argument
553 *locked = (io_read32(lock_addr) & otp_mask) != 0; in read_bsec_lock()
558 TEE_Result stm32_bsec_read_sr_lock(uint32_t otp_id, bool *locked) in stm32_bsec_read_sr_lock() argument
560 return read_bsec_lock(otp_id, locked, BSEC_SRLOCK_OFF); in stm32_bsec_read_sr_lock()
563 TEE_Result stm32_bsec_read_sw_lock(uint32_t otp_id, bool *locked) in stm32_bsec_read_sw_lock() argument
565 return read_bsec_lock(otp_id, locked, BSEC_SWLOCK_OFF); in stm32_bsec_read_sw_lock()
568 TEE_Result stm32_bsec_read_sp_lock(uint32_t otp_id, bool *locked) in stm32_bsec_read_sp_lock() argument
570 return read_bsec_lock(otp_id, locked, BSEC_SPLOCK_OFF); in stm32_bsec_read_sp_lock()
573 TEE_Result stm32_bsec_read_permanent_lock(uint32_t otp_id, bool *locked) in stm32_bsec_read_permanent_lock() argument
575 return read_bsec_lock(otp_id, locked, BSEC_WRLOCK_OFF); in stm32_bsec_read_permanent_lock()
725 bool locked = false; in bsec_dt_otp_nsec_access() local
729 if (stm32_bsec_read_permanent_lock(otp_id, &locked)) in bsec_dt_otp_nsec_access()
741 if (locked != locked_2) { in bsec_dt_otp_nsec_access()
744 locked = true; in bsec_dt_otp_nsec_access()
748 if (locked) { in bsec_dt_otp_nsec_access()