Searched refs:lock_len (Results 1 – 2 of 2) sorted by relevance
1630 uint64_t lock_len; in spi_nor_check_lock_status_sr() local1635 spi_nor_get_locked_range_sr(nor, sr, &lock_offs, &lock_len); in spi_nor_check_lock_status_sr()1639 return (ofs + len <= lock_offs + lock_len) && (ofs >= lock_offs); in spi_nor_check_lock_status_sr()1642 return (ofs >= lock_offs + lock_len) || (ofs + len <= lock_offs); in spi_nor_check_lock_status_sr()1698 loff_t lock_len; in spi_nor_sr_lock() local1729 lock_len = mtd->size - ofs; in spi_nor_sr_lock()1731 lock_len = ofs + len; in spi_nor_sr_lock()1733 if (lock_len == mtd->size) { in spi_nor_sr_lock()1737 pow = ilog2(lock_len) - ilog2(min_prot_len) + 1; in spi_nor_sr_lock()1783 loff_t lock_len; in spi_nor_sr_unlock() local[all …]
6324 const void* lock_from, unsigned long lock_len) in not_in_range() argument6326 return lock_from + lock_len <= mem_from || in not_in_range()