Home
last modified time | relevance | path

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

123

/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()
/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/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/base/
H A Dauxiliary_sysfs.c73 ret = xa_insert(&auxdev->sysfs.irqs, irq, info, GFP_KERNEL); in auxiliary_device_sysfs_irq_add()
/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/drivers/net/ethernet/intel/ice/
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/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/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.c607 rc = xa_insert(&doe_mb->feats, xa_idx++, in pci_doe_cache_features()
866 rc = xa_insert(&pdev->doe_mbs, offset, doe_mb, GFP_KERNEL); in pci_doe_init()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
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()
443 err = xa_insert(dests_xa, idx, dest, GFP_KERNEL); in mlx5_fs_get_dest_action_vport()
1248 err = xa_insert(pr_pools, index, pr_pool, GFP_KERNEL); in mlx5_fs_get_pr_encap_pool()
1439 err = xa_insert(mh_pools, index, pool, GFP_KERNEL); in mlx5_fs_create_mh_pool()
/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/gpu/drm/tegra/
H A Duapi.c318 err = xa_insert(&fpriv->syncpoints, args->id, sp, GFP_KERNEL); in tegra_drm_ioctl_syncpoint_allocate()
/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()
510 XA_BUG_ON(xa, xa_insert(xa, 12345678, xa_mk_value(12345678), 0) != in check_reserve()
/linux/drivers/dax/
H A Dsuper.c64 return xa_insert(&dax_hosts, (unsigned long)disk, dax_dev, GFP_KERNEL); in dax_add_host()
/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()
/linux/block/
H A Dblk-mq-sched.c495 if (xa_insert(elv_tbl, q->id, ctx, GFP_KERNEL)) { in blk_mq_alloc_sched_ctx_batch()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Ddebugfs.c210 err = xa_insert(stats_xa, opcode, stats, GFP_KERNEL); in mlx5_cmdif_alloc_stats()
/linux/block/partitions/
H A Dcore.c385 err = xa_insert(&disk->part_tbl, partno, bdev, GFP_KERNEL); in add_partition()
/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()
/linux/drivers/cxl/core/
H A Dport.c1002 rc = xa_insert(&cxl_root_buses, (unsigned long)uport_dev, bus, in devm_cxl_register_pci_bus()
1069 rc = xa_insert(&port->dports, (unsigned long)dport->dport_dev, dport, in add_dport()
1292 return xa_insert(&port->endpoints, (unsigned long)new->ep, in add_ep()
/linux/drivers/dma/idxd/
H A Dcdev.c269 rc = xa_insert(&wq->upasid_xa, pasid, ctx, GFP_KERNEL); in idxd_cdev_open()

123