Home
last modified time | relevance | path

Searched refs:xa_insert (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.1.9/Documentation/translations/zh_CN/core-api/
Dxarray.rst72 如果你只想在某个索引的当前条目为 ``NULL`` 时将一个新条目存储到该索引,你可以使用xa_insert(),
87 目上使用xa_insert()将会失败。
121 使用xa_store()、xa_cmpxchg()或xa_insert()也将标记该条目为正在分配。与普通的XArray不同,存储 ``NULL``
135 xa_store(), xa_cmpxchg(), xa_alloc(), xa_reserve()和xa_insert()函数接受一个gfp_t参数,以
166 * xa_insert()
/linux-6.1.9/drivers/infiniband/core/
Drestrack.c247 ret = xa_insert(&rt->xa, res->id, res, GFP_KERNEL); in rdma_restrack_add()
255 ret = xa_insert(&rt->xa, counter->id, res, GFP_KERNEL); in rdma_restrack_add()
/linux-6.1.9/Documentation/core-api/
Dxarray.rst81 at that index is ``NULL``, you can use xa_insert() which
105 Using xa_insert() on a reserved entry will fail.
152 Using xa_store(), xa_cmpxchg() or xa_insert() will
172 xa_reserve() and xa_insert() functions take a gfp_t
207 * xa_insert()
/linux-6.1.9/drivers/gpu/drm/tegra/
Duapi.c315 err = xa_insert(&fpriv->syncpoints, args->id, sp, GFP_KERNEL); in tegra_drm_ioctl_syncpoint_allocate()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
Ddev.c136 err = xa_insert(&table->devices, sf_index, sf_dev, GFP_KERNEL); in mlx5_sf_dev_add()
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dnetdev_rx.c437 return xa_insert(&rx->dev_tbl, id, data, GFP_NOWAIT); in hfi1_netdev_add_data()
/linux-6.1.9/lib/
Dtest_xarray.c47 XA_BUG_ON(xa, xa_insert(xa, index, xa_mk_index(index), in xa_insert_index()
412 XA_BUG_ON(xa, xa_insert(xa, 12345678, xa, GFP_KERNEL) != -EBUSY); in check_cmpxchg()
418 XA_BUG_ON(xa, xa_insert(xa, 5, FIVE, GFP_KERNEL) != -EBUSY); in check_cmpxchg()
420 XA_BUG_ON(xa, xa_insert(xa, 5, FIVE, GFP_KERNEL) == -EBUSY); in check_cmpxchg()
457 XA_BUG_ON(xa, xa_insert(xa, 12345678, xa_mk_value(12345678), 0) != in check_reserve()
/linux-6.1.9/drivers/cxl/
Dpci.c421 if (xa_insert(&cxlds->doe_mbs, off, doe_mb, GFP_KERNEL)) { in devm_cxl_pci_create_doe()
Dpmem.c380 rc = xa_insert(&cxl_nvd->pmem_regions, (unsigned long)cxlr_pmem, in cxl_nvdimm_add_region()
/linux-6.1.9/drivers/cxl/core/
Dport.c736 rc = xa_insert(&cxl_root_buses, (unsigned long)uport, bus, GFP_KERNEL); in devm_cxl_register_pci_bus()
826 rc = xa_insert(&port->dports, (unsigned long)new->dport, new, in add_dport()
950 rc = xa_insert(&port->endpoints, (unsigned long)new->ep, new, in add_ep()
Dregion.c681 rc = xa_insert(&port->regions, (unsigned long)cxlr, cxl_rr, GFP_KERNEL); in alloc_region_ref()
729 rc = xa_insert(&cxl_rr->endpoints, (unsigned long)cxled, ep, in cxl_rr_ep_add()
/linux-6.1.9/drivers/pci/
Ddoe.c375 rc = xa_insert(&doe_mb->prots, xa_idx++, in pci_doe_cache_protocols()
/linux-6.1.9/drivers/iommu/arm/arm-smmu-v3/
Darm-smmu-v3-sva.c124 err = xa_insert(&arm_smmu_asid_xa, asid, cd, GFP_KERNEL); in arm_smmu_alloc_shared_cd()
/linux-6.1.9/drivers/dax/
Dsuper.c64 return xa_insert(&dax_hosts, (unsigned long)disk, dax_dev, GFP_KERNEL); in dax_add_host()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_domain.c193 ret = xa_insert(&caps->vports.vports_caps_xa, vport, in dr_domain_add_vport_cap()
/linux-6.1.9/net/qrtr/
Daf_qrtr.c735 rc = xa_insert(&qrtr_ports, 0, ipc, GFP_KERNEL); in qrtr_port_assign()
737 rc = xa_insert(&qrtr_ports, *port, ipc, GFP_KERNEL); in qrtr_port_assign()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/sf/
Ddevlink.c55 return xa_insert(&table->port_indices, sf->port_index, sf, GFP_KERNEL); in mlx5_sf_id_insert()
/linux-6.1.9/block/partitions/
Dcore.c402 err = xa_insert(&disk->part_tbl, partno, bdev, GFP_KERNEL); in add_partition()
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Ddm.c259 err = xa_insert(&dm->ops, op, op_entry, GFP_KERNEL); in UVERBS_HANDLER()
/linux-6.1.9/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_vema.c210 rc = xa_insert(&port->vports, vport_num, adapter, GFP_KERNEL); in vema_add_vport()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Dpagealloc.c90 err = xa_insert(&dev->priv.page_root_xa, function, root, GFP_KERNEL); in page_root_per_function()
/linux-6.1.9/kernel/irq/
Dmsi.c66 ret = xa_insert(&md->__store, index, desc, GFP_KERNEL); in msi_insert_desc()
/linux-6.1.9/arch/x86/kernel/cpu/sgx/
Dioctl.c299 ret = xa_insert(&encl->page_array, PFN_DOWN(encl_page->desc), in sgx_encl_add_page()
Dencl.c359 ret = xa_insert(&encl->page_array, PFN_DOWN(encl_page->desc), in sgx_encl_eaug_page()
/linux-6.1.9/include/linux/
Dxarray.h774 static inline int __must_check xa_insert(struct xarray *xa, in xa_insert() function

12