Lines Matching full:locked
90 * Return true if the entire region is locked (if @locked is true) or unlocked
91 * (if @locked is false); false otherwise.
94 u64 len, u8 sr, bool locked) in spi_nor_check_lock_status_sr() argument
107 if (locked) in spi_nor_check_lock_status_sr()
108 /* Requested range is a sub-range of locked range */ in spi_nor_check_lock_status_sr()
111 /* Requested range does not overlap with locked range */ in spi_nor_check_lock_status_sr()
196 /* lock_len: length of region that should end up locked */ in spi_nor_sr_lock()
267 /* If nothing in our range is locked, we don't need to do anything */ in spi_nor_sr_unlock()
271 /* If anything below us is locked, we can't use 'top' protection */ in spi_nor_sr_unlock()
275 /* If anything above us is locked, we can't use 'bottom' protection */ in spi_nor_sr_unlock()
286 /* lock_len: length of region that should remain locked */ in spi_nor_sr_unlock()
328 * Check if a region of the flash is (completely) locked. See spi_nor_sr_lock()
331 * Returns 1 if entire region is locked, 0 if any portion is unlocked, and