Home
last modified time | relevance | path

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

123

/linux/Documentation/translations/zh_CN/core-api/
H A Dxarray.rst166 * xa_insert()
/linux/virt/lib/
H A Dirqbypass.c107 ret = xa_insert(&producers, index, producer, GFP_KERNEL); in irq_bypass_register_producer()
173 ret = xa_insert(&consumers, index, consumer, GFP_KERNEL); in irq_bypass_register_consumer()
/linux/drivers/infiniband/core/
H A Drestrack.c205 ret = xa_insert(&rt->xa, res->id, res, GFP_KERNEL); in rdma_restrack_add()
216 ret = xa_insert(&rt->xa, counter->id, res, GFP_KERNEL); in rdma_restrack_add()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dvport.c42 ret = xa_insert(&ctx->vports.vport_gvmi_xa, vport, in hws_vport_add_gvmi()
H A Dfs_hws.c214 err = xa_insert(dests_xa, ft->id, dest_ft_action, GFP_KERNEL); in mlx5_fs_add_flow_table_dest_action()
442 err = xa_insert(dests_xa, idx, dest, GFP_KERNEL); in mlx5_fs_get_dest_action_vport()
1252 err = xa_insert(pr_pools, index, pr_pool, GFP_KERNEL); in mlx5_fs_get_pr_encap_pool()
1443 err = xa_insert(mh_pools, index, pool, GFP_KERNEL); in mlx5_fs_create_mh_pool()
/linux/drivers/net/phy/
H A Dphy_link_topology.c70 ret = xa_insert(&topo->phys, phy->phyindex, pdn, GFP_KERNEL); in phy_link_topo_add_phy()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_adapter.c74 err = xa_insert(&ice_adapters, index, NULL, GFP_KERNEL); in ice_adapter_get()
H A Dice_eswitch.c204 if (xa_insert(&pf->eswitch.reprs, repr->id, repr, GFP_KERNEL)) in ice_eswitch_update_repr()
478 err = xa_insert(&pf->eswitch.reprs, repr->id, repr, GFP_KERNEL); in ice_eswitch_attach()
H A 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/drivers/base/
H A Dauxiliary_sysfs.c73 ret = xa_insert(&auxdev->sysfs.irqs, irq, info, GFP_KERNEL); in auxiliary_device_sysfs_irq_add()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_definer.c91 ret = xa_insert(&dmn->definers_xa, definer_obj->id, definer_obj, GFP_KERNEL); in dr_definer_create_obj()
/linux/fs/xfs/libxfs/
H A Dxfs_group.c207 error = xa_insert(&mp->m_groups[type].xa, index, xg, GFP_KERNEL); in xfs_group_insert()
/linux/drivers/dpll/
H A 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()
822 ret = xa_insert(&pin->ref_sync_pins, ref_sync_pin->id, in dpll_pin_ref_sync_pair_add()
/linux/sound/soc/sof/
H A Dipc4-loader.c164 ret = xa_insert(&ipc4_data->fw_lib_xa, 0, fw_lib, GFP_KERNEL); in sof_ipc4_fw_parse_basefw_ext_man()
247 ret = xa_insert(&ipc4_data->fw_lib_xa, lib_id, fw_lib, GFP_KERNEL); in sof_ipc4_load_library()
/linux/drivers/net/ethernet/intel/ice/devlink/
H A Dport.c839 err = xa_insert(&pf->sf_nums, new_attr->sfnum, NULL, GFP_KERNEL); in ice_reserve_sf_num()
941 err = xa_insert(&pf->dyn_ports, vsi->idx, dyn_port, GFP_KERNEL); in ice_alloc_dynamic_port()
/linux/drivers/pci/
H A Ddoe.c609 rc = xa_insert(&doe_mb->feats, xa_idx++, in pci_doe_cache_features()
868 rc = xa_insert(&pdev->doe_mbs, offset, doe_mb, GFP_KERNEL); in pci_doe_init()
/linux/Documentation/core-api/
H A Dxarray.rst83 at that index is ``NULL``, you can use xa_insert() which
107 Using xa_insert() on a reserved entry will fail.
154 Using xa_store(), xa_cmpxchg() or xa_insert() will
174 xa_reserve() and xa_insert() functions take a gfp_t
209 * xa_insert()
/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()
/linux/drivers/firmware/arm_scmi/
H A 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/drivers/infiniband/hw/hfi1/
H A Dnetdev_rx.c442 return xa_insert(&rx->dev_tbl, id, data, GFP_NOWAIT); in hfi1_netdev_add_data()
/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()
/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()
508 /* xa_insert treats it as busy */ in check_reserve()
510 XA_BUG_ON(xa, xa_insert(xa, 12345678, xa_mk_value(12345678), 0) != in check_reserve()
/linux/block/
H A Dblk-mq-sched.c527 if (xa_insert(et_table, q->id, et, gfp)) in blk_mq_alloc_sched_tags_batch()
/linux/drivers/dax/
H A Dsuper.c64 return xa_insert(&dax_hosts, (unsigned long)disk, dax_dev, GFP_KERNEL); in dax_add_host()
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Ddevlink.c47 return xa_insert(&table->function_ids, sf->hw_fn_id, sf, GFP_KERNEL); in mlx5_sf_function_id_insert()

123