Lines Matching defs:xa
57 #define xa_for_each(xa, index, entry) \
58 for (index = 0; ((entry) = xa_get_next(xa, &(index))) != NULL; index++)
129 xa_alloc(struct xarray *xa, u32 *id, void *entry, struct xarray_range xr,
133 mtx_enter(&xa->xa_lock);
134 r = __xa_alloc(xa, id, entry, xr, gfp);
135 mtx_leave(&xa->xa_lock);
140 xa_load(struct xarray *xa, unsigned long index)
143 r = __xa_load(xa, index);
149 xa_store(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)
152 mtx_enter(&xa->xa_lock);
153 r = __xa_store(xa, index, entry, gfp);
154 mtx_leave(&xa->xa_lock);
159 xa_erase(struct xarray *xa, unsigned long index)
162 mtx_enter(&xa->xa_lock);
163 r = __xa_erase(xa, index);
164 mtx_leave(&xa->xa_lock);
169 xa_store_irq(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)
172 mtx_enter(&xa->xa_lock);
173 r = __xa_store(xa, index, entry, gfp);
174 mtx_leave(&xa->xa_lock);
179 xa_erase_irq(struct xarray *xa, unsigned long index)
182 mtx_enter(&xa->xa_lock);
183 r = __xa_erase(xa, index);
184 mtx_leave(&xa->xa_lock);
189 xa_empty(const struct xarray *xa)
191 return SPLAY_EMPTY(&xa->xa_tree);
195 xa_init(struct xarray *xa)
197 xa_init_flags(xa, 0);