/linux/include/linux/ |
H A D | xarray.h | 9 * See Documentation/core-api/xarray.rst for how to use the XArray. 285 * struct xarray - The anchor of the XArray. 288 * To use the xarray, define it statically or embed it in your data structure. 300 struct xarray { 324 struct xarray name = XARRAY_INIT(name, flags) 355 void *xa_load(struct xarray *, unsigned long index); 356 void *xa_store(struct xarray *, unsigned long index, void *entry, gfp_t); 357 void *xa_erase(struct xarray *, unsigned long index); 358 void *xa_store_range(struct xarray *, unsigned long first, unsigned long last, 360 bool xa_get_mark(struct xarray *, unsigne 296 struct xarray { global() struct 320 xa_headxarray global() argument [all...] |
H A D | phy_link_topology.h | 17 struct xarray; 22 struct xarray phys;
|
H A D | io_uring_types.h | 99 struct xarray xa; 303 struct xarray io_bl_xa; 389 struct xarray personalities;
|
/linux/drivers/gpu/drm/imagination/ |
H A D | pvr_sync.h | 10 struct xarray; 61 pvr_sync_signal_array_cleanup(struct xarray *array); 64 pvr_sync_signal_array_collect_ops(struct xarray *array, 70 pvr_sync_signal_array_update_fences(struct xarray *array, 76 pvr_sync_signal_array_push_fences(struct xarray *array); 82 struct xarray *signal_array);
|
H A D | pvr_sync.c | 48 pvr_sync_signal_array_cleanup(struct xarray *array) in pvr_sync_signal_array_cleanup() 60 pvr_sync_signal_array_add(struct xarray *array, struct drm_file *file, u32 handle, u64 point) in pvr_sync_signal_array_add() 107 pvr_sync_signal_array_search(struct xarray *array, u32 handle, u64 point) in pvr_sync_signal_array_search() 121 pvr_sync_signal_array_get(struct xarray *array, struct drm_file *file, u32 handle, u64 point) in pvr_sync_signal_array_get() 133 pvr_sync_signal_array_collect_ops(struct xarray *array, in pvr_sync_signal_array_collect_ops() 160 pvr_sync_signal_array_update_fences(struct xarray *array, in pvr_sync_signal_array_update_fences() 189 pvr_sync_signal_array_push_fences(struct xarray *array) in pvr_sync_signal_array_push_fences() 251 struct xarray *signal_array) in pvr_sync_add_deps_to_job()
|
H A D | pvr_device.h | 177 struct xarray ctx_ids; 185 struct xarray free_list_ids; 191 struct xarray job_ids; 329 struct xarray ctx_handles; 337 struct xarray free_list_handles; 345 struct xarray hwrt_handles; 353 struct xarray vm_ctx_handles;
|
/linux/drivers/dpll/ |
H A D | dpll_core.h | 34 struct xarray pin_refs; 57 struct xarray dpll_refs; 58 struct xarray parent_refs; 87 struct dpll_pin_ref *dpll_xa_ref_dpll_first(struct xarray *xa_refs); 88 extern struct xarray dpll_device_xa; 89 extern struct xarray dpll_pin_xa;
|
/linux/lib/ |
H A D | test_xarray.c | 20 void xa_dump(const struct xarray *xa) { } in xa_dump() 40 static void *xa_store_index(struct xarray *xa, unsigned long index, gfp_t gfp) in xa_store_index() 45 static void xa_insert_index(struct xarray *xa, unsigned long index) in xa_insert_index() 51 static void xa_alloc_index(struct xarray *xa, unsigned long index, gfp_t gfp) in xa_alloc_index() 60 static void xa_erase_index(struct xarray *xa, unsigned long index) in xa_erase_index() 71 static void *xa_store_order(struct xarray *xa, unsigned long index, in xa_store_order() 86 static noinline void check_xa_err(struct xarray *xa) in check_xa_err() 102 static noinline void check_xas_retry(struct xarray *xa) in check_xas_retry() 147 static noinline void check_xa_load(struct xarray *xa) in check_xa_load() 175 static noinline void check_xa_mark_1(struct xarray *xa, unsigned long index) in check_xa_mark_1() [all …]
|
H A D | kunit_iov_iter.c | 541 struct xarray *xarray = data; 543 xa_destroy(xarray); in iov_kunit_destroy_xarray() 544 kfree(xarray); in iov_kunit_destroy_xarray() local 549 struct xarray *xarray, 556 void *x = xa_store(xarray, i, pages[i], GFP_KERNEL); in iov_kunit_load_xarray() 561 iov_iter_xarray(iter, dir, xarray, 0, size); in iov_kunit_load_xarray() 564 static struct xarray *iov_kunit_create_xarray(struct kunit *test) in iov_kunit_load_xarray() 566 struct xarray *xarra in iov_kunit_load_xarray() 552 iov_kunit_load_xarray(struct kunit * test,struct iov_iter * iter,int dir,struct xarray * xarray,struct page ** pages,size_t npages) iov_kunit_load_xarray() argument 569 struct xarray *xarray; iov_kunit_create_xarray() local 585 struct xarray *xarray; iov_kunit_copy_to_xarray() local 643 struct xarray *xarray; iov_kunit_copy_from_xarray() local 943 struct xarray *xarray; iov_kunit_extract_pages_xarray() local [all...] |
H A D | xarray.c | 13 #include <linux/xarray.h> 20 * @xa is used to refer to the entire xarray. 21 * @xas is the 'xarray operation state'. It may be either a pointer to 30 * @entry refers to something stored in a slot in the xarray 33 static inline unsigned int xa_lock_type(const struct xarray *xa) in xa_lock_type() 58 static inline bool xa_track_free(const struct xarray *xa) in xa_track_free() 63 static inline bool xa_zero_busy(const struct xarray *xa) in xa_zero_busy() 68 static inline void xa_mark_set(struct xarray *xa, xa_mark_t mark) in xa_mark_set() 74 static inline void xa_mark_clear(struct xarray *xa, xa_mark_t mark) in xa_mark_clear() 179 * of the xarray, retur [all...] |
/linux/drivers/cxl/core/ |
H A D | cdat.c | 58 struct xarray *dsmas_xa = arg; in cdat_dsmas_handler() 130 struct xarray *dsmas_xa = arg; in cdat_dslbis_handler() 181 struct xarray *dsmas_xa) in cxl_cdat_endpoint_process() 197 struct xarray *dsmas_xa) in cxl_port_perf_data_calculate() 259 struct xarray *dsmas_xa) in cxl_memdev_set_qos_class() 378 static void discard_dsmas(struct xarray *xa) in discard_dsmas() 389 DEFINE_FREE(dsmas, struct xarray *, if (_T) discard_dsmas(_T)) in DEFINE_FREE() argument 395 struct xarray __dsmas_xa; in DEFINE_FREE() 396 struct xarray *dsmas_xa __free(dsmas) = &__dsmas_xa; in DEFINE_FREE() 626 struct xarray *usp_xa, in cxl_endpoint_gather_bandwidth() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | mapping.c | 18 struct xarray xarray; member 64 err = xa_alloc(&ctx->xarray, &mi->id, mi, XA_LIMIT(1, ctx->max_id), in mapping_add() 88 xa_erase(&ctx->xarray, mi->id); in mapping_remove_and_free() 116 mi = xa_load(&ctx->xarray, index); in mapping_remove() 139 mi = xa_load(&ctx->xarray, index); in mapping_find() 214 xa_init_flags(&ctx->xarray, XA_FLAGS_ALLOC1); in mapping_create() 259 xa_destroy(&ctx->xarray); in mapping_destroy()
|
/linux/tools/testing/radix-tree/ |
H A D | Makefile | 5 TARGETS = main idr-test multiorder xarray maple 6 CORE_OFILES = $(SHARED_OFILES) xarray.o maple.o test.o 20 xarray: $(CORE_OFILES) xarray.o target
|
H A D | multiorder.c | 15 static int item_insert_order(struct xarray *xa, unsigned long index, in item_insert_order() 34 void multiorder_iteration(struct xarray *xa) in multiorder_iteration() 74 void multiorder_tagged_iteration(struct xarray *xa) in multiorder_tagged_iteration() 198 static void multiorder_iteration_race(struct xarray *xa) in multiorder_iteration_race() 257 static void load_race(struct xarray *xa) in load_race()
|
H A D | test.h | 18 int item_delete_rcu(struct xarray *xa, unsigned long index); 30 int tag_tagged_items(struct xarray *, unsigned long start, unsigned long end,
|
H A D | test.c | 79 int item_delete_rcu(struct xarray *xa, unsigned long index) in item_delete_rcu() 173 int tag_tagged_items(struct xarray *xa, unsigned long start, unsigned long end, in tag_tagged_items() 255 void item_kill_tree(struct xarray *xa) in item_kill_tree()
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_file_private.h | 78 struct xarray proto_context_xa; 87 struct xarray context_xa; 88 struct xarray vm_xa;
|
/linux/fs/smb/server/mgmt/ |
H A D | user_session.h | 52 struct xarray ksmbd_chann_list; 53 struct xarray tree_conns; 55 struct xarray rpc_handle_list;
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_device_types.h | 357 struct xarray indexes; 397 struct xarray asid_to_vm; 607 struct xarray xa; 619 struct xarray xa;
|
/linux/drivers/gpu/drm/tegra/ |
H A D | uapi.h | 23 struct xarray contexts; 24 struct xarray syncpoints;
|
/linux/Documentation/driver-api/cxl/ |
H A D | access-coordinates.rst | 61 The calculation starts at cxl_region_shared_upstream_perf_update(). A xarray 68 'struct cxl_perf_ctx' in the xarray indexed by a device pointer. If the 82 also the index for the resulting xarray. 87 ACPI0017 device to form a new xarray. 90 bandwidth from all the members of the last xarray is updated for the
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_eswitch_br.h | 50 struct xarray vlans; 59 struct xarray ports;
|
/linux/Documentation/translations/zh_CN/core-api/ |
H A D | xarray.rst | 4 :Original: Documentation/core-api/xarray.rst 371 include/linux/xarray.h 373 lib/xarray.c
|
/linux/include/drm/ |
H A D | drm_file.h | 48 extern struct xarray drm_minors_xa; 451 struct drm_minor *drm_minor_acquire(struct xarray *minors_xa, unsigned int minor_id);
|
/linux/mm/ |
H A D | zswap.c | 206 static struct xarray *zswap_trees[MAX_SWAPFILES]; 234 static inline struct xarray *swap_zswap_tree(swp_entry_t swp) in swap_zswap_tree() 1049 struct xarray *tree; in zswap_writeback_entry() 1599 struct xarray *tree; in zswap_store() 1617 struct xarray *tree = swap_zswap_tree(swp); in zswap_load() 1674 struct xarray *tree = swap_zswap_tree(swp); in zswap_invalidate() 1687 struct xarray *trees, *tree; in zswap_swapon() 1707 struct xarray *trees = zswap_trees[type]; in zswap_swapoff()
|