Home
last modified time | relevance | path

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

12

/Linux-v6.6/lib/
Dxarray.c270 struct xa_node *next, *node = xas->xa_alloc; in xas_destroy()
276 xas->xa_alloc = node = next; in xas_destroy()
306 xas->xa_alloc = kmem_cache_alloc_lru(radix_tree_node_cachep, xas->xa_lru, gfp); in xas_nomem()
307 if (!xas->xa_alloc) in xas_nomem()
309 xas->xa_alloc->parent = NULL; in xas_nomem()
310 XA_NODE_BUG_ON(xas->xa_alloc, !list_empty(&xas->xa_alloc->private_list)); in xas_nomem()
338 xas->xa_alloc = kmem_cache_alloc_lru(radix_tree_node_cachep, xas->xa_lru, gfp); in __xas_nomem()
341 xas->xa_alloc = kmem_cache_alloc_lru(radix_tree_node_cachep, xas->xa_lru, gfp); in __xas_nomem()
343 if (!xas->xa_alloc) in __xas_nomem()
345 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 …]
/Linux-v6.6/Documentation/translations/zh_CN/core-api/
Dxarray.rst118 你可以调用xa_alloc()将条目存储在XArray中一个未使用的索引上。如果你需要从中断上下文中修改数组,你
135 xa_store(), xa_cmpxchg(), xa_alloc(), xa_reserve()和xa_insert()函数接受一个gfp_t参数,以
176 * xa_alloc()
/Linux-v6.6/drivers/gpu/drm/tegra/
Duapi.c135 err = xa_alloc(&fpriv->contexts, &args->context, context, XA_LIMIT(1, U32_MAX), in tegra_drm_ioctl_channel_open()
252 err = xa_alloc(&context->mappings, &args->mapping, mapping, XA_LIMIT(1, U32_MAX), in tegra_drm_ioctl_channel_map()
/Linux-v6.6/drivers/gpu/drm/lima/
Dlima_ctx.c26 err = xa_alloc(&mgr->handles, id, ctx, xa_limit_32b, GFP_KERNEL); in lima_ctx_create()
/Linux-v6.6/drivers/gpu/drm/i915/gem/selftests/
Dmock_context.c97 err = xa_alloc(&fpriv->context_xa, &id, NULL, xa_limit_32b, GFP_KERNEL); in live_context()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dpost_act.c131 err = xa_alloc(&post_act->ids, &handle->id, post_attr, in mlx5e_tc_post_act_add()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Dirq_affinity.c54 err = xa_alloc(&pool->irqs, &irq_index, NULL, pool->xa_num_irqs, GFP_KERNEL); in irq_pool_request_irq()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_port_range.c62 err = xa_alloc(&pr_core->prr_xa, &prr->index, prr, pr_core->prr_ids, in mlxsw_sp_port_range_reg_create()
/Linux-v6.6/include/linux/
Dxarray.h867 static inline __must_check int xa_alloc(struct xarray *xa, u32 *id, in xa_alloc() function
1352 struct xa_node *xa_alloc; member
1373 .xa_alloc = NULL, \
/Linux-v6.6/drivers/dma-buf/
Ddma-heap.c245 ret = xa_alloc(&dma_heap_minors, &minor, heap, in dma_heap_add()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
Dmapping.c64 err = xa_alloc(&ctx->xarray, &mi->id, mi, XA_LIMIT(1, ctx->max_id), in mapping_add()
/Linux-v6.6/drivers/net/ethernet/intel/ice/
Dice_irq.c73 ret = xa_alloc(&pf->irq_tracker.entries, &index, entry, limit, in ice_get_irq_res()
Dice_idc.c378 ret = xa_alloc(&ice_aux_id, &pf->aux_idx, NULL, XA_LIMIT(1, INT_MAX), in ice_init_rdma()
/Linux-v6.6/drivers/platform/x86/intel/pmt/
Dclass.c246 ret = xa_alloc(ns->xa, &entry->devid, entry, PMT_XA_LIMIT, GFP_KERNEL); in intel_pmt_dev_register()
/Linux-v6.6/drivers/cdx/
Dcdx.c523 ret = xa_alloc(&cdx_controllers, &cdx->id, cdx, in cdx_register_controller()
/Linux-v6.6/drivers/platform/x86/intel/
Dvsec.c173 ret = xa_alloc(&auxdev_array, &id, intel_vsec_dev, PMT_XA_LIMIT, in intel_vsec_add_aux()
/Linux-v6.6/drivers/tty/serial/
Dliteuart.c311 ret = xa_alloc(&liteuart_array, &dev_id, uart, limit, GFP_KERNEL); in liteuart_probe()
/Linux-v6.6/drivers/iommu/iommufd/
Dmain.c62 rc = xa_alloc(&ictx->objects, &obj->id, XA_ZERO_ENTRY, in _iommufd_object_alloc()
/Linux-v6.6/drivers/gpu/drm/i915/gem/
Di915_gem_context.c322 ret = xa_alloc(&fpriv->context_xa, id, NULL, xa_limit_32b, GFP_KERNEL); in proto_context_register_locked()
1818 err = xa_alloc(&file_priv->vm_xa, &id, &ppgtt->vm, in i915_gem_vm_create_ioctl()
1875 err = xa_alloc(&file_priv->vm_xa, &id, vm, xa_limit_32b, GFP_KERNEL); in get_ppgtt()
2304 ret = xa_alloc(&ext_data.fpriv->context_xa, &id, NULL, in i915_gem_context_create_ioctl()
/Linux-v6.6/drivers/iommu/arm/arm-smmu-v3/
Darm-smmu-v3-sva.c68 ret = xa_alloc(&arm_smmu_asid_xa, &new_asid, cd, in arm_smmu_share_asid()
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/crypto/
Dipsec.c487 err = xa_alloc(&nn->xa_ipsec, &saidx, x, in nfp_net_xfrm_add_state()
/Linux-v6.6/mm/
Dlist_lru.c542 if (xas.xa_alloc) in memcg_list_lru_alloc()
/Linux-v6.6/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()
/Linux-v6.6/drivers/misc/uacce/
Duacce.c524 ret = xa_alloc(&uacce_xa, &uacce->dev_id, uacce, xa_limit_32b, in uacce_alloc()

12