Home
last modified time | relevance | path

Searched refs:xa_cmpxchg (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/Documentation/translations/zh_CN/core-api/
Dxarray.rst68 你可以通过使用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-6.1.9/include/linux/
Dxarray.h688 static inline void *xa_cmpxchg(struct xarray *xa, unsigned long index, in xa_cmpxchg() function
1060 return xa_err(xa_cmpxchg(xa, index, NULL, XA_ZERO_ENTRY, gfp)); in xa_reserve()
1110 xa_cmpxchg(xa, index, XA_ZERO_ENTRY, NULL, 0); in xa_release()
/linux-6.1.9/lib/
Dtest_xarray.c413 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()
449 XA_BUG_ON(xa, xa_cmpxchg(xa, 12345678, XA_ZERO_ENTRY, in check_reserve()
/linux-6.1.9/drivers/infiniband/hw/mlx4/
Dcm.c352 deleted = xa_cmpxchg(item->xa_rej_tmout, item->rem_pv_cm_id, item, NULL, 0); in rej_tmout_timeout()
388 old = xa_cmpxchg(&sriov->xa_rej_tmout, (unsigned long)rem_pv_cm_id, NULL, item, GFP_KERNEL); in alloc_rej_tmout()
/linux-6.1.9/drivers/infiniband/core/
Drdma_core.c608 old = xa_cmpxchg(&ufile->idr, obj_old->id, obj_old, XA_ZERO_ENTRY, in swap_idr_uobjects()
615 old = xa_cmpxchg(&ufile->idr, obj_old->id, NULL, obj_old, GFP_KERNEL); in swap_idr_uobjects()
Ducma.c535 xa_cmpxchg(&ctx_table, uevent->conn_req_ctx->id, in ucma_cleanup_ctx_events()
584 WARN_ON(xa_cmpxchg(&ctx_table, ctx->id, XA_ZERO_ENTRY, NULL, in ucma_destroy_private_ctx()
1807 WARN_ON(xa_cmpxchg(&ctx_table, ctx->id, ctx, XA_ZERO_ENTRY, in ucma_close()
/linux-6.1.9/Documentation/core-api/
Dxarray.rst75 xa_cmpxchg(). Like cmpxchg(), it will only succeed if
78 'old', then xa_cmpxchg() succeeded.
152 Using xa_store(), xa_cmpxchg() or xa_insert() will
171 The xa_store(), xa_cmpxchg(), xa_alloc(),
213 * xa_cmpxchg()
/linux-6.1.9/drivers/nvme/target/
Dpassthru.c604 old = xa_cmpxchg(&passthru_subsystems, ctrl->cntlid, NULL, in nvmet_passthru_ctrl_enable()
/linux-6.1.9/drivers/block/rnbd/
Drnbd-srv.c212 xa_cmpxchg(&sess_dev->sess->index_idr, sess_dev->device_id, in rnbd_destroy_sess_dev()
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dmr.c1587 xa_cmpxchg(&dev->sig_mrs, mlx5_base_mkey(mr->mmkey.key), in mlx5_ib_dereg_mr()
/linux-6.1.9/drivers/iommu/intel/
Diommu.c1815 curr = xa_cmpxchg(&domain->iommu_array, iommu->seq_id, in domain_attach_iommu()