Home
last modified time | relevance | path

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

123

/linux-6.12.1/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.12.1/drivers/infiniband/core/
Drestrack.c203 ret = xa_insert(&rt->xa, res->id, res, GFP_KERNEL); in rdma_restrack_add()
214 ret = xa_insert(&rt->xa, counter->id, res, GFP_KERNEL); in rdma_restrack_add()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
Dmlx5hws_vport.c42 ret = xa_insert(&ctx->vports.vport_gvmi_xa, vport, in hws_vport_add_gvmi()
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_adapter.c71 err = xa_insert(&ice_adapters, index, NULL, GFP_KERNEL); in ice_adapter_get()
Dice_eswitch.c209 if (xa_insert(&pf->eswitch.reprs, repr->id, repr, GFP_KERNEL)) in ice_eswitch_update_repr()
479 err = xa_insert(&pf->eswitch.reprs, repr->id, repr, GFP_KERNEL); in ice_eswitch_attach()
Dice_eswitch_br.c719 err = xa_insert(&port->vlans, vlan->vid, vlan, GFP_KERNEL); in ice_eswitch_br_vlan_create()
947 err = xa_insert(&bridge->ports, br_port->vsi_idx, br_port, GFP_KERNEL); in ice_eswitch_br_vf_repr_port_init()
972 err = xa_insert(&bridge->ports, br_port->vsi_idx, br_port, GFP_KERNEL); in ice_eswitch_br_uplink_port_init()
/linux-6.12.1/drivers/net/phy/
Dphy_link_topology.c70 ret = xa_insert(&topo->phys, phy->phyindex, pdn, GFP_KERNEL); in phy_link_topo_add_phy()
/linux-6.12.1/drivers/base/
Dauxiliary_sysfs.c73 ret = xa_insert(&auxdev->sysfs.irqs, irq, info, GFP_KERNEL); in auxiliary_device_sysfs_irq_add()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_definer.c91 ret = xa_insert(&dmn->definers_xa, definer_obj->id, definer_obj, GFP_KERNEL); in dr_definer_create_obj()
/linux-6.12.1/sound/soc/sof/
Dipc4-loader.c164 ret = xa_insert(&ipc4_data->fw_lib_xa, 0, fw_lib, GFP_KERNEL); in sof_ipc4_fw_parse_basefw_ext_man()
250 ret = xa_insert(&ipc4_data->fw_lib_xa, lib_id, fw_lib, GFP_KERNEL); in sof_ipc4_load_library_by_uuid()
/linux-6.12.1/drivers/pci/
Ddoe.c444 rc = xa_insert(&doe_mb->prots, xa_idx++, in pci_doe_cache_protocols()
703 rc = xa_insert(&pdev->doe_mbs, offset, doe_mb, GFP_KERNEL); in pci_doe_init()
/linux-6.12.1/drivers/net/ethernet/intel/ice/devlink/
Ddevlink_port.c837 err = xa_insert(&pf->sf_nums, new_attr->sfnum, NULL, GFP_KERNEL); in ice_reserve_sf_num()
939 err = xa_insert(&pf->dyn_ports, vsi->idx, dyn_port, GFP_KERNEL); in ice_alloc_dynamic_port()
/linux-6.12.1/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.12.1/drivers/firmware/arm_scmi/
Dperf.c388 ret = xa_insert(&dom->opps_by_lvl, opp->perf, opp, GFP_KERNEL); in process_response_opp()
410 ret = xa_insert(&dom->opps_by_lvl, opp->perf, opp, GFP_KERNEL); in process_response_opp_v4()
422 ret = xa_insert(&dom->opps_by_idx, opp->level_index, opp, in process_response_opp_v4()
/linux-6.12.1/drivers/dpll/
Ddpll_core.c100 ret = xa_insert(xa_pins, pin->pin_idx, ref, GFP_KERNEL); in dpll_xa_ref_pin_add()
181 ret = xa_insert(xa_dplls, dpll->id, ref, GFP_KERNEL); in dpll_xa_ref_dpll_add()
/linux-6.12.1/drivers/gpu/drm/tegra/
Duapi.c315 err = xa_insert(&fpriv->syncpoints, args->id, sp, GFP_KERNEL); in tegra_drm_ioctl_syncpoint_allocate()
/linux-6.12.1/drivers/infiniband/hw/hfi1/
Dnetdev_rx.c442 return xa_insert(&rx->dev_tbl, id, data, GFP_NOWAIT); in hfi1_netdev_add_data()
/linux-6.12.1/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.12.1/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()
510 XA_BUG_ON(xa, xa_insert(xa, 12345678, xa_mk_value(12345678), 0) != in check_reserve()
/linux-6.12.1/drivers/dax/
Dsuper.c65 return xa_insert(&dax_hosts, (unsigned long)disk, dax_dev, GFP_KERNEL); in dax_add_host()
/linux-6.12.1/net/qrtr/
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()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/sf/
Ddevlink.c47 return xa_insert(&table->function_ids, sf->hw_fn_id, sf, GFP_KERNEL); in mlx5_sf_function_id_insert()
/linux-6.12.1/drivers/cxl/core/
Dport.c992 rc = xa_insert(&cxl_root_buses, (unsigned long)uport_dev, bus, in devm_cxl_register_pci_bus()
1068 rc = xa_insert(&port->dports, (unsigned long)dport->dport_dev, dport, in add_dport()
1277 return xa_insert(&port->endpoints, (unsigned long)new->ep, in add_ep()
/linux-6.12.1/drivers/target/
Dtarget_core_tpg.c449 ret = xa_insert(&tpg_xa, se_tpg->tpg_rtpi, se_tpg, GFP_KERNEL); in target_tpg_register_rtpi()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Ddebugfs.c210 err = xa_insert(stats_xa, opcode, stats, GFP_KERNEL); in mlx5_cmdif_alloc_stats()

123