/openbmc/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()
|
/openbmc/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()
|
/openbmc/linux/arch/arm64/mm/ |
H A D | mteswap.c | 37 ret = xa_store(&mte_pages, page_swap_entry(page).val, tag_storage, in mte_save_tags()
|
/openbmc/linux/fs/smb/server/mgmt/ |
H A D | user_session.c | 109 old = xa_store(&sess->rpc_handle_list, entry->id, entry, GFP_KERNEL); in ksmbd_session_rpc_open() 203 return xa_err(xa_store(&conn->sessions, sess->id, sess, GFP_KERNEL)); in ksmbd_session_register()
|
H A D | tree_connect.c | 82 ret = xa_err(xa_store(&sess->tree_conns, tree_conn->id, tree_conn, in ksmbd_tree_conn_connect()
|
/openbmc/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() 614 xa_store(xa, 3, xa, GFP_KERNEL); in check_multi_store() 780 XA_BUG_ON(xa, xa_store(xa, 3, xa_mk_index(3), GFP_KERNEL) != NULL); in check_xa_alloc_2() 781 XA_BUG_ON(xa, xa_store(xa, 4, xa_mk_index(4), GFP_KERNEL) != NULL); in check_xa_alloc_2() 782 XA_BUG_ON(xa, xa_store(xa, 4, NULL, GFP_KERNEL) != xa_mk_index(4)); in check_xa_alloc_2() 1626 XA_BUG_ON(xa, xa_store(xa, 0, name + i, GFP_KERNEL) != NULL); in check_align_2() 1632 XA_BUG_ON(xa, xa_store(xa, 0, name + i, 0) != NULL); in check_align_2() 1869 xa_store(xa, ULONG_MAX, xa, GFP_KERNEL); in check_destroy()
|
H A D | test_hmm.c | 233 entry = xa_store(&dmirror->pt, pfn, entry, GFP_ATOMIC); in dmirror_do_fault() 726 entry = xa_store(&dmirror->pt, pfn, entry, GFP_ATOMIC); in dmirror_atomic_map() 766 entry = xa_store(&dmirror->pt, pfn, entry, GFP_ATOMIC); in dmirror_migrate_finalize_and_map()
|
/openbmc/linux/Documentation/core-api/ |
H A D | xarray.rst | 66 You can then set entries using xa_store() and get entries 67 using xa_load(). xa_store will overwrite any entry with the 69 use xa_erase() instead of calling xa_store() with a 97 Sometimes you need to ensure that a subsequent call to xa_store() 152 Using xa_store(), xa_cmpxchg() or xa_insert() will 171 The xa_store(), xa_cmpxchg(), xa_alloc(), 204 * xa_store()
|
/openbmc/linux/drivers/infiniband/sw/rxe/ |
H A D | rxe_pool.c | 254 xa_ret = xa_store(&elem->pool->xa, elem->index, elem, GFP_KERNEL); in __rxe_finalize()
|
H A D | rxe_mr.c | 223 err = xa_err(xa_store(&mr->page_list, mr->nbuf, page, GFP_KERNEL)); in rxe_set_page()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_domain.c | 88 ret = xa_err(xa_store(&dmn->csum_fts_xa, vport_num, in mlx5dr_domain_get_recalc_cs_ft_addr() 572 WARN_ON(xa_err(xa_store(&dmn->peer_dmn_xa, peer_vhca_id, peer_dmn, GFP_KERNEL))); in mlx5dr_domain_set_peer()
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_drv.c | 197 entry = xa_store(drm_minor_get_xa(type), minor->index, minor, GFP_KERNEL); in drm_minor_register() 221 xa_store(drm_minor_get_xa(type), minor->index, NULL, GFP_KERNEL); in drm_minor_unregister()
|
/openbmc/linux/arch/x86/kernel/cpu/sgx/ |
H A D | virt.c | 53 ret = xa_err(xa_store(&vepc->page_array, index, epc_page, GFP_KERNEL)); in __sgx_vepc_fault()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | hibernate.c | 230 ret = xa_store(&mte_pages, pfn, tag_storage, GFP_KERNEL); in save_tags()
|
/openbmc/linux/net/qrtr/ |
H A D | ns.c | 88 if (xa_store(&nodes, node_id, node, GFP_KERNEL)) { in node_get() 243 old = xa_store(&node->servers, port, srv, GFP_KERNEL); in server_add()
|
/openbmc/linux/io_uring/ |
H A D | tctx.c | 122 ret = xa_err(xa_store(&tctx->xa, (unsigned long)ctx, in __io_uring_add_tctx_node()
|
H A D | kbuf.c | 63 return xa_err(xa_store(&ctx->io_bl_xa, bgid, bl, GFP_KERNEL)); in io_buffer_add_list()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eq.c | 881 return xa_err(xa_store(&table->comp_irqs, vecidx, irq, GFP_KERNEL)); in comp_irq_request_pci() 924 return xa_err(xa_store(&table->comp_irqs, vecidx, irq, GFP_KERNEL)); in comp_irq_request_sf() 1054 err = xa_err(xa_store(&table->comp_eqs, vecidx, eq, GFP_KERNEL)); in create_comp_eq()
|
/openbmc/linux/drivers/iommu/iommufd/ |
H A D | main.c | 86 old = xa_store(&ictx->objects, obj->id, obj, GFP_KERNEL); in iommufd_object_finalize()
|
H A D | io_pagetable.c | 911 xa_store(&iopt->domains, iopt->next_domain_id, domain, GFP_KERNEL); in iopt_table_add_domain() 984 xa_store(&iopt->domains, index, iter_domain, GFP_KERNEL); in iopt_table_remove_domain()
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | device.c | 715 ret = xa_err(xa_store(&device->client_data, client->client_id, NULL, in add_client_context() 973 ret = xa_err(xa_store(&device->compat_devs, rnet->id, in add_one_compat_dev() 1127 ret = xa_err(xa_store(&rdma_nets, rnet->id, NULL, GFP_KERNEL)); in rdma_dev_exit_net() 1969 rc = xa_store(&device->client_data, client->client_id, data, in ib_set_client_data()
|
H A D | rdma_core.c | 594 old = xa_store(&ufile->idr, uobj->id, uobj, GFP_KERNEL); in alloc_commit_idr_uobject()
|
/openbmc/linux/kernel/trace/ |
H A D | trace_syscalls.c | 537 ret = xa_store(&syscalls_metadata_sparse, i, meta, in init_ftrace_syscalls()
|
/openbmc/linux/drivers/pci/ |
H A D | p2pdma.c | 663 xa_store(&p2pdma->map_types, map_types_idx(client), in calc_map_type_and_dist()
|
/openbmc/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()
|