/linux-6.1.9/Documentation/translations/zh_CN/core-api/ |
D | xarray.rst | 72 如果你只想在某个索引的当前条目为 ``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/ |
D | restrack.c | 247 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/ |
D | xarray.rst | 81 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/ |
D | uapi.c | 315 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/ |
D | dev.c | 136 err = xa_insert(&table->devices, sf_index, sf_dev, GFP_KERNEL); in mlx5_sf_dev_add()
|
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | netdev_rx.c | 437 return xa_insert(&rx->dev_tbl, id, data, GFP_NOWAIT); in hfi1_netdev_add_data()
|
/linux-6.1.9/lib/ |
D | test_xarray.c | 47 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/ |
D | pci.c | 421 if (xa_insert(&cxlds->doe_mbs, off, doe_mb, GFP_KERNEL)) { in devm_cxl_pci_create_doe()
|
D | pmem.c | 380 rc = xa_insert(&cxl_nvd->pmem_regions, (unsigned long)cxlr_pmem, in cxl_nvdimm_add_region()
|
/linux-6.1.9/drivers/cxl/core/ |
D | port.c | 736 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()
|
D | region.c | 681 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/ |
D | doe.c | 375 rc = xa_insert(&doe_mb->prots, xa_idx++, in pci_doe_cache_protocols()
|
/linux-6.1.9/drivers/iommu/arm/arm-smmu-v3/ |
D | arm-smmu-v3-sva.c | 124 err = xa_insert(&arm_smmu_asid_xa, asid, cd, GFP_KERNEL); in arm_smmu_alloc_shared_cd()
|
/linux-6.1.9/drivers/dax/ |
D | super.c | 64 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/ |
D | dr_domain.c | 193 ret = xa_insert(&caps->vports.vports_caps_xa, vport, in dr_domain_add_vport_cap()
|
/linux-6.1.9/net/qrtr/ |
D | af_qrtr.c | 735 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/ |
D | devlink.c | 55 return xa_insert(&table->port_indices, sf->port_index, sf, GFP_KERNEL); in mlx5_sf_id_insert()
|
/linux-6.1.9/block/partitions/ |
D | core.c | 402 err = xa_insert(&disk->part_tbl, partno, bdev, GFP_KERNEL); in add_partition()
|
/linux-6.1.9/drivers/infiniband/hw/mlx5/ |
D | dm.c | 259 err = xa_insert(&dm->ops, op, op_entry, GFP_KERNEL); in UVERBS_HANDLER()
|
/linux-6.1.9/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_vema.c | 210 rc = xa_insert(&port->vports, vport_num, adapter, GFP_KERNEL); in vema_add_vport()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | pagealloc.c | 90 err = xa_insert(&dev->priv.page_root_xa, function, root, GFP_KERNEL); in page_root_per_function()
|
/linux-6.1.9/kernel/irq/ |
D | msi.c | 66 ret = xa_insert(&md->__store, index, desc, GFP_KERNEL); in msi_insert_desc()
|
/linux-6.1.9/arch/x86/kernel/cpu/sgx/ |
D | ioctl.c | 299 ret = xa_insert(&encl->page_array, PFN_DOWN(encl_page->desc), in sgx_encl_add_page()
|
D | encl.c | 359 ret = xa_insert(&encl->page_array, PFN_DOWN(encl_page->desc), in sgx_encl_eaug_page()
|
/linux-6.1.9/include/linux/ |
D | xarray.h | 774 static inline int __must_check xa_insert(struct xarray *xa, in xa_insert() function
|