Home
last modified time | relevance | path

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

123

/openbmc/linux/Documentation/translations/zh_CN/core-api/
H A 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()
/openbmc/linux/drivers/infiniband/core/
H A Drestrack.c198 ret = xa_insert(&rt->xa, res->id, res, GFP_KERNEL); in rdma_restrack_add()
206 ret = xa_insert(&rt->xa, counter->id, res, GFP_KERNEL); in rdma_restrack_add()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_definer.c91 ret = xa_insert(&dmn->definers_xa, definer_obj->id, definer_obj, GFP_KERNEL); in dr_definer_create_obj()
H A Ddr_domain.c295 ret = xa_insert(&caps->vports.vports_caps_xa, vport, in dr_domain_add_vport_cap()
/openbmc/linux/sound/soc/sof/
H A Dipc4-loader.c156 ret = xa_insert(&ipc4_data->fw_lib_xa, 0, fw_lib, GFP_KERNEL); in sof_ipc4_fw_parse_basefw_ext_man()
242 ret = xa_insert(&ipc4_data->fw_lib_xa, lib_id, fw_lib, GFP_KERNEL); in sof_ipc4_load_library_by_uuid()
/openbmc/linux/drivers/pci/
H A Ddoe.c438 rc = xa_insert(&doe_mb->prots, xa_idx++, in pci_doe_cache_protocols()
697 rc = xa_insert(&pdev->doe_mbs, offset, doe_mb, GFP_KERNEL); in pci_doe_init()
/openbmc/linux/Documentation/core-api/
H A 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()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_eswitch_br.c719 err = xa_insert(&port->vlans, vlan->vid, vlan, GFP_KERNEL); in ice_eswitch_br_vlan_create()
941 err = xa_insert(&bridge->ports, br_port->vsi_idx, br_port, GFP_KERNEL); in ice_eswitch_br_vf_repr_port_init()
966 err = xa_insert(&bridge->ports, br_port->vsi_idx, br_port, GFP_KERNEL); in ice_eswitch_br_uplink_port_init()
/openbmc/linux/drivers/gpu/drm/tegra/
H A Duapi.c315 err = xa_insert(&fpriv->syncpoints, args->id, sp, GFP_KERNEL); in tegra_drm_ioctl_syncpoint_allocate()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
H A Ddev.c136 err = xa_insert(&table->devices, sf_index, sf_dev, GFP_KERNEL); in mlx5_sf_dev_add()
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dnetdev_rx.c437 return xa_insert(&rx->dev_tbl, id, data, GFP_NOWAIT); in hfi1_netdev_add_data()
/openbmc/linux/lib/
H A 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()
/openbmc/linux/drivers/cxl/core/
H A Dport.c862 rc = xa_insert(&cxl_root_buses, (unsigned long)uport_dev, bus, in devm_cxl_register_pci_bus()
929 rc = xa_insert(&port->dports, (unsigned long)dport->dport_dev, dport, in add_dport()
1135 rc = xa_insert(&port->endpoints, (unsigned long)new->ep, new, in add_ep()
/openbmc/linux/drivers/iommu/arm/arm-smmu-v3/
H A Darm-smmu-v3-sva.c124 err = xa_insert(&arm_smmu_asid_xa, asid, cd, GFP_KERNEL); in arm_smmu_alloc_shared_cd()
/openbmc/linux/drivers/dax/
H A Dsuper.c64 return xa_insert(&dax_hosts, (unsigned long)disk, dax_dev, GFP_KERNEL); in dax_add_host()
/openbmc/linux/net/qrtr/
H A Daf_qrtr.c744 rc = xa_insert(&qrtr_ports, 0, ipc, GFP_KERNEL); in qrtr_port_assign()
746 rc = xa_insert(&qrtr_ports, *port, ipc, GFP_KERNEL); in qrtr_port_assign()
/openbmc/linux/drivers/firmware/arm_scmi/
H A Dperf.c366 ret = xa_insert(&dom->opps_by_idx, opp->level_index, opp, in process_response_opp_v4()
373 ret = xa_insert(&dom->opps_by_lvl, opp->perf, opp, GFP_KERNEL); in process_response_opp_v4()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Ddevlink.c54 return xa_insert(&table->port_indices, sf->port_index, sf, GFP_KERNEL); in mlx5_sf_id_insert()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Ddebugfs.c200 err = xa_insert(stats_xa, opcode, stats, GFP_KERNEL); in mlx5_cmdif_alloc_stats()
H A Den_rep.c430 err = xa_insert(&rep_sq->sq_peer, peer_rule_idx, sq_peer, GFP_KERNEL); in mlx5e_sqs2vport_add_peers_rules()
1645 err = xa_insert(&rep_sq->sq_peer, i, sq_peer, GFP_KERNEL); in mlx5e_vport_rep_event_pair()
/openbmc/linux/drivers/target/
H A Dtarget_core_tpg.c449 ret = xa_insert(&tpg_xa, se_tpg->tpg_rtpi, se_tpg, GFP_KERNEL); in target_tpg_register_rtpi()
/openbmc/linux/block/partitions/
H A Dcore.c396 err = xa_insert(&disk->part_tbl, partno, bdev, GFP_KERNEL); in add_partition()
/openbmc/linux/drivers/dma/idxd/
H A Dcdev.c272 rc = xa_insert(&wq->upasid_xa, pasid, ctx, GFP_KERNEL); in idxd_cdev_open()
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Ddm.c259 err = xa_insert(&dm->ops, op, op_entry, GFP_KERNEL); in UVERBS_HANDLER()
/openbmc/linux/drivers/vfio/pci/
H A Dvfio_pci_intrs.c75 ret = xa_insert(&vdev->ctx, index, ctx, GFP_KERNEL_ACCOUNT); in vfio_irq_ctx_alloc()

123