Lines Matching refs:mkeys

146 	XA_STATE(xas, &ent->mkeys, 0);  in push_mkey_locked()
170 __xa_store(&ent->mkeys, in push_mkey_locked()
181 xa_unlock_irq(&ent->mkeys); in push_mkey_locked()
189 xa_lock_irq(&ent->mkeys); in push_mkey_locked()
191 xa_lock_irq(&ent->mkeys); in push_mkey_locked()
204 xa_lock_irq(&ent->mkeys); in push_mkey()
206 xa_unlock_irq(&ent->mkeys); in push_mkey()
215 old = __xa_erase(&ent->mkeys, ent->reserved); in undo_push_reserve_mkey()
223 old = __xa_store(&ent->mkeys, ent->stored, xa_mk_value(mkey), 0); in push_to_reserved()
236 xa_mkey = __xa_erase(&ent->mkeys, ent->stored); in pop_stored_mkey()
241 xa_mkey = __xa_store(&ent->mkeys, ent->stored, XA_ZERO_ENTRY, in pop_stored_mkey()
244 old = __xa_erase(&ent->mkeys, ent->reserved); in pop_stored_mkey()
260 xa_lock_irqsave(&ent->mkeys, flags); in create_mkey_callback()
263 xa_unlock_irqrestore(&ent->mkeys, flags); in create_mkey_callback()
272 xa_lock_irqsave(&ent->mkeys, flags); in create_mkey_callback()
276 xa_unlock_irqrestore(&ent->mkeys, flags); in create_mkey_callback()
346 xa_lock_irq(&ent->mkeys); in add_keys()
348 xa_unlock_irq(&ent->mkeys); in add_keys()
382 lockdep_assert_held(&ent->mkeys.xa_lock); in remove_cache_mr_locked()
386 xa_unlock_irq(&ent->mkeys); in remove_cache_mr_locked()
388 xa_lock_irq(&ent->mkeys); in remove_cache_mr_locked()
393 __acquires(&ent->mkeys) __releases(&ent->mkeys) in resize_available_mrs()
397 lockdep_assert_held(&ent->mkeys.xa_lock); in resize_available_mrs()
407 xa_unlock_irq(&ent->mkeys); in resize_available_mrs()
411 xa_lock_irq(&ent->mkeys); in resize_available_mrs()
439 xa_lock_irq(&ent->mkeys); in size_write()
452 xa_unlock_irq(&ent->mkeys); in size_write()
457 xa_unlock_irq(&ent->mkeys); in size_write()
497 xa_lock_irq(&ent->mkeys); in limit_write()
500 xa_unlock_irq(&ent->mkeys); in limit_write()
536 xa_lock_irq(&ent->mkeys); in someone_adding()
538 xa_unlock_irq(&ent->mkeys); in someone_adding()
555 lockdep_assert_held(&ent->mkeys.xa_lock); in queue_adjust_cache_locked()
588 xa_lock_irq(&ent->mkeys); in __cache_work_func()
594 xa_unlock_irq(&ent->mkeys); in __cache_work_func()
596 xa_lock_irq(&ent->mkeys); in __cache_work_func()
629 xa_unlock_irq(&ent->mkeys); in __cache_work_func()
633 xa_lock_irq(&ent->mkeys); in __cache_work_func()
644 xa_unlock_irq(&ent->mkeys); in __cache_work_func()
752 xa_lock_irq(&ent->mkeys); in _mlx5_mr_cache_alloc()
758 xa_unlock_irq(&ent->mkeys); in _mlx5_mr_cache_alloc()
761 xa_lock_irq(&ent->mkeys); in _mlx5_mr_cache_alloc()
763 xa_unlock_irq(&ent->mkeys); in _mlx5_mr_cache_alloc()
770 xa_unlock_irq(&ent->mkeys); in _mlx5_mr_cache_alloc()
823 xa_lock_irq(&ent->mkeys); in clean_keys()
826 xa_unlock_irq(&ent->mkeys); in clean_keys()
828 xa_lock_irq(&ent->mkeys); in clean_keys()
830 xa_unlock_irq(&ent->mkeys); in clean_keys()
893 xa_init_flags(&ent->mkeys, XA_FLAGS_LOCK_IRQ); in mlx5r_cache_create_ent_locked()
944 xa_lock_irq(&ent->mkeys); in remove_ent_work_func()
946 xa_unlock_irq(&ent->mkeys); in remove_ent_work_func()
950 xa_unlock_irq(&ent->mkeys); in remove_ent_work_func()
1000 xa_lock_irq(&ent->mkeys); in mlx5_mkey_cache_init()
1002 xa_unlock_irq(&ent->mkeys); in mlx5_mkey_cache_init()
1027 xa_lock_irq(&ent->mkeys); in mlx5_mkey_cache_cleanup()
1029 xa_unlock_irq(&ent->mkeys); in mlx5_mkey_cache_cleanup()
1808 xa_lock_irq(&mr->mmkey.cache_ent->mkeys); in cache_ent_find_and_store()
1822 xa_lock_irq(&mr->mmkey.cache_ent->mkeys); in cache_ent_find_and_store()
1834 xa_lock_irq(&mr->mmkey.cache_ent->mkeys); in cache_ent_find_and_store()
1839 xa_unlock_irq(&mr->mmkey.cache_ent->mkeys); in cache_ent_find_and_store()