Lines Matching refs:xarray
30 #include <linux/xarray.h>
39 __xa_erase(struct xarray *xa, uint32_t index)
47 xa_erase(struct xarray *xa, uint32_t index)
63 xa_load(struct xarray *xa, uint32_t index)
79 xa_vm_wait_locked(struct xarray *xa)
87 * This function iterates the xarray until it finds a free slot where
95 * the xarray is full, or there was not enough internal memory
99 __xa_alloc(struct xarray *xa, uint32_t *pindex, void *ptr, uint32_t mask, gfp_t gfp)
136 xa_alloc(struct xarray *xa, uint32_t *pindex, void *ptr, uint32_t mask, gfp_t gfp)
150 * left at the end of the xarray searching for a free slot from the
151 * beginning of the array. If the xarray is full -ENOMEM is returned.
154 __xa_alloc_cyclic(struct xarray *xa, uint32_t *pindex, void *ptr, uint32_t mask,
196 xa_alloc_cyclic(struct xarray *xa, uint32_t *pindex, void *ptr, uint32_t mask,
216 __xa_insert(struct xarray *xa, uint32_t index, void *ptr, gfp_t gfp)
238 xa_insert(struct xarray *xa, uint32_t index, void *ptr, gfp_t gfp)
258 __xa_store(struct xarray *xa, uint32_t index, void *ptr, gfp_t gfp)
284 xa_store(struct xarray *xa, uint32_t index, void *ptr, gfp_t gfp)
296 * This function initialize an xarray structure.
299 xa_init_flags(struct xarray *xa, uint32_t flags)
303 mtx_init(&xa->mtx, "lkpi-xarray", NULL, MTX_DEF | MTX_RECURSE);
308 * This function destroys an xarray structure and all its internal
312 xa_destroy(struct xarray *xa)
323 * This function checks if an xarray is empty or not.
327 __xa_empty(struct xarray *xa)
338 xa_empty(struct xarray *xa)
350 * This function returns the next valid xarray entry based on the
355 __xa_next(struct xarray *xa, unsigned long *pindex, bool not_first)
382 xa_next(struct xarray *xa, unsigned long *pindex, bool not_first)