| /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()
|
| /linux/virt/lib/ |
| H A D | irqbypass.c | 107 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 D | restrack.c | 205 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 D | phy_link_topology.c | 70 ret = xa_insert(&topo->phys, phy->phyindex, pdn, GFP_KERNEL); in phy_link_topo_add_phy()
|
| /linux/drivers/base/ |
| H A D | auxiliary_sysfs.c | 73 ret = xa_insert(&auxdev->sysfs.irqs, irq, info, GFP_KERNEL); in auxiliary_device_sysfs_irq_add()
|
| /linux/drivers/dpll/ |
| H A D | dpll_core.c | 100 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 D | ice_eswitch.c | 204 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 D | ice_eswitch_br.c | 719 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 D | xfs_group.c | 207 error = xa_insert(&mp->m_groups[type].xa, index, xg, GFP_KERNEL); in xfs_group_insert()
|
| /linux/sound/soc/sof/ |
| H A D | ipc4-loader.c | 164 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 D | port.c | 839 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 D | doe.c | 607 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 D | fs_hws.c | 214 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 D | perf.c | 388 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 D | netdev_rx.c | 442 return xa_insert(&rx->dev_tbl, id, data, GFP_NOWAIT); in hfi1_netdev_add_data()
|
| /linux/drivers/gpu/drm/tegra/ |
| H A D | uapi.c | 318 err = xa_insert(&fpriv->syncpoints, args->id, sp, GFP_KERNEL); in tegra_drm_ioctl_syncpoint_allocate()
|
| /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() 510 XA_BUG_ON(xa, xa_insert(xa, 12345678, xa_mk_value(12345678), 0) != in check_reserve()
|
| /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()
|
| /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()
|
| /linux/block/ |
| H A D | blk-mq-sched.c | 495 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 D | debugfs.c | 210 err = xa_insert(stats_xa, opcode, stats, GFP_KERNEL); in mlx5_cmdif_alloc_stats()
|
| /linux/block/partitions/ |
| H A D | core.c | 385 err = xa_insert(&disk->part_tbl, partno, bdev, GFP_KERNEL); in add_partition()
|
| /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()
|
| /linux/drivers/cxl/core/ |
| H A D | port.c | 1002 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 D | cdev.c | 269 rc = xa_insert(&wq->upasid_xa, pasid, ctx, GFP_KERNEL); in idxd_cdev_open()
|