Home
last modified time | relevance | path

Searched refs:xa_lock (Results 1 – 25 of 25) sorted by relevance

/Linux-v5.15/include/linux/
Dxarray.h295 spinlock_t xa_lock; member
302 .xa_lock = __SPIN_LOCK_UNLOCKED(name.xa_lock), \
378 spin_lock_init(&xa->xa_lock); in xa_init_flags()
529 #define xa_trylock(xa) spin_trylock(&(xa)->xa_lock)
530 #define xa_lock(xa) spin_lock(&(xa)->xa_lock) macro
531 #define xa_unlock(xa) spin_unlock(&(xa)->xa_lock)
532 #define xa_lock_bh(xa) spin_lock_bh(&(xa)->xa_lock)
533 #define xa_unlock_bh(xa) spin_unlock_bh(&(xa)->xa_lock)
534 #define xa_lock_irq(xa) spin_lock_irq(&(xa)->xa_lock)
535 #define xa_unlock_irq(xa) spin_unlock_irq(&(xa)->xa_lock)
[all …]
Didr.h101 #define idr_lock(idr) xa_lock(&(idr)->idr_rt)
Dbacking-dev.h285 !lockdep_is_held(&inode->i_mapping->i_pages.xa_lock) && in inode_to_wb()
/Linux-v5.15/tools/testing/radix-tree/
Dregression1.c128 xa_lock(&mt_tree); in regression1_fn()
133 xa_lock(&mt_tree); in regression1_fn()
137 xa_lock(&mt_tree); in regression1_fn()
145 xa_lock(&mt_tree); in regression1_fn()
/Linux-v5.15/drivers/infiniband/core/
Dib_core_uverbs.c125 xa_lock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff()
190 xa_lock(&ucontext->mmap_xa); in rdma_user_mmap_entry_free()
235 xa_lock(&entry->ucontext->mmap_xa); in rdma_user_mmap_entry_remove()
287 xa_lock(&ucontext->mmap_xa); in rdma_user_mmap_entry_insert_range()
Drestrack.c119 xa_lock(&rt->xa); in rdma_restrack_count()
290 xa_lock(&rt->xa); in rdma_restrack_get_byid()
Dcounters.c258 xa_lock(&rt->xa); in rdma_get_counter_auto_mode()
370 xa_lock(&rt->xa); in get_running_counters_hwstat_sum()
385 xa_lock(&rt->xa); in get_running_counters_hwstat_sum()
Ducma.c142 xa_lock(&ctx_table); in ucma_get_ctx()
358 xa_lock(&ctx_table); in ucma_event_handler()
602 xa_lock(&ctx_table); in ucma_destroy_id()
1564 xa_lock(&multicast_table); in ucma_leave_multicast()
1637 xa_lock(&ctx_table); in ucma_migrate_id()
Dnldev.c772 xa_lock(&rt->xa); in fill_res_srq_qps()
897 xa_lock(&rt->xa); in fill_stat_counter_qps()
1541 xa_lock(&rt->xa); in res_get_common_dumpit()
1575 again: xa_lock(&rt->xa); in res_get_common_dumpit()
/Linux-v5.15/Documentation/core-api/
Dxarray.rst203 Takes xa_lock internally:
227 Assumes xa_lock held on entry:
237 that you are storing in the XArray, you can call xa_lock()
272 xa_lock(&foo->array);
283 coverage of the xa_lock on the store side to protect some statistics
288 context, or xa_lock_irq() in process context and xa_lock()
297 the xa_lock; the xa_lock is used for lockdep validation and will be used
311 to use the xa_lock while modifying the array. You can choose whether
312 to use the xa_lock or the RCU lock while doing read-only operations on
336 the xa_lock, attempt the operation and drop the lock. The operation
[all …]
/Linux-v5.15/arch/arm64/mm/
Dmteswap.c86 xa_lock(&mte_pages); in mte_invalidate_tags_area()
/Linux-v5.15/arch/arm64/kernel/
Dhibernate.c273 xa_lock(&mte_pages); in swsusp_mte_free_storage()
324 xa_lock(&mte_pages); in swsusp_mte_restore_tags()
/Linux-v5.15/drivers/infiniband/hw/mlx4/
Dcm.c365 xa_lock(&sriov->xa_rej_tmout); in alloc_rej_tmout()
410 xa_lock(&sriov->xa_rej_tmout); in lookup_rej_tmout_slave()
500 xa_lock(&sriov->xa_rej_tmout); in rej_tmout_xa_cleanup()
/Linux-v5.15/fs/erofs/
Dutils.c81 xa_lock(&sbi->managed_pslots); in erofs_insert_workgroup()
/Linux-v5.15/lib/
Dxarray.c325 __must_hold(xas->xa->xa_lock) in __xas_nomem()
1510 xa_lock(xa); in xa_erase()
1574 xa_lock(xa); in xa_store()
1965 xa_lock(xa); in xa_set_mark()
1983 xa_lock(xa); in xa_clear_mark()
Dtest_xarray.c1645 xa_lock(xa); in shadow_remove()
/Linux-v5.15/drivers/infiniband/hw/mlx5/
Dodp.c453 xa_lock(&imr->implicit_children); in implicit_get_child_mr()
625 xa_lock(&imr->implicit_children); in pagefault_implicit_mr()
845 xa_lock(&dev->odp_mkeys); in pagefault_single_data_segment()
1709 xa_lock(&dev->odp_mkeys); in get_prefetchable_mr()
Dsrq_cmd.c740 xa_lock(&table->array); in srq_event_notifier()
Dcq.c549 xa_lock(&dev->sig_mrs); in mlx5_poll_one()
/Linux-v5.15/drivers/infiniband/hw/hns/
Dhns_roce_srq.c17 xa_lock(&srq_table->xa); in hns_roce_srq_event()
Dhns_roce_qp.c102 xa_lock(&hr_dev->qp_table_xa); in hns_roce_qp_event()
/Linux-v5.15/drivers/vfio/
Dvfio.c113 xa_lock(&vfio_device_set_xa); in vfio_assign_device_set()
126 xa_lock(&vfio_device_set_xa); in vfio_assign_device_set()
162 xa_lock(&vfio_device_set_xa); in vfio_release_device_set()
/Linux-v5.15/drivers/gpu/drm/tegra/
Dsubmit.c121 xa_lock(&context->mappings); in tegra_drm_mapping_get()
/Linux-v5.15/drivers/infiniband/hw/qedr/
Dqedr_iw_cm.c522 xa_lock(&dev->qps); in qedr_iw_load_qp()
/Linux-v5.15/mm/
Dhuge_memory.c2423 xa_lock(&swap_cache->i_pages); in __split_huge_page()
2689 xa_lock(&mapping->i_pages); in split_huge_page_to_list()