| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | xarray.rst | 63 然后你可以用xa_store()来设置条目,用xa_load()来获取条目。xa_store将用新的条目覆盖任 64 何条目,并返回存储在该索引的上一个条目。你可以使用xa_erase()来代替调用xa_store()的 83 有时你需要确保对xa_store()的后续调用将不需要分配内存。xa_reserve()函数将在指定索引处存储 121 使用xa_store()、xa_cmpxchg()或xa_insert()也将标记该条目为正在分配。与普通的XArray不同,存储 ``NULL`` 135 xa_store(), xa_cmpxchg(), xa_alloc(), xa_reserve()和xa_insert()函数接受一个gfp_t参数,以 163 * xa_store()
|
| /linux/tools/testing/radix-tree/ |
| H A D | iteration_check_2.c | 43 xa_store(xa, i, xa_mk_value(i), GFP_KERNEL); in throbber() 64 xa_store(&array, 100, xa_mk_value(100), GFP_KERNEL); in iteration_test2()
|
| /linux/drivers/base/ |
| H A D | auxiliary_sysfs.c | 83 xa_store(&auxdev->sysfs.irqs, irq, no_free_ptr(info), GFP_KERNEL); in auxiliary_device_sysfs_irq_add()
|
| H A D | arch_topology.c | 894 xa_store(&hetero_cpu, hetero_id, in parse_acpi_topology()
|
| H A D | memory.c | 707 ret = xa_err(xa_store(&memory_blocks, memory->dev.id, memory, in __add_memory_block()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_adapter.c | 117 xa_store(&ice_adapters, index, adapter, GFP_KERNEL); in ice_adapter_get()
|
| /linux/drivers/cxl/core/ |
| H A D | cdat.c | 676 ptr = xa_store(usp_xa, index, c, GFP_KERNEL); in cxl_endpoint_gather_bandwidth() 803 ptr = xa_store(res_xa, us_index, n, GFP_KERNEL); in DEFINE_FREE() 886 ptr = xa_store(hb_xa, hb_index, n, GFP_KERNEL); in cxl_rp_gather_bandwidth() 935 ptr = xa_store(mw_xa, mw_index, n, GFP_KERNEL); in cxl_hb_gather_bandwidth()
|
| /linux/lib/ |
| H A D | test_xarray.c | 42 return xa_store(xa, index, xa_mk_index(index), gfp); in xa_store_index() 96 XA_BUG_ON(xa, xa_err(xa_store(xa, 1, xa_mk_value(0), GFP_KERNEL)) != 0); in check_xa_err() 667 xa_store(xa, 3, xa, GFP_KERNEL); in check_multi_store() 1013 XA_BUG_ON(xa, xa_store(xa, 3, xa_mk_index(3), GFP_KERNEL) != NULL); in check_xa_alloc_2() 1014 XA_BUG_ON(xa, xa_store(xa, 4, xa_mk_index(4), GFP_KERNEL) != NULL); in check_xa_alloc_2() 1015 XA_BUG_ON(xa, xa_store(xa, 4, NULL, GFP_KERNEL) != xa_mk_index(4)); in check_xa_alloc_2() 1972 XA_BUG_ON(xa, xa_store(xa, 0, name + i, GFP_KERNEL) != NULL); in check_align_2() 1978 XA_BUG_ON(xa, xa_store(xa, 0, name + i, 0) != NULL); in check_align_2() 2215 xa_store(xa, ULONG_MAX, xa, GFP_KERNEL); in check_destroy()
|
| H A D | test_hmm.c | 236 entry = xa_store(&dmirror->pt, pfn, entry, GFP_ATOMIC); in dmirror_do_fault() 820 entry = xa_store(&dmirror->pt, addr >> PAGE_SHIFT, entry, GFP_ATOMIC); in dmirror_atomic_map() 871 entry = xa_store(&dmirror->pt, pfn + i, entry, GFP_ATOMIC); in dmirror_migrate_finalize_and_map()
|
| /linux/arch/arm64/kernel/ |
| H A D | hibernate.c | 230 ret = xa_store(&mte_pages, pfn, tag_storage, GFP_KERNEL); in save_tags()
|
| /linux/net/qrtr/ |
| H A D | ns.c | 88 if (xa_store(&nodes, node_id, node, GFP_KERNEL)) { in node_get() 246 old = xa_store(&node->servers, port, srv, GFP_KERNEL); in server_add()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_drv.c | 199 entry = xa_store(drm_minor_get_xa(type), minor->index, minor, GFP_KERNEL); in drm_minor_register() 223 xa_store(drm_minor_get_xa(type), minor->index, NULL, GFP_KERNEL); in drm_minor_unregister()
|
| /linux/io_uring/ |
| H A D | tctx.c | 132 ret = xa_err(xa_store(&tctx->xa, (unsigned long)ctx, in __io_uring_add_tctx_node()
|
| H A D | zcrx.c | 707 if (xa_store(&ctx->zcrx_ctxs, id, ifq, GFP_KERNEL)) in import_zcrx() 820 if (xa_store(&ctx->zcrx_ctxs, id, ifq, GFP_KERNEL)) in io_register_zcrx_ifq()
|
| H A D | kbuf.c | 92 return xa_err(xa_store(&ctx->io_bl_xa, bgid, bl, GFP_KERNEL)); in io_buffer_add_list()
|
| /linux/drivers/infiniband/core/ |
| H A D | device.c | 751 ret = xa_err(xa_store(&device->client_data, client->client_id, NULL, in add_client_context() 1009 ret = xa_err(xa_store(&device->compat_devs, rnet->id, in add_one_compat_dev() 1163 ret = xa_err(xa_store(&rdma_nets, rnet->id, NULL, GFP_KERNEL)); in rdma_dev_exit_net() 2050 rc = xa_store(&device->client_data, client->client_id, data, in ib_set_client_data()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | fs_counters.c | 273 err = xa_err(xa_store(&fc_stats->counters, id, counter, GFP_KERNEL)); in mlx5_fc_create()
|
| H A D | pci_irq.c | 314 err = xa_err(xa_store(&pool->irqs, irq->pool_index, irq, GFP_KERNEL)); in mlx5_irq_alloc()
|
| /linux/drivers/iommu/ |
| H A D | iommu.c | 3530 WARN_ON(xa_is_err(xa_store(&group->pasid_array, in iommu_attach_device_pasid() 3621 WARN_ON(xa_is_err(xa_store(&group->pasid_array, in iommu_replace_device_pasid() 3758 WARN_ON(xa_is_err(xa_store(&group->pasid_array, in iommu_attach_group_handle() 3821 curr = xa_store(&group->pasid_array, IOMMU_NO_PASID, entry, GFP_KERNEL); in iommu_replace_group_handle()
|
| /linux/drivers/iommu/iommufd/ |
| H A D | device.c | 662 WARN_ON(xa_is_err(xa_store(&igroup->pasid_attach, pasid, attach, in iommufd_hw_pagetable_attach() 666 WARN_ON(xa_is_err(xa_store(&attach->device_array, idev->obj.id, in iommufd_hw_pagetable_attach()
|
| H A D | ioas.c | 428 rc = xa_err(xa_store(ioas_list, index, ioas, GFP_KERNEL)); in iommufd_take_all_iova_rwsem()
|
| /linux/drivers/scsi/elx/libefc/ |
| H A D | efc_nport.c | 185 rc = xa_err(xa_store(&nport->domain->lookup, fc_id, nport, GFP_ATOMIC)); in efc_nport_attach()
|
| H A D | efc_domain.c | 478 rc = xa_err(xa_store(&domain->lookup, fc_id, domain->nport, in __efc_domain_allocated()
|
| /linux/drivers/infiniband/sw/rxe/ |
| H A D | rxe_mr.c | 223 err = xa_err(xa_store(&mr->page_list, mr->nbuf, page, GFP_KERNEL)); in rxe_set_page()
|
| /linux/drivers/pci/ |
| H A D | p2pdma.c | 761 xa_store(&p2pdma->map_types, map_types_idx(client), in calc_map_type_and_dist()
|