Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/include/linux/
Dxarray.h293 spinlock_t xa_lock; member
300 .xa_lock = __SPIN_LOCK_UNLOCKED(name.xa_lock), \
376 spin_lock_init(&xa->xa_lock); in xa_init_flags()
527 #define xa_trylock(xa) spin_trylock(&(xa)->xa_lock)
528 #define xa_lock(xa) spin_lock(&(xa)->xa_lock) macro
529 #define xa_unlock(xa) spin_unlock(&(xa)->xa_lock)
530 #define xa_lock_bh(xa) spin_lock_bh(&(xa)->xa_lock)
531 #define xa_unlock_bh(xa) spin_unlock_bh(&(xa)->xa_lock)
532 #define xa_lock_irq(xa) spin_lock_irq(&(xa)->xa_lock)
533 #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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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.c118 xa_lock(&rt->xa); in rdma_restrack_count()
276 xa_lock(&rt->xa); in rdma_restrack_get_byid()
Dcounters.c231 xa_lock(&rt->xa); in rdma_get_counter_auto_mode()
360 xa_lock(&rt->xa); in get_running_counters_hwstat_sum()
375 xa_lock(&rt->xa); in get_running_counters_hwstat_sum()
Ducma.c144 xa_lock(&ctx_table); in ucma_get_ctx()
361 xa_lock(&ctx_table); in ucma_event_handler()
492 xa_lock(&multicast_table); in ucma_cleanup_multicast()
605 xa_lock(&ctx_table); in ucma_destroy_id()
1475 xa_lock(&multicast_table); in ucma_process_join()
1510 xa_lock(&multicast_table); in ucma_process_join()
1574 xa_lock(&multicast_table); in ucma_leave_multicast()
1649 xa_lock(&ctx_table); in ucma_migrate_id()
Dnldev.c761 xa_lock(&rt->xa); in fill_stat_counter_qps()
1392 xa_lock(&rt->xa); in res_get_common_dumpit()
1426 again: xa_lock(&rt->xa); in res_get_common_dumpit()
/kernel/linux/linux-5.10/fs/erofs/
Dutils.c94 xa_lock(&sbi->managed_pslots); in erofs_insert_workgroup()
172 xa_lock(&sbi->managed_pslots); in erofs_shrink_workstation()
182 xa_lock(&sbi->managed_pslots); in erofs_shrink_workstation()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/arch/arm64/mm/
Dmteswap.c77 xa_lock(&mte_pages); in mte_invalidate_tags_area()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dhibernate.c318 xa_lock(&mte_pages); in swsusp_mte_free_storage()
369 xa_lock(&mte_pages); in swsusp_mte_restore_tags()
/kernel/linux/linux-5.10/lib/
Dxarray.c325 __must_hold(xas->xa->xa_lock) in __xas_nomem()
1513 xa_lock(xa); in xa_erase()
1577 xa_lock(xa); in xa_store()
1968 xa_lock(xa); in xa_set_mark()
1986 xa_lock(xa); in xa_clear_mark()
Dtest_xarray.c1667 xa_lock(xa); in shadow_remove()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_srq.c17 xa_lock(&srq_table->xa); in hns_roce_srq_event()
Dhns_roce_qp.c88 xa_lock(&hr_dev->qp_table_xa); in hns_roce_qp_event()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qedr/
Dqedr_iw_cm.c522 xa_lock(&dev->qps); in qedr_iw_load_qp()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dodp.c267 xa_lock(&imr->implicit_children); in destroy_unused_implicit_child_mr()
620 xa_lock(&imr->implicit_children); in mlx5_ib_free_implicit_mr()
Dsrq_cmd.c668 xa_lock(&table->array); in srq_event_notifier()
Dcq.c549 xa_lock(&dev->sig_mrs); in mlx5_poll_one()
/kernel/linux/linux-5.10/mm/
Dhuge_memory.c2464 xa_lock(&swap_cache->i_pages); in __split_huge_page()
2725 xa_lock(&mapping->i_pages); in split_huge_page_to_list()