Searched refs:xa_cmpxchg (Results 1 – 10 of 10) sorted by relevance
| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | xarray.rst | 68 你可以通过使用xa_cmpxchg()有条件地替换一个索引中的条目。和cmpxchg()一样,它只有在该索 70 目,那么xa_cmpxchg()就成功了。 121 使用xa_store()、xa_cmpxchg()或xa_insert()也将标记该条目为正在分配。与普通的XArray不同,存储 ``NULL`` 135 xa_store(), xa_cmpxchg(), xa_alloc(), xa_reserve()和xa_insert()函数接受一个gfp_t参数,以 172 * xa_cmpxchg()
|
| /linux/include/linux/ |
| H A D | xarray.h | 692 static inline void *xa_cmpxchg(struct xarray *xa, unsigned long index, in xa_cmpxchg() function 1088 return xa_err(xa_cmpxchg(xa, index, NULL, XA_ZERO_ENTRY, gfp)); in xa_reserve() 1138 xa_cmpxchg(xa, index, XA_ZERO_ENTRY, NULL, 0); in xa_release()
|
| /linux/lib/ |
| H A D | test_xarray.c | 413 XA_BUG_ON(xa, xa_cmpxchg(xa, 12345678, SIX, FIVE, GFP_KERNEL) != LOTS); in check_cmpxchg() 414 XA_BUG_ON(xa, xa_cmpxchg(xa, 12345678, LOTS, FIVE, GFP_KERNEL) != LOTS); in check_cmpxchg() 415 XA_BUG_ON(xa, xa_cmpxchg(xa, 12345678, FIVE, LOTS, GFP_KERNEL) != FIVE); in check_cmpxchg() 416 XA_BUG_ON(xa, xa_cmpxchg(xa, 5, FIVE, NULL, GFP_KERNEL) != NULL); in check_cmpxchg() 417 XA_BUG_ON(xa, xa_cmpxchg(xa, 5, NULL, FIVE, GFP_KERNEL) != NULL); in check_cmpxchg() 419 XA_BUG_ON(xa, xa_cmpxchg(xa, 5, FIVE, NULL, GFP_KERNEL) != FIVE); in check_cmpxchg() 457 XA_BUG_ON(xa, xa_cmpxchg(xa, 0, FIVE, NULL, GFP_KERNEL) != FIVE); in check_cmpxchg_order() 502 XA_BUG_ON(xa, xa_cmpxchg(xa, 12345678, XA_ZERO_ENTRY, in check_reserve()
|
| /linux/drivers/iommu/iommufd/ |
| H A D | viommu.c | 131 xa_cmpxchg(&viommu->vdevs, vdev->virt_id, vdev, NULL, GFP_KERNEL); in iommufd_vdevice_abort()
|
| H A D | device.c | 47 xa_cmpxchg(&igroup->ictx->groups, iommu_group_id(igroup->group), in iommufd_group_release() 690 attach = xa_cmpxchg(&igroup->pasid_attach, pasid, NULL, in iommufd_hw_pagetable_attach()
|
| /linux/drivers/nvme/target/ |
| H A D | passthru.c | 619 old = xa_cmpxchg(&passthru_subsystems, ctrl->instance, NULL, in nvmet_passthru_ctrl_enable()
|
| /linux/drivers/dma/idxd/ |
| H A D | cdev.c | 190 ptr = xa_cmpxchg(&wq->upasid_xa, ctx->pasid, ctx, NULL, GFP_KERNEL); in idxd_xa_pasid_remove()
|
| /linux/net/core/ |
| H A D | page_pool.c | 520 /* Cache dma_addr before xa_cmpxchg. The scrub path holds no page ref; in __page_pool_unmap_netmem_dma() 532 old = xa_cmpxchg(&pool->dma_mapped, in __page_pool_unmap_netmem_dma()
|
| /linux/net/netlink/ |
| H A D | genetlink.c | 751 old_priv = xa_cmpxchg(family->sock_privs, (unsigned long) sk, NULL, in genl_sk_priv_get()
|
| /linux/drivers/iommu/amd/ |
| H A D | iommu.c | 2337 curr = xa_cmpxchg(&pdom->iommu_array, iommu->index, in pdom_attach_iommu()
|