Home
last modified time | relevance | path

Searched refs:lock_len (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/mtd/spi-nor/
Dcore.c1630 uint64_t lock_len; in spi_nor_check_lock_status_sr() local
1635 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() local
1729 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 …]
/kernel/linux/linux-5.10/kernel/locking/
Dlockdep.c6324 const void* lock_from, unsigned long lock_len) in not_in_range() argument
6326 return lock_from + lock_len <= mem_from || in not_in_range()