/openbmc/linux/Documentation/translations/zh_CN/core-api/ |
H A 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()
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | restrack.c | 198 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 D | dr_definer.c | 91 ret = xa_insert(&dmn->definers_xa, definer_obj->id, definer_obj, GFP_KERNEL); in dr_definer_create_obj()
|
H A D | dr_domain.c | 295 ret = xa_insert(&caps->vports.vports_caps_xa, vport, in dr_domain_add_vport_cap()
|
/openbmc/linux/sound/soc/sof/ |
H A D | ipc4-loader.c | 156 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 D | doe.c | 438 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 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()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_eswitch_br.c | 719 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 D | uapi.c | 315 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 D | dev.c | 136 err = xa_insert(&table->devices, sf_index, sf_dev, GFP_KERNEL); in mlx5_sf_dev_add()
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | netdev_rx.c | 437 return xa_insert(&rx->dev_tbl, id, data, GFP_NOWAIT); in hfi1_netdev_add_data()
|
/openbmc/linux/lib/ |
H A 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()
|
/openbmc/linux/drivers/cxl/core/ |
H A D | port.c | 862 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 D | arm-smmu-v3-sva.c | 124 err = xa_insert(&arm_smmu_asid_xa, asid, cd, GFP_KERNEL); in arm_smmu_alloc_shared_cd()
|
/openbmc/linux/drivers/dax/ |
H A D | super.c | 64 return xa_insert(&dax_hosts, (unsigned long)disk, dax_dev, GFP_KERNEL); in dax_add_host()
|
/openbmc/linux/net/qrtr/ |
H A D | af_qrtr.c | 744 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 D | perf.c | 366 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 D | devlink.c | 54 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 D | debugfs.c | 200 err = xa_insert(stats_xa, opcode, stats, GFP_KERNEL); in mlx5_cmdif_alloc_stats()
|
H A D | en_rep.c | 430 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 D | target_core_tpg.c | 449 ret = xa_insert(&tpg_xa, se_tpg->tpg_rtpi, se_tpg, GFP_KERNEL); in target_tpg_register_rtpi()
|
/openbmc/linux/block/partitions/ |
H A D | core.c | 396 err = xa_insert(&disk->part_tbl, partno, bdev, GFP_KERNEL); in add_partition()
|
/openbmc/linux/drivers/dma/idxd/ |
H A D | cdev.c | 272 rc = xa_insert(&wq->upasid_xa, pasid, ctx, GFP_KERNEL); in idxd_cdev_open()
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | dm.c | 259 err = xa_insert(&dm->ops, op, op_entry, GFP_KERNEL); in UVERBS_HANDLER()
|
/openbmc/linux/drivers/vfio/pci/ |
H A D | vfio_pci_intrs.c | 75 ret = xa_insert(&vdev->ctx, index, ctx, GFP_KERNEL_ACCOUNT); in vfio_irq_ctx_alloc()
|