/linux-6.1.9/lib/ |
D | xarray.c | 272 struct xa_node *next, *node = xas->xa_alloc; in xas_destroy() 278 xas->xa_alloc = node = next; in xas_destroy() 308 xas->xa_alloc = kmem_cache_alloc_lru(radix_tree_node_cachep, xas->xa_lru, gfp); in xas_nomem() 309 if (!xas->xa_alloc) in xas_nomem() 311 xas->xa_alloc->parent = NULL; in xas_nomem() 312 XA_NODE_BUG_ON(xas->xa_alloc, !list_empty(&xas->xa_alloc->private_list)); in xas_nomem() 340 xas->xa_alloc = kmem_cache_alloc_lru(radix_tree_node_cachep, xas->xa_lru, gfp); in __xas_nomem() 343 xas->xa_alloc = kmem_cache_alloc_lru(radix_tree_node_cachep, xas->xa_lru, gfp); in __xas_nomem() 345 if (!xas->xa_alloc) in __xas_nomem() 347 xas->xa_alloc->parent = NULL; in __xas_nomem() [all …]
|
D | test_xarray.c | 55 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-6.1.9/Documentation/translations/zh_CN/core-api/ |
D | xarray.rst | 118 你可以调用xa_alloc()将条目存储在XArray中一个未使用的索引上。如果你需要从中断上下文中修改数组,你 135 xa_store(), xa_cmpxchg(), xa_alloc(), xa_reserve()和xa_insert()函数接受一个gfp_t参数,以 176 * xa_alloc()
|
/linux-6.1.9/drivers/iommu/ |
D | ioasid.c | 81 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()
|
/linux-6.1.9/drivers/gpu/drm/tegra/ |
D | uapi.c | 135 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-6.1.9/drivers/gpu/drm/lima/ |
D | lima_ctx.c | 26 err = xa_alloc(&mgr->handles, id, ctx, xa_limit_32b, GFP_KERNEL); in lima_ctx_create()
|
/linux-6.1.9/drivers/gpu/drm/i915/gem/selftests/ |
D | mock_context.c | 97 err = xa_alloc(&fpriv->context_xa, &id, NULL, xa_limit_32b, GFP_KERNEL); in live_context()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
D | post_act.c | 138 err = xa_alloc(&post_act->ids, &handle->id, post_attr, in mlx5e_tc_post_act_add()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | irq_affinity.c | 57 err = xa_alloc(&pool->irqs, &irq_index, NULL, pool->xa_num_irqs, GFP_KERNEL); in irq_pool_request_irq()
|
/linux-6.1.9/include/linux/ |
D | xarray.h | 864 static inline __must_check int xa_alloc(struct xarray *xa, u32 *id, in xa_alloc() function 1334 struct xa_node *xa_alloc; member 1355 .xa_alloc = NULL, \
|
/linux-6.1.9/drivers/dma-buf/ |
D | dma-heap.c | 245 ret = xa_alloc(&dma_heap_minors, &minor, heap, in dma_heap_add()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | mapping.c | 64 err = xa_alloc(&ctx->xarray, &mi->id, mi, XA_LIMIT(1, ctx->max_id), in mapping_add()
|
/linux-6.1.9/drivers/tty/serial/ |
D | liteuart.c | 264 ret = xa_alloc(&liteuart_array, &dev_id, uart, limit, GFP_KERNEL); in liteuart_probe()
|
/linux-6.1.9/drivers/platform/x86/intel/pmt/ |
D | class.c | 247 ret = xa_alloc(ns->xa, &entry->devid, entry, PMT_XA_LIMIT, GFP_KERNEL); in intel_pmt_dev_register()
|
/linux-6.1.9/drivers/platform/x86/intel/ |
D | vsec.c | 173 ret = xa_alloc(&auxdev_array, &id, intel_vsec_dev, PMT_XA_LIMIT, in intel_vsec_add_aux()
|
/linux-6.1.9/drivers/iommu/arm/arm-smmu-v3/ |
D | arm-smmu-v3-sva.c | 68 ret = xa_alloc(&arm_smmu_asid_xa, &new_asid, cd, in arm_smmu_share_asid()
|
/linux-6.1.9/drivers/gpu/drm/i915/gem/ |
D | i915_gem_context.c | 322 ret = xa_alloc(&fpriv->context_xa, id, NULL, xa_limit_32b, GFP_KERNEL); in proto_context_register_locked() 1815 err = xa_alloc(&file_priv->vm_xa, &id, &ppgtt->vm, in i915_gem_vm_create_ioctl() 1864 err = xa_alloc(&file_priv->vm_xa, &id, vm, xa_limit_32b, GFP_KERNEL); in get_ppgtt() 2293 ret = xa_alloc(&ext_data.fpriv->context_xa, &id, NULL, in i915_gem_context_create_ioctl()
|
/linux-6.1.9/drivers/misc/uacce/ |
D | uacce.c | 471 ret = xa_alloc(&uacce_xa, &uacce->dev_id, uacce, xa_limit_32b, in uacce_alloc()
|
/linux-6.1.9/mm/ |
D | list_lru.c | 542 if (xas.xa_alloc) in memcg_list_lru_alloc()
|
/linux-6.1.9/Documentation/core-api/ |
D | xarray.rst | 147 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-6.1.9/drivers/fpga/ |
D | intel-m10-bmc-sec-update.c | 569 ret = xa_alloc(&fw_upload_xa, &sec->fw_name_id, sec, in m10bmc_sec_probe()
|
/linux-6.1.9/drivers/infiniband/core/ |
D | rdma_core.c | 303 return xa_alloc(&uobj->ufile->idr, &uobj->id, NULL, xa_limit_32b, in idr_add_uobj()
|
/linux-6.1.9/drivers/gpu/drm/scheduler/ |
D | sched_main.c | 679 ret = xa_alloc(&job->dependencies, &id, fence, xa_limit_32b, GFP_KERNEL); in drm_sched_job_add_dependency()
|
/linux-6.1.9/drivers/base/ |
D | memory.c | 1028 ret = xa_alloc(&memory_groups, &mgid, new_group, xa_limit_31b, in memory_group_register()
|
/linux-6.1.9/drivers/block/rnbd/ |
D | rnbd-srv.c | 415 error = xa_alloc(&srv_sess->index_idr, &sess_dev->device_id, sess_dev, in rnbd_sess_dev_alloc()
|