Home
last modified time | relevance | path

Searched refs:xa_alloc (Results 1 – 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/lib/
Dxarray.c269 struct xa_node *next, *node = xas->xa_alloc; in xas_destroy()
275 xas->xa_alloc = node = next; in xas_destroy()
305 xas->xa_alloc = kmem_cache_alloc(radix_tree_node_cachep, gfp); in xas_nomem()
306 if (!xas->xa_alloc) in xas_nomem()
308 xas->xa_alloc->parent = NULL; in xas_nomem()
309 XA_NODE_BUG_ON(xas->xa_alloc, !list_empty(&xas->xa_alloc->private_list)); in xas_nomem()
337 xas->xa_alloc = kmem_cache_alloc(radix_tree_node_cachep, gfp); in __xas_nomem()
340 xas->xa_alloc = kmem_cache_alloc(radix_tree_node_cachep, gfp); in __xas_nomem()
342 if (!xas->xa_alloc) in __xas_nomem()
344 xas->xa_alloc->parent = NULL; in __xas_nomem()
[all …]
Dtest_xarray.c55 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(index), xa_limit_32b, in xa_alloc_index()
479 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_value(8), in check_reserve()
484 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_value(6), in check_reserve()
728 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(UINT_MAX - 1), in check_xa_alloc_1()
732 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(UINT_MAX), in check_xa_alloc_1()
737 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(0), in check_xa_alloc_1()
743 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(10), XA_LIMIT(10, 5), in check_xa_alloc_1()
746 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(10), XA_LIMIT(10, 5), in check_xa_alloc_1()
760 XA_BUG_ON(xa, xa_alloc(xa, &id, NULL, xa_limit_32b, GFP_KERNEL) != 0); in check_xa_alloc_2()
768 XA_BUG_ON(xa, xa_alloc(xa, &id, NULL, xa_limit_32b, GFP_KERNEL) != 0); in check_xa_alloc_2()
[all …]
/kernel/linux/linux-5.10/drivers/iommu/
Dioasid.c81 if (xa_alloc(&default_allocator.xa, &id, opaque, XA_LIMIT(min, max), GFP_ATOMIC)) { in default_alloc()
331 xa_alloc(&active_allocator->xa, &id, data, XA_LIMIT(id, id), GFP_ATOMIC)) { in ioasid_alloc()
/kernel/linux/linux-5.10/drivers/gpu/drm/lima/
Dlima_ctx.c26 err = xa_alloc(&mgr->handles, id, ctx, xa_limit_32b, GFP_KERNEL); in lima_ctx_create()
/kernel/linux/linux-5.10/drivers/iommu/arm/arm-smmu-v3/
Darm-smmu-v3-sva.c43 ret = xa_alloc(&arm_smmu_asid_xa, &new_asid, cd, in arm_smmu_share_asid()
Darm-smmu-v3.c1861 ret = xa_alloc(&arm_smmu_asid_xa, &asid, &cfg->cd, in arm_smmu_domain_finalise_s1()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dmapping.c56 err = xa_alloc(&ctx->xarray, &mi->id, mi, XA_LIMIT(1, ctx->max_id), in mapping_add()
/kernel/linux/linux-5.10/drivers/dma-buf/
Ddma-heap.c233 ret = xa_alloc(&dma_heap_minors, &minor, heap, in dma_heap_add()
/kernel/linux/linux-5.10/include/linux/
Dxarray.h852 static inline __must_check int xa_alloc(struct xarray *xa, u32 *id, in xa_alloc() function
1316 struct xa_node *xa_alloc; member
1336 .xa_alloc = NULL, \
/kernel/linux/linux-5.10/drivers/misc/uacce/
Duacce.c452 ret = xa_alloc(&uacce_xa, &uacce->dev_id, uacce, xa_limit_32b, in uacce_alloc()
/kernel/linux/linux-5.10/Documentation/core-api/
Dxarray.rst147 You can call xa_alloc() to store the entry at an unused index
171 The xa_store(), xa_cmpxchg(), xa_alloc(),
217 * xa_alloc()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_context.c939 ret = xa_alloc(&fpriv->context_xa, id, ctx, xa_limit_32b, GFP_KERNEL); in gem_context_register()
1037 err = xa_alloc(&file_priv->vm_xa, &id, &ppgtt->vm, in i915_gem_vm_create_ioctl()
1204 err = xa_alloc(&file_priv->vm_xa, &id, vm, xa_limit_32b, GFP_KERNEL); in get_ppgtt()
/kernel/linux/linux-5.10/drivers/infiniband/core/
Drdma_core.c309 return xa_alloc(&uobj->ufile->idr, &uobj->id, NULL, xa_limit_32b, in idr_add_uobj()
Ducma.c209 if (xa_alloc(&ctx_table, &ctx->id, NULL, xa_limit_32b, GFP_KERNEL)) { in ucma_alloc_ctx()
Ddevice.c1121 ret = xa_alloc(&rdma_nets, &rnet->id, rnet, xa_limit_32b, GFP_KERNEL); in rdma_dev_init_net()
/kernel/linux/linux-5.10/drivers/block/rnbd/
Drnbd-srv.c412 error = xa_alloc(&srv_sess->index_idr, &sess_dev->device_id, sess_dev, in rnbd_sess_dev_alloc()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_gem.c1352 ret = xa_alloc(fence_array, &id, fence, xa_limit_32b, GFP_KERNEL); in drm_gem_fence_array_add()
/kernel/linux/linux-5.10/net/qrtr/
Dqrtr.c703 rc = xa_alloc(&qrtr_ports, port, ipc, QRTR_EPH_PORT_RANGE, in qrtr_port_assign()
/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/
Dsiw_qp.c1313 int rv = xa_alloc(&sdev->qp_xa, &qp->base_qp.qp_num, qp, xa_limit_32b, in siw_qp_add()
/kernel/linux/linux-5.10/net/core/
Ddevlink.c4476 return xa_alloc(&devlink->snapshot_ids, id, xa_mk_value(1), in __devlink_region_snapshot_id_get()