Lines Matching refs:xarray
292 struct xarray { struct
316 struct xarray name = XARRAY_INIT(name, flags) argument
347 void *xa_load(struct xarray *, unsigned long index);
348 void *xa_store(struct xarray *, unsigned long index, void *entry, gfp_t);
349 void *xa_erase(struct xarray *, unsigned long index);
350 void *xa_store_range(struct xarray *, unsigned long first, unsigned long last,
352 bool xa_get_mark(struct xarray *, unsigned long index, xa_mark_t);
353 void xa_set_mark(struct xarray *, unsigned long index, xa_mark_t);
354 void xa_clear_mark(struct xarray *, unsigned long index, xa_mark_t);
355 void *xa_find(struct xarray *xa, unsigned long *index,
357 void *xa_find_after(struct xarray *xa, unsigned long *index,
359 unsigned int xa_extract(struct xarray *, void **dst, unsigned long start,
361 void xa_destroy(struct xarray *);
374 static inline void xa_init_flags(struct xarray *xa, gfp_t flags) in xa_init_flags()
389 static inline void xa_init(struct xarray *xa) in xa_init()
401 static inline bool xa_empty(const struct xarray *xa) in xa_empty()
414 static inline bool xa_marked(const struct xarray *xa, xa_mark_t mark) in xa_marked()
519 void *__xa_erase(struct xarray *, unsigned long index);
520 void *__xa_store(struct xarray *, unsigned long index, void *entry, gfp_t);
521 void *__xa_cmpxchg(struct xarray *, unsigned long index, void *old,
523 int __must_check __xa_insert(struct xarray *, unsigned long index,
525 int __must_check __xa_alloc(struct xarray *, u32 *id, void *entry,
527 int __must_check __xa_alloc_cyclic(struct xarray *, u32 *id, void *entry,
529 void __xa_set_mark(struct xarray *, unsigned long index, xa_mark_t);
530 void __xa_clear_mark(struct xarray *, unsigned long index, xa_mark_t);
546 static inline void *xa_store_bh(struct xarray *xa, unsigned long index, in xa_store_bh()
572 static inline void *xa_store_irq(struct xarray *xa, unsigned long index, in xa_store_irq()
597 static inline void *xa_erase_bh(struct xarray *xa, unsigned long index) in xa_erase_bh()
621 static inline void *xa_erase_irq(struct xarray *xa, unsigned long index) in xa_erase_irq()
647 static inline void *xa_cmpxchg(struct xarray *xa, unsigned long index, in xa_cmpxchg()
674 static inline void *xa_cmpxchg_bh(struct xarray *xa, unsigned long index, in xa_cmpxchg_bh()
701 static inline void *xa_cmpxchg_irq(struct xarray *xa, unsigned long index, in xa_cmpxchg_irq()
730 static inline int __must_check xa_insert(struct xarray *xa, in xa_insert()
759 static inline int __must_check xa_insert_bh(struct xarray *xa, in xa_insert_bh()
788 static inline int __must_check xa_insert_irq(struct xarray *xa, in xa_insert_irq()
817 static inline __must_check int xa_alloc(struct xarray *xa, u32 *id, in xa_alloc()
846 static inline int __must_check xa_alloc_bh(struct xarray *xa, u32 *id, in xa_alloc_bh()
875 static inline int __must_check xa_alloc_irq(struct xarray *xa, u32 *id, in xa_alloc_irq()
908 static inline int xa_alloc_cyclic(struct xarray *xa, u32 *id, void *entry, in xa_alloc_cyclic()
941 static inline int xa_alloc_cyclic_bh(struct xarray *xa, u32 *id, void *entry, in xa_alloc_cyclic_bh()
974 static inline int xa_alloc_cyclic_irq(struct xarray *xa, u32 *id, void *entry, in xa_alloc_cyclic_irq()
1005 int xa_reserve(struct xarray *xa, unsigned long index, gfp_t gfp) in xa_reserve()
1023 int xa_reserve_bh(struct xarray *xa, unsigned long index, gfp_t gfp) in xa_reserve_bh()
1041 int xa_reserve_irq(struct xarray *xa, unsigned long index, gfp_t gfp) in xa_reserve_irq()
1055 static inline void xa_release(struct xarray *xa, unsigned long index) in xa_release()
1093 struct xarray *array; /* The array we belong to */
1105 void xa_dump(const struct xarray *);
1127 static inline void *xa_head(const struct xarray *xa) in xa_head()
1134 static inline void *xa_head_locked(const struct xarray *xa) in xa_head_locked()
1141 static inline void *xa_entry(const struct xarray *xa, in xa_entry()
1150 static inline void *xa_entry_locked(const struct xarray *xa, in xa_entry_locked()
1159 static inline struct xa_node *xa_parent(const struct xarray *xa, in xa_parent()
1167 static inline struct xa_node *xa_parent_locked(const struct xarray *xa, in xa_parent_locked()
1272 struct xarray *xa;