Lines Matching refs:lock_len
91 uint64_t lock_len; in spi_nor_check_lock_status_sr() local
96 spi_nor_get_locked_range_sr(nor, sr, &lock_offs, &lock_len); in spi_nor_check_lock_status_sr()
98 lock_offs_max = lock_offs + lock_len; in spi_nor_check_lock_status_sr()
162 loff_t lock_len; in spi_nor_sr_lock() local
193 lock_len = mtd->size - ofs; in spi_nor_sr_lock()
195 lock_len = ofs + len; in spi_nor_sr_lock()
197 if (lock_len == mtd->size) { in spi_nor_sr_lock()
201 pow = ilog2(lock_len) - ilog2(min_prot_len) + 1; in spi_nor_sr_lock()
252 loff_t lock_len; in spi_nor_sr_unlock() local
283 lock_len = mtd->size - (ofs + len); in spi_nor_sr_unlock()
285 lock_len = ofs; in spi_nor_sr_unlock()
287 if (lock_len == 0) { in spi_nor_sr_unlock()
291 pow = ilog2(lock_len) - ilog2(min_prot_len) + 1; in spi_nor_sr_unlock()
305 if (lock_len == 0) in spi_nor_sr_unlock()