Lines Matching refs:lock_len
631 uint64_t lock_len; in stm_check_lock_status_sr() local
636 stm_get_locked_range(nor, sr, &lock_offs, &lock_len); in stm_check_lock_status_sr()
640 return (ofs + len <= lock_offs + lock_len) && (ofs >= lock_offs); in stm_check_lock_status_sr()
643 return (ofs >= lock_offs + lock_len) || (ofs + len <= lock_offs); in stm_check_lock_status_sr()
696 loff_t lock_len; in stm_lock() local
725 lock_len = mtd->size - ofs; in stm_lock()
727 lock_len = ofs + len; in stm_lock()
738 pow = ilog2(mtd->size) - ilog2(lock_len); in stm_lock()
776 loff_t lock_len; in stm_unlock() local
805 lock_len = mtd->size - (ofs + len); in stm_unlock()
807 lock_len = ofs; in stm_unlock()
818 pow = ilog2(mtd->size) - order_base_2(lock_len); in stm_unlock()
819 if (lock_len == 0) { in stm_unlock()
831 if (lock_len == 0) in stm_unlock()