Lines Matching full:locked
89 * Return true if the entire region is locked (if @locked is true) or unlocked
90 * (if @locked is false); false otherwise.
93 u64 len, u8 sr, bool locked) in spi_nor_check_lock_status_sr() argument
106 if (locked) in spi_nor_check_lock_status_sr()
107 /* Requested range is a sub-range of locked range */ in spi_nor_check_lock_status_sr()
110 /* Requested range does not overlap with locked range */ in spi_nor_check_lock_status_sr()
195 /* lock_len: length of region that should end up locked */ in spi_nor_sr_lock()
266 /* If nothing in our range is locked, we don't need to do anything */ in spi_nor_sr_unlock()
270 /* If anything below us is locked, we can't use 'top' protection */ in spi_nor_sr_unlock()
274 /* If anything above us is locked, we can't use 'bottom' protection */ in spi_nor_sr_unlock()
285 /* lock_len: length of region that should remain locked */ in spi_nor_sr_unlock()
327 * Check if a region of the flash is (completely) locked. See spi_nor_sr_lock()
330 * Returns 1 if entire region is locked, 0 if any portion is unlocked, and