Home
last modified time | relevance | path

Searched refs:xarray (Results 1 – 25 of 146) sorted by relevance

123456

/linux-6.6.21/include/linux/
Dxarray.h296 struct xarray { struct
320 struct xarray name = XARRAY_INIT(name, flags) argument
351 void *xa_load(struct xarray *, unsigned long index);
352 void *xa_store(struct xarray *, unsigned long index, void *entry, gfp_t);
353 void *xa_erase(struct xarray *, unsigned long index);
354 void *xa_store_range(struct xarray *, unsigned long first, unsigned long last,
356 bool xa_get_mark(struct xarray *, unsigned long index, xa_mark_t);
357 void xa_set_mark(struct xarray *, unsigned long index, xa_mark_t);
358 void xa_clear_mark(struct xarray *, unsigned long index, xa_mark_t);
359 void *xa_find(struct xarray *xa, unsigned long *index,
[all …]
Duio.h74 struct xarray *xarray; member
285 void iov_iter_xarray(struct iov_iter *i, unsigned int direction, struct xarray *xarray,
Dio_uring_types.h59 struct xarray xa;
254 struct xarray io_bl_xa;
325 struct xarray personalities;
/linux-6.6.21/lib/
Dkunit_iov_iter.c367 struct xarray *xarray = data; in iov_kunit_destroy_xarray() local
369 xa_destroy(xarray); in iov_kunit_destroy_xarray()
370 kfree(xarray); in iov_kunit_destroy_xarray()
375 struct xarray *xarray, in iov_kunit_load_xarray() argument
382 void *x = xa_store(xarray, i, pages[i], GFP_KERNEL); in iov_kunit_load_xarray()
387 iov_iter_xarray(iter, dir, xarray, 0, size); in iov_kunit_load_xarray()
390 static struct xarray *iov_kunit_create_xarray(struct kunit *test) in iov_kunit_create_xarray()
392 struct xarray *xarray; in iov_kunit_create_xarray() local
394 xarray = kzalloc(sizeof(struct xarray), GFP_KERNEL); in iov_kunit_create_xarray()
395 xa_init(xarray); in iov_kunit_create_xarray()
[all …]
Dtest_xarray.c20 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 …]
Dxarray.c33 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()
252 #define XA_RCU_FREE ((struct xarray *)1)
439 struct xarray *xa = xas->xa; in xas_shrink()
561 struct xarray *xa = xas->xa; in xas_expand()
641 struct xarray *xa = xas->xa; in xas_create()
1454 void *xa_load(struct xarray *xa, unsigned long index) in xa_load()
[all …]
/linux-6.6.21/tools/testing/radix-tree/
DMakefile7 TARGETS = main idr-test multiorder xarray maple
8 CORE_OFILES := xarray.o radix-tree.o idr.o linux.o test.o find_bit.o bitmap.o \
35 xarray: $(CORE_OFILES) target
49 ../../../include/linux/xarray.h \
61 xarray.o: ../../../lib/xarray.c ../../../lib/test_xarray.c
Dmultiorder.c15 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()
253 static void load_race(struct xarray *xa) in load_race()
Dtest.h18 int item_delete_rcu(struct xarray *xa, unsigned long index);
30 int tag_tagged_items(struct xarray *, unsigned long start, unsigned long end,
Dtest.c79 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()
D.gitignore9 xarray
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
Dmapping.c18 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-6.6.21/drivers/gpu/drm/i915/
Di915_file_private.h78 struct xarray proto_context_xa;
87 struct xarray context_xa;
88 struct xarray vm_xa;
/linux-6.6.21/fs/smb/server/mgmt/
Duser_session.h52 struct xarray ksmbd_chann_list;
53 struct xarray tree_conns;
55 struct xarray rpc_handle_list;
/linux-6.6.21/drivers/gpu/drm/tegra/
Duapi.h23 struct xarray contexts;
24 struct xarray syncpoints;
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_eswitch_br.h49 struct xarray vlans;
58 struct xarray ports;
Dice_irq.h13 struct xarray entries;
/linux-6.6.21/net/devlink/
Ddevl_internal.h32 struct xarray ports;
37 struct xarray params;
46 struct xarray snapshot_ids;
61 extern struct xarray devlinks;
/linux-6.6.21/drivers/iommu/iommufd/
Diommufd_private.h19 struct xarray objects;
20 struct xarray groups;
40 struct xarray domains;
41 struct xarray access_list;
/linux-6.6.21/Documentation/translations/zh_CN/core-api/
Dxarray.rst4 :Original: Documentation/core-api/xarray.rst
371 include/linux/xarray.h
373 lib/xarray.c
/linux-6.6.21/drivers/accel/ivpu/
Divpu_drv.h113 struct xarray context_xa;
116 struct xarray submitted_jobs_xa;
/linux-6.6.21/drivers/infiniband/core/
Drestrack.h19 struct xarray xa;
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge_priv.h164 struct xarray ports;
185 struct xarray vlans;
/linux-6.6.21/drivers/cxl/
Dcxl.h588 struct xarray dports;
589 struct xarray endpoints;
590 struct xarray regions;
663 struct xarray endpoints;
/linux-6.6.21/drivers/gpu/drm/lima/
Dlima_ctx.h25 struct xarray handles;

123456