Home
last modified time | relevance | path

Searched refs:ma_lock (Results 1 – 5 of 5) sorted by relevance

/linux/include/linux/
H A Dmaple_tree.h265 spinlock_t ma_lock; member
281 .ma_lock = __SPIN_LOCK_UNLOCKED((name).ma_lock), \
305 #define mtree_lock(mt) spin_lock((&(mt)->ma_lock))
307 spin_lock_nested((&(mt)->ma_lock), subclass)
308 #define mtree_unlock(mt) spin_unlock((&(mt)->ma_lock))
506 #define mas_lock(mas) spin_lock(&((mas)->tree->ma_lock))
508 spin_lock_nested(&((mas)->tree->ma_lock), subclass)
509 #define mas_unlock(mas) spin_unlock(&((mas)->tree->ma_lock))
848 spin_lock_init(&mt->ma_lock); in mt_init_flags()
/linux/rust/kernel/
H A Dmaple_tree.rs240 unsafe { bindings::spin_lock(self.ma_lock()) }; in lock()
247 fn ma_lock(&self) -> *mut bindings::spinlock_t { in ma_lock() method
249 let lock_ptr = unsafe { &raw mut (*self.tree.get()).__bindgen_anon_1.ma_lock }; in ma_lock()
317 unsafe { bindings::spin_unlock(self.0.ma_lock()) }; in drop()
/linux/drivers/base/regmap/
H A Dregcache-maple.c305 lockdep_set_class_and_subclass(&mt->ma_lock, map->lock_key, 1); in regcache_maple_init()
/linux/Documentation/core-api/
H A Dmaple_tree.rst112 Takes ma_lock internally:
140 You can use the ma_lock, RCU or an external lock for protection.
/linux/lib/
H A Dmaple_tree.c703 lockdep_is_held(&mt->ma_lock); in mt_write_locked()
709 lockdep_is_held(&mt->ma_lock); in mt_locked()
1562 __must_hold(mas->tree->ma_lock) in mas_put_in_tree()
1592 __must_hold(mas->tree->ma_lock) in mas_replace_node()
1604 __must_hold(mas->tree->ma_lock) in mas_find_child()
5610 __must_hold(mas->tree->ma_lock) in mas_nomem()
6925 __must_hold(mas->tree->ma_lock) in mt_validate()