Home
last modified time | relevance | path

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

1234567

/openbmc/linux/include/linux/
H A 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 …]
H A Duio.h74 struct xarray *xarray; member
285 void iov_iter_xarray(struct iov_iter *i, unsigned int direction, struct xarray *xarray,
H A Dio_uring_types.h59 struct xarray xa;
253 struct xarray io_bl_xa;
324 struct xarray personalities;
/openbmc/linux/lib/
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/linux/tools/testing/radix-tree/
H A 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
H A 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()
H A 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,
H A 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()
H A D.gitignore9 xarray
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A 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()
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_file_private.h78 struct xarray proto_context_xa;
87 struct xarray context_xa;
88 struct xarray vm_xa;
/openbmc/linux/fs/smb/server/mgmt/
H A Duser_session.h52 struct xarray ksmbd_chann_list;
53 struct xarray tree_conns;
55 struct xarray rpc_handle_list;
/openbmc/linux/drivers/gpu/drm/tegra/
H A Duapi.h23 struct xarray contexts;
24 struct xarray syncpoints;
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_eswitch_br.h49 struct xarray vlans;
58 struct xarray ports;
H A Dice_irq.h13 struct xarray entries;
/openbmc/linux/net/devlink/
H A Ddevl_internal.h32 struct xarray ports;
37 struct xarray params;
46 struct xarray snapshot_ids;
61 extern struct xarray devlinks;
/openbmc/linux/drivers/iommu/iommufd/
H A Diommufd_private.h19 struct xarray objects;
20 struct xarray groups;
40 struct xarray domains;
41 struct xarray access_list;
/openbmc/linux/Documentation/translations/zh_CN/core-api/
H A Dxarray.rst4 :Original: Documentation/core-api/xarray.rst
371 include/linux/xarray.h
373 lib/xarray.c
/openbmc/linux/include/drm/
H A Ddrm_file.h48 extern struct xarray drm_minors_xa;
446 struct drm_minor *drm_minor_acquire(struct xarray *minors_xa, unsigned int minor_id);
/openbmc/linux/drivers/accel/ivpu/
H A Divpu_drv.h113 struct xarray context_xa;
116 struct xarray submitted_jobs_xa;
/openbmc/linux/drivers/infiniband/core/
H A Drestrack.h19 struct xarray xa;
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dbridge_priv.h164 struct xarray ports;
185 struct xarray vlans;
/openbmc/linux/drivers/gpu/drm/lima/
H A Dlima_ctx.h25 struct xarray handles;

1234567