Lines Matching refs:ilist
21 void intlist__delete(struct intlist *ilist);
23 void intlist__remove(struct intlist *ilist, struct int_node *in);
24 int intlist__add(struct intlist *ilist, unsigned long i);
26 struct int_node *intlist__entry(const struct intlist *ilist, unsigned int idx);
27 struct int_node *intlist__find(struct intlist *ilist, unsigned long i);
28 struct int_node *intlist__findnew(struct intlist *ilist, unsigned long i);
30 static inline bool intlist__has_entry(struct intlist *ilist, unsigned long i) in intlist__has_entry() argument
32 return intlist__find(ilist, i) != NULL; in intlist__has_entry()
35 static inline bool intlist__empty(const struct intlist *ilist) in intlist__empty() argument
37 return rblist__empty(&ilist->rblist); in intlist__empty()
40 static inline unsigned int intlist__nr_entries(const struct intlist *ilist) in intlist__nr_entries() argument
42 return rblist__nr_entries(&ilist->rblist); in intlist__nr_entries()
46 static inline struct int_node *intlist__first(struct intlist *ilist) in intlist__first() argument
48 struct rb_node *rn = rb_first_cached(&ilist->rblist.entries); in intlist__first()
65 #define intlist__for_each_entry(pos, ilist) \ argument
66 for (pos = intlist__first(ilist); pos; pos = intlist__next(pos))
75 #define intlist__for_each_entry_safe(pos, n, ilist) \ argument
76 for (pos = intlist__first(ilist), n = intlist__next(pos); pos;\