Lines Matching full:locked
188 /* no need to write the register if region is already locked */ in spi_nor_otp_lock_sr2()
253 int ret, locked; in spi_nor_mtd_otp_info() local
266 locked = ops->is_locked(nor, i); in spi_nor_mtd_otp_info()
267 if (locked < 0) { in spi_nor_mtd_otp_info()
268 ret = locked; in spi_nor_mtd_otp_info()
272 buf->locked = !!locked; in spi_nor_mtd_otp_info()
289 int locked; in spi_nor_mtd_otp_range_is_locked() local
292 * If any of the affected OTP regions are locked the entire range is in spi_nor_mtd_otp_range_is_locked()
293 * considered locked. in spi_nor_mtd_otp_range_is_locked()
298 locked = ops->is_locked(nor, region); in spi_nor_mtd_otp_range_is_locked()
299 /* take the branch it is locked or in case of an error */ in spi_nor_mtd_otp_range_is_locked()
300 if (locked) in spi_nor_mtd_otp_range_is_locked()
301 return locked; in spi_nor_mtd_otp_range_is_locked()
497 * different variants. One with a factory locked OTP area and one where in spi_nor_set_mtd_otp_ops()
498 * it is left to the user to write to it. The factory locked OTP is in spi_nor_set_mtd_otp_ops()