Home
last modified time | relevance | path

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

/openbmc/linux/include/linux/
H A Dmaple_tree.h220 spinlock_t ma_lock; member
234 .ma_lock = __SPIN_LOCK_UNLOCKED((name).ma_lock), \
258 #define mtree_lock(mt) spin_lock((&(mt)->ma_lock))
259 #define mtree_unlock(mt) spin_unlock((&(mt)->ma_lock))
408 #define mas_lock(mas) spin_lock(&((mas)->tree->ma_lock))
409 #define mas_unlock(mas) spin_unlock(&((mas)->tree->ma_lock))
621 spin_lock_init(&mt->ma_lock); in mt_init_flags()
/openbmc/linux/Documentation/core-api/
H A Dmaple_tree.rst109 Takes ma_lock internally:
136 You can use the ma_lock, RCU or an external lock for protection.
/openbmc/linux/lib/
H A Dmaple_tree.c800 lockdep_is_held(&mt->ma_lock); in mt_write_locked()
806 lockdep_is_held(&mt->ma_lock); in mt_locked()
1729 __must_hold(mas->tree->ma_lock) in mas_put_in_tree()
1758 __must_hold(mas->tree->ma_lock) in mas_replace_node()
1770 __must_hold(mas->tree->ma_lock) in mas_find_child()
6203 __must_hold(mas->tree->ma_lock) in mas_nomem()