Home
last modified time | relevance | path

Searched refs:xa (Results 1 – 3 of 3) sorted by relevance

/lib/
Dtest_xarray.c17 void xa_dump(const struct xarray *xa) { } in xa_dump() argument
20 #define XA_BUG_ON(xa, x) do { \ argument
24 xa_dump(xa); \
37 static void *xa_store_index(struct xarray *xa, unsigned long index, gfp_t gfp) in xa_store_index() argument
39 return xa_store(xa, index, xa_mk_index(index), gfp); in xa_store_index()
42 static void xa_insert_index(struct xarray *xa, unsigned long index) in xa_insert_index() argument
44 XA_BUG_ON(xa, xa_insert(xa, index, xa_mk_index(index), in xa_insert_index()
48 static void xa_alloc_index(struct xarray *xa, unsigned long index, gfp_t gfp) in xa_alloc_index() argument
52 XA_BUG_ON(xa, xa_alloc(xa, &id, xa_mk_index(index), xa_limit_32b, in xa_alloc_index()
54 XA_BUG_ON(xa, id != index); in xa_alloc_index()
[all …]
Dxarray.c31 static inline unsigned int xa_lock_type(const struct xarray *xa) in xa_lock_type() argument
33 return (__force unsigned int)xa->xa_flags & 3; in xa_lock_type()
56 static inline bool xa_track_free(const struct xarray *xa) in xa_track_free() argument
58 return xa->xa_flags & XA_FLAGS_TRACK_FREE; in xa_track_free()
61 static inline bool xa_zero_busy(const struct xarray *xa) in xa_zero_busy() argument
63 return xa->xa_flags & XA_FLAGS_ZERO_BUSY; in xa_zero_busy()
66 static inline void xa_mark_set(struct xarray *xa, xa_mark_t mark) in xa_mark_set() argument
68 if (!(xa->xa_flags & XA_FLAGS_MARK(mark))) in xa_mark_set()
69 xa->xa_flags |= XA_FLAGS_MARK(mark); in xa_mark_set()
72 static inline void xa_mark_clear(struct xarray *xa, xa_mark_t mark) in xa_mark_clear() argument
[all …]
Didr.c382 XA_STATE(xas, &ida->xa, min / IDA_BITMAP_BITS); in ida_alloc_range()
486 XA_STATE(xas, &ida->xa, id / IDA_BITMAP_BITS); in ida_free()
538 XA_STATE(xas, &ida->xa, 0); in ida_destroy()
589 struct xarray *xa = &ida->xa; in ida_dump() local
590 pr_debug("ida: %p node %p free %d\n", ida, xa->xa_head, in ida_dump()
591 xa->xa_flags >> ROOT_TAG_SHIFT); in ida_dump()
592 ida_dump_entry(xa->xa_head, 0); in ida_dump()