Lines Matching full:locked
84 * Return true if the entire region is locked (if @locked is true) or unlocked
85 * (if @locked is false); false otherwise.
88 uint64_t len, u8 sr, bool locked) in spi_nor_check_lock_status_sr() argument
101 if (locked) in spi_nor_check_lock_status_sr()
102 /* Requested range is a sub-range of locked range */ in spi_nor_check_lock_status_sr()
105 /* Requested range does not overlap with locked range */ in spi_nor_check_lock_status_sr()
191 /* lock_len: length of region that should end up locked */ in spi_nor_sr_lock()
257 /* If nothing in our range is locked, we don't need to do anything */ in spi_nor_sr_unlock()
261 /* If anything below us is locked, we can't use 'top' protection */ in spi_nor_sr_unlock()
265 /* If anything above us is locked, we can't use 'bottom' protection */ in spi_nor_sr_unlock()
276 /* lock_len: length of region that should remain locked */ in spi_nor_sr_unlock()
318 * Check if a region of the flash is (completely) locked. See spi_nor_sr_lock()
321 * Returns 1 if entire region is locked, 0 if any portion is unlocked, and