Home
last modified time | relevance | path

Searched refs:xa_load (Results 1 – 25 of 118) sorted by relevance

12345

/linux-6.1.9/lib/
Dtest_xarray.c63 XA_BUG_ON(xa, xa_load(xa, index) != NULL); in xa_erase_index()
153 void *entry = xa_load(xa, j); in check_xa_load()
164 void *entry = xa_load(xa, j); in check_xa_load()
344 XA_BUG_ON(xa, xa_load(xa, 1) != NULL); in check_xa_shrink()
349 XA_BUG_ON(xa, xa_load(xa, 0) != xa_mk_value(0)); in check_xa_shrink()
356 XA_BUG_ON(xa, xa_load(xa, max) != xa_mk_value(0)); in check_xa_shrink()
357 XA_BUG_ON(xa, xa_load(xa, max + 1) != NULL); in check_xa_shrink()
366 XA_BUG_ON(xa, xa_load(xa, max + 1) != NULL); in check_xa_shrink()
379 XA_BUG_ON(xa, xa_load(xa, i - 1) != NULL); in check_insert()
380 XA_BUG_ON(xa, xa_load(xa, i + 1) != NULL); in check_insert()
[all …]
/linux-6.1.9/Documentation/translations/zh_CN/core-api/
Dxarray.rst63 然后你可以用xa_store()来设置条目,用xa_load()来获取条目。xa_store将用新的条目覆盖任
153 * xa_load()
195 如果你想利用锁来保护你存储在XArray中的数据结构,你可以在调用xa_load()之前调用xa_lock(),然后在
/linux-6.1.9/drivers/iommu/
Dioasid.c274 ioasid_data = xa_load(&active_allocator->xa, ioasid); in ioasid_set_data()
357 ioasid_data = xa_load(&active_allocator->xa, ioasid); in ioasid_free()
398 ioasid_data = xa_load(&idata->xa, ioasid); in ioasid_find()
/linux-6.1.9/drivers/gpu/drm/tegra/
Duapi.c170 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_close()
200 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_map()
281 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_unmap()
Dsubmit.c152 mapping = xa_load(&context->mappings, id); in tegra_drm_mapping_get()
343 sp = xa_load(syncpoints, args->syncpt.id); in submit_get_syncpt()
529 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_submit()
/linux-6.1.9/drivers/infiniband/hw/cxgb4/
Dev.c127 qhp = xa_load(&dev->qps, CQE_QPID(err_cqe)); in c4iw_ev_dispatch()
228 chp = xa_load(&dev->cqs, qid); in c4iw_ev_handler()
/linux-6.1.9/arch/arm64/mm/
Dmteswap.c51 void *tags = xa_load(&mte_pages, entry.val); in mte_restore_tags()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Dpagealloc.c82 root = xa_load(&dev->priv.page_root_xa, function); in page_root_per_function()
153 root = xa_load(&dev->priv.page_root_xa, function); in find_fw_page()
234 root = xa_load(&dev->priv.page_root_xa, fwp->function); in free_fwp()
418 root = xa_load(&dev->priv.page_root_xa, function); in release_all_pages()
478 root = xa_load(&dev->priv.page_root_xa, get_function(func_id, ec_function)); in reclaim_pages_cmd()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dmapping.c116 mi = xa_load(&ctx->xarray, index); in mapping_remove()
139 mi = xa_load(&ctx->xarray, index); in mapping_find()
/linux-6.1.9/drivers/cxl/core/
Dcore.h67 return xa_load(&port->endpoints, (unsigned long)&cxlmd->dev); in cxl_ep_load()
/linux-6.1.9/security/apparmor/
Dsecid.c62 return xa_load(&aa_secids, secid); in aa_secid_to_label()
/linux-6.1.9/drivers/tty/serial/
Dliteuart.c339 uart = (struct liteuart_port *)xa_load(&liteuart_array, co->index); in liteuart_console_write()
356 uart = (struct liteuart_port *)xa_load(&liteuart_array, co->index); in liteuart_console_setup()
/linux-6.1.9/drivers/infiniband/hw/erdma/
Derdma_verbs.h245 return (struct erdma_qp *)xa_load(&dev->qp_xa, id); in find_qp_by_qpn()
250 return (struct erdma_cq *)xa_load(&dev->cq_xa, id); in find_cq_by_cqn()
/linux-6.1.9/mm/
Dreadahead.c231 struct folio *folio = xa_load(&mapping->i_pages, index + i); in page_cache_ra_unbounded()
804 struct page *page = xa_load(&mapping->i_pages, index); in readahead_expand()
827 struct page *page = xa_load(&mapping->i_pages, index); in readahead_expand()
Dlist_lru.c56 struct list_lru_memcg *mlru = xa_load(&lru->xa, idx); in list_lru_from_memcg_idx()
469 return idx < 0 || xa_load(&lru->xa, idx); in memcg_list_lru_allocated()
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Ddevx.c1360 event = xa_load(&dev->devx_event_table.event_xa, in devx_cleanup_subscription()
1364 xa_val_level2 = xa_load(&event->object_ids, sub->xa_key_level2); in devx_cleanup_subscription()
1425 event = xa_load(&table->event_xa, MLX5_EVENT_TYPE_COMP); in devx_cq_comp()
1429 obj_event = xa_load(&event->object_ids, obj_id); in devx_cq_comp()
1845 event = xa_load(&devx_event_table->event_xa, key_level1); in subscribe_event_xa_dealloc()
1848 xa_val_level2 = xa_load(&event->object_ids, in subscribe_event_xa_dealloc()
1867 event = xa_load(&devx_event_table->event_xa, key_level1); in subscribe_event_xa_alloc()
1889 obj_event = xa_load(&event->object_ids, key_level2); in subscribe_event_xa_alloc()
2121 event = xa_load(&devx_event_table->event_xa, in UVERBS_HANDLER()
2131 obj_event = xa_load(&event->object_ids, obj_id); in UVERBS_HANDLER()
[all …]
/linux-6.1.9/drivers/gpu/drm/lima/
Dlima_ctx.c72 ctx = xa_load(&mgr->handles, id); in lima_ctx_get()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
Ddev.c176 sf_dev = xa_load(&table->devices, sf_index); in mlx5_sf_dev_state_change_handler()
254 if (!xa_load(&table->devices, i)) in mlx5_sf_dev_add_active_work()
/linux-6.1.9/fs/ksmbd/mgmt/
Dtree_connect.c112 return xa_load(&sess->tree_conns, id); in ksmbd_tree_conn_lookup()
/linux-6.1.9/block/partitions/
Dcore.c339 if (xa_load(&disk->part_tbl, partno)) in add_partition()
475 part = xa_load(&disk->part_tbl, partno); in bdev_del_partition()
497 part = xa_load(&disk->part_tbl, partno); in bdev_resize_partition()
/linux-6.1.9/drivers/infiniband/hw/mlx4/
Dcm.c276 ent = xa_load(&sriov->pv_id_table, *pv_cm_id); in id_map_get()
367 item = xa_load(&sriov->xa_rej_tmout, (unsigned long)rem_pv_cm_id); in alloc_rej_tmout()
412 item = xa_load(&sriov->xa_rej_tmout, (unsigned long)rem_pv_cm_id); in lookup_rej_tmout_slave()
/linux-6.1.9/drivers/infiniband/core/
Ddevice.c313 device = xa_load(&devices, index); in ib_device_get_by_index()
432 struct ib_client *client = xa_load(&clients, index); in ib_device_rename()
666 if (xa_load(&devices, device->index) == device) in ib_dealloc_device()
761 client_data = xa_load(&device->client_data, client_id); in remove_client_context()
763 client = xa_load(&clients, client_id); in remove_client_context()
944 cdev = xa_load(&device->compat_devs, rnet->id); in add_one_compat_dev()
1757 if (xa_load(&clients, highest_client_id - 1)) in remove_client_id()
1882 struct ib_client *client = xa_load(&clients, index); in __ib_get_client_nl_info()
2551 struct ib_client *client = xa_load(&clients, index); in ib_get_net_dev_by_params()
/linux-6.1.9/arch/x86/kernel/cpu/sgx/
Dencl.c86 entry = xa_load(&encl->page_array, PFN_DOWN(addr)); in reclaimer_writing_to_pcmd()
274 entry = xa_load(&encl->page_array, PFN_DOWN(addr)); in sgx_encl_load_page_in_vma()
294 entry = xa_load(&encl->page_array, PFN_DOWN(addr)); in sgx_encl_load_page()
437 (!xa_load(&encl->page_array, PFN_DOWN(addr)))) in sgx_vma_fault()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_domain.c41 recalc_cs_ft = xa_load(&dmn->csum_fts_xa, vport_num); in mlx5dr_domain_get_recalc_cs_ft_addr()
225 vport_caps = xa_load(&caps->vports.vports_caps_xa, vport); in mlx5dr_domain_get_vport_cap()
/linux-6.1.9/drivers/base/
Dmemory.c586 mem = xa_load(&memory_blocks, block_id); in find_memory_block_by_id()
1119 group = xa_load(&memory_groups, mgid); in memory_group_unregister()
1138 return xa_load(&memory_groups, mgid); in memory_group_find_by_id()

12345