• Home
  • Raw
  • Download

Lines Matching refs:index

355 void *xa_load(struct xarray *, unsigned long index);
356 void *xa_store(struct xarray *, unsigned long index, void *entry, gfp_t);
357 void *xa_erase(struct xarray *, unsigned long index);
360 bool xa_get_mark(struct xarray *, unsigned long index, xa_mark_t);
361 void xa_set_mark(struct xarray *, unsigned long index, xa_mark_t);
362 void xa_clear_mark(struct xarray *, unsigned long index, xa_mark_t);
363 void *xa_find(struct xarray *xa, unsigned long *index,
365 void *xa_find_after(struct xarray *xa, unsigned long *index,
451 #define xa_for_each_range(xa, index, entry, start, last) \ argument
452 for (index = start, \
453 entry = xa_find(xa, &index, last, XA_PRESENT); \
455 entry = xa_find_after(xa, &index, last, XA_PRESENT))
480 #define xa_for_each_start(xa, index, entry, start) \ argument
481 xa_for_each_range(xa, index, entry, start, ULONG_MAX)
504 #define xa_for_each(xa, index, entry) \ argument
505 xa_for_each_start(xa, index, entry, 0)
531 #define xa_for_each_marked(xa, index, entry, filter) \ argument
532 for (index = 0, entry = xa_find(xa, &index, ULONG_MAX, filter); \
533 entry; entry = xa_find_after(xa, &index, ULONG_MAX, filter))
562 void *__xa_erase(struct xarray *, unsigned long index);
563 void *__xa_store(struct xarray *, unsigned long index, void *entry, gfp_t);
564 void *__xa_cmpxchg(struct xarray *, unsigned long index, void *old,
566 int __must_check __xa_insert(struct xarray *, unsigned long index,
572 void __xa_set_mark(struct xarray *, unsigned long index, xa_mark_t);
573 void __xa_clear_mark(struct xarray *, unsigned long index, xa_mark_t);
589 static inline void *xa_store_bh(struct xarray *xa, unsigned long index, in xa_store_bh() argument
596 curr = __xa_store(xa, index, entry, gfp); in xa_store_bh()
616 static inline void *xa_store_irq(struct xarray *xa, unsigned long index, in xa_store_irq() argument
623 curr = __xa_store(xa, index, entry, gfp); in xa_store_irq()
642 static inline void *xa_erase_bh(struct xarray *xa, unsigned long index) in xa_erase_bh() argument
647 entry = __xa_erase(xa, index); in xa_erase_bh()
666 static inline void *xa_erase_irq(struct xarray *xa, unsigned long index) in xa_erase_irq() argument
671 entry = __xa_erase(xa, index); in xa_erase_irq()
692 static inline void *xa_cmpxchg(struct xarray *xa, unsigned long index, in xa_cmpxchg() argument
699 curr = __xa_cmpxchg(xa, index, old, entry, gfp); in xa_cmpxchg()
720 static inline void *xa_cmpxchg_bh(struct xarray *xa, unsigned long index, in xa_cmpxchg_bh() argument
727 curr = __xa_cmpxchg(xa, index, old, entry, gfp); in xa_cmpxchg_bh()
748 static inline void *xa_cmpxchg_irq(struct xarray *xa, unsigned long index, in xa_cmpxchg_irq() argument
755 curr = __xa_cmpxchg(xa, index, old, entry, gfp); in xa_cmpxchg_irq()
779 unsigned long index, void *entry, gfp_t gfp) in xa_insert() argument
785 err = __xa_insert(xa, index, entry, gfp); in xa_insert()
809 unsigned long index, void *entry, gfp_t gfp) in xa_insert_bh() argument
815 err = __xa_insert(xa, index, entry, gfp); in xa_insert_bh()
839 unsigned long index, void *entry, gfp_t gfp) in xa_insert_irq() argument
845 err = __xa_insert(xa, index, entry, gfp); in xa_insert_irq()
1080 int xa_reserve(struct xarray *xa, unsigned long index, gfp_t gfp) in xa_reserve() argument
1082 return xa_err(xa_cmpxchg(xa, index, NULL, XA_ZERO_ENTRY, gfp)); in xa_reserve()
1098 int xa_reserve_bh(struct xarray *xa, unsigned long index, gfp_t gfp) in xa_reserve_bh() argument
1100 return xa_err(xa_cmpxchg_bh(xa, index, NULL, XA_ZERO_ENTRY, gfp)); in xa_reserve_bh()
1116 int xa_reserve_irq(struct xarray *xa, unsigned long index, gfp_t gfp) in xa_reserve_irq() argument
1118 return xa_err(xa_cmpxchg_irq(xa, index, NULL, XA_ZERO_ENTRY, gfp)); in xa_reserve_irq()
1130 static inline void xa_release(struct xarray *xa, unsigned long index) in xa_release() argument
1132 xa_cmpxchg(xa, index, XA_ZERO_ENTRY, NULL, 0); in xa_release()
1369 #define __XA_STATE(array, index, shift, sibs) { \ argument
1371 .xa_index = index, \
1390 #define XA_STATE(name, array, index) \ argument
1391 struct xa_state name = __XA_STATE(array, index, 0, 0)
1404 #define XA_STATE_ORDER(name, array, index, order) \ argument
1406 (index >> order) << order, \
1554 int xa_get_order(struct xarray *, unsigned long index);
1559 static inline int xa_get_order(struct xarray *xa, unsigned long index) in xa_get_order() argument
1624 static inline void xas_set(struct xa_state *xas, unsigned long index) in xas_set() argument
1626 xas->xa_index = index; in xas_set()
1640 static inline void xas_advance(struct xa_state *xas, unsigned long index) in xas_advance() argument
1644 xas->xa_index = index; in xas_advance()
1645 xas->xa_offset = (index >> shift) & XA_CHUNK_MASK; in xas_advance()
1654 static inline void xas_set_order(struct xa_state *xas, unsigned long index, in xas_set_order() argument
1658 xas->xa_index = order < BITS_PER_LONG ? (index >> order) << order : 0; in xas_set_order()
1664 xas_set(xas, index); in xas_set_order()